]> git.saurik.com Git - wxWidgets.git/blame - configure
FreeBSD compilation fixes
[wxWidgets.git] / configure
CommitLineData
bcf1fa6b
RR
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
35a4dab7 4# Generated automatically using autoconf version 2.13
bcf1fa6b
RR
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-x use the X Window System"
16ac_help="$ac_help
17**--with-gtk use GTK"
18ac_help="$ac_help
19**--with-qt use Qt"
20ac_help="$ac_help
21**--with-motif use Motif/Lesstif"
22ac_help="$ac_help
23**--with-shared create shared libraries"
24ac_help="$ac_help
25**--with-optimise create optimised code"
26ac_help="$ac_help
27**--with-debug_flag create code with WXDEBUG define set to 1"
28ac_help="$ac_help
29**--with-debug_info create code with debuging information"
30ac_help="$ac_help
2904eefd
KB
31**--with-debug_gdb create code with extra GDB debuging information"
32ac_help="$ac_help
bcf1fa6b
RR
33**--with-mem_traing create code with memory tracing"
34ac_help="$ac_help
35**--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
36ac_help="$ac_help
37**--with-profile create code with profiling information"
38ac_help="$ac_help
39**--with_apple_ieee use the Apple IEEE codec"
40ac_help="$ac_help
ac57418f
RR
41**--with-threads for enabling threads"
42ac_help="$ac_help
eb9bbf52
VZ
43**--with-dynlib to compile wxLibrary class"
44ac_help="$ac_help
bcf1fa6b
RR
45**--with-zlib use zlib for LZW comression"
46ac_help="$ac_help
bcf1fa6b
RR
47**--with-libpng use libpng (PNG image format)"
48ac_help="$ac_help
2fff5f08
VS
49**--with-libjpeg use libjpeg (JPEG image format)"
50ac_help="$ac_help
bcf1fa6b
RR
51**--with-odbc use iODBC and wxODBC classes"
52ac_help="$ac_help
bcf1fa6b
RR
53**--with-timedate use wxTime and wxDate classes"
54ac_help="$ac_help
bcf1fa6b
RR
55**--with-intl use internationalization system"
56ac_help="$ac_help
57**--with-config use wxConfig class"
58ac_help="$ac_help
59**--with-streams use wxStream etc classes"
60ac_help="$ac_help
61**--with-serial use class serialization"
62ac_help="$ac_help
35a4dab7
GL
63**--with-sockets use wxSocket etc classes"
64ac_help="$ac_help
bcf1fa6b
RR
65**--with-afmfonts use Adobe Font Metric Font table"
66ac_help="$ac_help
67**--with-PS-normalized use normalized PS fonts"
68ac_help="$ac_help
69**--with-postscript use wxPostscriptDC device context"
70ac_help="$ac_help
fb4e5803
VZ
71**--with-unicode compile wxString with Unicode support"
72ac_help="$ac_help
73**--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
74ac_help="$ac_help
bcf1fa6b
RR
75**--with-wxresources use wxWindows's resources"
76ac_help="$ac_help
77**--with-prologio use Prolog IO library"
78ac_help="$ac_help
79**--with-rpc use Prolog's remote procedure calls"
80ac_help="$ac_help
81**--with-ipc use interprocess communication (wxSocket etc.)"
82ac_help="$ac_help
83**--with-resources use X resources for saving information"
84ac_help="$ac_help
85**--with-clipboard use wxClipboard classes"
86ac_help="$ac_help
ff8bfdbb
VZ
87**--with-tooltips use tooltips"
88ac_help="$ac_help
bcf1fa6b
RR
89**--with-dnd use Drag'n'Drop classes"
90ac_help="$ac_help
bcf1fa6b
RR
91**--with-mdi use multiple document interface architecture"
92ac_help="$ac_help
93**--with-docview use document view architecture"
94ac_help="$ac_help
95**--with-printarch use printing architecture"
96ac_help="$ac_help
e9aad10a
KB
97**--with-help use help (using external browser at present)"
98ac_help="$ac_help
f3cb6592 99**--with-gtk-prefix=PFX Prefix where GTK is installed"
bcf1fa6b 100ac_help="$ac_help
f3cb6592 101**--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
bcf1fa6b
RR
102
103# Initialize some variables set by options.
104# The variables have the same names as the options, with
105# dashes changed to underlines.
106build=NONE
107cache_file=./config.cache
108exec_prefix=NONE
109host=NONE
110no_create=
111nonopt=NONE
112no_recursion=
113prefix=NONE
114program_prefix=NONE
115program_suffix=NONE
116program_transform_name=s,x,x,
117silent=
118site=
119srcdir=
120target=NONE
121verbose=
122x_includes=NONE
123x_libraries=NONE
124bindir='${exec_prefix}/bin'
125sbindir='${exec_prefix}/sbin'
126libexecdir='${exec_prefix}/libexec'
127datadir='${prefix}/share'
128sysconfdir='${prefix}/etc'
129sharedstatedir='${prefix}/com'
130localstatedir='${prefix}/var'
131libdir='${exec_prefix}/lib'
132includedir='${prefix}/include'
133oldincludedir='/usr/include'
134infodir='${prefix}/info'
135mandir='${prefix}/man'
136
137# Initialize some other variables.
138subdirs=
139MFLAGS= MAKEFLAGS=
35a4dab7 140SHELL=${CONFIG_SHELL-/bin/sh}
bcf1fa6b
RR
141# Maximum number of lines to put in a shell here document.
142ac_max_here_lines=12
143
144ac_prev=
145for ac_option
146do
147
148 # If the previous option needs an argument, assign it.
149 if test -n "$ac_prev"; then
150 eval "$ac_prev=\$ac_option"
151 ac_prev=
152 continue
153 fi
154
155 case "$ac_option" in
156 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 *) ac_optarg= ;;
158 esac
159
160 # Accept the important Cygnus configure options, so we can diagnose typos.
161
162 case "$ac_option" in
163
164 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 ac_prev=bindir ;;
166 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
167 bindir="$ac_optarg" ;;
168
169 -build | --build | --buil | --bui | --bu)
170 ac_prev=build ;;
171 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
172 build="$ac_optarg" ;;
173
174 -cache-file | --cache-file | --cache-fil | --cache-fi \
175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
176 ac_prev=cache_file ;;
177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
179 cache_file="$ac_optarg" ;;
180
181 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 ac_prev=datadir ;;
183 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 | --da=*)
185 datadir="$ac_optarg" ;;
186
187 -disable-* | --disable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 fi
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}=no" ;;
195
196 -enable-* | --enable-*)
197 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
198 # Reject names that are not valid shell variable names.
199 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
200 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 fi
202 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
203 case "$ac_option" in
204 *=*) ;;
205 *) ac_optarg=yes ;;
206 esac
207 eval "enable_${ac_feature}='$ac_optarg'" ;;
208
209 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
210 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
211 | --exec | --exe | --ex)
212 ac_prev=exec_prefix ;;
213 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
214 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
215 | --exec=* | --exe=* | --ex=*)
216 exec_prefix="$ac_optarg" ;;
217
218 -gas | --gas | --ga | --g)
219 # Obsolete; use --with-gas.
220 with_gas=yes ;;
221
222 -help | --help | --hel | --he)
223 # Omit some internal or obsolete options to make the list less imposing.
224 # This message is too long to be a string in the A/UX 3.1 sh.
225 cat << EOF
226Usage: configure [options] [host]
227Options: [defaults in brackets after descriptions]
228Configuration:
229 --cache-file=FILE cache test results in FILE
230 --help print this message
231 --no-create do not create output files
232 --quiet, --silent do not print \`checking...' messages
233 --version print the version of autoconf that created configure
234Directory and file names:
235 --prefix=PREFIX install architecture-independent files in PREFIX
236 [$ac_default_prefix]
237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 [same as prefix]
239 --bindir=DIR user executables in DIR [EPREFIX/bin]
240 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
241 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
242 --datadir=DIR read-only architecture-independent data in DIR
243 [PREFIX/share]
244 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
245 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 [PREFIX/com]
247 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
248 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
249 --includedir=DIR C header files in DIR [PREFIX/include]
250 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
251 --infodir=DIR info documentation in DIR [PREFIX/info]
252 --mandir=DIR man documentation in DIR [PREFIX/man]
253 --srcdir=DIR find the sources in DIR [configure dir or ..]
254 --program-prefix=PREFIX prepend PREFIX to installed program names
255 --program-suffix=SUFFIX append SUFFIX to installed program names
256 --program-transform-name=PROGRAM
257 run sed PROGRAM on installed program names
258EOF
259 cat << EOF
260Host type:
261 --build=BUILD configure for building on BUILD [BUILD=HOST]
262 --host=HOST configure for HOST [guessed]
263 --target=TARGET configure for TARGET [TARGET=HOST]
264Features and packages:
265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
267 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
268 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
269 --x-includes=DIR X include files are in DIR
270 --x-libraries=DIR X library files are in DIR
271EOF
272 if test -n "$ac_help"; then
273 echo "--enable and --with options recognized:$ac_help"
274 fi
275 exit 0 ;;
276
277 -host | --host | --hos | --ho)
278 ac_prev=host ;;
279 -host=* | --host=* | --hos=* | --ho=*)
280 host="$ac_optarg" ;;
281
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev=includedir ;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
287 includedir="$ac_optarg" ;;
288
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 ac_prev=infodir ;;
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292 infodir="$ac_optarg" ;;
293
294 -libdir | --libdir | --libdi | --libd)
295 ac_prev=libdir ;;
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 libdir="$ac_optarg" ;;
298
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev=libexecdir ;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
304 libexecdir="$ac_optarg" ;;
305
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev=localstatedir ;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
313 localstatedir="$ac_optarg" ;;
314
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 ac_prev=mandir ;;
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 mandir="$ac_optarg" ;;
319
320 -nfp | --nfp | --nf)
321 # Obsolete; use --without-fp.
322 with_fp=no ;;
323
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 | --no-cr | --no-c)
326 no_create=yes ;;
327
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 no_recursion=yes ;;
331
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev=oldincludedir ;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
339 oldincludedir="$ac_optarg" ;;
340
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 ac_prev=prefix ;;
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 prefix="$ac_optarg" ;;
345
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev=program_prefix ;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
351 program_prefix="$ac_optarg" ;;
352
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev=program_suffix ;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
358 program_suffix="$ac_optarg" ;;
359
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev=program_transform_name ;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
375 program_transform_name="$ac_optarg" ;;
376
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
379 silent=yes ;;
380
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 ac_prev=sbindir ;;
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 | --sbi=* | --sb=*)
385 sbindir="$ac_optarg" ;;
386
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
390 | --sha | --sh)
391 ac_prev=sharedstatedir ;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 | --sha=* | --sh=*)
396 sharedstatedir="$ac_optarg" ;;
397
398 -site | --site | --sit)
399 ac_prev=site ;;
400 -site=* | --site=* | --sit=*)
401 site="$ac_optarg" ;;
402
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 ac_prev=srcdir ;;
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 srcdir="$ac_optarg" ;;
407
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev=sysconfdir ;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
413 sysconfdir="$ac_optarg" ;;
414
415 -target | --target | --targe | --targ | --tar | --ta | --t)
416 ac_prev=target ;;
417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418 target="$ac_optarg" ;;
419
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 verbose=yes ;;
422
423 -version | --version | --versio | --versi | --vers)
35a4dab7 424 echo "configure generated by autoconf version 2.13"
bcf1fa6b
RR
425 exit 0 ;;
426
427 -with-* | --with-*)
428 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 fi
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 case "$ac_option" in
435 *=*) ;;
436 *) ac_optarg=yes ;;
437 esac
438 eval "with_${ac_package}='$ac_optarg'" ;;
439
440 -without-* | --without-*)
441 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 fi
446 ac_package=`echo $ac_package| sed 's/-/_/g'`
447 eval "with_${ac_package}=no" ;;
448
449 --x)
450 # Obsolete; use --with-x.
451 with_x=yes ;;
452
453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
454 | --x-incl | --x-inc | --x-in | --x-i)
455 ac_prev=x_includes ;;
456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
458 x_includes="$ac_optarg" ;;
459
460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
462 ac_prev=x_libraries ;;
463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
465 x_libraries="$ac_optarg" ;;
466
467 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 ;;
469
470 *)
471 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
472 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 fi
474 if test "x$nonopt" != xNONE; then
475 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 fi
477 nonopt="$ac_option"
478 ;;
479
480 esac
481done
482
483if test -n "$ac_prev"; then
484 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
485fi
486
487trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488
489# File descriptor usage:
490# 0 standard input
491# 1 file creation
492# 2 errors and warnings
493# 3 some systems may open it to /dev/tty
494# 4 used on the Kubota Titan
495# 6 checking for... messages and results
496# 5 compiler messages saved in config.log
497if test "$silent" = yes; then
498 exec 6>/dev/null
499else
500 exec 6>&1
501fi
502exec 5>./config.log
503
504echo "\
505This file contains any messages produced by compilers while
506running configure, to aid debugging if configure makes a mistake.
507" 1>&5
508
509# Strip out --no-create and --no-recursion so they do not pile up.
510# Also quote any args containing shell metacharacters.
511ac_configure_args=
512for ac_arg
513do
514 case "$ac_arg" in
515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
516 | --no-cr | --no-c) ;;
517 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
518 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
519 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
520 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
521 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
522 esac
523done
524
525# NLS nuisances.
526# Only set these to C if already set. These must not be set unconditionally
527# because not all systems understand e.g. LANG=C (notably SCO).
528# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
529# Non-C LC_CTYPE values break the ctype check.
530if test "${LANG+set}" = set; then LANG=C; export LANG; fi
531if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
532if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
533if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534
535# confdefs.h avoids OS command line length limits that DEFS can exceed.
536rm -rf conftest* confdefs.h
537# AIX cpp loses on an empty file, so make sure it contains at least a newline.
538echo > confdefs.h
539
540# A filename unique to this package, relative to the directory that
541# configure is in, which we can look for to find out if srcdir is correct.
542ac_unique_file=configure.in
543
544# Find the source files, if location was not specified.
545if test -z "$srcdir"; then
546 ac_srcdir_defaulted=yes
547 # Try the directory containing this script, then its parent.
548 ac_prog=$0
549 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
550 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 srcdir=$ac_confdir
552 if test ! -r $srcdir/$ac_unique_file; then
553 srcdir=..
554 fi
555else
556 ac_srcdir_defaulted=no
557fi
558if test ! -r $srcdir/$ac_unique_file; then
559 if test "$ac_srcdir_defaulted" = yes; then
560 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 else
562 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
563 fi
564fi
565srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566
567# Prefer explicitly selected file to automatically selected ones.
568if test -z "$CONFIG_SITE"; then
569 if test "x$prefix" != xNONE; then
570 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 else
572 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
573 fi
574fi
575for ac_site_file in $CONFIG_SITE; do
576 if test -r "$ac_site_file"; then
577 echo "loading site script $ac_site_file"
578 . "$ac_site_file"
579 fi
580done
581
582if test -r "$cache_file"; then
583 echo "loading cache $cache_file"
584 . $cache_file
585else
586 echo "creating cache $cache_file"
587 > $cache_file
588fi
589
590ac_ext=c
591# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
592ac_cpp='$CPP $CPPFLAGS'
593ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 594ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bcf1fa6b
RR
595cross_compiling=$ac_cv_prog_cc_cross
596
35a4dab7
GL
597ac_exeext=
598ac_objext=o
bcf1fa6b
RR
599if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
600 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
601 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
602 ac_n= ac_c='
603' ac_t=' '
604 else
605 ac_n=-n ac_c= ac_t=
606 fi
607else
608 ac_n= ac_c='\c' ac_t=
609fi
610
611
612
613
614OS="${OSTYPE}"
615
616if test "x$OS" = "x"; then
617 UNAME=`uname`
618 { echo "configure: error: "The system variable OS has not been set"
619 "please set is everytime befor compiling on this system"
620 "A good example for this system would be:"
621 "setenv OSTYPE $UNAME for csh as a SHELL"
622 "EXPORT OSTYPE=$UNAME for sh as SHELL"
623 "please set this and restart again."
624 " 1>&2; exit 1; }
625fi
626
627
628WXBASEDIR=`pwd`
629
630
631
632SEARCH_INCLUDE="\
ebefb2f3
VZ
633 /usr/Motif-1.2/include \
634 /usr/Motif-2.1/include \
635 \
636 /usr/include/Motif1.2 \
637 /opt/xpm/include/X11 \
638 \
bcf1fa6b 639 /usr/Motif1.2/include \
ebefb2f3 640 /usr/dt/include \
db2150a1
VZ
641 /usr/include/Xm \
642 \
bcf1fa6b
RR
643 /usr/X11R6/include \
644 /usr/X11R5/include \
645 /usr/X11R4/include \
646 \
76153302
RR
647 /usr/X11R6/lib \
648 /usr/X11R5/lib \
649 /usr/X11R4/lib \
650 \
bcf1fa6b
RR
651 /usr/include/X11R6 \
652 /usr/include/X11R5 \
653 /usr/include/X11R4 \
654 \
655 /usr/local/X11R6/include \
656 /usr/local/X11R5/include \
657 /usr/local/X11R4/include \
658 \
659 /usr/local/include/X11R6 \
660 /usr/local/include/X11R5 \
661 /usr/local/include/X11R4 \
662 \
663 /usr/X11/include \
664 /usr/include/X11 \
665 /usr/local/X11/include \
666 /usr/local/include/X11 \
667 \
668 /usr/X386/include \
669 /usr/x386/include \
670 /usr/XFree86/include/X11 \
671 \
672 /usr/include \
f3855ef0
RR
673 /usr/include/gtk \
674 /usr/include/gdk \
675 /usr/include/glib \
bcf1fa6b
RR
676 /usr/local/include \
677 /usr/unsupported/include \
678 /usr/athena/include \
679 /usr/local/x11r5/include \
680 /usr/lpp/Xamples/include \
681 \
682 /usr/local/include/gtk \
d18ed59a 683 /usr/local/include/qt \
bcf1fa6b
RR
684 /usr/include/qt \
685 \
686 /usr/openwin/include \
687 /usr/openwin/share/include \
688 "
689
ebefb2f3 690SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
bcf1fa6b
RR
691
692
693
694# Extract the first word of "gcc", so it can be a program name with args.
695set dummy gcc; ac_word=$2
696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 697echo "configure:698: checking for $ac_word" >&5
bcf1fa6b
RR
698if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700else
701 if test -n "$CC"; then
702 ac_cv_prog_CC="$CC" # Let the user override the test.
703else
35a4dab7
GL
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
705 ac_dummy="$PATH"
706 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 ac_cv_prog_CC="gcc"
710 break
711 fi
712 done
713 IFS="$ac_save_ifs"
714fi
715fi
716CC="$ac_cv_prog_CC"
717if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
719else
720 echo "$ac_t""no" 1>&6
721fi
722
723if test -z "$CC"; then
724 # Extract the first word of "cc", so it can be a program name with args.
725set dummy cc; ac_word=$2
726echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 727echo "configure:728: checking for $ac_word" >&5
bcf1fa6b
RR
728if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
730else
731 if test -n "$CC"; then
732 ac_cv_prog_CC="$CC" # Let the user override the test.
733else
35a4dab7 734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
bcf1fa6b 735 ac_prog_rejected=no
35a4dab7
GL
736 ac_dummy="$PATH"
737 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
738 test -z "$ac_dir" && ac_dir=.
739 if test -f $ac_dir/$ac_word; then
740 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
741 ac_prog_rejected=yes
742 continue
743 fi
744 ac_cv_prog_CC="cc"
745 break
746 fi
747 done
748 IFS="$ac_save_ifs"
749if test $ac_prog_rejected = yes; then
750 # We found a bogon in the path, so make sure we never use it.
751 set dummy $ac_cv_prog_CC
752 shift
753 if test $# -gt 0; then
754 # We chose a different compiler from the bogus one.
755 # However, it has the same basename, so the bogon will be chosen
756 # first if we set CC to just the basename; use the full file name.
757 shift
758 set dummy "$ac_dir/$ac_word" "$@"
759 shift
760 ac_cv_prog_CC="$@"
761 fi
762fi
763fi
764fi
765CC="$ac_cv_prog_CC"
766if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
768else
769 echo "$ac_t""no" 1>&6
770fi
771
35a4dab7
GL
772 if test -z "$CC"; then
773 case "`uname -s`" in
774 *win32* | *WIN32*)
775 # Extract the first word of "cl", so it can be a program name with args.
776set dummy cl; ac_word=$2
777echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778echo "configure:779: checking for $ac_word" >&5
779if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
781else
782 if test -n "$CC"; then
783 ac_cv_prog_CC="$CC" # Let the user override the test.
784else
785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
786 ac_dummy="$PATH"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 ac_cv_prog_CC="cl"
791 break
792 fi
793 done
794 IFS="$ac_save_ifs"
795fi
796fi
797CC="$ac_cv_prog_CC"
798if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
800else
801 echo "$ac_t""no" 1>&6
802fi
803 ;;
804 esac
805 fi
bcf1fa6b
RR
806 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
807fi
808
809echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
35a4dab7 810echo "configure:811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
bcf1fa6b
RR
811
812ac_ext=c
813# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814ac_cpp='$CPP $CPPFLAGS'
815ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 816ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bcf1fa6b
RR
817cross_compiling=$ac_cv_prog_cc_cross
818
35a4dab7
GL
819cat > conftest.$ac_ext << EOF
820
821#line 822 "configure"
bcf1fa6b 822#include "confdefs.h"
35a4dab7 823
bcf1fa6b
RR
824main(){return(0);}
825EOF
35a4dab7 826if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
827 ac_cv_prog_cc_works=yes
828 # If we can't run a trivial program, we are probably using a cross compiler.
829 if (./conftest; exit) 2>/dev/null; then
830 ac_cv_prog_cc_cross=no
831 else
832 ac_cv_prog_cc_cross=yes
833 fi
834else
835 echo "configure: failed program was:" >&5
836 cat conftest.$ac_ext >&5
837 ac_cv_prog_cc_works=no
838fi
839rm -fr conftest*
35a4dab7
GL
840ac_ext=c
841# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842ac_cpp='$CPP $CPPFLAGS'
843ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845cross_compiling=$ac_cv_prog_cc_cross
bcf1fa6b
RR
846
847echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
848if test $ac_cv_prog_cc_works = no; then
849 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
850fi
851echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
35a4dab7 852echo "configure:853: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
bcf1fa6b
RR
853echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
854cross_compiling=$ac_cv_prog_cc_cross
855
856echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
35a4dab7 857echo "configure:858: checking whether we are using GNU C" >&5
bcf1fa6b
RR
858if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860else
861 cat > conftest.c <<EOF
862#ifdef __GNUC__
863 yes;
864#endif
865EOF
35a4dab7 866if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
bcf1fa6b
RR
867 ac_cv_prog_gcc=yes
868else
869 ac_cv_prog_gcc=no
870fi
871fi
872
873echo "$ac_t""$ac_cv_prog_gcc" 1>&6
874
875if test $ac_cv_prog_gcc = yes; then
876 GCC=yes
35a4dab7
GL
877else
878 GCC=
879fi
880
881ac_test_CFLAGS="${CFLAGS+set}"
882ac_save_CFLAGS="$CFLAGS"
883CFLAGS=
884echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
885echo "configure:886: checking whether ${CC-cc} accepts -g" >&5
bcf1fa6b
RR
886if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
888else
889 echo 'void f(){}' > conftest.c
890if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
891 ac_cv_prog_cc_g=yes
892else
893 ac_cv_prog_cc_g=no
894fi
895rm -f conftest*
896
897fi
898
899echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
35a4dab7
GL
900if test "$ac_test_CFLAGS" = set; then
901 CFLAGS="$ac_save_CFLAGS"
902elif test $ac_cv_prog_cc_g = yes; then
903 if test "$GCC" = yes; then
bcf1fa6b
RR
904 CFLAGS="-g -O2"
905 else
35a4dab7 906 CFLAGS="-g"
bcf1fa6b
RR
907 fi
908else
35a4dab7
GL
909 if test "$GCC" = yes; then
910 CFLAGS="-O2"
911 else
912 CFLAGS=
913 fi
bcf1fa6b
RR
914fi
915
916
917CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
918
919if test "x$CC" != xcc; then
920 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
35a4dab7 921echo "configure:922: checking whether $CC and cc understand -c and -o together" >&5
bcf1fa6b
RR
922else
923 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
35a4dab7 924echo "configure:925: checking whether cc understands -c and -o together" >&5
bcf1fa6b
RR
925fi
926set dummy $CC; ac_cc="`echo $2 |
927 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
928if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
930else
931 echo 'foo(){}' > conftest.c
932# Make sure it works both with $CC and with simple cc.
933# We do the test twice because some compilers refuse to overwrite an
934# existing .o file with -o, though they will create one.
935ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
35a4dab7
GL
936if { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
937 test -f conftest.o && { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
bcf1fa6b
RR
938then
939 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
940 if test "x$CC" != xcc; then
941 # Test first that cc exists at all.
35a4dab7 942 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
bcf1fa6b 943 ac_try='cc -c conftest.c -o conftest.o 1>&5'
35a4dab7
GL
944 if { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
945 test -f conftest.o && { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
bcf1fa6b
RR
946 then
947 # cc works too.
948 :
949 else
950 # cc exists but doesn't like -o.
951 eval ac_cv_prog_cc_${ac_cc}_c_o=no
952 fi
953 fi
954 fi
955else
956 eval ac_cv_prog_cc_${ac_cc}_c_o=no
957fi
958rm -f conftest*
959
960fi
961if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
962 echo "$ac_t""yes" 1>&6
963else
964 echo "$ac_t""no" 1>&6
965 cat >> confdefs.h <<\EOF
966#define NO_MINUS_C_MINUS_O 1
967EOF
968
969fi
970
971echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
35a4dab7 972echo "configure:973: checking how to run the C preprocessor" >&5
bcf1fa6b
RR
973# On Suns, sometimes $CPP names a directory.
974if test -n "$CPP" && test -d "$CPP"; then
975 CPP=
976fi
977if test -z "$CPP"; then
978if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980else
981 # This must be in double quotes, not single quotes, because CPP may get
982 # substituted into the Makefile and "${CC-cc}" will confuse make.
983 CPP="${CC-cc} -E"
984 # On the NeXT, cc -E runs the code through the compiler's parser,
985 # not just through cpp.
986 cat > conftest.$ac_ext <<EOF
35a4dab7 987#line 988 "configure"
bcf1fa6b
RR
988#include "confdefs.h"
989#include <assert.h>
990Syntax Error
991EOF
992ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
993{ (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
994ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
995if test -z "$ac_err"; then
996 :
997else
998 echo "$ac_err" >&5
999 echo "configure: failed program was:" >&5
1000 cat conftest.$ac_ext >&5
1001 rm -rf conftest*
1002 CPP="${CC-cc} -E -traditional-cpp"
1003 cat > conftest.$ac_ext <<EOF
35a4dab7 1004#line 1005 "configure"
bcf1fa6b
RR
1005#include "confdefs.h"
1006#include <assert.h>
1007Syntax Error
1008EOF
1009ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
1010{ (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1011ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1012if test -z "$ac_err"; then
1013 :
1014else
1015 echo "$ac_err" >&5
1016 echo "configure: failed program was:" >&5
1017 cat conftest.$ac_ext >&5
1018 rm -rf conftest*
1019 CPP="${CC-cc} -nologo -E"
1020 cat > conftest.$ac_ext <<EOF
1021#line 1022 "configure"
1022#include "confdefs.h"
1023#include <assert.h>
1024Syntax Error
1025EOF
1026ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1027{ (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1028ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
1029if test -z "$ac_err"; then
1030 :
1031else
1032 echo "$ac_err" >&5
1033 echo "configure: failed program was:" >&5
1034 cat conftest.$ac_ext >&5
1035 rm -rf conftest*
1036 CPP=/lib/cpp
1037fi
1038rm -f conftest*
1039fi
35a4dab7
GL
1040rm -f conftest*
1041fi
bcf1fa6b
RR
1042rm -f conftest*
1043 ac_cv_prog_CPP="$CPP"
1044fi
1045 CPP="$ac_cv_prog_CPP"
1046else
1047 ac_cv_prog_CPP="$CPP"
1048fi
1049echo "$ac_t""$CPP" 1>&6
1050
1051if test $ac_cv_prog_gcc = yes; then
1052 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
35a4dab7 1053echo "configure:1054: checking whether ${CC-cc} needs -traditional" >&5
bcf1fa6b
RR
1054if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1056else
1057 ac_pattern="Autoconf.*'x'"
1058 cat > conftest.$ac_ext <<EOF
35a4dab7 1059#line 1060 "configure"
bcf1fa6b
RR
1060#include "confdefs.h"
1061#include <sgtty.h>
1062Autoconf TIOCGETP
1063EOF
1064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1065 egrep "$ac_pattern" >/dev/null 2>&1; then
1066 rm -rf conftest*
1067 ac_cv_prog_gcc_traditional=yes
1068else
1069 rm -rf conftest*
1070 ac_cv_prog_gcc_traditional=no
1071fi
1072rm -f conftest*
1073
1074
1075 if test $ac_cv_prog_gcc_traditional = no; then
1076 cat > conftest.$ac_ext <<EOF
35a4dab7 1077#line 1078 "configure"
bcf1fa6b
RR
1078#include "confdefs.h"
1079#include <termio.h>
1080Autoconf TCGETA
1081EOF
1082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1083 egrep "$ac_pattern" >/dev/null 2>&1; then
1084 rm -rf conftest*
1085 ac_cv_prog_gcc_traditional=yes
1086fi
1087rm -f conftest*
1088
1089 fi
1090fi
1091
1092echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1093 if test $ac_cv_prog_gcc_traditional = yes; then
1094 CC="$CC -traditional"
1095 fi
1096fi
1097
1098
1099
1100
35a4dab7 1101for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
bcf1fa6b
RR
1102do
1103# Extract the first word of "$ac_prog", so it can be a program name with args.
1104set dummy $ac_prog; ac_word=$2
1105echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 1106echo "configure:1107: checking for $ac_word" >&5
bcf1fa6b
RR
1107if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110 if test -n "$CXX"; then
1111 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1112else
35a4dab7
GL
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 ac_dummy="$PATH"
1115 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word; then
1118 ac_cv_prog_CXX="$ac_prog"
1119 break
1120 fi
1121 done
1122 IFS="$ac_save_ifs"
1123fi
1124fi
1125CXX="$ac_cv_prog_CXX"
1126if test -n "$CXX"; then
1127 echo "$ac_t""$CXX" 1>&6
1128else
1129 echo "$ac_t""no" 1>&6
1130fi
1131
1132test -n "$CXX" && break
1133done
1134test -n "$CXX" || CXX="gcc"
1135
1136
1137echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
35a4dab7 1138echo "configure:1139: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
bcf1fa6b
RR
1139
1140ac_ext=C
1141# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1142ac_cpp='$CXXCPP $CPPFLAGS'
1143ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 1144ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bcf1fa6b
RR
1145cross_compiling=$ac_cv_prog_cxx_cross
1146
35a4dab7
GL
1147cat > conftest.$ac_ext << EOF
1148
1149#line 1150 "configure"
bcf1fa6b 1150#include "confdefs.h"
35a4dab7
GL
1151
1152int main(){return(0);}
bcf1fa6b 1153EOF
35a4dab7 1154if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
1155 ac_cv_prog_cxx_works=yes
1156 # If we can't run a trivial program, we are probably using a cross compiler.
1157 if (./conftest; exit) 2>/dev/null; then
1158 ac_cv_prog_cxx_cross=no
1159 else
1160 ac_cv_prog_cxx_cross=yes
1161 fi
1162else
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1165 ac_cv_prog_cxx_works=no
1166fi
1167rm -fr conftest*
1168ac_ext=c
1169# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170ac_cpp='$CPP $CPPFLAGS'
1171ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 1172ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bcf1fa6b
RR
1173cross_compiling=$ac_cv_prog_cc_cross
1174
1175echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1176if test $ac_cv_prog_cxx_works = no; then
1177 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1178fi
1179echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
35a4dab7 1180echo "configure:1181: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
bcf1fa6b
RR
1181echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1182cross_compiling=$ac_cv_prog_cxx_cross
1183
1184echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
35a4dab7 1185echo "configure:1186: checking whether we are using GNU C++" >&5
bcf1fa6b
RR
1186if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188else
1189 cat > conftest.C <<EOF
1190#ifdef __GNUC__
1191 yes;
1192#endif
1193EOF
35a4dab7 1194if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
bcf1fa6b
RR
1195 ac_cv_prog_gxx=yes
1196else
1197 ac_cv_prog_gxx=no
1198fi
1199fi
1200
1201echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1202
1203if test $ac_cv_prog_gxx = yes; then
1204 GXX=yes
35a4dab7
GL
1205else
1206 GXX=
1207fi
1208
1209ac_test_CXXFLAGS="${CXXFLAGS+set}"
1210ac_save_CXXFLAGS="$CXXFLAGS"
1211CXXFLAGS=
1212echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1213echo "configure:1214: checking whether ${CXX-g++} accepts -g" >&5
bcf1fa6b
RR
1214if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216else
1217 echo 'void f(){}' > conftest.cc
1218if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1219 ac_cv_prog_cxx_g=yes
1220else
1221 ac_cv_prog_cxx_g=no
1222fi
1223rm -f conftest*
1224
1225fi
1226
1227echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
35a4dab7
GL
1228if test "$ac_test_CXXFLAGS" = set; then
1229 CXXFLAGS="$ac_save_CXXFLAGS"
1230elif test $ac_cv_prog_cxx_g = yes; then
1231 if test "$GXX" = yes; then
bcf1fa6b
RR
1232 CXXFLAGS="-g -O2"
1233 else
35a4dab7 1234 CXXFLAGS="-g"
bcf1fa6b
RR
1235 fi
1236else
35a4dab7
GL
1237 if test "$GXX" = yes; then
1238 CXXFLAGS="-O2"
1239 else
1240 CXXFLAGS=
1241 fi
bcf1fa6b
RR
1242fi
1243
1244echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
35a4dab7 1245echo "configure:1246: checking how to run the C++ preprocessor" >&5
bcf1fa6b
RR
1246if test -z "$CXXCPP"; then
1247if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1249else
1250 ac_ext=C
1251# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1252ac_cpp='$CXXCPP $CPPFLAGS'
1253ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 1254ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bcf1fa6b
RR
1255cross_compiling=$ac_cv_prog_cxx_cross
1256 CXXCPP="${CXX-g++} -E"
1257 cat > conftest.$ac_ext <<EOF
35a4dab7 1258#line 1259 "configure"
bcf1fa6b
RR
1259#include "confdefs.h"
1260#include <stdlib.h>
1261EOF
1262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
1263{ (eval echo configure:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
1265if test -z "$ac_err"; then
1266 :
1267else
1268 echo "$ac_err" >&5
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1271 rm -rf conftest*
1272 CXXCPP=/lib/cpp
1273fi
1274rm -f conftest*
1275 ac_cv_prog_CXXCPP="$CXXCPP"
1276ac_ext=c
1277# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1278ac_cpp='$CPP $CPPFLAGS'
1279ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 1280ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bcf1fa6b
RR
1281cross_compiling=$ac_cv_prog_cc_cross
1282fi
1283fi
1284CXXCPP="$ac_cv_prog_CXXCPP"
1285echo "$ac_t""$CXXCPP" 1>&6
1286
1287
1288CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
1289
35a4dab7
GL
1290ac_ext=c
1291# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1292ac_cpp='$CPP $CPPFLAGS'
1293ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1294ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1295cross_compiling=$ac_cv_prog_cc_cross
bcf1fa6b
RR
1296
1297
1298# Extract the first word of "ranlib", so it can be a program name with args.
1299set dummy ranlib; ac_word=$2
1300echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 1301echo "configure:1302: checking for $ac_word" >&5
bcf1fa6b
RR
1302if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304else
1305 if test -n "$RANLIB"; then
1306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1307else
35a4dab7
GL
1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1309 ac_dummy="$PATH"
1310 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_RANLIB="ranlib"
1314 break
1315 fi
1316 done
1317 IFS="$ac_save_ifs"
1318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1319fi
1320fi
1321RANLIB="$ac_cv_prog_RANLIB"
1322if test -n "$RANLIB"; then
1323 echo "$ac_t""$RANLIB" 1>&6
1324else
1325 echo "$ac_t""no" 1>&6
1326fi
1327
1328
1329# Extract the first word of "ar", so it can be a program name with args.
1330set dummy ar; ac_word=$2
1331echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 1332echo "configure:1333: checking for $ac_word" >&5
bcf1fa6b
RR
1333if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335else
1336 if test -n "$AR"; then
1337 ac_cv_prog_AR="$AR" # Let the user override the test.
1338else
35a4dab7
GL
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1340 ac_dummy="$PATH"
1341 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_prog_AR="ar"
1345 break
1346 fi
1347 done
1348 IFS="$ac_save_ifs"
1349 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1350fi
1351fi
1352AR="$ac_cv_prog_AR"
1353if test -n "$AR"; then
1354 echo "$ac_t""$AR" 1>&6
1355else
1356 echo "$ac_t""no" 1>&6
1357fi
1358
1359
1360ac_aux_dir=
1361for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1362 if test -f $ac_dir/install-sh; then
1363 ac_aux_dir=$ac_dir
1364 ac_install_sh="$ac_aux_dir/install-sh -c"
1365 break
1366 elif test -f $ac_dir/install.sh; then
1367 ac_aux_dir=$ac_dir
1368 ac_install_sh="$ac_aux_dir/install.sh -c"
1369 break
1370 fi
1371done
1372if test -z "$ac_aux_dir"; then
1373 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1374fi
1375ac_config_guess=$ac_aux_dir/config.guess
1376ac_config_sub=$ac_aux_dir/config.sub
1377ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1378
1379# Find a good install program. We prefer a C program (faster),
1380# so one script is as good as another. But avoid the broken or
1381# incompatible versions:
1382# SysV /etc/install, /usr/sbin/install
1383# SunOS /usr/etc/install
1384# IRIX /sbin/install
1385# AIX /bin/install
35a4dab7 1386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
bcf1fa6b
RR
1387# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1389# ./install, which can be erroneously created by make from ./install.sh.
1390echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
35a4dab7 1391echo "configure:1392: checking for a BSD compatible install" >&5
bcf1fa6b
RR
1392if test -z "$INSTALL"; then
1393if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1395else
35a4dab7 1396 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
bcf1fa6b
RR
1397 for ac_dir in $PATH; do
1398 # Account for people who put trailing slashes in PATH elements.
1399 case "$ac_dir/" in
1400 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1401 *)
1402 # OSF1 and SCO ODT 3.0 have their own names for install.
35a4dab7
GL
1403 # Don't use installbsd from OSF since it installs stuff as root
1404 # by default.
1405 for ac_prog in ginstall scoinst install; do
bcf1fa6b
RR
1406 if test -f $ac_dir/$ac_prog; then
1407 if test $ac_prog = install &&
1408 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1409 # AIX install. It has an incompatible calling convention.
bcf1fa6b
RR
1410 :
1411 else
1412 ac_cv_path_install="$ac_dir/$ac_prog -c"
1413 break 2
1414 fi
1415 fi
1416 done
1417 ;;
1418 esac
1419 done
1420 IFS="$ac_save_IFS"
1421
1422fi
1423 if test "${ac_cv_path_install+set}" = set; then
1424 INSTALL="$ac_cv_path_install"
1425 else
1426 # As a last resort, use the slow shell script. We don't cache a
1427 # path for INSTALL within a source directory, because that will
1428 # break other packages using the cache if that directory is
1429 # removed, or if the path is relative.
1430 INSTALL="$ac_install_sh"
1431 fi
1432fi
1433echo "$ac_t""$INSTALL" 1>&6
1434
1435# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1436# It thinks the first close brace ends the variable substitution.
1437test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1438
35a4dab7
GL
1439test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1440
bcf1fa6b
RR
1441test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442
1443
1444echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
35a4dab7 1445echo "configure:1446: checking whether ln -s works" >&5
bcf1fa6b
RR
1446if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448else
1449 rm -f conftestdata
1450if ln -s X conftestdata 2>/dev/null
1451then
1452 rm -f conftestdata
1453 ac_cv_prog_LN_S="ln -s"
1454else
1455 ac_cv_prog_LN_S=ln
1456fi
1457fi
1458LN_S="$ac_cv_prog_LN_S"
1459if test "$ac_cv_prog_LN_S" = "ln -s"; then
1460 echo "$ac_t""yes" 1>&6
1461else
1462 echo "$ac_t""no" 1>&6
1463fi
1464
1465
1466for ac_prog in mawk gawk nawk awk
1467do
1468# Extract the first word of "$ac_prog", so it can be a program name with args.
1469set dummy $ac_prog; ac_word=$2
1470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 1471echo "configure:1472: checking for $ac_word" >&5
bcf1fa6b
RR
1472if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474else
1475 if test -n "$AWK"; then
1476 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1477else
35a4dab7
GL
1478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1479 ac_dummy="$PATH"
1480 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
1481 test -z "$ac_dir" && ac_dir=.
1482 if test -f $ac_dir/$ac_word; then
1483 ac_cv_prog_AWK="$ac_prog"
1484 break
1485 fi
1486 done
1487 IFS="$ac_save_ifs"
1488fi
1489fi
1490AWK="$ac_cv_prog_AWK"
1491if test -n "$AWK"; then
1492 echo "$ac_t""$AWK" 1>&6
1493else
1494 echo "$ac_t""no" 1>&6
1495fi
1496
1497test -n "$AWK" && break
1498done
1499
1500
1501echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
35a4dab7 1502echo "configure:1503: checking "make for VPATH support"" >&5
bcf1fa6b
RR
1503cat - << EOF > confMake
1504check : file
1505 cp \$? \$@
1506 cp \$? final_file
1507EOF
1508
1509if test ! -d sub ; then
1510 mkdir sub
1511fi
1512echo dummy > sub/file
1513${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
1514RESULT=$?
851b9459 1515rm -f sub/file check final_file confMake
bcf1fa6b
RR
1516rmdir sub
1517if test "$RESULT" = 0; then
1518 echo "$ac_t""yes" 1>&6
1519else
1520 echo "$ac_t""no" 1>&6
1521 { echo "configure: error: You need a make-utility that is able to use the variable
1522VPATH correctly.
1523If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1524fi
1525
1526
1527# If we find X, set shell vars x_includes and x_libraries to the
1528# paths, otherwise set no_x=yes.
1529# Uses ac_ vars as temps to allow command line to override cache and checks.
1530# --without-x overrides everything else, but does not touch the cache.
1531echo $ac_n "checking for X""... $ac_c" 1>&6
35a4dab7 1532echo "configure:1533: checking for X" >&5
bcf1fa6b
RR
1533
1534# Check whether --with-x or --without-x was given.
1535if test "${with_x+set}" = set; then
1536 withval="$with_x"
1537 :
1538fi
1539
1540# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1541if test "x$with_x" = xno; then
1542 # The user explicitly disabled X.
1543 have_x=disabled
1544else
1545 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1546 # Both variables are already set.
1547 have_x=yes
1548 else
1549if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551else
1552 # One or both of the vars are not set, and there is no cached value.
1553ac_x_includes=NO ac_x_libraries=NO
1554rm -fr conftestdir
1555if mkdir conftestdir; then
1556 cd conftestdir
1557 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1558 cat > Imakefile <<'EOF'
1559acfindx:
1560 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1561EOF
1562 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1563 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1564 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1565 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1566 for ac_extension in a so sl; do
1567 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1568 test -f $ac_im_libdir/libX11.$ac_extension; then
1569 ac_im_usrlibdir=$ac_im_libdir; break
1570 fi
1571 done
1572 # Screen out bogus values from the imake configuration. They are
1573 # bogus both because they are the default anyway, and because
1574 # using them would break gcc on systems where it needs fixed includes.
1575 case "$ac_im_incroot" in
1576 /usr/include) ;;
1577 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1578 esac
1579 case "$ac_im_usrlibdir" in
1580 /usr/lib | /lib) ;;
1581 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1582 esac
1583 fi
1584 cd ..
1585 rm -fr conftestdir
1586fi
1587
1588if test "$ac_x_includes" = NO; then
1589 # Guess where to find include files, by looking for this one X11 .h file.
1590 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1591
1592 # First, try using that file with no special directory specified.
1593cat > conftest.$ac_ext <<EOF
35a4dab7 1594#line 1595 "configure"
bcf1fa6b
RR
1595#include "confdefs.h"
1596#include <$x_direct_test_include>
1597EOF
1598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
1599{ (eval echo configure:1600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
1601if test -z "$ac_err"; then
1602 rm -rf conftest*
1603 # We can compile using X headers with no special include directory.
1604ac_x_includes=
1605else
1606 echo "$ac_err" >&5
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 rm -rf conftest*
1610 # Look for the header file in a standard set of common directories.
1611# Check X11 before X11Rn because it is often a symlink to the current release.
1612 for ac_dir in \
1613 /usr/X11/include \
1614 /usr/X11R6/include \
1615 /usr/X11R5/include \
1616 /usr/X11R4/include \
1617 \
1618 /usr/include/X11 \
1619 /usr/include/X11R6 \
1620 /usr/include/X11R5 \
1621 /usr/include/X11R4 \
1622 \
1623 /usr/local/X11/include \
1624 /usr/local/X11R6/include \
1625 /usr/local/X11R5/include \
1626 /usr/local/X11R4/include \
1627 \
1628 /usr/local/include/X11 \
1629 /usr/local/include/X11R6 \
1630 /usr/local/include/X11R5 \
1631 /usr/local/include/X11R4 \
1632 \
1633 /usr/X386/include \
1634 /usr/x386/include \
1635 /usr/XFree86/include/X11 \
1636 \
1637 /usr/include \
1638 /usr/local/include \
1639 /usr/unsupported/include \
1640 /usr/athena/include \
1641 /usr/local/x11r5/include \
1642 /usr/lpp/Xamples/include \
1643 \
1644 /usr/openwin/include \
1645 /usr/openwin/share/include \
1646 ; \
1647 do
1648 if test -r "$ac_dir/$x_direct_test_include"; then
1649 ac_x_includes=$ac_dir
1650 break
1651 fi
1652 done
1653fi
1654rm -f conftest*
1655fi # $ac_x_includes = NO
1656
1657if test "$ac_x_libraries" = NO; then
1658 # Check for the libraries.
1659
1660 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1661 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1662
1663 # See if we find them without any special options.
1664 # Don't add to $LIBS permanently.
1665 ac_save_LIBS="$LIBS"
1666 LIBS="-l$x_direct_test_library $LIBS"
1667cat > conftest.$ac_ext <<EOF
35a4dab7 1668#line 1669 "configure"
bcf1fa6b
RR
1669#include "confdefs.h"
1670
1671int main() {
1672${x_direct_test_function}()
1673; return 0; }
1674EOF
35a4dab7 1675if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
1676 rm -rf conftest*
1677 LIBS="$ac_save_LIBS"
1678# We can link X programs with no special library path.
1679ac_x_libraries=
1680else
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1683 rm -rf conftest*
1684 LIBS="$ac_save_LIBS"
1685# First see if replacing the include by lib works.
1686# Check X11 before X11Rn because it is often a symlink to the current release.
1687for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1688 /usr/X11/lib \
1689 /usr/X11R6/lib \
1690 /usr/X11R5/lib \
1691 /usr/X11R4/lib \
1692 \
1693 /usr/lib/X11 \
1694 /usr/lib/X11R6 \
1695 /usr/lib/X11R5 \
1696 /usr/lib/X11R4 \
1697 \
1698 /usr/local/X11/lib \
1699 /usr/local/X11R6/lib \
1700 /usr/local/X11R5/lib \
1701 /usr/local/X11R4/lib \
1702 \
1703 /usr/local/lib/X11 \
1704 /usr/local/lib/X11R6 \
1705 /usr/local/lib/X11R5 \
1706 /usr/local/lib/X11R4 \
1707 \
1708 /usr/X386/lib \
1709 /usr/x386/lib \
1710 /usr/XFree86/lib/X11 \
1711 \
1712 /usr/lib \
1713 /usr/local/lib \
1714 /usr/unsupported/lib \
1715 /usr/athena/lib \
1716 /usr/local/x11r5/lib \
1717 /usr/lpp/Xamples/lib \
1718 /lib/usr/lib/X11 \
1719 \
1720 /usr/openwin/lib \
1721 /usr/openwin/share/lib \
1722 ; \
1723do
1724 for ac_extension in a so sl; do
1725 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1726 ac_x_libraries=$ac_dir
1727 break 2
1728 fi
1729 done
1730done
1731fi
1732rm -f conftest*
1733fi # $ac_x_libraries = NO
1734
1735if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1736 # Didn't find X anywhere. Cache the known absence of X.
1737 ac_cv_have_x="have_x=no"
1738else
1739 # Record where we found X for the cache.
1740 ac_cv_have_x="have_x=yes \
1741 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1742fi
1743fi
1744 fi
1745 eval "$ac_cv_have_x"
1746fi # $with_x != no
1747
1748if test "$have_x" != yes; then
1749 echo "$ac_t""$have_x" 1>&6
1750 no_x=yes
1751else
1752 # If each of the values was on the command line, it overrides each guess.
1753 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1754 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1755 # Update the cache value to reflect the command line values.
1756 ac_cv_have_x="have_x=yes \
1757 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1758 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1759fi
1760
1761if test "$no_x" = yes; then
1762 # Not all programs may use this symbol, but it does not hurt to define it.
1763 cat >> confdefs.h <<\EOF
1764#define X_DISPLAY_MISSING 1
1765EOF
1766
1767 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1768else
1769 if test -n "$x_includes"; then
1770 X_CFLAGS="$X_CFLAGS -I$x_includes"
1771 fi
1772
1773 # It would also be nice to do this for all -L options, not just this one.
1774 if test -n "$x_libraries"; then
1775 X_LIBS="$X_LIBS -L$x_libraries"
1776 # For Solaris; some versions of Sun CC require a space after -R and
1777 # others require no space. Words are not sufficient . . . .
1778 case "`(uname -sr) 2>/dev/null`" in
1779 "SunOS 5"*)
1780 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
35a4dab7 1781echo "configure:1782: checking whether -R must be followed by a space" >&5
bcf1fa6b
RR
1782 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1783 cat > conftest.$ac_ext <<EOF
35a4dab7 1784#line 1785 "configure"
bcf1fa6b
RR
1785#include "confdefs.h"
1786
1787int main() {
1788
1789; return 0; }
1790EOF
35a4dab7 1791if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
1792 rm -rf conftest*
1793 ac_R_nospace=yes
1794else
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1797 rm -rf conftest*
1798 ac_R_nospace=no
1799fi
1800rm -f conftest*
1801 if test $ac_R_nospace = yes; then
1802 echo "$ac_t""no" 1>&6
1803 X_LIBS="$X_LIBS -R$x_libraries"
1804 else
1805 LIBS="$ac_xsave_LIBS -R $x_libraries"
1806 cat > conftest.$ac_ext <<EOF
35a4dab7 1807#line 1808 "configure"
bcf1fa6b
RR
1808#include "confdefs.h"
1809
1810int main() {
1811
1812; return 0; }
1813EOF
35a4dab7 1814if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
1815 rm -rf conftest*
1816 ac_R_space=yes
1817else
1818 echo "configure: failed program was:" >&5
1819 cat conftest.$ac_ext >&5
1820 rm -rf conftest*
1821 ac_R_space=no
1822fi
1823rm -f conftest*
1824 if test $ac_R_space = yes; then
1825 echo "$ac_t""yes" 1>&6
1826 X_LIBS="$X_LIBS -R $x_libraries"
1827 else
1828 echo "$ac_t""neither works" 1>&6
1829 fi
1830 fi
1831 LIBS="$ac_xsave_LIBS"
1832 esac
1833 fi
1834
1835 # Check for system-dependent libraries X programs must link with.
1836 # Do this before checking for the system-independent R6 libraries
1837 # (-lICE), since we may need -lsocket or whatever for X linking.
1838
1839 if test "$ISC" = yes; then
1840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1841 else
1842 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1843 # libraries were built with DECnet support. And karl@cs.umb.edu says
1844 # the Alpha needs dnet_stub (dnet does not exist).
1845 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
35a4dab7 1846echo "configure:1847: checking for dnet_ntoa in -ldnet" >&5
bcf1fa6b
RR
1847ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1848if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1850else
1851 ac_save_LIBS="$LIBS"
1852LIBS="-ldnet $LIBS"
1853cat > conftest.$ac_ext <<EOF
35a4dab7 1854#line 1855 "configure"
bcf1fa6b
RR
1855#include "confdefs.h"
1856/* Override any gcc2 internal prototype to avoid an error. */
1857/* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1859char dnet_ntoa();
1860
1861int main() {
1862dnet_ntoa()
1863; return 0; }
1864EOF
35a4dab7 1865if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
1866 rm -rf conftest*
1867 eval "ac_cv_lib_$ac_lib_var=yes"
1868else
1869 echo "configure: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1871 rm -rf conftest*
1872 eval "ac_cv_lib_$ac_lib_var=no"
1873fi
1874rm -f conftest*
1875LIBS="$ac_save_LIBS"
1876
1877fi
1878if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1881else
1882 echo "$ac_t""no" 1>&6
1883fi
1884
1885 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1886 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
35a4dab7 1887echo "configure:1888: checking for dnet_ntoa in -ldnet_stub" >&5
bcf1fa6b
RR
1888ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891else
1892 ac_save_LIBS="$LIBS"
1893LIBS="-ldnet_stub $LIBS"
1894cat > conftest.$ac_ext <<EOF
35a4dab7 1895#line 1896 "configure"
bcf1fa6b
RR
1896#include "confdefs.h"
1897/* Override any gcc2 internal prototype to avoid an error. */
1898/* We use char because int might match the return type of a gcc2
1899 builtin and then its argument prototype would still apply. */
1900char dnet_ntoa();
1901
1902int main() {
1903dnet_ntoa()
1904; return 0; }
1905EOF
35a4dab7 1906if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
1907 rm -rf conftest*
1908 eval "ac_cv_lib_$ac_lib_var=yes"
1909else
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1912 rm -rf conftest*
1913 eval "ac_cv_lib_$ac_lib_var=no"
1914fi
1915rm -f conftest*
1916LIBS="$ac_save_LIBS"
1917
1918fi
1919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1920 echo "$ac_t""yes" 1>&6
1921 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1922else
1923 echo "$ac_t""no" 1>&6
1924fi
1925
1926 fi
1927
1928 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1929 # to get the SysV transport functions.
1930 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1931 # needs -lnsl.
1932 # The nsl library prevents programs from opening the X display
1933 # on Irix 5.2, according to dickey@clark.net.
1934 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
35a4dab7 1935echo "configure:1936: checking for gethostbyname" >&5
bcf1fa6b
RR
1936if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1938else
1939 cat > conftest.$ac_ext <<EOF
35a4dab7 1940#line 1941 "configure"
bcf1fa6b
RR
1941#include "confdefs.h"
1942/* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char gethostbyname(); below. */
1944#include <assert.h>
1945/* Override any gcc2 internal prototype to avoid an error. */
1946/* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1948char gethostbyname();
1949
1950int main() {
1951
1952/* The GNU C library defines this for functions which it implements
1953 to always fail with ENOSYS. Some functions are actually named
1954 something starting with __ and the normal name is an alias. */
1955#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1956choke me
1957#else
1958gethostbyname();
1959#endif
1960
1961; return 0; }
1962EOF
35a4dab7 1963if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
1964 rm -rf conftest*
1965 eval "ac_cv_func_gethostbyname=yes"
1966else
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1969 rm -rf conftest*
1970 eval "ac_cv_func_gethostbyname=no"
1971fi
1972rm -f conftest*
1973fi
1974
1975if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 :
1978else
1979 echo "$ac_t""no" 1>&6
1980fi
1981
1982 if test $ac_cv_func_gethostbyname = no; then
1983 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
35a4dab7 1984echo "configure:1985: checking for gethostbyname in -lnsl" >&5
bcf1fa6b
RR
1985ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1986if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1988else
1989 ac_save_LIBS="$LIBS"
1990LIBS="-lnsl $LIBS"
1991cat > conftest.$ac_ext <<EOF
35a4dab7 1992#line 1993 "configure"
bcf1fa6b
RR
1993#include "confdefs.h"
1994/* Override any gcc2 internal prototype to avoid an error. */
1995/* We use char because int might match the return type of a gcc2
1996 builtin and then its argument prototype would still apply. */
1997char gethostbyname();
1998
1999int main() {
2000gethostbyname()
2001; return 0; }
2002EOF
35a4dab7 2003if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2004 rm -rf conftest*
2005 eval "ac_cv_lib_$ac_lib_var=yes"
2006else
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 rm -rf conftest*
2010 eval "ac_cv_lib_$ac_lib_var=no"
2011fi
2012rm -f conftest*
2013LIBS="$ac_save_LIBS"
2014
2015fi
2016if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2019else
2020 echo "$ac_t""no" 1>&6
2021fi
2022
2023 fi
2024
2025 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2026 # socket/setsockopt and other routines are undefined under SCO ODT
2027 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2028 # on later versions), says simon@lia.di.epfl.ch: it contains
2029 # gethostby* variants that don't use the nameserver (or something).
2030 # -lsocket must be given before -lnsl if both are needed.
2031 # We assume that if connect needs -lnsl, so does gethostbyname.
2032 echo $ac_n "checking for connect""... $ac_c" 1>&6
35a4dab7 2033echo "configure:2034: checking for connect" >&5
bcf1fa6b
RR
2034if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036else
2037 cat > conftest.$ac_ext <<EOF
35a4dab7 2038#line 2039 "configure"
bcf1fa6b
RR
2039#include "confdefs.h"
2040/* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char connect(); below. */
2042#include <assert.h>
2043/* Override any gcc2 internal prototype to avoid an error. */
2044/* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2046char connect();
2047
2048int main() {
2049
2050/* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053#if defined (__stub_connect) || defined (__stub___connect)
2054choke me
2055#else
2056connect();
2057#endif
2058
2059; return 0; }
2060EOF
35a4dab7 2061if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2062 rm -rf conftest*
2063 eval "ac_cv_func_connect=yes"
2064else
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 rm -rf conftest*
2068 eval "ac_cv_func_connect=no"
2069fi
2070rm -f conftest*
2071fi
2072
2073if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 :
2076else
2077 echo "$ac_t""no" 1>&6
2078fi
2079
2080 if test $ac_cv_func_connect = no; then
2081 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
35a4dab7 2082echo "configure:2083: checking for connect in -lsocket" >&5
bcf1fa6b
RR
2083ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2084if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086else
2087 ac_save_LIBS="$LIBS"
2088LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2089cat > conftest.$ac_ext <<EOF
35a4dab7 2090#line 2091 "configure"
bcf1fa6b
RR
2091#include "confdefs.h"
2092/* Override any gcc2 internal prototype to avoid an error. */
2093/* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2095char connect();
2096
2097int main() {
2098connect()
2099; return 0; }
2100EOF
35a4dab7 2101if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2102 rm -rf conftest*
2103 eval "ac_cv_lib_$ac_lib_var=yes"
2104else
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2107 rm -rf conftest*
2108 eval "ac_cv_lib_$ac_lib_var=no"
2109fi
2110rm -f conftest*
2111LIBS="$ac_save_LIBS"
2112
2113fi
2114if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2117else
2118 echo "$ac_t""no" 1>&6
2119fi
2120
2121 fi
2122
2123 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2124 echo $ac_n "checking for remove""... $ac_c" 1>&6
35a4dab7 2125echo "configure:2126: checking for remove" >&5
bcf1fa6b
RR
2126if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128else
2129 cat > conftest.$ac_ext <<EOF
35a4dab7 2130#line 2131 "configure"
bcf1fa6b
RR
2131#include "confdefs.h"
2132/* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char remove(); below. */
2134#include <assert.h>
2135/* Override any gcc2 internal prototype to avoid an error. */
2136/* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2138char remove();
2139
2140int main() {
2141
2142/* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145#if defined (__stub_remove) || defined (__stub___remove)
2146choke me
2147#else
2148remove();
2149#endif
2150
2151; return 0; }
2152EOF
35a4dab7 2153if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2154 rm -rf conftest*
2155 eval "ac_cv_func_remove=yes"
2156else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 eval "ac_cv_func_remove=no"
2161fi
2162rm -f conftest*
2163fi
2164
2165if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 :
2168else
2169 echo "$ac_t""no" 1>&6
2170fi
2171
2172 if test $ac_cv_func_remove = no; then
2173 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
35a4dab7 2174echo "configure:2175: checking for remove in -lposix" >&5
bcf1fa6b
RR
2175ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2176if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178else
2179 ac_save_LIBS="$LIBS"
2180LIBS="-lposix $LIBS"
2181cat > conftest.$ac_ext <<EOF
35a4dab7 2182#line 2183 "configure"
bcf1fa6b
RR
2183#include "confdefs.h"
2184/* Override any gcc2 internal prototype to avoid an error. */
2185/* We use char because int might match the return type of a gcc2
2186 builtin and then its argument prototype would still apply. */
2187char remove();
2188
2189int main() {
2190remove()
2191; return 0; }
2192EOF
35a4dab7 2193if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2194 rm -rf conftest*
2195 eval "ac_cv_lib_$ac_lib_var=yes"
2196else
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 rm -rf conftest*
2200 eval "ac_cv_lib_$ac_lib_var=no"
2201fi
2202rm -f conftest*
2203LIBS="$ac_save_LIBS"
2204
2205fi
2206if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2209else
2210 echo "$ac_t""no" 1>&6
2211fi
2212
2213 fi
2214
2215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2216 echo $ac_n "checking for shmat""... $ac_c" 1>&6
35a4dab7 2217echo "configure:2218: checking for shmat" >&5
bcf1fa6b
RR
2218if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220else
2221 cat > conftest.$ac_ext <<EOF
35a4dab7 2222#line 2223 "configure"
bcf1fa6b
RR
2223#include "confdefs.h"
2224/* System header to define __stub macros and hopefully few prototypes,
2225 which can conflict with char shmat(); below. */
2226#include <assert.h>
2227/* Override any gcc2 internal prototype to avoid an error. */
2228/* We use char because int might match the return type of a gcc2
2229 builtin and then its argument prototype would still apply. */
2230char shmat();
2231
2232int main() {
2233
2234/* The GNU C library defines this for functions which it implements
2235 to always fail with ENOSYS. Some functions are actually named
2236 something starting with __ and the normal name is an alias. */
2237#if defined (__stub_shmat) || defined (__stub___shmat)
2238choke me
2239#else
2240shmat();
2241#endif
2242
2243; return 0; }
2244EOF
35a4dab7 2245if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2246 rm -rf conftest*
2247 eval "ac_cv_func_shmat=yes"
2248else
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 rm -rf conftest*
2252 eval "ac_cv_func_shmat=no"
2253fi
2254rm -f conftest*
2255fi
2256
2257if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2259 :
2260else
2261 echo "$ac_t""no" 1>&6
2262fi
2263
2264 if test $ac_cv_func_shmat = no; then
2265 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
35a4dab7 2266echo "configure:2267: checking for shmat in -lipc" >&5
bcf1fa6b
RR
2267ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270else
2271 ac_save_LIBS="$LIBS"
2272LIBS="-lipc $LIBS"
2273cat > conftest.$ac_ext <<EOF
35a4dab7 2274#line 2275 "configure"
bcf1fa6b
RR
2275#include "confdefs.h"
2276/* Override any gcc2 internal prototype to avoid an error. */
2277/* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */
2279char shmat();
2280
2281int main() {
2282shmat()
2283; return 0; }
2284EOF
35a4dab7 2285if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2286 rm -rf conftest*
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2288else
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -rf conftest*
2292 eval "ac_cv_lib_$ac_lib_var=no"
2293fi
2294rm -f conftest*
2295LIBS="$ac_save_LIBS"
2296
2297fi
2298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2301else
2302 echo "$ac_t""no" 1>&6
2303fi
2304
2305 fi
2306 fi
2307
2308 # Check for libraries that X11R6 Xt/Xaw programs need.
2309 ac_save_LDFLAGS="$LDFLAGS"
2310 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2311 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2312 # check for ICE first), but we must link in the order -lSM -lICE or
2313 # we get undefined symbols. So assume we have SM if we have ICE.
2314 # These have to be linked with before -lX11, unlike the other
2315 # libraries we check for below, so use a different variable.
2316 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2317 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
35a4dab7 2318echo "configure:2319: checking for IceConnectionNumber in -lICE" >&5
bcf1fa6b
RR
2319ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2322else
2323 ac_save_LIBS="$LIBS"
35a4dab7 2324LIBS="-lICE $X_EXTRA_LIBS $LIBS"
bcf1fa6b 2325cat > conftest.$ac_ext <<EOF
35a4dab7 2326#line 2327 "configure"
bcf1fa6b
RR
2327#include "confdefs.h"
2328/* Override any gcc2 internal prototype to avoid an error. */
2329/* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2331char IceConnectionNumber();
2332
2333int main() {
2334IceConnectionNumber()
2335; return 0; }
2336EOF
35a4dab7 2337if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2338 rm -rf conftest*
2339 eval "ac_cv_lib_$ac_lib_var=yes"
2340else
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 rm -rf conftest*
2344 eval "ac_cv_lib_$ac_lib_var=no"
2345fi
2346rm -f conftest*
2347LIBS="$ac_save_LIBS"
2348
2349fi
2350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2352 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2353else
2354 echo "$ac_t""no" 1>&6
2355fi
2356
2357 LDFLAGS="$ac_save_LDFLAGS"
2358
2359fi
2360
2361
2362ac_header_dirent=no
2363for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2364do
2365ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2366echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
35a4dab7 2367echo "configure:2368: checking for $ac_hdr that defines DIR" >&5
bcf1fa6b
RR
2368if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370else
2371 cat > conftest.$ac_ext <<EOF
35a4dab7 2372#line 2373 "configure"
bcf1fa6b
RR
2373#include "confdefs.h"
2374#include <sys/types.h>
2375#include <$ac_hdr>
2376int main() {
2377DIR *dirp = 0;
2378; return 0; }
2379EOF
35a4dab7 2380if { (eval echo configure:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
2381 rm -rf conftest*
2382 eval "ac_cv_header_dirent_$ac_safe=yes"
2383else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 eval "ac_cv_header_dirent_$ac_safe=no"
2388fi
2389rm -f conftest*
2390fi
2391if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2394 cat >> confdefs.h <<EOF
2395#define $ac_tr_hdr 1
2396EOF
2397 ac_header_dirent=$ac_hdr; break
2398else
2399 echo "$ac_t""no" 1>&6
2400fi
2401done
2402# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2403if test $ac_header_dirent = dirent.h; then
2404echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
35a4dab7 2405echo "configure:2406: checking for opendir in -ldir" >&5
bcf1fa6b
RR
2406ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2407if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409else
2410 ac_save_LIBS="$LIBS"
2411LIBS="-ldir $LIBS"
2412cat > conftest.$ac_ext <<EOF
35a4dab7 2413#line 2414 "configure"
bcf1fa6b
RR
2414#include "confdefs.h"
2415/* Override any gcc2 internal prototype to avoid an error. */
2416/* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2418char opendir();
2419
2420int main() {
2421opendir()
2422; return 0; }
2423EOF
35a4dab7 2424if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2425 rm -rf conftest*
2426 eval "ac_cv_lib_$ac_lib_var=yes"
2427else
2428 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2430 rm -rf conftest*
2431 eval "ac_cv_lib_$ac_lib_var=no"
2432fi
2433rm -f conftest*
2434LIBS="$ac_save_LIBS"
2435
2436fi
2437if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 LIBS="$LIBS -ldir"
2440else
2441 echo "$ac_t""no" 1>&6
2442fi
2443
2444else
2445echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
35a4dab7 2446echo "configure:2447: checking for opendir in -lx" >&5
bcf1fa6b
RR
2447ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2448if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2450else
2451 ac_save_LIBS="$LIBS"
2452LIBS="-lx $LIBS"
2453cat > conftest.$ac_ext <<EOF
35a4dab7 2454#line 2455 "configure"
bcf1fa6b
RR
2455#include "confdefs.h"
2456/* Override any gcc2 internal prototype to avoid an error. */
2457/* We use char because int might match the return type of a gcc2
2458 builtin and then its argument prototype would still apply. */
2459char opendir();
2460
2461int main() {
2462opendir()
2463; return 0; }
2464EOF
35a4dab7 2465if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
2466 rm -rf conftest*
2467 eval "ac_cv_lib_$ac_lib_var=yes"
2468else
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2471 rm -rf conftest*
2472 eval "ac_cv_lib_$ac_lib_var=no"
2473fi
2474rm -f conftest*
2475LIBS="$ac_save_LIBS"
2476
2477fi
2478if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2480 LIBS="$LIBS -lx"
2481else
2482 echo "$ac_t""no" 1>&6
2483fi
2484
2485fi
2486
2487echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
35a4dab7 2488echo "configure:2489: checking for ANSI C header files" >&5
bcf1fa6b
RR
2489if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491else
2492 cat > conftest.$ac_ext <<EOF
35a4dab7 2493#line 2494 "configure"
bcf1fa6b
RR
2494#include "confdefs.h"
2495#include <stdlib.h>
2496#include <stdarg.h>
2497#include <string.h>
2498#include <float.h>
2499EOF
2500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2501{ (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
2503if test -z "$ac_err"; then
2504 rm -rf conftest*
2505 ac_cv_header_stdc=yes
2506else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 ac_cv_header_stdc=no
2512fi
2513rm -f conftest*
2514
2515if test $ac_cv_header_stdc = yes; then
2516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2517cat > conftest.$ac_ext <<EOF
35a4dab7 2518#line 2519 "configure"
bcf1fa6b
RR
2519#include "confdefs.h"
2520#include <string.h>
2521EOF
2522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2523 egrep "memchr" >/dev/null 2>&1; then
2524 :
2525else
2526 rm -rf conftest*
2527 ac_cv_header_stdc=no
2528fi
2529rm -f conftest*
2530
2531fi
2532
2533if test $ac_cv_header_stdc = yes; then
2534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2535cat > conftest.$ac_ext <<EOF
35a4dab7 2536#line 2537 "configure"
bcf1fa6b
RR
2537#include "confdefs.h"
2538#include <stdlib.h>
2539EOF
2540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2541 egrep "free" >/dev/null 2>&1; then
2542 :
2543else
2544 rm -rf conftest*
2545 ac_cv_header_stdc=no
2546fi
2547rm -f conftest*
2548
2549fi
2550
2551if test $ac_cv_header_stdc = yes; then
2552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2553if test "$cross_compiling" = yes; then
2554 :
2555else
2556 cat > conftest.$ac_ext <<EOF
35a4dab7 2557#line 2558 "configure"
bcf1fa6b
RR
2558#include "confdefs.h"
2559#include <ctype.h>
2560#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2561#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2563int main () { int i; for (i = 0; i < 256; i++)
2564if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2565exit (0); }
2566
2567EOF
35a4dab7 2568if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
2569then
2570 :
2571else
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2574 rm -fr conftest*
2575 ac_cv_header_stdc=no
2576fi
2577rm -fr conftest*
2578fi
2579
2580fi
2581fi
2582
2583echo "$ac_t""$ac_cv_header_stdc" 1>&6
2584if test $ac_cv_header_stdc = yes; then
2585 cat >> confdefs.h <<\EOF
2586#define STDC_HEADERS 1
2587EOF
2588
2589fi
2590
2591echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
35a4dab7 2592echo "configure:2593: checking for sys/wait.h that is POSIX.1 compatible" >&5
bcf1fa6b
RR
2593if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2595else
2596 cat > conftest.$ac_ext <<EOF
35a4dab7 2597#line 2598 "configure"
bcf1fa6b
RR
2598#include "confdefs.h"
2599#include <sys/types.h>
2600#include <sys/wait.h>
2601#ifndef WEXITSTATUS
2602#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2603#endif
2604#ifndef WIFEXITED
2605#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2606#endif
2607int main() {
2608int s;
2609wait (&s);
2610s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2611; return 0; }
2612EOF
35a4dab7 2613if { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
2614 rm -rf conftest*
2615 ac_cv_header_sys_wait_h=yes
2616else
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2619 rm -rf conftest*
2620 ac_cv_header_sys_wait_h=no
2621fi
2622rm -f conftest*
2623fi
2624
2625echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2626if test $ac_cv_header_sys_wait_h = yes; then
2627 cat >> confdefs.h <<\EOF
2628#define HAVE_SYS_WAIT_H 1
2629EOF
2630
2631fi
2632
a4876ea4
KB
2633for ac_hdr in fcntl.h
2634do
2635ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2636echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 2637echo "configure:2638: checking for $ac_hdr" >&5
bcf1fa6b
RR
2638if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2640else
2641 cat > conftest.$ac_ext <<EOF
35a4dab7 2642#line 2643 "configure"
bcf1fa6b 2643#include "confdefs.h"
a4876ea4 2644#include <$ac_hdr>
bcf1fa6b
RR
2645EOF
2646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2647{ (eval echo configure:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
2649if test -z "$ac_err"; then
2650 rm -rf conftest*
2651 eval "ac_cv_header_$ac_safe=yes"
2652else
2653 echo "$ac_err" >&5
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2656 rm -rf conftest*
2657 eval "ac_cv_header_$ac_safe=no"
2658fi
2659rm -f conftest*
2660fi
2661if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
a4876ea4
KB
2663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2664 cat >> confdefs.h <<EOF
2665#define $ac_tr_hdr 1
2666EOF
2667
bcf1fa6b
RR
2668else
2669 echo "$ac_t""no" 1>&6
2670fi
a4876ea4 2671done
bcf1fa6b 2672
a4876ea4
KB
2673for ac_hdr in limits.h
2674do
2675ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2676echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 2677echo "configure:2678: checking for $ac_hdr" >&5
bcf1fa6b
RR
2678if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2680else
2681 cat > conftest.$ac_ext <<EOF
35a4dab7 2682#line 2683 "configure"
bcf1fa6b 2683#include "confdefs.h"
a4876ea4 2684#include <$ac_hdr>
bcf1fa6b
RR
2685EOF
2686ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2687{ (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2688ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
2689if test -z "$ac_err"; then
2690 rm -rf conftest*
2691 eval "ac_cv_header_$ac_safe=yes"
2692else
2693 echo "$ac_err" >&5
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2696 rm -rf conftest*
2697 eval "ac_cv_header_$ac_safe=no"
2698fi
2699rm -f conftest*
2700fi
2701if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
a4876ea4
KB
2703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2704 cat >> confdefs.h <<EOF
2705#define $ac_tr_hdr 1
2706EOF
2707
bcf1fa6b
RR
2708else
2709 echo "$ac_t""no" 1>&6
2710fi
a4876ea4 2711done
bcf1fa6b 2712
a4876ea4
KB
2713for ac_hdr in sys/file.h
2714do
2715ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2716echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 2717echo "configure:2718: checking for $ac_hdr" >&5
bcf1fa6b
RR
2718if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2720else
2721 cat > conftest.$ac_ext <<EOF
35a4dab7 2722#line 2723 "configure"
bcf1fa6b 2723#include "confdefs.h"
a4876ea4 2724#include <$ac_hdr>
bcf1fa6b
RR
2725EOF
2726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2727{ (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
2729if test -z "$ac_err"; then
2730 rm -rf conftest*
2731 eval "ac_cv_header_$ac_safe=yes"
2732else
2733 echo "$ac_err" >&5
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2736 rm -rf conftest*
2737 eval "ac_cv_header_$ac_safe=no"
2738fi
2739rm -f conftest*
2740fi
2741if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
a4876ea4
KB
2743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2744 cat >> confdefs.h <<EOF
2745#define $ac_tr_hdr 1
2746EOF
2747
bcf1fa6b
RR
2748else
2749 echo "$ac_t""no" 1>&6
2750fi
a4876ea4 2751done
bcf1fa6b 2752
a4876ea4
KB
2753for ac_hdr in sys/time.h
2754do
2755ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2756echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 2757echo "configure:2758: checking for $ac_hdr" >&5
bcf1fa6b
RR
2758if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760else
2761 cat > conftest.$ac_ext <<EOF
35a4dab7 2762#line 2763 "configure"
bcf1fa6b 2763#include "confdefs.h"
a4876ea4 2764#include <$ac_hdr>
bcf1fa6b
RR
2765EOF
2766ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2767{ (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
2769if test -z "$ac_err"; then
2770 rm -rf conftest*
2771 eval "ac_cv_header_$ac_safe=yes"
2772else
2773 echo "$ac_err" >&5
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 rm -rf conftest*
2777 eval "ac_cv_header_$ac_safe=no"
2778fi
2779rm -f conftest*
2780fi
2781if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
a4876ea4
KB
2783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2784 cat >> confdefs.h <<EOF
2785#define $ac_tr_hdr 1
2786EOF
2787
bcf1fa6b
RR
2788else
2789 echo "$ac_t""no" 1>&6
2790fi
a4876ea4 2791done
bcf1fa6b 2792
a4876ea4
KB
2793for ac_hdr in unistd.h
2794do
2795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 2797echo "configure:2798: checking for $ac_hdr" >&5
bcf1fa6b
RR
2798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2800else
2801 cat > conftest.$ac_ext <<EOF
35a4dab7 2802#line 2803 "configure"
bcf1fa6b 2803#include "confdefs.h"
a4876ea4 2804#include <$ac_hdr>
bcf1fa6b
RR
2805EOF
2806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2807{ (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
2809if test -z "$ac_err"; then
2810 rm -rf conftest*
2811 eval "ac_cv_header_$ac_safe=yes"
2812else
2813 echo "$ac_err" >&5
2814 echo "configure: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2816 rm -rf conftest*
2817 eval "ac_cv_header_$ac_safe=no"
2818fi
2819rm -f conftest*
2820fi
2821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
a4876ea4
KB
2823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2824 cat >> confdefs.h <<EOF
2825#define $ac_tr_hdr 1
2826EOF
2827
bcf1fa6b
RR
2828else
2829 echo "$ac_t""no" 1>&6
2830fi
a4876ea4 2831done
bcf1fa6b 2832
a4876ea4
KB
2833for ac_hdr in fnmatch.h
2834do
2835ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2836echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 2837echo "configure:2838: checking for $ac_hdr" >&5
bcf1fa6b
RR
2838if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2840else
2841 cat > conftest.$ac_ext <<EOF
35a4dab7 2842#line 2843 "configure"
bcf1fa6b 2843#include "confdefs.h"
a4876ea4 2844#include <$ac_hdr>
bcf1fa6b
RR
2845EOF
2846ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2847{ (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2848ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
2849if test -z "$ac_err"; then
2850 rm -rf conftest*
2851 eval "ac_cv_header_$ac_safe=yes"
2852else
2853 echo "$ac_err" >&5
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2856 rm -rf conftest*
2857 eval "ac_cv_header_$ac_safe=no"
2858fi
2859rm -f conftest*
2860fi
2861if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
a4876ea4
KB
2863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2864 cat >> confdefs.h <<EOF
2865#define $ac_tr_hdr 1
2866EOF
2867
2868else
2869 echo "$ac_t""no" 1>&6
2870fi
2871done
2872
2873for ac_hdr in linux/joystick.h
2874do
2875ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 2877echo "configure:2878: checking for $ac_hdr" >&5
a4876ea4
KB
2878if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2880else
2881 cat > conftest.$ac_ext <<EOF
35a4dab7 2882#line 2883 "configure"
a4876ea4
KB
2883#include "confdefs.h"
2884#include <$ac_hdr>
2885EOF
2886ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
2887{ (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a4876ea4
KB
2889if test -z "$ac_err"; then
2890 rm -rf conftest*
2891 eval "ac_cv_header_$ac_safe=yes"
2892else
2893 echo "$ac_err" >&5
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -rf conftest*
2897 eval "ac_cv_header_$ac_safe=no"
2898fi
2899rm -f conftest*
2900fi
2901if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h <<EOF
2905#define $ac_tr_hdr 1
2906EOF
2907
bcf1fa6b
RR
2908else
2909 echo "$ac_t""no" 1>&6
2910fi
a4876ea4 2911done
bcf1fa6b
RR
2912
2913GTK_JOYSTICK=""
2914if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2915 GTK_JOYSTICK="gtk/joystick.cpp"
2916fi
2917
2918
35c9d958 2919echo $ac_n "checking for vprintf""... $ac_c" 1>&6
35a4dab7 2920echo "configure:2921: checking for vprintf" >&5
35c9d958
KB
2921if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2923else
2924 cat > conftest.$ac_ext <<EOF
35a4dab7 2925#line 2926 "configure"
35c9d958
KB
2926#include "confdefs.h"
2927/* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char vprintf(); below. */
2929#include <assert.h>
2930/* Override any gcc2 internal prototype to avoid an error. */
2931/* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2933char vprintf();
2934
2935int main() {
2936
2937/* The GNU C library defines this for functions which it implements
2938 to always fail with ENOSYS. Some functions are actually named
2939 something starting with __ and the normal name is an alias. */
2940#if defined (__stub_vprintf) || defined (__stub___vprintf)
2941choke me
2942#else
2943vprintf();
2944#endif
2945
2946; return 0; }
2947EOF
35a4dab7 2948if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35c9d958
KB
2949 rm -rf conftest*
2950 eval "ac_cv_func_vprintf=yes"
2951else
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2954 rm -rf conftest*
2955 eval "ac_cv_func_vprintf=no"
2956fi
2957rm -f conftest*
2958fi
2959
2960if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 cat >> confdefs.h <<\EOF
2963#define HAVE_VPRINTF 1
2964EOF
2965
2966else
2967 echo "$ac_t""no" 1>&6
2968fi
2969
2970if test "$ac_cv_func_vprintf" != yes; then
2971echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
35a4dab7 2972echo "configure:2973: checking for _doprnt" >&5
35c9d958
KB
2973if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2975else
2976 cat > conftest.$ac_ext <<EOF
35a4dab7 2977#line 2978 "configure"
35c9d958
KB
2978#include "confdefs.h"
2979/* System header to define __stub macros and hopefully few prototypes,
2980 which can conflict with char _doprnt(); below. */
2981#include <assert.h>
2982/* Override any gcc2 internal prototype to avoid an error. */
2983/* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2985char _doprnt();
2986
2987int main() {
2988
2989/* The GNU C library defines this for functions which it implements
2990 to always fail with ENOSYS. Some functions are actually named
2991 something starting with __ and the normal name is an alias. */
2992#if defined (__stub__doprnt) || defined (__stub____doprnt)
2993choke me
2994#else
2995_doprnt();
2996#endif
2997
2998; return 0; }
2999EOF
35a4dab7 3000if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35c9d958
KB
3001 rm -rf conftest*
3002 eval "ac_cv_func__doprnt=yes"
3003else
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -rf conftest*
3007 eval "ac_cv_func__doprnt=no"
3008fi
3009rm -f conftest*
3010fi
3011
3012if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 cat >> confdefs.h <<\EOF
3015#define HAVE_DOPRNT 1
3016EOF
3017
3018else
3019 echo "$ac_t""no" 1>&6
3020fi
3021
3022fi
3023
3024echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
35a4dab7 3025echo "configure:3026: checking for vsnprintf" >&5
35c9d958
KB
3026if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3028else
3029 cat > conftest.$ac_ext <<EOF
35a4dab7 3030#line 3031 "configure"
35c9d958
KB
3031#include "confdefs.h"
3032/* System header to define __stub macros and hopefully few prototypes,
3033 which can conflict with char vsnprintf(); below. */
3034#include <assert.h>
3035/* Override any gcc2 internal prototype to avoid an error. */
3036/* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3038char vsnprintf();
3039
3040int main() {
3041
3042/* The GNU C library defines this for functions which it implements
3043 to always fail with ENOSYS. Some functions are actually named
3044 something starting with __ and the normal name is an alias. */
3045#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
3046choke me
3047#else
3048vsnprintf();
3049#endif
3050
3051; return 0; }
3052EOF
35a4dab7 3053if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35c9d958
KB
3054 rm -rf conftest*
3055 eval "ac_cv_func_vsnprintf=yes"
3056else
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 rm -rf conftest*
3060 eval "ac_cv_func_vsnprintf=no"
3061fi
3062rm -f conftest*
3063fi
3064
3065if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
d1d3ccbe
VZ
3067 cat >> confdefs.h <<\EOF
3068#define HAVE_VSNPRINTF 1
3069EOF
3070
35c9d958
KB
3071else
3072 echo "$ac_t""no" 1>&6
3073fi
3074
3075
32cbeff4
KB
3076
3077ac_ext=C
3078# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3079ac_cpp='$CXXCPP $CPPFLAGS'
3080ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 3081ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32cbeff4
KB
3082cross_compiling=$ac_cv_prog_cxx_cross
3083
3084for ac_hdr in iostream
3085do
3086ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3087echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35a4dab7 3088echo "configure:3089: checking for $ac_hdr" >&5
32cbeff4
KB
3089if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3091else
3092 cat > conftest.$ac_ext <<EOF
35a4dab7 3093#line 3094 "configure"
32cbeff4
KB
3094#include "confdefs.h"
3095#include <$ac_hdr>
3096EOF
3097ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
3098{ (eval echo configure:3099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3099ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
32cbeff4
KB
3100if test -z "$ac_err"; then
3101 rm -rf conftest*
3102 eval "ac_cv_header_$ac_safe=yes"
3103else
3104 echo "$ac_err" >&5
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 rm -rf conftest*
3108 eval "ac_cv_header_$ac_safe=no"
3109fi
3110rm -f conftest*
3111fi
3112if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3113 echo "$ac_t""yes" 1>&6
3114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3115 cat >> confdefs.h <<EOF
3116#define $ac_tr_hdr 1
3117EOF
3118
3119else
3120 echo "$ac_t""no" 1>&6
3121fi
3122done
3123
3124if test "x$HAVE_IOSTREAM" = "x" ; then
3125 cat >> confdefs.h <<\EOF
3126#define wxUSE_IOSTREAMH 1
3127EOF
3128
3129fi
3130ac_ext=c
3131# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3132ac_cpp='$CPP $CPPFLAGS'
3133ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35a4dab7 3134ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32cbeff4
KB
3135cross_compiling=$ac_cv_prog_cc_cross
3136
3137
bcf1fa6b 3138echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
35a4dab7 3139echo "configure:3140: checking for uid_t in sys/types.h" >&5
bcf1fa6b
RR
3140if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142else
3143 cat > conftest.$ac_ext <<EOF
35a4dab7 3144#line 3145 "configure"
bcf1fa6b
RR
3145#include "confdefs.h"
3146#include <sys/types.h>
3147EOF
3148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3149 egrep "uid_t" >/dev/null 2>&1; then
3150 rm -rf conftest*
3151 ac_cv_type_uid_t=yes
3152else
3153 rm -rf conftest*
3154 ac_cv_type_uid_t=no
3155fi
3156rm -f conftest*
3157
3158fi
3159
3160echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3161if test $ac_cv_type_uid_t = no; then
3162 cat >> confdefs.h <<\EOF
3163#define uid_t int
3164EOF
3165
3166 cat >> confdefs.h <<\EOF
3167#define gid_t int
3168EOF
3169
3170fi
3171
3172echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
35a4dab7 3173echo "configure:3174: checking type of array argument to getgroups" >&5
bcf1fa6b
RR
3174if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3176else
3177 if test "$cross_compiling" = yes; then
3178 ac_cv_type_getgroups=cross
3179else
3180 cat > conftest.$ac_ext <<EOF
35a4dab7 3181#line 3182 "configure"
bcf1fa6b
RR
3182#include "confdefs.h"
3183
3184/* Thanks to Mike Rendell for this test. */
3185#include <sys/types.h>
3186#define NGID 256
3187#undef MAX
3188#define MAX(x, y) ((x) > (y) ? (x) : (y))
3189main()
3190{
3191 gid_t gidset[NGID];
3192 int i, n;
3193 union { gid_t gval; long lval; } val;
3194
3195 val.lval = -1;
3196 for (i = 0; i < NGID; i++)
3197 gidset[i] = val.gval;
3198 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3199 gidset);
3200 /* Exit non-zero if getgroups seems to require an array of ints. This
3201 happens when gid_t is short but getgroups modifies an array of ints. */
3202 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3203}
3204
3205EOF
35a4dab7 3206if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
3207then
3208 ac_cv_type_getgroups=gid_t
3209else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -fr conftest*
3213 ac_cv_type_getgroups=int
3214fi
3215rm -fr conftest*
3216fi
3217
3218if test $ac_cv_type_getgroups = cross; then
3219 cat > conftest.$ac_ext <<EOF
35a4dab7 3220#line 3221 "configure"
bcf1fa6b
RR
3221#include "confdefs.h"
3222#include <unistd.h>
3223EOF
3224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3225 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3226 rm -rf conftest*
3227 ac_cv_type_getgroups=gid_t
3228else
3229 rm -rf conftest*
3230 ac_cv_type_getgroups=int
3231fi
3232rm -f conftest*
3233
3234fi
3235fi
3236
3237echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3238cat >> confdefs.h <<EOF
3239#define GETGROUPS_T $ac_cv_type_getgroups
3240EOF
3241
3242
3243echo $ac_n "checking for mode_t""... $ac_c" 1>&6
35a4dab7 3244echo "configure:3245: checking for mode_t" >&5
bcf1fa6b
RR
3245if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3247else
3248 cat > conftest.$ac_ext <<EOF
35a4dab7 3249#line 3250 "configure"
bcf1fa6b
RR
3250#include "confdefs.h"
3251#include <sys/types.h>
3252#if STDC_HEADERS
3253#include <stdlib.h>
3254#include <stddef.h>
3255#endif
3256EOF
3257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35a4dab7 3258 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3259 rm -rf conftest*
3260 ac_cv_type_mode_t=yes
3261else
3262 rm -rf conftest*
3263 ac_cv_type_mode_t=no
3264fi
3265rm -f conftest*
3266
3267fi
3268echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3269if test $ac_cv_type_mode_t = no; then
3270 cat >> confdefs.h <<\EOF
3271#define mode_t int
3272EOF
3273
3274fi
3275
3276echo $ac_n "checking for off_t""... $ac_c" 1>&6
35a4dab7 3277echo "configure:3278: checking for off_t" >&5
bcf1fa6b
RR
3278if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3280else
3281 cat > conftest.$ac_ext <<EOF
35a4dab7 3282#line 3283 "configure"
bcf1fa6b
RR
3283#include "confdefs.h"
3284#include <sys/types.h>
3285#if STDC_HEADERS
3286#include <stdlib.h>
3287#include <stddef.h>
3288#endif
3289EOF
3290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35a4dab7 3291 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3292 rm -rf conftest*
3293 ac_cv_type_off_t=yes
3294else
3295 rm -rf conftest*
3296 ac_cv_type_off_t=no
3297fi
3298rm -f conftest*
3299
3300fi
3301echo "$ac_t""$ac_cv_type_off_t" 1>&6
3302if test $ac_cv_type_off_t = no; then
3303 cat >> confdefs.h <<\EOF
3304#define off_t long
3305EOF
3306
3307fi
3308
3309echo $ac_n "checking for pid_t""... $ac_c" 1>&6
35a4dab7 3310echo "configure:3311: checking for pid_t" >&5
bcf1fa6b
RR
3311if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3313else
3314 cat > conftest.$ac_ext <<EOF
35a4dab7 3315#line 3316 "configure"
bcf1fa6b
RR
3316#include "confdefs.h"
3317#include <sys/types.h>
3318#if STDC_HEADERS
3319#include <stdlib.h>
3320#include <stddef.h>
3321#endif
3322EOF
3323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35a4dab7 3324 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3325 rm -rf conftest*
3326 ac_cv_type_pid_t=yes
3327else
3328 rm -rf conftest*
3329 ac_cv_type_pid_t=no
3330fi
3331rm -f conftest*
3332
3333fi
3334echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3335if test $ac_cv_type_pid_t = no; then
3336 cat >> confdefs.h <<\EOF
3337#define pid_t int
3338EOF
3339
3340fi
3341
3342echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
35a4dab7 3343echo "configure:3344: checking return type of signal handlers" >&5
bcf1fa6b
RR
3344if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3346else
3347 cat > conftest.$ac_ext <<EOF
35a4dab7 3348#line 3349 "configure"
bcf1fa6b
RR
3349#include "confdefs.h"
3350#include <sys/types.h>
3351#include <signal.h>
3352#ifdef signal
3353#undef signal
3354#endif
3355#ifdef __cplusplus
3356extern "C" void (*signal (int, void (*)(int)))(int);
3357#else
3358void (*signal ()) ();
3359#endif
3360
3361int main() {
3362int i;
3363; return 0; }
3364EOF
35a4dab7 3365if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3366 rm -rf conftest*
3367 ac_cv_type_signal=void
3368else
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3371 rm -rf conftest*
3372 ac_cv_type_signal=int
3373fi
3374rm -f conftest*
3375fi
3376
3377echo "$ac_t""$ac_cv_type_signal" 1>&6
3378cat >> confdefs.h <<EOF
3379#define RETSIGTYPE $ac_cv_type_signal
3380EOF
3381
3382
3383echo $ac_n "checking for size_t""... $ac_c" 1>&6
35a4dab7 3384echo "configure:3385: checking for size_t" >&5
bcf1fa6b
RR
3385if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3387else
3388 cat > conftest.$ac_ext <<EOF
35a4dab7 3389#line 3390 "configure"
bcf1fa6b
RR
3390#include "confdefs.h"
3391#include <sys/types.h>
3392#if STDC_HEADERS
3393#include <stdlib.h>
3394#include <stddef.h>
3395#endif
3396EOF
3397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35a4dab7 3398 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3399 rm -rf conftest*
3400 ac_cv_type_size_t=yes
3401else
3402 rm -rf conftest*
3403 ac_cv_type_size_t=no
3404fi
3405rm -f conftest*
3406
3407fi
3408echo "$ac_t""$ac_cv_type_size_t" 1>&6
3409if test $ac_cv_type_size_t = no; then
3410 cat >> confdefs.h <<\EOF
3411#define size_t unsigned
3412EOF
3413
3414fi
3415
3416echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
35a4dab7 3417echo "configure:3418: checking for uid_t in sys/types.h" >&5
bcf1fa6b
RR
3418if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3420else
3421 cat > conftest.$ac_ext <<EOF
35a4dab7 3422#line 3423 "configure"
bcf1fa6b
RR
3423#include "confdefs.h"
3424#include <sys/types.h>
3425EOF
3426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427 egrep "uid_t" >/dev/null 2>&1; then
3428 rm -rf conftest*
3429 ac_cv_type_uid_t=yes
3430else
3431 rm -rf conftest*
3432 ac_cv_type_uid_t=no
3433fi
3434rm -f conftest*
3435
3436fi
3437
3438echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3439if test $ac_cv_type_uid_t = no; then
3440 cat >> confdefs.h <<\EOF
3441#define uid_t int
3442EOF
3443
3444 cat >> confdefs.h <<\EOF
3445#define gid_t int
3446EOF
3447
3448fi
3449
3450
3451
3452echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
35a4dab7 3453echo "configure:3454: checking whether stat file-mode macros are broken" >&5
bcf1fa6b
RR
3454if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3456else
3457 cat > conftest.$ac_ext <<EOF
35a4dab7 3458#line 3459 "configure"
bcf1fa6b
RR
3459#include "confdefs.h"
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462
3463#if defined(S_ISBLK) && defined(S_IFDIR)
3464# if S_ISBLK (S_IFDIR)
3465You lose.
3466# endif
3467#endif
3468
3469#if defined(S_ISBLK) && defined(S_IFCHR)
3470# if S_ISBLK (S_IFCHR)
3471You lose.
3472# endif
3473#endif
3474
3475#if defined(S_ISLNK) && defined(S_IFREG)
3476# if S_ISLNK (S_IFREG)
3477You lose.
3478# endif
3479#endif
3480
3481#if defined(S_ISSOCK) && defined(S_IFREG)
3482# if S_ISSOCK (S_IFREG)
3483You lose.
3484# endif
3485#endif
3486
3487EOF
3488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "You lose" >/dev/null 2>&1; then
3490 rm -rf conftest*
3491 ac_cv_header_stat_broken=yes
3492else
3493 rm -rf conftest*
3494 ac_cv_header_stat_broken=no
3495fi
3496rm -f conftest*
3497
3498fi
3499
3500echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3501if test $ac_cv_header_stat_broken = yes; then
3502 cat >> confdefs.h <<\EOF
3503#define STAT_MACROS_BROKEN 1
3504EOF
3505
3506fi
3507
3508echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
35a4dab7 3509echo "configure:3510: checking whether time.h and sys/time.h may both be included" >&5
bcf1fa6b
RR
3510if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3512else
3513 cat > conftest.$ac_ext <<EOF
35a4dab7 3514#line 3515 "configure"
bcf1fa6b
RR
3515#include "confdefs.h"
3516#include <sys/types.h>
3517#include <sys/time.h>
3518#include <time.h>
3519int main() {
3520struct tm *tp;
3521; return 0; }
3522EOF
35a4dab7 3523if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3524 rm -rf conftest*
3525 ac_cv_header_time=yes
3526else
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 rm -rf conftest*
3530 ac_cv_header_time=no
3531fi
3532rm -f conftest*
3533fi
3534
3535echo "$ac_t""$ac_cv_header_time" 1>&6
3536if test $ac_cv_header_time = yes; then
3537 cat >> confdefs.h <<\EOF
3538#define TIME_WITH_SYS_TIME 1
3539EOF
3540
3541fi
3542
3543echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
35a4dab7 3544echo "configure:3545: checking for st_blksize in struct stat" >&5
bcf1fa6b
RR
3545if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3547else
3548 cat > conftest.$ac_ext <<EOF
35a4dab7 3549#line 3550 "configure"
bcf1fa6b
RR
3550#include "confdefs.h"
3551#include <sys/types.h>
3552#include <sys/stat.h>
3553int main() {
3554struct stat s; s.st_blksize;
3555; return 0; }
3556EOF
35a4dab7 3557if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3558 rm -rf conftest*
3559 ac_cv_struct_st_blksize=yes
3560else
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 rm -rf conftest*
3564 ac_cv_struct_st_blksize=no
3565fi
3566rm -f conftest*
3567fi
3568
3569echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3570if test $ac_cv_struct_st_blksize = yes; then
3571 cat >> confdefs.h <<\EOF
3572#define HAVE_ST_BLKSIZE 1
3573EOF
3574
3575fi
3576
3577echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
35a4dab7 3578echo "configure:3579: checking for st_blocks in struct stat" >&5
bcf1fa6b
RR
3579if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3581else
3582 cat > conftest.$ac_ext <<EOF
35a4dab7 3583#line 3584 "configure"
bcf1fa6b
RR
3584#include "confdefs.h"
3585#include <sys/types.h>
3586#include <sys/stat.h>
3587int main() {
3588struct stat s; s.st_blocks;
3589; return 0; }
3590EOF
35a4dab7 3591if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3592 rm -rf conftest*
3593 ac_cv_struct_st_blocks=yes
3594else
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3597 rm -rf conftest*
3598 ac_cv_struct_st_blocks=no
3599fi
3600rm -f conftest*
3601fi
3602
3603echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3604if test $ac_cv_struct_st_blocks = yes; then
3605 cat >> confdefs.h <<\EOF
3606#define HAVE_ST_BLOCKS 1
3607EOF
3608
3609else
35a4dab7 3610 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
bcf1fa6b
RR
3611fi
3612
3613echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
35a4dab7 3614echo "configure:3615: checking for st_rdev in struct stat" >&5
bcf1fa6b
RR
3615if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617else
3618 cat > conftest.$ac_ext <<EOF
35a4dab7 3619#line 3620 "configure"
bcf1fa6b
RR
3620#include "confdefs.h"
3621#include <sys/types.h>
3622#include <sys/stat.h>
3623int main() {
3624struct stat s; s.st_rdev;
3625; return 0; }
3626EOF
35a4dab7 3627if { (eval echo configure:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3628 rm -rf conftest*
3629 ac_cv_struct_st_rdev=yes
3630else
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 ac_cv_struct_st_rdev=no
3635fi
3636rm -f conftest*
3637fi
3638
3639echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3640if test $ac_cv_struct_st_rdev = yes; then
3641 cat >> confdefs.h <<\EOF
3642#define HAVE_ST_RDEV 1
3643EOF
3644
3645fi
3646
3647echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
35a4dab7 3648echo "configure:3649: checking whether struct tm is in sys/time.h or time.h" >&5
bcf1fa6b
RR
3649if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3651else
3652 cat > conftest.$ac_ext <<EOF
35a4dab7 3653#line 3654 "configure"
bcf1fa6b
RR
3654#include "confdefs.h"
3655#include <sys/types.h>
3656#include <time.h>
3657int main() {
3658struct tm *tp; tp->tm_sec;
3659; return 0; }
3660EOF
35a4dab7 3661if { (eval echo configure:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3662 rm -rf conftest*
3663 ac_cv_struct_tm=time.h
3664else
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
3668 ac_cv_struct_tm=sys/time.h
3669fi
3670rm -f conftest*
3671fi
3672
3673echo "$ac_t""$ac_cv_struct_tm" 1>&6
3674if test $ac_cv_struct_tm = sys/time.h; then
3675 cat >> confdefs.h <<\EOF
3676#define TM_IN_SYS_TIME 1
3677EOF
3678
3679fi
3680
3681echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
35a4dab7 3682echo "configure:3683: checking for tm_zone in struct tm" >&5
bcf1fa6b
RR
3683if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3685else
3686 cat > conftest.$ac_ext <<EOF
35a4dab7 3687#line 3688 "configure"
bcf1fa6b
RR
3688#include "confdefs.h"
3689#include <sys/types.h>
3690#include <$ac_cv_struct_tm>
3691int main() {
3692struct tm tm; tm.tm_zone;
3693; return 0; }
3694EOF
35a4dab7 3695if { (eval echo configure:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3696 rm -rf conftest*
3697 ac_cv_struct_tm_zone=yes
3698else
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3701 rm -rf conftest*
3702 ac_cv_struct_tm_zone=no
3703fi
3704rm -f conftest*
3705fi
3706
3707echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3708if test "$ac_cv_struct_tm_zone" = yes; then
3709 cat >> confdefs.h <<\EOF
3710#define HAVE_TM_ZONE 1
3711EOF
3712
3713else
3714 echo $ac_n "checking for tzname""... $ac_c" 1>&6
35a4dab7 3715echo "configure:3716: checking for tzname" >&5
bcf1fa6b
RR
3716if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3718else
3719 cat > conftest.$ac_ext <<EOF
35a4dab7 3720#line 3721 "configure"
bcf1fa6b
RR
3721#include "confdefs.h"
3722#include <time.h>
3723#ifndef tzname /* For SGI. */
3724extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3725#endif
3726int main() {
3727atoi(*tzname);
3728; return 0; }
3729EOF
35a4dab7 3730if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
3731 rm -rf conftest*
3732 ac_cv_var_tzname=yes
3733else
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 rm -rf conftest*
3737 ac_cv_var_tzname=no
3738fi
3739rm -f conftest*
3740fi
3741
3742echo "$ac_t""$ac_cv_var_tzname" 1>&6
3743 if test $ac_cv_var_tzname = yes; then
3744 cat >> confdefs.h <<\EOF
3745#define HAVE_TZNAME 1
3746EOF
3747
3748 fi
3749fi
3750
3751
3752
3753echo $ac_n "checking for working const""... $ac_c" 1>&6
35a4dab7 3754echo "configure:3755: checking for working const" >&5
bcf1fa6b
RR
3755if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3757else
3758 cat > conftest.$ac_ext <<EOF
35a4dab7 3759#line 3760 "configure"
bcf1fa6b
RR
3760#include "confdefs.h"
3761
3762int main() {
3763
3764/* Ultrix mips cc rejects this. */
3765typedef int charset[2]; const charset x;
3766/* SunOS 4.1.1 cc rejects this. */
3767char const *const *ccp;
3768char **p;
3769/* NEC SVR4.0.2 mips cc rejects this. */
3770struct point {int x, y;};
3771static struct point const zero = {0,0};
3772/* AIX XL C 1.02.0.0 rejects this.
3773 It does not let you subtract one const X* pointer from another in an arm
3774 of an if-expression whose if-part is not a constant expression */
3775const char *g = "string";
3776ccp = &g + (g ? g-g : 0);
3777/* HPUX 7.0 cc rejects these. */
3778++ccp;
3779p = (char**) ccp;
3780ccp = (char const *const *) p;
3781{ /* SCO 3.2v4 cc rejects this. */
3782 char *t;
3783 char const *s = 0 ? (char *) 0 : (char const *) 0;
3784
3785 *t++ = 0;
3786}
3787{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3788 int x[] = {25, 17};
3789 const int *foo = &x[0];
3790 ++foo;
3791}
3792{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3793 typedef const int *iptr;
3794 iptr p = 0;
3795 ++p;
3796}
3797{ /* AIX XL C 1.02.0.0 rejects this saying
3798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3799 struct s { int j; const int *ap[3]; };
3800 struct s *b; b->j = 5;
3801}
3802{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3803 const int foo = 10;
3804}
3805
3806; return 0; }
3807EOF
35a4dab7 3808if { (eval echo configure:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3809 rm -rf conftest*
3810 ac_cv_c_const=yes
3811else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 ac_cv_c_const=no
3816fi
3817rm -f conftest*
3818fi
3819
3820echo "$ac_t""$ac_cv_c_const" 1>&6
3821if test $ac_cv_c_const = no; then
3822 cat >> confdefs.h <<\EOF
3823#define const
3824EOF
3825
3826fi
3827
3828echo $ac_n "checking for inline""... $ac_c" 1>&6
35a4dab7 3829echo "configure:3830: checking for inline" >&5
bcf1fa6b
RR
3830if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832else
3833 ac_cv_c_inline=no
3834for ac_kw in inline __inline__ __inline; do
3835 cat > conftest.$ac_ext <<EOF
35a4dab7 3836#line 3837 "configure"
bcf1fa6b
RR
3837#include "confdefs.h"
3838
3839int main() {
3840} $ac_kw foo() {
3841; return 0; }
3842EOF
35a4dab7 3843if { (eval echo configure:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3844 rm -rf conftest*
3845 ac_cv_c_inline=$ac_kw; break
3846else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849fi
3850rm -f conftest*
3851done
3852
3853fi
3854
3855echo "$ac_t""$ac_cv_c_inline" 1>&6
3856case "$ac_cv_c_inline" in
3857 inline | yes) ;;
3858 no) cat >> confdefs.h <<\EOF
3859#define inline
3860EOF
3861 ;;
3862 *) cat >> confdefs.h <<EOF
3863#define inline $ac_cv_c_inline
3864EOF
3865 ;;
3866esac
3867
3868echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
35a4dab7 3869echo "configure:3870: checking whether char is unsigned" >&5
bcf1fa6b
RR
3870if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3872else
3873 if test "$GCC" = yes; then
3874 # GCC predefines this symbol on systems where it applies.
3875cat > conftest.$ac_ext <<EOF
35a4dab7 3876#line 3877 "configure"
bcf1fa6b
RR
3877#include "confdefs.h"
3878#ifdef __CHAR_UNSIGNED__
3879 yes
3880#endif
3881
3882EOF
3883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 egrep "yes" >/dev/null 2>&1; then
3885 rm -rf conftest*
3886 ac_cv_c_char_unsigned=yes
3887else
3888 rm -rf conftest*
3889 ac_cv_c_char_unsigned=no
3890fi
3891rm -f conftest*
3892
3893else
3894if test "$cross_compiling" = yes; then
3895 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3896else
3897 cat > conftest.$ac_ext <<EOF
35a4dab7 3898#line 3899 "configure"
bcf1fa6b
RR
3899#include "confdefs.h"
3900/* volatile prevents gcc2 from optimizing the test away on sparcs. */
3901#if !defined(__STDC__) || __STDC__ != 1
3902#define volatile
3903#endif
3904main() {
3905 volatile char c = 255; exit(c < 0);
3906}
3907EOF
35a4dab7 3908if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
3909then
3910 ac_cv_c_char_unsigned=yes
3911else
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 rm -fr conftest*
3915 ac_cv_c_char_unsigned=no
3916fi
3917rm -fr conftest*
3918fi
3919
3920fi
3921fi
3922
3923echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3924if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3925 cat >> confdefs.h <<\EOF
3926#define __CHAR_UNSIGNED__ 1
3927EOF
3928
3929fi
3930
3931echo $ac_n "checking for long double""... $ac_c" 1>&6
35a4dab7 3932echo "configure:3933: checking for long double" >&5
bcf1fa6b
RR
3933if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935else
3936 if test "$GCC" = yes; then
3937 ac_cv_c_long_double=yes
3938else
3939if test "$cross_compiling" = yes; then
3940 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3941else
3942 cat > conftest.$ac_ext <<EOF
35a4dab7 3943#line 3944 "configure"
bcf1fa6b
RR
3944#include "confdefs.h"
3945int main() {
3946/* The Stardent Vistra knows sizeof(long double), but does not support it. */
3947long double foo = 0.0;
3948/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3949exit(sizeof(long double) < sizeof(double)); }
3950EOF
35a4dab7 3951if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
3952then
3953 ac_cv_c_long_double=yes
3954else
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 rm -fr conftest*
3958 ac_cv_c_long_double=no
3959fi
3960rm -fr conftest*
3961fi
3962
3963fi
3964fi
3965
3966echo "$ac_t""$ac_cv_c_long_double" 1>&6
3967if test $ac_cv_c_long_double = yes; then
3968 cat >> confdefs.h <<\EOF
3969#define HAVE_LONG_DOUBLE 1
3970EOF
3971
3972fi
3973
3974
3975echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
35a4dab7 3976echo "configure:3977: checking whether byte ordering is bigendian" >&5
bcf1fa6b
RR
3977if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3979else
3980 ac_cv_c_bigendian=unknown
3981# See if sys/param.h defines the BYTE_ORDER macro.
3982cat > conftest.$ac_ext <<EOF
35a4dab7 3983#line 3984 "configure"
bcf1fa6b
RR
3984#include "confdefs.h"
3985#include <sys/types.h>
3986#include <sys/param.h>
3987int main() {
3988
3989#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3990 bogus endian macros
3991#endif
3992; return 0; }
3993EOF
35a4dab7 3994if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3995 rm -rf conftest*
3996 # It does; now see whether it defined to BIG_ENDIAN or not.
3997cat > conftest.$ac_ext <<EOF
35a4dab7 3998#line 3999 "configure"
bcf1fa6b
RR
3999#include "confdefs.h"
4000#include <sys/types.h>
4001#include <sys/param.h>
4002int main() {
4003
4004#if BYTE_ORDER != BIG_ENDIAN
4005 not big endian
4006#endif
4007; return 0; }
4008EOF
35a4dab7 4009if { (eval echo configure:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4010 rm -rf conftest*
4011 ac_cv_c_bigendian=yes
4012else
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 rm -rf conftest*
4016 ac_cv_c_bigendian=no
4017fi
4018rm -f conftest*
4019else
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4022fi
4023rm -f conftest*
4024if test $ac_cv_c_bigendian = unknown; then
4025if test "$cross_compiling" = yes; then
4026 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4027else
4028 cat > conftest.$ac_ext <<EOF
35a4dab7 4029#line 4030 "configure"
bcf1fa6b
RR
4030#include "confdefs.h"
4031main () {
4032 /* Are we little or big endian? From Harbison&Steele. */
4033 union
4034 {
4035 long l;
4036 char c[sizeof (long)];
4037 } u;
4038 u.l = 1;
4039 exit (u.c[sizeof (long) - 1] == 1);
4040}
4041EOF
35a4dab7 4042if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4043then
4044 ac_cv_c_bigendian=no
4045else
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 rm -fr conftest*
4049 ac_cv_c_bigendian=yes
4050fi
4051rm -fr conftest*
4052fi
4053
4054fi
4055fi
4056
4057echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4058if test $ac_cv_c_bigendian = yes; then
4059 cat >> confdefs.h <<\EOF
4060#define WORDS_BIGENDIAN 1
4061EOF
4062
4063fi
4064
4065
4066echo $ac_n "checking size of int *""... $ac_c" 1>&6
35a4dab7 4067echo "configure:4068: checking size of int *" >&5
bcf1fa6b
RR
4068if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4070else
4071 if test "$cross_compiling" = yes; then
4072 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4073else
4074 cat > conftest.$ac_ext <<EOF
35a4dab7 4075#line 4076 "configure"
bcf1fa6b
RR
4076#include "confdefs.h"
4077#include <stdio.h>
4078main()
4079{
4080 FILE *f=fopen("conftestval", "w");
4081 if (!f) exit(1);
4082 fprintf(f, "%d\n", sizeof(int *));
4083 exit(0);
4084}
4085EOF
35a4dab7 4086if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4087then
4088 ac_cv_sizeof_int_p=`cat conftestval`
4089else
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4092 rm -fr conftest*
4093 ac_cv_sizeof_int_p=0
4094fi
4095rm -fr conftest*
4096fi
4097
4098fi
4099echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4100cat >> confdefs.h <<EOF
4101#define SIZEOF_INT_P $ac_cv_sizeof_int_p
4102EOF
4103
4104
4105echo $ac_n "checking size of int""... $ac_c" 1>&6
35a4dab7 4106echo "configure:4107: checking size of int" >&5
bcf1fa6b
RR
4107if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4109else
4110 if test "$cross_compiling" = yes; then
4111 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4112else
4113 cat > conftest.$ac_ext <<EOF
35a4dab7 4114#line 4115 "configure"
bcf1fa6b
RR
4115#include "confdefs.h"
4116#include <stdio.h>
4117main()
4118{
4119 FILE *f=fopen("conftestval", "w");
4120 if (!f) exit(1);
4121 fprintf(f, "%d\n", sizeof(int));
4122 exit(0);
4123}
4124EOF
35a4dab7 4125if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4126then
4127 ac_cv_sizeof_int=`cat conftestval`
4128else
4129 echo "configure: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4131 rm -fr conftest*
4132 ac_cv_sizeof_int=0
4133fi
4134rm -fr conftest*
4135fi
4136
4137fi
4138echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4139cat >> confdefs.h <<EOF
4140#define SIZEOF_INT $ac_cv_sizeof_int
4141EOF
4142
4143
4144echo $ac_n "checking size of long""... $ac_c" 1>&6
35a4dab7 4145echo "configure:4146: checking size of long" >&5
bcf1fa6b
RR
4146if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148else
4149 if test "$cross_compiling" = yes; then
4150 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4151else
4152 cat > conftest.$ac_ext <<EOF
35a4dab7 4153#line 4154 "configure"
bcf1fa6b
RR
4154#include "confdefs.h"
4155#include <stdio.h>
4156main()
4157{
4158 FILE *f=fopen("conftestval", "w");
4159 if (!f) exit(1);
4160 fprintf(f, "%d\n", sizeof(long));
4161 exit(0);
4162}
4163EOF
35a4dab7 4164if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4165then
4166 ac_cv_sizeof_long=`cat conftestval`
4167else
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4170 rm -fr conftest*
4171 ac_cv_sizeof_long=0
4172fi
4173rm -fr conftest*
4174fi
4175
4176fi
4177echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4178cat >> confdefs.h <<EOF
4179#define SIZEOF_LONG $ac_cv_sizeof_long
4180EOF
4181
4182
6c56b261 4183echo $ac_n "checking size of long long""... $ac_c" 1>&6
35a4dab7 4184echo "configure:4185: checking size of long long" >&5
6c56b261
KB
4185if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4187else
4188 if test "$cross_compiling" = yes; then
4189 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4190else
4191 cat > conftest.$ac_ext <<EOF
35a4dab7 4192#line 4193 "configure"
6c56b261
KB
4193#include "confdefs.h"
4194#include <stdio.h>
4195main()
4196{
4197 FILE *f=fopen("conftestval", "w");
4198 if (!f) exit(1);
4199 fprintf(f, "%d\n", sizeof(long long));
4200 exit(0);
4201}
4202EOF
35a4dab7 4203if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6c56b261
KB
4204then
4205 ac_cv_sizeof_long_long=`cat conftestval`
4206else
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 rm -fr conftest*
4210 ac_cv_sizeof_long_long=0
4211fi
4212rm -fr conftest*
4213fi
4214
4215fi
4216echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4217cat >> confdefs.h <<EOF
4218#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4219EOF
4220
4221
bcf1fa6b
RR
4222
4223
4224
4225
4226echo $ac_n "checking for long file names""... $ac_c" 1>&6
35a4dab7 4227echo "configure:4228: checking for long file names" >&5
bcf1fa6b
RR
4228if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4230else
4231 ac_cv_sys_long_file_names=yes
4232# Test for long file names in all the places we know might matter:
4233# . the current directory, where building will happen
4234# $prefix/lib where we will be installing things
4235# $exec_prefix/lib likewise
4236# eval it to expand exec_prefix.
4237# $TMPDIR if set, where it might want to write temporary files
4238# if $TMPDIR is not set:
4239# /tmp where it might want to write temporary files
4240# /var/tmp likewise
4241# /usr/tmp likewise
4242if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4243 ac_tmpdirs="$TMPDIR"
4244else
4245 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4246fi
4247for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4248 test -d $ac_dir || continue
4249 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4250 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4251 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4252 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4253 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4254 ac_cv_sys_long_file_names=no
4255 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4256 break
4257 fi
4258 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4259done
4260fi
4261
4262echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4263if test $ac_cv_sys_long_file_names = yes; then
4264 cat >> confdefs.h <<\EOF
4265#define HAVE_LONG_FILE_NAMES 1
4266EOF
4267
4268fi
4269
4270
4271
4272
4273for ac_prog in 'bison -y' byacc
4274do
4275# Extract the first word of "$ac_prog", so it can be a program name with args.
4276set dummy $ac_prog; ac_word=$2
4277echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 4278echo "configure:4279: checking for $ac_word" >&5
bcf1fa6b
RR
4279if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4281else
4282 if test -n "$YACC"; then
4283 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4284else
35a4dab7
GL
4285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4286 ac_dummy="$PATH"
4287 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
4288 test -z "$ac_dir" && ac_dir=.
4289 if test -f $ac_dir/$ac_word; then
4290 ac_cv_prog_YACC="$ac_prog"
4291 break
4292 fi
4293 done
4294 IFS="$ac_save_ifs"
4295fi
4296fi
4297YACC="$ac_cv_prog_YACC"
4298if test -n "$YACC"; then
4299 echo "$ac_t""$YACC" 1>&6
4300else
4301 echo "$ac_t""no" 1>&6
4302fi
4303
4304test -n "$YACC" && break
4305done
4306test -n "$YACC" || YACC="yacc"
4307
4308
4309# Extract the first word of "flex", so it can be a program name with args.
4310set dummy flex; ac_word=$2
4311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 4312echo "configure:4313: checking for $ac_word" >&5
bcf1fa6b
RR
4313if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4315else
4316 if test -n "$LEX"; then
4317 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4318else
35a4dab7
GL
4319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4320 ac_dummy="$PATH"
4321 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
4322 test -z "$ac_dir" && ac_dir=.
4323 if test -f $ac_dir/$ac_word; then
4324 ac_cv_prog_LEX="flex"
4325 break
4326 fi
4327 done
4328 IFS="$ac_save_ifs"
4329 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4330fi
4331fi
4332LEX="$ac_cv_prog_LEX"
4333if test -n "$LEX"; then
4334 echo "$ac_t""$LEX" 1>&6
4335else
4336 echo "$ac_t""no" 1>&6
4337fi
4338
4339if test -z "$LEXLIB"
4340then
4341 case "$LEX" in
4342 flex*) ac_lib=fl ;;
4343 *) ac_lib=l ;;
4344 esac
4345 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
35a4dab7 4346echo "configure:4347: checking for yywrap in -l$ac_lib" >&5
bcf1fa6b
RR
4347ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4348if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350else
4351 ac_save_LIBS="$LIBS"
4352LIBS="-l$ac_lib $LIBS"
4353cat > conftest.$ac_ext <<EOF
35a4dab7 4354#line 4355 "configure"
bcf1fa6b
RR
4355#include "confdefs.h"
4356/* Override any gcc2 internal prototype to avoid an error. */
4357/* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4359char yywrap();
4360
4361int main() {
4362yywrap()
4363; return 0; }
4364EOF
35a4dab7 4365if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
4366 rm -rf conftest*
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4368else
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 rm -rf conftest*
4372 eval "ac_cv_lib_$ac_lib_var=no"
4373fi
4374rm -f conftest*
4375LIBS="$ac_save_LIBS"
4376
4377fi
4378if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4380 LEXLIB="-l$ac_lib"
4381else
4382 echo "$ac_t""no" 1>&6
4383fi
4384
4385fi
4386
4387echo $ac_n "checking lex output file root""... $ac_c" 1>&6
35a4dab7 4388echo "configure:4389: checking lex output file root" >&5
bcf1fa6b
RR
4389if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4391else
4392 # The minimal lex program is just a single line: %%. But some broken lexes
4393# (Solaris, I think it was) want two %% lines, so accommodate them.
4394echo '%%
4395%%' | $LEX
4396if test -f lex.yy.c; then
4397 ac_cv_prog_lex_root=lex.yy
4398elif test -f lexyy.c; then
4399 ac_cv_prog_lex_root=lexyy
4400else
4401 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4402fi
4403fi
4404
4405echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4406LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4407
4408echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
35a4dab7 4409echo "configure:4410: checking whether yytext is a pointer" >&5
bcf1fa6b
RR
4410if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4412else
4413 # POSIX says lex can declare yytext either as a pointer or an array; the
4414# default is implementation-dependent. Figure out which it is, since
4415# not all implementations provide the %pointer and %array declarations.
4416ac_cv_prog_lex_yytext_pointer=no
4417echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4418ac_save_LIBS="$LIBS"
4419LIBS="$LIBS $LEXLIB"
4420cat > conftest.$ac_ext <<EOF
35a4dab7 4421#line 4422 "configure"
bcf1fa6b
RR
4422#include "confdefs.h"
4423`cat $LEX_OUTPUT_ROOT.c`
4424int main() {
4425
4426; return 0; }
4427EOF
35a4dab7 4428if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
4429 rm -rf conftest*
4430 ac_cv_prog_lex_yytext_pointer=yes
4431else
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434fi
4435rm -f conftest*
4436LIBS="$ac_save_LIBS"
4437rm -f "${LEX_OUTPUT_ROOT}.c"
4438
4439fi
4440
4441echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4442if test $ac_cv_prog_lex_yytext_pointer = yes; then
4443 cat >> confdefs.h <<\EOF
4444#define YYTEXT_POINTER 1
4445EOF
4446
4447fi
4448
4449
4450
cd5bf2a6
RR
4451DL_LIBRARY=
4452for ac_func in dlopen
4453do
4454echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
35a4dab7 4455echo "configure:4456: checking for $ac_func" >&5
cd5bf2a6
RR
4456if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4458else
4459 cat > conftest.$ac_ext <<EOF
35a4dab7 4460#line 4461 "configure"
cd5bf2a6
RR
4461#include "confdefs.h"
4462/* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char $ac_func(); below. */
4464#include <assert.h>
4465/* Override any gcc2 internal prototype to avoid an error. */
4466/* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4468char $ac_func();
4469
4470int main() {
4471
4472/* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476choke me
4477#else
4478$ac_func();
4479#endif
4480
4481; return 0; }
4482EOF
35a4dab7 4483if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cd5bf2a6
RR
4484 rm -rf conftest*
4485 eval "ac_cv_func_$ac_func=yes"
4486else
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4489 rm -rf conftest*
4490 eval "ac_cv_func_$ac_func=no"
4491fi
4492rm -f conftest*
4493fi
4494
4495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4498 cat >> confdefs.h <<EOF
4499#define $ac_tr_func 1
4500EOF
4501 cat >> confdefs.h <<\EOF
4502#define HAVE_LIBDL 1
4503EOF
4504
4505else
4506 echo "$ac_t""no" 1>&6
4507echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
35a4dab7 4508echo "configure:4509: checking for dlopen in -ldl" >&5
cd5bf2a6
RR
4509ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4510if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4512else
4513 ac_save_LIBS="$LIBS"
4514LIBS="-ldl $LIBS"
4515cat > conftest.$ac_ext <<EOF
35a4dab7 4516#line 4517 "configure"
cd5bf2a6
RR
4517#include "confdefs.h"
4518/* Override any gcc2 internal prototype to avoid an error. */
4519/* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */
4521char dlopen();
4522
4523int main() {
4524dlopen()
4525; return 0; }
4526EOF
35a4dab7 4527if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cd5bf2a6
RR
4528 rm -rf conftest*
4529 eval "ac_cv_lib_$ac_lib_var=yes"
4530else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 eval "ac_cv_lib_$ac_lib_var=no"
4535fi
4536rm -f conftest*
4537LIBS="$ac_save_LIBS"
4538
4539fi
4540if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4542 cat >> confdefs.h <<\EOF
4543#define HAVE_LIBDL 1
4544EOF
4545 DL_LIBRARY="-ldl"
4546else
4547 echo "$ac_t""no" 1>&6
4548echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
35a4dab7 4549echo "configure:4550: checking for dld_link in -ldld" >&5
cd5bf2a6
RR
4550ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553else
4554 ac_save_LIBS="$LIBS"
4555LIBS="-ldld $LIBS"
4556cat > conftest.$ac_ext <<EOF
35a4dab7 4557#line 4558 "configure"
cd5bf2a6
RR
4558#include "confdefs.h"
4559/* Override any gcc2 internal prototype to avoid an error. */
4560/* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4562char dld_link();
4563
4564int main() {
4565dld_link()
4566; return 0; }
4567EOF
35a4dab7 4568if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cd5bf2a6
RR
4569 rm -rf conftest*
4570 eval "ac_cv_lib_$ac_lib_var=yes"
4571else
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 rm -rf conftest*
4575 eval "ac_cv_lib_$ac_lib_var=no"
4576fi
4577rm -f conftest*
4578LIBS="$ac_save_LIBS"
4579
4580fi
4581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 cat >> confdefs.h <<\EOF
4584#define HAVE_DLD 1
4585EOF
4586 DL_LIBRARY="-ldld"
4587else
4588 echo "$ac_t""no" 1>&6
4589for ac_func in shl_load
4590do
4591echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
35a4dab7 4592echo "configure:4593: checking for $ac_func" >&5
cd5bf2a6
RR
4593if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4595else
4596 cat > conftest.$ac_ext <<EOF
35a4dab7 4597#line 4598 "configure"
cd5bf2a6
RR
4598#include "confdefs.h"
4599/* System header to define __stub macros and hopefully few prototypes,
4600 which can conflict with char $ac_func(); below. */
4601#include <assert.h>
4602/* Override any gcc2 internal prototype to avoid an error. */
4603/* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4605char $ac_func();
4606
4607int main() {
4608
4609/* The GNU C library defines this for functions which it implements
4610 to always fail with ENOSYS. Some functions are actually named
4611 something starting with __ and the normal name is an alias. */
4612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4613choke me
4614#else
4615$ac_func();
4616#endif
4617
4618; return 0; }
4619EOF
35a4dab7 4620if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cd5bf2a6
RR
4621 rm -rf conftest*
4622 eval "ac_cv_func_$ac_func=yes"
4623else
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4626 rm -rf conftest*
4627 eval "ac_cv_func_$ac_func=no"
4628fi
4629rm -f conftest*
4630fi
4631
4632if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4635 cat >> confdefs.h <<EOF
4636#define $ac_tr_func 1
4637EOF
4638 cat >> confdefs.h <<\EOF
4639#define HAVE_SHL_LOAD 1
4640EOF
4641
4642else
4643 echo "$ac_t""no" 1>&6
4644fi
4645done
4646
4647
4648fi
4649
4650
4651fi
4652
4653
4654fi
4655done
4656
4657
4658
4659echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
35a4dab7 4660echo "configure:4661: checking for underscore before symbols" >&5
cd5bf2a6
RR
4661if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4663else
4664
4665 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
4666 ${CC} -c conftest.c > /dev/null
4667 if (nm conftest.o | grep _fnord) > /dev/null; then
4668 libltdl_cv_uscore=yes
4669 else
4670 libltdl_cv_uscore=no
4671 fi
4672 rm -f conftest*
4673
4674fi
4675
4676echo "$ac_t""$libltdl_cv_uscore" 1>&6
4677
4678if test x"$libltdl_cv_uscore" = xyes; then
4679 if test x"$ac_cv_func_dlopen" = xyes ||
4680 test x"$ac_cv_lib_dl_dlopen" = xyes ; then
4681 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
35a4dab7 4682echo "configure:4683: checking whether we have to add an underscore for dlsym" >&5
cd5bf2a6
RR
4683if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4685else
4686 if test "$cross_compiling" = yes; then
4687 libltdl_cv_need_uscore=no
4688
4689else
4690 cat > conftest.$ac_ext <<EOF
35a4dab7 4691#line 4692 "configure"
cd5bf2a6
RR
4692#include "confdefs.h"
4693
4694#include <dlfcn.h>
4695#include <stdio.h>
4696fnord() { int i=42;}
4697main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
4698 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
4699 if(ptr1 && !ptr2) exit(0); } exit(1); }
4700
4701EOF
35a4dab7 4702if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
cd5bf2a6
RR
4703then
4704 libltdl_cv_need_uscore=no
4705else
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 rm -fr conftest*
4709 libltdl_cv_need_uscore=yes
4710fi
4711rm -fr conftest*
4712fi
4713
4714fi
4715
4716echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
4717 fi
4718fi
4719
4720if test x"$libltdl_cv_need_uscore" = xyes; then
4721 cat >> confdefs.h <<\EOF
4722#define NEED_USCORE 1
4723EOF
4724
4725fi
4726
4727
4728for ac_func in strerror
4729do
4730echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
35a4dab7 4731echo "configure:4732: checking for $ac_func" >&5
cd5bf2a6
RR
4732if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734else
4735 cat > conftest.$ac_ext <<EOF
35a4dab7 4736#line 4737 "configure"
cd5bf2a6
RR
4737#include "confdefs.h"
4738/* System header to define __stub macros and hopefully few prototypes,
4739 which can conflict with char $ac_func(); below. */
4740#include <assert.h>
4741/* Override any gcc2 internal prototype to avoid an error. */
4742/* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4744char $ac_func();
4745
4746int main() {
4747
4748/* The GNU C library defines this for functions which it implements
4749 to always fail with ENOSYS. Some functions are actually named
4750 something starting with __ and the normal name is an alias. */
4751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4752choke me
4753#else
4754$ac_func();
4755#endif
4756
4757; return 0; }
4758EOF
35a4dab7 4759if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cd5bf2a6
RR
4760 rm -rf conftest*
4761 eval "ac_cv_func_$ac_func=yes"
4762else
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4765 rm -rf conftest*
4766 eval "ac_cv_func_$ac_func=no"
4767fi
4768rm -f conftest*
4769fi
4770
4771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4774 cat >> confdefs.h <<EOF
4775#define $ac_tr_func 1
4776EOF
4777
4778else
4779 echo "$ac_t""no" 1>&6
4780fi
4781done
4782
4783
4784
bcf1fa6b
RR
4785CHECK_INCLUDE="-I/usr/include $X_CFLAGS"
4786CHECK_LIB="-L/lib -L/usr/lib $X_LIBS"
4787
4788
4789
4790# Make sure we can run config.sub.
35a4dab7 4791if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
bcf1fa6b
RR
4792else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4793fi
4794
4795echo $ac_n "checking host system type""... $ac_c" 1>&6
35a4dab7 4796echo "configure:4797: checking host system type" >&5
bcf1fa6b
RR
4797
4798host_alias=$host
4799case "$host_alias" in
4800NONE)
4801 case $nonopt in
4802 NONE)
35a4dab7 4803 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
bcf1fa6b
RR
4804 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4805 fi ;;
4806 *) host_alias=$nonopt ;;
4807 esac ;;
4808esac
4809
35a4dab7 4810host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
bcf1fa6b
RR
4811host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4812host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4813host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4814echo "$ac_t""$host" 1>&6
4815
4816canonical=$host
4817configuration=$host_alias
4818
4819
4820USE_UNIX=1
4821
bcf1fa6b
RR
4822USE_LINUX=
4823USE_SGI=
4824USE_HPUX=
4825USE_SYSV=
4826USE_SVR4=
4827USE_AIX=
4828USE_SUN=
4829USE_SOLARIS=
4830USE_SUNOS=
4831USE_ALPHA=
4832USE_OSF=
4833USE_BSD=
4834USE_FREEBSD=
4835USE_VMS=
4836USE_ULTRIX=
4837USE_DATA_GENERAL=
4838
f780dc86
KB
4839cat >> confdefs.h <<\EOF
4840#define __UNIX__ 1
4841EOF
4842
bcf1fa6b
RR
4843case "${canonical}" in
4844 *-hp-hpux* )
4845 USE_HPUX=1
4846 cat >> confdefs.h <<\EOF
4847#define __HPUX__ 1
4848EOF
4849
4850 ;;
4851 *-*-linux* )
4852 USE_LINUX=1
4853 cat >> confdefs.h <<\EOF
4854#define __LINUX__ 1
4855EOF
4856
e0e680d2
KB
4857 TMP=`uname -m`
4858 if test "x$TMP" = "xalpha"
4859 then
4860 USE_ALPHA=1
4861 cat >> confdefs.h <<\EOF
4862#define __ALPHA__ 1
4863EOF
4864
4865 fi
bcf1fa6b
RR
4866 ;;
4867 *-*-irix5* | *-*-irix6* )
4868 USE_SGI=1
4869 USE_SVR4=1
4870 cat >> confdefs.h <<\EOF
4871#define __SGI__ 1
4872EOF
4873
4874 cat >> confdefs.h <<\EOF
4875#define __SVR4__ 1
4876EOF
4877
4878 ;;
4879 *-*-solaris2* )
4880 USE_SUN=1
4881 USE_SOLARIS=1
4882 USE_SVR4=1
4883 cat >> confdefs.h <<\EOF
4884#define __SUN__ 1
4885EOF
4886
4887 cat >> confdefs.h <<\EOF
4888#define __SOLARIS__ 1
4889EOF
4890
4891 cat >> confdefs.h <<\EOF
4892#define __SVR4__ 1
4893EOF
4894
4895 ;;
4896 *-*-sunos4* )
4897 USE_SUN=1
4898 USE_SUNOS=1
4899 USE_BSD=1
4900 cat >> confdefs.h <<\EOF
4901#define __SUN__ 1
4902EOF
4903
4904 cat >> confdefs.h <<\EOF
4905#define __SUNOS__ 1
4906EOF
4907
4908 cat >> confdefs.h <<\EOF
4909#define __BSD__ 1
4910EOF
4911
4912 ;;
4913 *-*-freebsd* | *-*-netbsd*)
4914 USE_BSD=1
4915 USE_FREEBSD=1
4916 cat >> confdefs.h <<\EOF
4917#define __FREEBSD__ 1
4918EOF
4919
4920 cat >> confdefs.h <<\EOF
4921#define __BSD__ 1
4922EOF
4923
4924 ;;
4925 *-*-osf* )
4926 USE_ALPHA=1
4927 USE_OSF=1
4928 cat >> confdefs.h <<\EOF
4929#define __ALPHA__ 1
4930EOF
4931
4932 cat >> confdefs.h <<\EOF
4933#define __OSF__ 1
4934EOF
4935
4936 ;;
4937 *-*-dgux5* )
4938 USE_ALPHA=1
4939 USE_SVR4=1
4940 cat >> confdefs.h <<\EOF
4941#define __ALPHA__ 1
4942EOF
4943
4944 cat >> confdefs.h <<\EOF
4945#define __SVR4__ 1
4946EOF
4947
4948 ;;
4949 *-*-sysv5* )
4950 USE_SYSV=1
4951 USE_SVR4=1
4952 cat >> confdefs.h <<\EOF
4953#define __SYSV__ 1
4954EOF
4955
4956 cat >> confdefs.h <<\EOF
4957#define __SVR4__ 1
4958EOF
4959
4960 ;;
4961 *-*-aix* )
4962 USE_AIX=1
4963 USE_SYSV=1
4964 USE_SVR4=1
4965 cat >> confdefs.h <<\EOF
4966#define __AIX__ 1
4967EOF
4968
4969 cat >> confdefs.h <<\EOF
4970#define __SYSV__ 1
4971EOF
4972
4973 cat >> confdefs.h <<\EOF
4974#define __SVR4__ 1
4975EOF
4976
4977 ;;
4978 *)
4979 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4980esac
4981
4982
4983
4984rm -f ${OSTYPE}.system.cache.tmp
4985touch ${OSTYPE}.system.cache.tmp
4986touch ${OSTYPE}.system.cache
4987
4988
6fbf0513 4989DEFAULT_wxUSE_GTK=1
8248314d
VZ
4990DEFAULT_wxUSE_QT=0
4991DEFAULT_wxUSE_MOTIF=0
bcf1fa6b 4992
8710cf5c 4993DEFAULT_wxUSE_THREADS=0
cb43b372 4994
8248314d
VZ
4995DEFAULT_wxUSE_SHARED=1
4996DEFAULT_wxUSE_OPTIMISE=1
4997DEFAULT_wxUSE_PROFILE=0
4998DEFAULT_wxUSE_DEBUG_FLAG=0
4999DEFAULT_wxUSE_DEBUG_INFO=0
5000DEFAULT_wxUSE_MEM_TRACING=0
5001DEFAULT_wxUSE_DMALLOC=0
5002DEFAULT_wxUSE_APPLE_IEEE=1
5003DEFAULT_wxUSE_IOSTREAMH=1
5004
5005DEFAULT_wxUSE_ZLIB=1
8248314d 5006DEFAULT_wxUSE_LIBPNG=1
cd743a6f 5007DEFAULT_wxUSE_LIBJPEG=0
8710cf5c 5008DEFAULT_wxUSE_ODBC=1
8248314d 5009
8248314d 5010DEFAULT_wxUSE_TIMEDATE=1
8248314d
VZ
5011DEFAULT_wxUSE_INTL=1
5012DEFAULT_wxUSE_CONFIG=1
5013DEFAULT_wxUSE_STREAMS=1
35a4dab7 5014DEFAULT_wxUSE_SOCKETS=0
8248314d 5015DEFAULT_wxUSE_SERIAL=1
eb9bbf52 5016DEFAULT_wxUSE_DYNLIB_CLASS=1
8248314d
VZ
5017
5018DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=1
bcf1fa6b 5019DEFAULT_WX_NORMALIZED_PS_FONTS=1
8248314d 5020DEFAULT_wxUSE_POSTSCRIPT=1
bcf1fa6b 5021
8248314d
VZ
5022DEFAULT_wxUSE_IPC=1
5023DEFAULT_wxUSE_RESOURCES=1
8b53e5a2 5024DEFAULT_wxUSE_CLIPBOARD=1
ff8bfdbb 5025DEFAULT_wxUSE_TOOLTIPS=1
ac57418f 5026DEFAULT_wxUSE_DRAG_AND_DROP=1
bcf1fa6b 5027
8248314d
VZ
5028DEFAULT_wxUSE_MDI_ARCHITECTURE=1
5029DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=1
5030DEFAULT_wxUSE_PRINTING_ARCHITECTURE=1
bcf1fa6b 5031
8248314d
VZ
5032DEFAULT_wxUSE_PROLOGIO=1
5033DEFAULT_wxUSE_WX_RESOURCES=1
5034DEFAULT_wxUSE_RPC=0
e9aad10a 5035DEFAULT_wxUSE_HELP=1
bcf1fa6b 5036
fb4e5803
VZ
5037DEFAULT_wxUSE_UNICODE=1
5038DEFAULT_wxUSE_WCSRTOMBS=0
5039
bcf1fa6b
RR
5040
5041
5042echo $ac_n "checking "for gtk"""... $ac_c" 1>&6
35a4dab7 5043echo "configure:5044: checking "for gtk"" >&5
bcf1fa6b
RR
5044# Check whether --with-gtk or --without-gtk was given.
5045if test "${with_gtk+set}" = set; then
5046 withval="$with_gtk"
5047 if test "x$with_gtk" = xyes; then
8248314d 5048 ac_cv_use_gtk='wxUSE_GTK="1"'
bcf1fa6b 5049else
8248314d 5050 ac_cv_use_gtk='wxUSE_GTK="0"'
bcf1fa6b
RR
5051fi
5052else
5053
8248314d 5054 LINE=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 fi
8248314d 5058 ac_cv_use_gtk='wxUSE_GTK='$DEFAULT_wxUSE_GTK
bcf1fa6b
RR
5059
5060fi
5061
5062eval "$ac_cv_use_gtk"
5063echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
8248314d 5064if test "$wxUSE_GTK" = 1; then
bcf1fa6b
RR
5065 echo "$ac_t""yes" 1>&6
5066else
5067 echo "$ac_t""no" 1>&6
5068fi
5069
5070
5071
5072echo $ac_n "checking "for qt"""... $ac_c" 1>&6
35a4dab7 5073echo "configure:5074: checking "for qt"" >&5
bcf1fa6b
RR
5074# Check whether --with-qt or --without-qt was given.
5075if test "${with_qt+set}" = set; then
5076 withval="$with_qt"
5077 if test "x$with_qt" = xyes; then
8248314d 5078 ac_cv_use_qt='wxUSE_QT="1"'
bcf1fa6b 5079else
8248314d 5080 ac_cv_use_qt='wxUSE_QT="0"'
bcf1fa6b
RR
5081fi
5082else
5083
8248314d 5084 LINE=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5085 if test "x$LINE" != x ; then
5086 eval "DEFAULT_$LINE"
5087 fi
8248314d 5088 ac_cv_use_qt='wxUSE_QT='$DEFAULT_wxUSE_QT
bcf1fa6b
RR
5089
5090fi
5091
5092eval "$ac_cv_use_qt"
5093echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
8248314d 5094if test "$wxUSE_QT" = 1; then
bcf1fa6b
RR
5095 echo "$ac_t""yes" 1>&6
5096else
5097 echo "$ac_t""no" 1>&6
5098fi
5099
5100
5101
5102echo $ac_n "checking "for motif"""... $ac_c" 1>&6
35a4dab7 5103echo "configure:5104: checking "for motif"" >&5
bcf1fa6b
RR
5104# Check whether --with-motif or --without-motif was given.
5105if test "${with_motif+set}" = set; then
5106 withval="$with_motif"
5107 if test "x$with_motif" = xyes; then
8248314d 5108 ac_cv_use_motif='wxUSE_MOTIF="1"'
bcf1fa6b 5109else
8248314d 5110 ac_cv_use_motif='wxUSE_MOTIF="0"'
bcf1fa6b
RR
5111fi
5112else
5113
8248314d 5114 LINE=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 fi
8248314d 5118 ac_cv_use_motif='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
bcf1fa6b
RR
5119
5120fi
5121
5122eval "$ac_cv_use_motif"
5123echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
8248314d 5124if test "$wxUSE_MOTIF" = 1; then
bcf1fa6b
RR
5125 echo "$ac_t""yes" 1>&6
5126else
5127 echo "$ac_t""no" 1>&6
5128fi
5129
5130
5131
5132
5133echo $ac_n "checking "for shared"""... $ac_c" 1>&6
35a4dab7 5134echo "configure:5135: checking "for shared"" >&5
bcf1fa6b
RR
5135# Check whether --with-shared or --without-shared was given.
5136if test "${with_shared+set}" = set; then
5137 withval="$with_shared"
5138 if test "x$with_shared" = xyes; then
8248314d 5139 ac_cv_use_shared='wxUSE_SHARED="1"'
bcf1fa6b 5140else
8248314d 5141 ac_cv_use_shared='wxUSE_SHARED="0"'
bcf1fa6b
RR
5142fi
5143else
5144
8248314d 5145 LINE=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5146 if test "x$LINE" != x ; then
5147 eval "DEFAULT_$LINE"
5148 fi
8248314d 5149 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
bcf1fa6b
RR
5150
5151fi
5152
5153eval "$ac_cv_use_shared"
5154echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
8248314d 5155if test "$wxUSE_SHARED" = 1; then
bcf1fa6b
RR
5156 echo "$ac_t""yes" 1>&6
5157else
5158 echo "$ac_t""no" 1>&6
5159fi
5160
5161
5162
5163echo $ac_n "checking "for optimise"""... $ac_c" 1>&6
35a4dab7 5164echo "configure:5165: checking "for optimise"" >&5
bcf1fa6b
RR
5165# Check whether --with-optimise or --without-optimise was given.
5166if test "${with_optimise+set}" = set; then
5167 withval="$with_optimise"
5168 if test "x$with_optimise" = xyes; then
8248314d 5169 ac_cv_use_optimise='wxUSE_OPTIMISE="1"'
bcf1fa6b 5170else
8248314d 5171 ac_cv_use_optimise='wxUSE_OPTIMISE="0"'
bcf1fa6b
RR
5172fi
5173else
5174
8248314d 5175 LINE=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5176 if test "x$LINE" != x ; then
5177 eval "DEFAULT_$LINE"
5178 fi
8248314d 5179 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
bcf1fa6b
RR
5180
5181fi
5182
5183eval "$ac_cv_use_optimise"
5184echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
8248314d 5185if test "$wxUSE_OPTIMISE" = 1; then
bcf1fa6b
RR
5186 echo "$ac_t""yes" 1>&6
5187else
5188 echo "$ac_t""no" 1>&6
5189fi
5190
5191
5192
5193echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6
35a4dab7 5194echo "configure:5195: checking "for debug_flag"" >&5
bcf1fa6b
RR
5195# Check whether --with-debug_flag or --without-debug_flag was given.
5196if test "${with_debug_flag+set}" = set; then
5197 withval="$with_debug_flag"
5198 if test "x$with_debug_flag" = xyes; then
8248314d 5199 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="1"'
bcf1fa6b 5200else
8248314d 5201 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="0"'
bcf1fa6b
RR
5202fi
5203else
5204
8248314d 5205 LINE=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5206 if test "x$LINE" != x ; then
5207 eval "DEFAULT_$LINE"
5208 fi
8248314d 5209 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
bcf1fa6b
RR
5210
5211fi
5212
5213eval "$ac_cv_use_debug_flag"
5214echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
8248314d 5215if test "$wxUSE_DEBUG_FLAG" = 1; then
bcf1fa6b
RR
5216 echo "$ac_t""yes" 1>&6
5217else
5218 echo "$ac_t""no" 1>&6
5219fi
5220
5221
5222
5223echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6
35a4dab7 5224echo "configure:5225: checking "for debug_info"" >&5
bcf1fa6b
RR
5225# Check whether --with-debug_info or --without-debug_info was given.
5226if test "${with_debug_info+set}" = set; then
5227 withval="$with_debug_info"
5228 if test "x$with_debug_info" = xyes; then
8248314d 5229 ac_cv_use_debug_info='wxUSE_DEBUG_INFO="1"'
bcf1fa6b 5230else
8248314d 5231 ac_cv_use_debug_info='wxUSE_DEBUG_INFO="0"'
bcf1fa6b
RR
5232fi
5233else
5234
8248314d 5235 LINE=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5236 if test "x$LINE" != x ; then
5237 eval "DEFAULT_$LINE"
5238 fi
8248314d 5239 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
bcf1fa6b
RR
5240
5241fi
5242
5243eval "$ac_cv_use_debug_info"
5244echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
8248314d 5245if test "$wxUSE_DEBUG_INFO" = 1; then
bcf1fa6b
RR
5246 echo "$ac_t""yes" 1>&6
5247else
5248 echo "$ac_t""no" 1>&6
5249fi
5250
5251
5252
2904eefd 5253echo $ac_n "checking "for debug_gdb"""... $ac_c" 1>&6
35a4dab7 5254echo "configure:5255: checking "for debug_gdb"" >&5
2904eefd
KB
5255# Check whether --with-debug_gdb or --without-debug_gdb was given.
5256if test "${with_debug_gdb+set}" = set; then
5257 withval="$with_debug_gdb"
5258 if test "x$with_debug_gdb" = xyes; then
5259 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB="1"'
5260else
5261 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB="0"'
5262fi
5263else
5264
5265 LINE=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 fi
5269 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5270
5271fi
5272
5273eval "$ac_cv_use_debug_gdb"
5274echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5275if test "$wxUSE_DEBUG_GDB" = 1; then
5276 echo "$ac_t""yes" 1>&6
5277else
5278 echo "$ac_t""no" 1>&6
5279fi
5280
5281
5282
bcf1fa6b 5283echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6
35a4dab7 5284echo "configure:5285: checking "for mem_tracing"" >&5
bcf1fa6b
RR
5285# Check whether --with-mem_tracing or --without-mem_tracing was given.
5286if test "${with_mem_tracing+set}" = set; then
5287 withval="$with_mem_tracing"
5288 if test "x$with_mem_tracing" = xyes; then
8248314d 5289 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="1"'
bcf1fa6b 5290else
8248314d 5291 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="0"'
bcf1fa6b
RR
5292fi
5293else
5294
8248314d 5295 LINE=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5296 if test "x$LINE" != x ; then
5297 eval "DEFAULT_$LINE"
5298 fi
8248314d 5299 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
bcf1fa6b
RR
5300
5301fi
5302
5303eval "$ac_cv_use_mem_tracing"
5304echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
8248314d 5305if test "$wxUSE_MEM_TRACING" = 1; then
bcf1fa6b
RR
5306 echo "$ac_t""yes" 1>&6
5307else
5308 echo "$ac_t""no" 1>&6
5309fi
5310
5311
5312
5313echo $ac_n "checking "for dmalloc"""... $ac_c" 1>&6
35a4dab7 5314echo "configure:5315: checking "for dmalloc"" >&5
bcf1fa6b
RR
5315# Check whether --with-dmalloc or --without-dmalloc was given.
5316if test "${with_dmalloc+set}" = set; then
5317 withval="$with_dmalloc"
5318 if test "x$with_dmalloc" = xyes; then
8248314d 5319 ac_cv_use_dmalloc='wxUSE_DMALLOC="1"'
bcf1fa6b 5320else
8248314d 5321 ac_cv_use_dmalloc='wxUSE_DMALLOC="0"'
bcf1fa6b
RR
5322fi
5323else
5324
8248314d 5325 LINE=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5326 if test "x$LINE" != x ; then
5327 eval "DEFAULT_$LINE"
5328 fi
8248314d 5329 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
bcf1fa6b
RR
5330
5331fi
5332
5333eval "$ac_cv_use_dmalloc"
5334echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
8248314d 5335if test "$wxUSE_DMALLOC" = 1; then
bcf1fa6b
RR
5336 echo "$ac_t""yes" 1>&6
5337else
5338 echo "$ac_t""no" 1>&6
5339fi
5340
5341
5342
5343echo $ac_n "checking "for profile"""... $ac_c" 1>&6
35a4dab7 5344echo "configure:5345: checking "for profile"" >&5
bcf1fa6b
RR
5345# Check whether --with-profile or --without-profile was given.
5346if test "${with_profile+set}" = set; then
5347 withval="$with_profile"
5348 if test "x$with_profile" = xyes; then
8248314d 5349 ac_cv_use_profile='wxUSE_PROFILE="1"'
bcf1fa6b 5350else
8248314d 5351 ac_cv_use_profile='wxUSE_PROFILE="0"'
bcf1fa6b
RR
5352fi
5353else
5354
8248314d 5355 LINE=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 fi
8248314d 5359 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
bcf1fa6b
RR
5360
5361fi
5362
5363eval "$ac_cv_use_profile"
5364echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
8248314d 5365if test "$wxUSE_PROFILE" = 1; then
bcf1fa6b
RR
5366 echo "$ac_t""yes" 1>&6
5367else
5368 echo "$ac_t""no" 1>&6
5369fi
5370
5371
5372
5373echo $ac_n "checking "for apple_ieee"""... $ac_c" 1>&6
35a4dab7 5374echo "configure:5375: checking "for apple_ieee"" >&5
bcf1fa6b
RR
5375# Check whether --with-apple_ieee or --without-apple_ieee was given.
5376if test "${with_apple_ieee+set}" = set; then
5377 withval="$with_apple_ieee"
5378 if test "x$with_apple_ieee" = xyes; then
8248314d 5379 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="1"'
bcf1fa6b 5380else
8248314d 5381 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="0"'
bcf1fa6b
RR
5382fi
5383else
5384
8248314d 5385 LINE=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 fi
8248314d 5389 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
bcf1fa6b
RR
5390
5391fi
5392
5393eval "$ac_cv_use_apple_ieee"
5394echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
8248314d 5395if test "$wxUSE_APPLE_IEEE" = 1; then
bcf1fa6b
RR
5396 echo "$ac_t""yes" 1>&6
5397else
5398 echo "$ac_t""no" 1>&6
5399fi
5400
5401
5402
ac57418f 5403echo $ac_n "checking "for threads"""... $ac_c" 1>&6
35a4dab7 5404echo "configure:5405: checking "for threads"" >&5
ac57418f
RR
5405# Check whether --with-threads or --without-threads was given.
5406if test "${with_threads+set}" = set; then
5407 withval="$with_threads"
5408 if test "x$with_threads" = xyes; then
5409 ac_cv_use_threads='wxUSE_THREADS="1"'
5410else
5411 ac_cv_use_threads='wxUSE_THREADS="0"'
5412fi
5413else
5414
5415 LINE=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5416 if test "x$LINE" != x ; then
5417 eval "DEFAULT_$LINE"
5418 fi
5419 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5420
5421fi
5422
5423eval "$ac_cv_use_threads"
5424echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5425if test "$wxUSE_THREADS" = 1; then
5426 echo "$ac_t""yes" 1>&6
5427else
5428 echo "$ac_t""no" 1>&6
5429fi
5430
5431
5432
eb9bbf52 5433echo $ac_n "checking "for dynlib"""... $ac_c" 1>&6
35a4dab7 5434echo "configure:5435: checking "for dynlib"" >&5
eb9bbf52
VZ
5435# Check whether --with-dynlib or --without-dynlib was given.
5436if test "${with_dynlib+set}" = set; then
5437 withval="$with_dynlib"
5438 if test "x$with_dynlib" = xyes; then
5439 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS="1"'
5440else
5441 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS="0"'
5442fi
5443else
5444
5445 LINE=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 fi
5449 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5450
5451fi
5452
5453eval "$ac_cv_use_dynlib"
5454echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5455if test "$wxUSE_DYNLIB_CLASS" = 1; then
5456 echo "$ac_t""yes" 1>&6
5457else
5458 echo "$ac_t""no" 1>&6
5459fi
5460
5461
5462
bcf1fa6b
RR
5463
5464echo $ac_n "checking "for zlib"""... $ac_c" 1>&6
35a4dab7 5465echo "configure:5466: checking "for zlib"" >&5
bcf1fa6b
RR
5466# Check whether --with-zlib or --without-zlib was given.
5467if test "${with_zlib+set}" = set; then
5468 withval="$with_zlib"
5469 if test "x$with_zlib" = xyes; then
8248314d 5470 ac_cv_use_zlib='wxUSE_ZLIB="1"'
bcf1fa6b 5471else
8248314d 5472 ac_cv_use_zlib='wxUSE_ZLIB="0"'
bcf1fa6b
RR
5473fi
5474else
5475
8248314d 5476 LINE=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 fi
8248314d 5480 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
bcf1fa6b
RR
5481
5482fi
5483
5484eval "$ac_cv_use_zlib"
5485echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
8248314d 5486if test "$wxUSE_ZLIB" = 1; then
bcf1fa6b
RR
5487 echo "$ac_t""yes" 1>&6
5488else
5489 echo "$ac_t""no" 1>&6
5490fi
5491
5492
5493
bcf1fa6b 5494echo $ac_n "checking "for libpng"""... $ac_c" 1>&6
35a4dab7 5495echo "configure:5496: checking "for libpng"" >&5
bcf1fa6b
RR
5496# Check whether --with-libpng or --without-libpng was given.
5497if test "${with_libpng+set}" = set; then
5498 withval="$with_libpng"
5499 if test "x$with_libpng" = xyes; then
8248314d 5500 ac_cv_use_libpng='wxUSE_LIBPNG="1"'
bcf1fa6b 5501else
8248314d 5502 ac_cv_use_libpng='wxUSE_LIBPNG="0"'
bcf1fa6b
RR
5503fi
5504else
5505
8248314d 5506 LINE=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5507 if test "x$LINE" != x ; then
5508 eval "DEFAULT_$LINE"
5509 fi
8248314d 5510 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
bcf1fa6b
RR
5511
5512fi
5513
5514eval "$ac_cv_use_libpng"
5515echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
8248314d 5516if test "$wxUSE_LIBPNG" = 1; then
bcf1fa6b
RR
5517 echo "$ac_t""yes" 1>&6
5518else
5519 echo "$ac_t""no" 1>&6
5520fi
5521
5522
5523
2fff5f08 5524echo $ac_n "checking "for libjpeg"""... $ac_c" 1>&6
35a4dab7 5525echo "configure:5526: checking "for libjpeg"" >&5
2fff5f08
VS
5526# Check whether --with-libjpeg or --without-libjpeg was given.
5527if test "${with_libjpeg+set}" = set; then
5528 withval="$with_libjpeg"
5529 if test "x$with_libjpeg" = xyes; then
5530 ac_cv_use_libjpeg='wxUSE_LIBJPEG="1"'
5531else
5532 ac_cv_use_libjpeg='wxUSE_LIBJPEG="0"'
5533fi
5534else
5535
5536 LINE=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 fi
5540 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
5541
5542fi
5543
5544eval "$ac_cv_use_libjpeg"
5545echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
5546if test "$wxUSE_LIBJPEG" = 1; then
5547 echo "$ac_t""yes" 1>&6
5548else
5549 echo "$ac_t""no" 1>&6
5550fi
5551
5552
5553
bcf1fa6b 5554echo $ac_n "checking "for odbc"""... $ac_c" 1>&6
35a4dab7 5555echo "configure:5556: checking "for odbc"" >&5
bcf1fa6b
RR
5556# Check whether --with-odbc or --without-odbc was given.
5557if test "${with_odbc+set}" = set; then
5558 withval="$with_odbc"
5559 if test "x$with_odbc" = xyes; then
8248314d 5560 ac_cv_use_odbc='wxUSE_ODBC="1"'
bcf1fa6b 5561else
8248314d 5562 ac_cv_use_odbc='wxUSE_ODBC="0"'
bcf1fa6b
RR
5563fi
5564else
5565
8248314d 5566 LINE=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5567 if test "x$LINE" != x ; then
5568 eval "DEFAULT_$LINE"
5569 fi
8248314d 5570 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
bcf1fa6b
RR
5571
5572fi
5573
5574eval "$ac_cv_use_odbc"
5575echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
8248314d 5576if test "$wxUSE_ODBC" = 1; then
bcf1fa6b
RR
5577 echo "$ac_t""yes" 1>&6
5578else
5579 echo "$ac_t""no" 1>&6
5580fi
5581
5582
5583
ac57418f
RR
5584
5585echo $ac_n "checking "for timedate"""... $ac_c" 1>&6
35a4dab7 5586echo "configure:5587: checking "for timedate"" >&5
ac57418f
RR
5587# Check whether --with-timedate or --without-timedate was given.
5588if test "${with_timedate+set}" = set; then
5589 withval="$with_timedate"
5590 if test "x$with_timedate" = xyes; then
5591 ac_cv_use_timedate='wxUSE_TIMEDATE="1"'
bcf1fa6b 5592else
ac57418f 5593 ac_cv_use_timedate='wxUSE_TIMEDATE="0"'
bcf1fa6b
RR
5594fi
5595else
5596
ac57418f 5597 LINE=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5598 if test "x$LINE" != x ; then
5599 eval "DEFAULT_$LINE"
5600 fi
ac57418f 5601 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
bcf1fa6b
RR
5602
5603fi
5604
ac57418f
RR
5605eval "$ac_cv_use_timedate"
5606echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5607if test "$wxUSE_TIMEDATE" = 1; then
bcf1fa6b
RR
5608 echo "$ac_t""yes" 1>&6
5609else
5610 echo "$ac_t""no" 1>&6
5611fi
5612
5613
5614
ac57418f 5615echo $ac_n "checking "for intl"""... $ac_c" 1>&6
35a4dab7 5616echo "configure:5617: checking "for intl"" >&5
ac57418f
RR
5617# Check whether --with-intl or --without-intl was given.
5618if test "${with_intl+set}" = set; then
5619 withval="$with_intl"
5620 if test "x$with_intl" = xyes; then
5621 ac_cv_use_intl='wxUSE_INTL="1"'
bcf1fa6b 5622else
ac57418f 5623 ac_cv_use_intl='wxUSE_INTL="0"'
bcf1fa6b
RR
5624fi
5625else
5626
ac57418f 5627 LINE=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5628 if test "x$LINE" != x ; then
5629 eval "DEFAULT_$LINE"
5630 fi
ac57418f 5631 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
bcf1fa6b
RR
5632
5633fi
5634
ac57418f
RR
5635eval "$ac_cv_use_intl"
5636echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5637if test "$wxUSE_INTL" = 1; then
bcf1fa6b
RR
5638 echo "$ac_t""yes" 1>&6
5639else
5640 echo "$ac_t""no" 1>&6
5641fi
5642
5643
5644
ac57418f 5645echo $ac_n "checking "for config"""... $ac_c" 1>&6
35a4dab7 5646echo "configure:5647: checking "for config"" >&5
ac57418f
RR
5647# Check whether --with-config or --without-config was given.
5648if test "${with_config+set}" = set; then
5649 withval="$with_config"
5650 if test "x$with_config" = xyes; then
5651 ac_cv_use_config='wxUSE_CONFIG="1"'
a60c99e6 5652else
ac57418f 5653 ac_cv_use_config='wxUSE_CONFIG="0"'
a60c99e6
RR
5654fi
5655else
5656
ac57418f 5657 LINE=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
a60c99e6
RR
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 fi
ac57418f 5661 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a60c99e6
RR
5662
5663fi
5664
ac57418f
RR
5665eval "$ac_cv_use_config"
5666echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5667if test "$wxUSE_CONFIG" = 1; then
a60c99e6
RR
5668 echo "$ac_t""yes" 1>&6
5669else
5670 echo "$ac_t""no" 1>&6
5671fi
5672
5673
5674
ac57418f 5675echo $ac_n "checking "for streams"""... $ac_c" 1>&6
35a4dab7 5676echo "configure:5677: checking "for streams"" >&5
ac57418f
RR
5677# Check whether --with-streams or --without-streams was given.
5678if test "${with_streams+set}" = set; then
5679 withval="$with_streams"
5680 if test "x$with_streams" = xyes; then
5681 ac_cv_use_streams='wxUSE_STREAMS="1"'
bcf1fa6b 5682else
ac57418f 5683 ac_cv_use_streams='wxUSE_STREAMS="0"'
bcf1fa6b
RR
5684fi
5685else
5686
ac57418f 5687 LINE=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 fi
ac57418f 5691 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
bcf1fa6b
RR
5692
5693fi
5694
ac57418f
RR
5695eval "$ac_cv_use_streams"
5696echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5697if test "$wxUSE_STREAMS" = 1; then
bcf1fa6b
RR
5698 echo "$ac_t""yes" 1>&6
5699else
5700 echo "$ac_t""no" 1>&6
5701fi
5702
5703
5704
ac57418f 5705echo $ac_n "checking "for serial"""... $ac_c" 1>&6
35a4dab7 5706echo "configure:5707: checking "for serial"" >&5
ac57418f
RR
5707# Check whether --with-serial or --without-serial was given.
5708if test "${with_serial+set}" = set; then
5709 withval="$with_serial"
5710 if test "x$with_serial" = xyes; then
5711 ac_cv_use_serial='wxUSE_SERIAL="1"'
bcf1fa6b 5712else
ac57418f 5713 ac_cv_use_serial='wxUSE_SERIAL="0"'
bcf1fa6b
RR
5714fi
5715else
5716
ac57418f 5717 LINE=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5718 if test "x$LINE" != x ; then
5719 eval "DEFAULT_$LINE"
5720 fi
ac57418f 5721 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
bcf1fa6b
RR
5722
5723fi
5724
ac57418f
RR
5725eval "$ac_cv_use_serial"
5726echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5727if test "$wxUSE_SERIAL" = 1; then
bcf1fa6b
RR
5728 echo "$ac_t""yes" 1>&6
5729else
5730 echo "$ac_t""no" 1>&6
5731fi
5732
5733
5734
35a4dab7
GL
5735echo $ac_n "checking "for sockets"""... $ac_c" 1>&6
5736echo "configure:5737: checking "for sockets"" >&5
5737# Check whether --with-sockets or --without-sockets was given.
5738if test "${with_sockets+set}" = set; then
5739 withval="$with_sockets"
5740 if test "x$with_sockets" = xyes; then
5741 ac_cv_use_sockets='wxUSE_SOCKETS="1"'
5742else
5743 ac_cv_use_sockets='wxUSE_SOCKETS="0"'
5744fi
5745else
5746
5747 LINE=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
5748 if test "x$LINE" != x ; then
5749 eval "DEFAULT_$LINE"
5750 fi
5751 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
5752
5753fi
5754
5755eval "$ac_cv_use_sockets"
5756echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
5757if test "$wxUSE_SOCKETS" = 1; then
5758 echo "$ac_t""yes" 1>&6
5759else
5760 echo "$ac_t""no" 1>&6
5761fi
5762
5763
5764
ac57418f
RR
5765
5766echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6
35a4dab7 5767echo "configure:5768: checking "for afmfonts"" >&5
ac57418f
RR
5768# Check whether --with-afmfonts or --without-afmfonts was given.
5769if test "${with_afmfonts+set}" = set; then
5770 withval="$with_afmfonts"
5771 if test "x$with_afmfonts" = xyes; then
5772 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="1"'
bcf1fa6b 5773else
ac57418f 5774 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="0"'
bcf1fa6b
RR
5775fi
5776else
5777
ac57418f 5778 LINE=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 fi
ac57418f 5782 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
bcf1fa6b
RR
5783
5784fi
5785
ac57418f
RR
5786eval "$ac_cv_use_afmfonts"
5787echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5788if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
bcf1fa6b
RR
5789 echo "$ac_t""yes" 1>&6
5790else
5791 echo "$ac_t""no" 1>&6
5792fi
5793
5794
5795
ac57418f 5796echo $ac_n "checking "for normalized"""... $ac_c" 1>&6
35a4dab7 5797echo "configure:5798: checking "for normalized"" >&5
ac57418f
RR
5798# Check whether --with-normalized or --without-normalized was given.
5799if test "${with_normalized+set}" = set; then
5800 withval="$with_normalized"
5801 if test "x$with_normalized" = xyes; then
5802 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"'
bcf1fa6b 5803else
ac57418f 5804 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"'
bcf1fa6b
RR
5805fi
5806else
5807
ac57418f 5808 LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 fi
ac57418f 5812 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
bcf1fa6b
RR
5813
5814fi
5815
ac57418f
RR
5816eval "$ac_cv_use_normalized"
5817echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5818if test "$WX_NORMALIZED_PS_FONTS" = 1; then
bcf1fa6b
RR
5819 echo "$ac_t""yes" 1>&6
5820else
5821 echo "$ac_t""no" 1>&6
5822fi
5823
5824
5825
ac57418f 5826echo $ac_n "checking "for postscript"""... $ac_c" 1>&6
35a4dab7 5827echo "configure:5828: checking "for postscript"" >&5
ac57418f
RR
5828# Check whether --with-postscript or --without-postscript was given.
5829if test "${with_postscript+set}" = set; then
5830 withval="$with_postscript"
5831 if test "x$with_postscript" = xyes; then
5832 ac_cv_use_postscript='wxUSE_POSTSCRIPT="1"'
bcf1fa6b 5833else
ac57418f 5834 ac_cv_use_postscript='wxUSE_POSTSCRIPT="0"'
bcf1fa6b
RR
5835fi
5836else
5837
ac57418f 5838 LINE=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5839 if test "x$LINE" != x ; then
5840 eval "DEFAULT_$LINE"
5841 fi
ac57418f 5842 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
bcf1fa6b
RR
5843
5844fi
5845
ac57418f
RR
5846eval "$ac_cv_use_postscript"
5847echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5848if test "$wxUSE_POSTSCRIPT" = 1; then
bcf1fa6b
RR
5849 echo "$ac_t""yes" 1>&6
5850else
5851 echo "$ac_t""no" 1>&6
5852fi
5853
5854
5855
ac57418f
RR
5856
5857echo $ac_n "checking "for unicode"""... $ac_c" 1>&6
35a4dab7 5858echo "configure:5859: checking "for unicode"" >&5
ac57418f
RR
5859# Check whether --with-unicode or --without-unicode was given.
5860if test "${with_unicode+set}" = set; then
5861 withval="$with_unicode"
5862 if test "x$with_unicode" = xyes; then
5863 ac_cv_use_unicode='wxUSE_UNICODE="1"'
bcf1fa6b 5864else
ac57418f 5865 ac_cv_use_unicode='wxUSE_UNICODE="0"'
bcf1fa6b
RR
5866fi
5867else
5868
ac57418f 5869 LINE=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5870 if test "x$LINE" != x ; then
5871 eval "DEFAULT_$LINE"
5872 fi
ac57418f 5873 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
bcf1fa6b
RR
5874
5875fi
5876
ac57418f
RR
5877eval "$ac_cv_use_unicode"
5878echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5879if test "$wxUSE_UNICODE" = 1; then
bcf1fa6b
RR
5880 echo "$ac_t""yes" 1>&6
5881else
5882 echo "$ac_t""no" 1>&6
5883fi
5884
5885
5886
ac57418f 5887echo $ac_n "checking "for wcsrtombs"""... $ac_c" 1>&6
35a4dab7 5888echo "configure:5889: checking "for wcsrtombs"" >&5
ac57418f
RR
5889# Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5890if test "${with_wcsrtombs+set}" = set; then
5891 withval="$with_wcsrtombs"
5892 if test "x$with_wcsrtombs" = xyes; then
5893 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="1"'
bcf1fa6b 5894else
ac57418f 5895 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="0"'
bcf1fa6b
RR
5896fi
5897else
5898
ac57418f 5899 LINE=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 fi
ac57418f 5903 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
bcf1fa6b
RR
5904
5905fi
5906
ac57418f
RR
5907eval "$ac_cv_use_wcsrtombs"
5908echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5909if test "$wxUSE_WCSRTOMBS" = 1; then
bcf1fa6b
RR
5910 echo "$ac_t""yes" 1>&6
5911else
5912 echo "$ac_t""no" 1>&6
5913fi
5914
5915
5916
ac57418f
RR
5917
5918echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6
35a4dab7 5919echo "configure:5920: checking "for wxresources"" >&5
ac57418f
RR
5920# Check whether --with-wxresources or --without-wxresources was given.
5921if test "${with_wxresources+set}" = set; then
5922 withval="$with_wxresources"
5923 if test "x$with_wxresources" = xyes; then
5924 ac_cv_use_wxresources='wxUSE_WX_RESOURCES="1"'
bcf1fa6b 5925else
ac57418f 5926 ac_cv_use_wxresources='wxUSE_WX_RESOURCES="0"'
bcf1fa6b
RR
5927fi
5928else
5929
ac57418f 5930 LINE=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5931 if test "x$LINE" != x ; then
5932 eval "DEFAULT_$LINE"
5933 fi
ac57418f 5934 ac_cv_use_wxresources='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
bcf1fa6b
RR
5935
5936fi
5937
ac57418f
RR
5938eval "$ac_cv_use_wxresources"
5939echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5940if test "$wxUSE_WX_RESOURCES" = 1; then
bcf1fa6b
RR
5941 echo "$ac_t""yes" 1>&6
5942else
5943 echo "$ac_t""no" 1>&6
5944fi
5945
5946
5947
ac57418f 5948echo $ac_n "checking "for prologio"""... $ac_c" 1>&6
35a4dab7 5949echo "configure:5950: checking "for prologio"" >&5
ac57418f
RR
5950# Check whether --with-prologio or --without-prologio was given.
5951if test "${with_prologio+set}" = set; then
5952 withval="$with_prologio"
5953 if test "x$with_prologio" = xyes; then
5954 ac_cv_use_prologio='wxUSE_PROLOGIO="1"'
bcf1fa6b 5955else
ac57418f 5956 ac_cv_use_prologio='wxUSE_PROLOGIO="0"'
bcf1fa6b
RR
5957fi
5958else
5959
ac57418f 5960 LINE=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5961 if test "x$LINE" != x ; then
5962 eval "DEFAULT_$LINE"
5963 fi
ac57418f 5964 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
bcf1fa6b
RR
5965
5966fi
5967
ac57418f
RR
5968eval "$ac_cv_use_prologio"
5969echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5970if test "$wxUSE_PROLOGIO" = 1; then
bcf1fa6b
RR
5971 echo "$ac_t""yes" 1>&6
5972else
5973 echo "$ac_t""no" 1>&6
5974fi
5975
5976
5977
ac57418f 5978echo $ac_n "checking "for RPC"""... $ac_c" 1>&6
35a4dab7 5979echo "configure:5980: checking "for RPC"" >&5
ac57418f
RR
5980# Check whether --with-rpc or --without-rpc was given.
5981if test "${with_rpc+set}" = set; then
5982 withval="$with_rpc"
5983 if test "x$with_rpc" = xyes; then
5984 ac_cv_use_rpc='wxUSE_RPC="1"'
bcf1fa6b 5985else
ac57418f 5986 ac_cv_use_rpc='wxUSE_RPC="0"'
bcf1fa6b
RR
5987fi
5988else
5989
ac57418f 5990 LINE=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5991 if test "x$LINE" != x ; then
5992 eval "DEFAULT_$LINE"
5993 fi
ac57418f 5994 ac_cv_use_rpc='wxUSE_RPC='$DEFAULT_wxUSE_RPC
bcf1fa6b
RR
5995
5996fi
5997
ac57418f
RR
5998eval "$ac_cv_use_rpc"
5999echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6000if test "$wxUSE_RPC" = 1; then
bcf1fa6b
RR
6001 echo "$ac_t""yes" 1>&6
6002else
6003 echo "$ac_t""no" 1>&6
6004fi
6005
6006
6007
ac57418f
RR
6008
6009echo $ac_n "checking "for IPC"""... $ac_c" 1>&6
35a4dab7 6010echo "configure:6011: checking "for IPC"" >&5
ac57418f
RR
6011# Check whether --with-ipc or --without-ipc was given.
6012if test "${with_ipc+set}" = set; then
6013 withval="$with_ipc"
6014 if test "x$with_ipc" = xyes; then
6015 ac_cv_use_ipc='wxUSE_IPC="1"'
bcf1fa6b 6016else
ac57418f 6017 ac_cv_use_ipc='wxUSE_IPC="0"'
bcf1fa6b
RR
6018fi
6019else
6020
ac57418f 6021 LINE=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6022 if test "x$LINE" != x ; then
6023 eval "DEFAULT_$LINE"
6024 fi
ac57418f 6025 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
bcf1fa6b
RR
6026
6027fi
6028
6029eval "$ac_cv_use_ipc"
6030echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
8248314d 6031if test "$wxUSE_IPC" = 1; then
bcf1fa6b
RR
6032 echo "$ac_t""yes" 1>&6
6033else
6034 echo "$ac_t""no" 1>&6
6035fi
6036
6037
6038
6039echo $ac_n "checking "for resources"""... $ac_c" 1>&6
35a4dab7 6040echo "configure:6041: checking "for resources"" >&5
bcf1fa6b
RR
6041# Check whether --with-resources or --without-resources was given.
6042if test "${with_resources+set}" = set; then
6043 withval="$with_resources"
6044 if test "x$with_resources" = xyes; then
8248314d 6045 ac_cv_use_resources='wxUSE_RESOURCES="1"'
bcf1fa6b 6046else
8248314d 6047 ac_cv_use_resources='wxUSE_RESOURCES="0"'
bcf1fa6b
RR
6048fi
6049else
6050
8248314d 6051 LINE=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6052 if test "x$LINE" != x ; then
6053 eval "DEFAULT_$LINE"
6054 fi
8248314d 6055 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
bcf1fa6b
RR
6056
6057fi
6058
6059eval "$ac_cv_use_resources"
6060echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
8248314d 6061if test "$wxUSE_RESOURCES" = 1; then
bcf1fa6b
RR
6062 echo "$ac_t""yes" 1>&6
6063else
6064 echo "$ac_t""no" 1>&6
6065fi
6066
6067
6068
6069echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6
35a4dab7 6070echo "configure:6071: checking "for clipboard"" >&5
bcf1fa6b
RR
6071# Check whether --with-clipboard or --without-clipboard was given.
6072if test "${with_clipboard+set}" = set; then
6073 withval="$with_clipboard"
6074 if test "x$with_clipboard" = xyes; then
8248314d 6075 ac_cv_use_clipboard='wxUSE_CLIPBOARD="1"'
bcf1fa6b 6076else
8248314d 6077 ac_cv_use_clipboard='wxUSE_CLIPBOARD="0"'
bcf1fa6b
RR
6078fi
6079else
6080
8248314d 6081 LINE=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6082 if test "x$LINE" != x ; then
6083 eval "DEFAULT_$LINE"
6084 fi
8248314d 6085 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
bcf1fa6b
RR
6086
6087fi
6088
6089eval "$ac_cv_use_clipboard"
6090echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
8248314d 6091if test "$wxUSE_CLIPBOARD" = 1; then
bcf1fa6b
RR
6092 echo "$ac_t""yes" 1>&6
6093else
6094 echo "$ac_t""no" 1>&6
6095fi
6096
6097
6098
ff8bfdbb 6099echo $ac_n "checking "for tooltips"""... $ac_c" 1>&6
35a4dab7 6100echo "configure:6101: checking "for tooltips"" >&5
ff8bfdbb
VZ
6101# Check whether --with-tooltips or --without-tooltips was given.
6102if test "${with_tooltips+set}" = set; then
6103 withval="$with_tooltips"
6104 if test "x$with_tooltips" = xyes; then
6105 ac_cv_use_tooltips='wxUSE_TOOLTIPS="1"'
6106else
6107 ac_cv_use_tooltips='wxUSE_TOOLTIPS="0"'
6108fi
6109else
6110
6111 LINE=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 fi
6115 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6116
6117fi
6118
6119eval "$ac_cv_use_tooltips"
6120echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6121if test "$wxUSE_TOOLTIPS" = 1; then
6122 echo "$ac_t""yes" 1>&6
6123else
6124 echo "$ac_t""no" 1>&6
6125fi
6126
6127
6128
bcf1fa6b 6129echo $ac_n "checking "for dnd"""... $ac_c" 1>&6
35a4dab7 6130echo "configure:6131: checking "for dnd"" >&5
bcf1fa6b 6131# Check whether --with-dnd or --without-dnd was given.
ac57418f
RR
6132if test "${with_dnd+set}" = set; then
6133 withval="$with_dnd"
6134 if test "x$with_dnd" = xyes; then
6135 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP="1"'
bcf1fa6b 6136else
ac57418f 6137 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP="0"'
bcf1fa6b
RR
6138fi
6139else
6140
ac57418f 6141 LINE=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6142 if test "x$LINE" != x ; then
6143 eval "DEFAULT_$LINE"
6144 fi
ac57418f 6145 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
bcf1fa6b
RR
6146
6147fi
6148
ac57418f
RR
6149eval "$ac_cv_use_dnd"
6150echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6151if test "$wxUSE_DRAG_AND_DROP" = 1; then
bcf1fa6b
RR
6152 echo "$ac_t""yes" 1>&6
6153else
6154 echo "$ac_t""no" 1>&6
6155fi
6156
6157
6158
6159
6160echo $ac_n "checking "for mdi"""... $ac_c" 1>&6
35a4dab7 6161echo "configure:6162: checking "for mdi"" >&5
bcf1fa6b
RR
6162# Check whether --with-mdi or --without-mdi was given.
6163if test "${with_mdi+set}" = set; then
6164 withval="$with_mdi"
6165 if test "x$with_mdi" = xyes; then
8248314d 6166 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="1"'
bcf1fa6b 6167else
8248314d 6168 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="0"'
bcf1fa6b
RR
6169fi
6170else
6171
8248314d 6172 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 fi
8248314d 6176 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
bcf1fa6b
RR
6177
6178fi
6179
6180eval "$ac_cv_use_mdi"
6181echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
8248314d 6182if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
bcf1fa6b
RR
6183 echo "$ac_t""yes" 1>&6
6184else
6185 echo "$ac_t""no" 1>&6
6186fi
6187
6188
6189
6190echo $ac_n "checking "for docview"""... $ac_c" 1>&6
35a4dab7 6191echo "configure:6192: checking "for docview"" >&5
bcf1fa6b
RR
6192# Check whether --with-docview or --without-docview was given.
6193if test "${with_docview+set}" = set; then
6194 withval="$with_docview"
6195 if test "x$with_docview" = xyes; then
8248314d 6196 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
bcf1fa6b 6197else
8248314d 6198 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
bcf1fa6b
RR
6199fi
6200else
6201
8248314d 6202 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6203 if test "x$LINE" != x ; then
6204 eval "DEFAULT_$LINE"
6205 fi
8248314d 6206 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
bcf1fa6b
RR
6207
6208fi
6209
6210eval "$ac_cv_use_docview"
6211echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
8248314d 6212if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
bcf1fa6b
RR
6213 echo "$ac_t""yes" 1>&6
6214else
6215 echo "$ac_t""no" 1>&6
6216fi
6217
6218
6219
6220echo $ac_n "checking "for printarch"""... $ac_c" 1>&6
35a4dab7 6221echo "configure:6222: checking "for printarch"" >&5
bcf1fa6b
RR
6222# Check whether --with-printarch or --without-printarch was given.
6223if test "${with_printarch+set}" = set; then
6224 withval="$with_printarch"
6225 if test "x$with_printarch" = xyes; then
8248314d 6226 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="1"'
bcf1fa6b 6227else
8248314d 6228 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="0"'
bcf1fa6b
RR
6229fi
6230else
6231
8248314d 6232 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 fi
8248314d 6236 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
bcf1fa6b
RR
6237
6238fi
6239
6240eval "$ac_cv_use_printarch"
6241echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
8248314d 6242if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
bcf1fa6b
RR
6243 echo "$ac_t""yes" 1>&6
6244else
6245 echo "$ac_t""no" 1>&6
6246fi
6247
6248
6249
e9aad10a 6250echo $ac_n "checking "for help"""... $ac_c" 1>&6
35a4dab7 6251echo "configure:6252: checking "for help"" >&5
e9aad10a
KB
6252# Check whether --with-help or --without-help was given.
6253if test "${with_help+set}" = set; then
6254 withval="$with_help"
6255 if test "x$with_help" = xyes; then
6256 ac_cv_use_help='wxUSE_HELP="1"'
6257else
6258 ac_cv_use_help='wxUSE_HELP="0"'
6259fi
6260else
6261
6262 LINE=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6263 if test "x$LINE" != x ; then
6264 eval "DEFAULT_$LINE"
6265 fi
6266 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6267
6268fi
6269
6270eval "$ac_cv_use_help"
6271echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6272if test "$wxUSE_HELP" = 1; then
6273 echo "$ac_t""yes" 1>&6
6274else
6275 echo "$ac_t""no" 1>&6
6276fi
6277
6278
6279
8248314d 6280if test "$wxUSE_UNIX" = 1 ; then
bcf1fa6b
RR
6281 cat >> confdefs.h <<\EOF
6282#define __UNIX__ 1
6283EOF
6284
6285fi
6286
6d5977df
KB
6287if test "$USE_LINUX" = 1; then
6288 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
35a4dab7 6289echo "configure:6290: checking for gettext in -lc" >&5
6d5977df
KB
6290ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6292 echo $ac_n "(cached) $ac_c" 1>&6
6293else
6294 ac_save_LIBS="$LIBS"
6295LIBS="-lc $LIBS"
6296cat > conftest.$ac_ext <<EOF
35a4dab7 6297#line 6298 "configure"
6d5977df
KB
6298#include "confdefs.h"
6299/* Override any gcc2 internal prototype to avoid an error. */
6300/* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6302char gettext();
6303
6304int main() {
6305gettext()
6306; return 0; }
6307EOF
35a4dab7 6308if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6d5977df
KB
6309 rm -rf conftest*
6310 eval "ac_cv_lib_$ac_lib_var=yes"
6311else
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 rm -rf conftest*
6315 eval "ac_cv_lib_$ac_lib_var=no"
6316fi
6317rm -f conftest*
6318LIBS="$ac_save_LIBS"
6319
6320fi
6321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6322 echo "$ac_t""yes" 1>&6
6323 cat >> confdefs.h <<\EOF
6324#define wxHAVE_GLIBC2 1
6325EOF
6326
6327else
6328 echo "$ac_t""no" 1>&6
6329fi
6330
6331fi
6332
bcf1fa6b
RR
6333
6334TOOLKIT=
6335TOOLKIT_DEF=
6336
6337GUI_TK_INCLUDE=
6338GUI_TK_LIBRARY=
6339GUI_TK_LINK=
6340
76153302
RR
6341WX_LINK=
6342
bcf1fa6b
RR
6343MAKEINCLUDE=
6344
8248314d 6345if test "$wxUSE_GTK" = 1; then
bcf1fa6b
RR
6346 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6347if test "${with_gtk_prefix+set}" = set; then
6348 withval="$with_gtk_prefix"
6349 gtk_config_prefix="$withval"
6350else
6351 gtk_config_prefix=""
6352fi
6353
6354# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6355if test "${with_gtk_exec_prefix+set}" = set; then
6356 withval="$with_gtk_exec_prefix"
6357 gtk_config_exec_prefix="$withval"
6358else
6359 gtk_config_exec_prefix=""
6360fi
6361
6362
6363 if test x$gtk_config_exec_prefix != x ; then
6364 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6365 if test x${GTK_CONFIG+set} != xset ; then
6366 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6367 fi
6368 fi
6369 if test x$gtk_config_prefix != x ; then
6370 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6371 if test x${GTK_CONFIG+set} != xset ; then
6372 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6373 fi
6374 fi
6375
6376 # Extract the first word of "gtk-config", so it can be a program name with args.
6377set dummy gtk-config; ac_word=$2
6378echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35a4dab7 6379echo "configure:6380: checking for $ac_word" >&5
bcf1fa6b
RR
6380if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6382else
6383 case "$GTK_CONFIG" in
6384 /*)
6385 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6386 ;;
35a4dab7
GL
6387 ?:/*)
6388 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6389 ;;
bcf1fa6b 6390 *)
35a4dab7
GL
6391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6392 ac_dummy="$PATH"
6393 for ac_dir in $ac_dummy; do
bcf1fa6b
RR
6394 test -z "$ac_dir" && ac_dir=.
6395 if test -f $ac_dir/$ac_word; then
6396 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6397 break
6398 fi
6399 done
6400 IFS="$ac_save_ifs"
6401 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6402 ;;
6403esac
6404fi
6405GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6406if test -n "$GTK_CONFIG"; then
6407 echo "$ac_t""$GTK_CONFIG" 1>&6
6408else
6409 echo "$ac_t""no" 1>&6
6410fi
6411
5db1a502 6412 min_gtk_version=1.0.4
bcf1fa6b 6413 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
35a4dab7 6414echo "configure:6415: checking for GTK - version >= $min_gtk_version" >&5
bcf1fa6b
RR
6415 no_gtk=""
6416 if test "$GTK_CONFIG" != "no" ; then
6417 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6418 GTK_LIBS=`$GTK_CONFIG --libs`
6419 ac_save_CFLAGS="$CFLAGS"
6420 ac_save_LIBS="$LIBS"
6421 CFLAGS="$CFLAGS $GTK_CFLAGS"
6422 LIBS="$LIBS $GTK_LIBS"
6423 if test "$cross_compiling" = yes; then
6424 echo $ac_n "cross compiling; assumed OK... $ac_c"
6425else
6426 cat > conftest.$ac_ext <<EOF
35a4dab7 6427#line 6428 "configure"
bcf1fa6b
RR
6428#include "confdefs.h"
6429
6430#include <gtk/gtk.h>
6431#include <stdio.h>
6432
6433int
6434main ()
6435{
6436 int major, minor, micro;
6437
6438 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6439 printf("%s, bad version string\n", "$min_gtk_version");
6440 exit(1);
6441 }
6442
f3855ef0
RR
6443 if (gtk_minor_version > 0) return FALSE;
6444
bcf1fa6b
RR
6445 return !((gtk_major_version > major) ||
6446 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6447 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6448}
6449
6450EOF
35a4dab7 6451if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
6452then
6453 :
6454else
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 rm -fr conftest*
6458 no_gtk=yes
6459fi
6460rm -fr conftest*
6461fi
6462
6463 CFLAGS="$ac_save_CFLAGS"
6464 LIBS="$ac_save_LIBS"
6465 else
6466 no_gtk=yes
6467 fi
6468 if test "x$no_gtk" = x ; then
6469 echo "$ac_t""yes" 1>&6
6470
6471 GUI_TK_INCLUDE="$GTK_CFLAGS"
6472 GUI_TK_LIBRARY="$GTK_LIBS"
6473
6474 else
6475 echo "$ac_t""no" 1>&6
6476 GTK_CFLAGS=""
6477 GTK_LIBS=""
f3855ef0 6478 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4 up-to 1.0.6?" 1>&2; exit 1; }
bcf1fa6b
RR
6479 fi
6480
6481
6482
bcf1fa6b
RR
6483 TOOLKIT=GTK
6484 TOOLKIT_DEF=__WXGTK__
8710cf5c 6485 WX_LINK=-lwx_gtk2
bcf1fa6b
RR
6486 MAKEINCLUDE=../gtk.inc
6487fi
6488
8248314d 6489if test "$wxUSE_QT" = 1; then
bcf1fa6b 6490 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
35a4dab7 6491echo "configure:6492: checking for Qt includes" >&5
bcf1fa6b
RR
6492
6493ac_find_includes=
6494for ac_dir in $SEARCH_INCLUDE;
6495 do
6496 if test -f "$ac_dir/qapp.h"; then
6497 ac_find_includes=$ac_dir
6498 break
6499 fi
6500 done
6501
6502 if test "$ac_find_includes" != "" ; then
6503 echo "$ac_t""found $ac_find_includes" 1>&6
6504 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
35a4dab7 6505echo "configure:6506: checking for Qt library" >&5
bcf1fa6b
RR
6506
6507ac_find_libraries=
6508for ac_dir in $SEARCH_LIB;
6509 do
6510 for ac_extension in a so sl; do
6511 if test -f "$ac_dir/libqt.$ac_extension"; then
6512 ac_find_libraries=$ac_dir
6513 break 2
6514 fi
6515 done
6516 done
6517
6518 if test "$ac_find_libraries" != "" ; then
6519
6520 ac_path_to_include=$ac_find_includes
6521 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6522 result=$?
6523 if test $result = 0; then
6524 ac_path_to_include=""
6525 else
6526 ac_path_to_include="-I$ac_find_includes"
6527 fi
6528
6529
6530 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6531 result=$?
6532 if test $result = 0; then
6533 ac_path_to_link=""
6534 else
6535 ac_path_to_link="-L$ac_find_libraries"
6536 fi
6537
6538 CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
6539 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
6540 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6541 else
6542 { echo "configure: error: no" 1>&2; exit 1; }
6543 fi
6544 else
6545 { echo "configure: error: no" 1>&2; exit 1; }
6546 fi
76153302 6547 GUI_TK_LINK="-lX11 -lqt -lm"
bcf1fa6b
RR
6548 TOOLKIT=QT
6549 TOOLKIT_DEF=__WXQT__
76153302 6550 WX_LINK=-lwx_qt
bcf1fa6b
RR
6551 MAKEINCLUDE=../qt.inc
6552fi
6553
8248314d 6554if test "$wxUSE_MOTIF" = 1; then
bcf1fa6b 6555 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
35a4dab7 6556echo "configure:6557: checking for Motif/Lesstif includes" >&5
bcf1fa6b
RR
6557
6558ac_find_includes=
6559for ac_dir in $SEARCH_INCLUDE;
6560 do
ebefb2f3 6561 if test -f "$ac_dir/Xm/Xm.h"; then
bcf1fa6b
RR
6562 ac_find_includes=$ac_dir
6563 break
6564 fi
6565 done
6566
6567 if test "$ac_find_includes" != "" ; then
6568 echo "$ac_t""found $ac_find_includes" 1>&6
76153302 6569 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
35a4dab7 6570echo "configure:6571: checking for Motif/Lesstif library" >&5
bcf1fa6b
RR
6571
6572ac_find_libraries=
6573for ac_dir in $SEARCH_LIB;
6574 do
6575 for ac_extension in a so sl; do
6576 if test -f "$ac_dir/libXm.$ac_extension"; then
6577 ac_find_libraries=$ac_dir
6578 break 2
6579 fi
6580 done
6581 done
6582
6583 if test "$ac_find_libraries" != "" ; then
6584
6585 ac_path_to_include=$ac_find_includes
6586 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6587 result=$?
6588 if test $result = 0; then
6589 ac_path_to_include=""
6590 else
6591 ac_path_to_include="-I$ac_find_includes"
6592 fi
6593
6594
6595 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6596 result=$?
6597 if test $result = 0; then
6598 ac_path_to_link=""
6599 else
6600 ac_path_to_link="-L$ac_find_libraries"
6601 fi
6602
76153302 6603 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
bcf1fa6b
RR
6604 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
6605 echo "$ac_t""found at $ac_find_libraries" 1>&6
76153302 6606 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
35a4dab7 6607echo "configure:6608: checking for Xt library" >&5
76153302
RR
6608
6609ac_find_libraries=
6610for ac_dir in $SEARCH_LIB;
6611 do
6612 for ac_extension in a so sl; do
6613 if test -f "$ac_dir/libXt.$ac_extension"; then
6614 ac_find_libraries=$ac_dir
6615 break 2
6616 fi
6617 done
6618 done
6619
6620 if test "$ac_find_libraries" != "" ; then
6621
6622 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6623 result=$?
6624 if test $result = 0; then
6625 ac_path_to_link=""
6626 else
6627 ac_path_to_link="-L$ac_find_libraries"
6628 fi
6629
6630 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
6631 echo "$ac_t""found at $ac_find_libraries" 1>&6
892dbe99 6632 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
35a4dab7 6633echo "configure:6634: checking for Xpm library" >&5
892dbe99
RR
6634
6635ac_find_libraries=
6636for ac_dir in $SEARCH_LIB;
6637 do
6638 for ac_extension in a so sl; do
6639 if test -f "$ac_dir/libXpm.$ac_extension"; then
6640 ac_find_libraries=$ac_dir
6641 break 2
6642 fi
6643 done
6644 done
6645
6646 if test "$ac_find_libraries" != "" ; then
6647
6648 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6649 result=$?
6650 if test $result = 0; then
6651 ac_path_to_link=""
6652 else
6653 ac_path_to_link="-L$ac_find_libraries"
6654 fi
6655
6656 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
6657 echo "$ac_t""found at $ac_find_libraries" 1>&6
6658 else
6659 { echo "configure: error: no" 1>&2; exit 1; }
6660 fi
76153302
RR
6661 else
6662 { echo "configure: error: no" 1>&2; exit 1; }
6663 fi
bcf1fa6b
RR
6664 else
6665 { echo "configure: error: no" 1>&2; exit 1; }
6666 fi
6667 else
6668 { echo "configure: error: no" 1>&2; exit 1; }
6669 fi
f6c6dd8c 6670
8c739649
RR
6671 GUI_TK_LINK="-lXm -lXpm -lXmu -lXt -lX11 -lm"
6672 GUI_TK_LIBRARY="$CHECK_LIB $GUI_TK_LINK"
bcf1fa6b 6673 TOOLKIT=MOTIF
f6c6dd8c 6674 TOOLKIT_DEF="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
b75867a6 6675 WX_LINK=-lwx_motif2
bcf1fa6b
RR
6676 MAKEINCLUDE=../motif.inc
6677fi
6678
6679if test "$TOOLKIT" = ""; then
6680 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6681fi
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
76153302
RR
6693
6694
8c739649
RR
6695EXTRA_LINK=
6696
bcf1fa6b 6697WXDEBUG=
2904eefd
KB
6698if test "$wxUSE_DEBUG_GDB" = 1 ; then
6699 wxUSE_DEBUG_INFO=1
f6c6dd8c
RR
6700 WXDEBUG="-ggdb"
6701 wxUSE_OPTIMISE=0
2904eefd
KB
6702else
6703 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6704 WXDEBUG="-g"
6705 wxUSE_OPTIMISE=0
2d17d68f 6706 else
8c739649 6707 EXTRA_LINK="-s $EXTRA_LINK"
79372d19 6708 fi
bcf1fa6b
RR
6709fi
6710
6711
8248314d 6712if test "$wxUSE_DEBUG_FLAG" = 1 ; then
bcf1fa6b 6713 cat >> confdefs.h <<EOF
8248314d 6714#define WXDEBUG $wxUSE_DEBUG_FLAG
bcf1fa6b
RR
6715EOF
6716
6717 WXDEBUG_DEFINE="-D__WXDEBUG__"
6718
f96aa4d9
RR
6719else
6720 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
6721
bcf1fa6b
RR
6722fi
6723
8248314d 6724if test "$wxUSE_MEM_TRACING" = 1 ; then
bcf1fa6b 6725 cat >> confdefs.h <<EOF
8248314d 6726#define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
bcf1fa6b
RR
6727EOF
6728
e55ad60e 6729 cat >> confdefs.h <<EOF
8248314d 6730#define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
e55ad60e
RR
6731EOF
6732
6733fi
bcf1fa6b 6734
8248314d 6735if test "$wxUSE_DMALLOC" = 1 ; then
bcf1fa6b
RR
6736 EXTRA_LINK="$EXTRA_LINK -ldmalloc"
6737fi
6738
6739
6740PROFILE=
8248314d 6741if test "$wxUSE_PROFILE" = 1 ; then
bcf1fa6b
RR
6742 PROFILE="-pg"
6743fi
6744
6745
6746CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6747CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
8248314d 6748if test "$wxUSE_OPTIMISE" = 0 ; then
bcf1fa6b
RR
6749 OPTIMISE=
6750else
6751 if test "$GCC" = yes ; then
6752 OPTIMISE="-O2"
6753 case "${canonical}" in
6754 i586-*-*|i686-*-* )
6755 OPTIMISE="${OPTIMISE} "
6756 ;;
6757 esac
6758 else
6759 OPTIMISE="-O"
6760 fi
6761fi
6762
6763
6764APPLE_IEEE=NONE
8248314d 6765if test "$wxUSE_APPLE_IEEE" = 1 ; then
bcf1fa6b
RR
6766 APPLE_IEEE="APPLE_IEEE"
6767 cat >> confdefs.h <<EOF
8248314d 6768#define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
bcf1fa6b
RR
6769EOF
6770
6771fi
6772
8248314d 6773wxUSE_IOSTREAMH=$DEFAULT_wxUSE_IOSTREAMH
bcf1fa6b 6774cat >> confdefs.h <<EOF
8248314d 6775#define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
bcf1fa6b
RR
6776EOF
6777
6778
6779
8248314d 6780if test "$wxUSE_ZLIB" = 1 ; then
bcf1fa6b 6781 cat >> confdefs.h <<EOF
8248314d 6782#define wxUSE_ZLIB $wxUSE_ZLIB
bcf1fa6b
RR
6783EOF
6784
ac57418f 6785 Z_C_SRC="\$(Z_C_SRC)"
bcf1fa6b
RR
6786fi
6787
ac57418f 6788
8248314d 6789if test "$wxUSE_LIBPNG" = 1 ; then
bcf1fa6b 6790 cat >> confdefs.h <<EOF
8248314d 6791#define wxUSE_LIBPNG $wxUSE_LIBPNG
bcf1fa6b
RR
6792EOF
6793
ac57418f 6794 PNG_C_SRC="\$(PNG_C_SRC)"
bcf1fa6b
RR
6795fi
6796
ac57418f 6797
2fff5f08
VS
6798JPEG_LINK=""
6799if test "$wxUSE_LIBJPEG" = 1 ; then
6800 cat >> confdefs.h <<EOF
6801#define wxUSE_LIBJPEG $wxUSE_LIBJPEG
6802EOF
6803
d1d3ccbe 6804 echo $ac_n "checking for in -ljpeg""... $ac_c" 1>&6
35a4dab7 6805echo "configure:6806: checking for in -ljpeg" >&5
d1d3ccbe
VZ
6806ac_lib_var=`echo jpeg'_' | sed 'y%./+-%__p_%'`
6807if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2fff5f08
VS
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809else
6810 ac_save_LIBS="$LIBS"
6811LIBS="-ljpeg $LIBS"
6812cat > conftest.$ac_ext <<EOF
35a4dab7 6813#line 6814 "configure"
2fff5f08 6814#include "confdefs.h"
d1d3ccbe
VZ
6815/* Override any gcc2 internal prototype to avoid an error. */
6816/* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6818char ();
2fff5f08
VS
6819
6820int main() {
d1d3ccbe 6821()
2fff5f08
VS
6822; return 0; }
6823EOF
35a4dab7 6824if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2fff5f08 6825 rm -rf conftest*
d1d3ccbe 6826 eval "ac_cv_lib_$ac_lib_var=yes"
2fff5f08
VS
6827else
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 rm -rf conftest*
d1d3ccbe 6831 eval "ac_cv_lib_$ac_lib_var=no"
2fff5f08
VS
6832fi
6833rm -f conftest*
6834LIBS="$ac_save_LIBS"
6835
6836fi
d1d3ccbe
VZ
6837if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6840 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6841 cat >> confdefs.h <<EOF
6842#define $ac_tr_lib 1
2fff5f08
VS
6843EOF
6844
6845 LIBS="-ljpeg $LIBS"
6846
d1d3ccbe
VZ
6847else
6848 echo "$ac_t""no" 1>&6
2fff5f08
VS
6849fi
6850
6851 JPEG_LINK="-ljpeg"
6852fi
6853
6854
84b46c35 6855IODBC_C_SRC=""
8248314d 6856if test "$wxUSE_ODBC" = 1 ; then
bcf1fa6b 6857 cat >> confdefs.h <<EOF
8248314d 6858#define wxUSE_ODBC $wxUSE_ODBC
bcf1fa6b
RR
6859EOF
6860
84b46c35 6861 IODBC_C_SRC="\$(IODBC_C_SRC)"
bcf1fa6b
RR
6862fi
6863
6864
84b46c35 6865
8248314d 6866if test "$wxUSE_CONFIG" = 1 ; then
bcf1fa6b 6867 cat >> confdefs.h <<EOF
8248314d 6868#define wxUSE_CONFIG $wxUSE_CONFIG
bcf1fa6b
RR
6869EOF
6870
6871fi
6872
8248314d 6873if test "$wxUSE_TIMEDATE" = 1 ; then
bcf1fa6b 6874 cat >> confdefs.h <<EOF
8248314d 6875#define wxUSE_TIMEDATE $wxUSE_TIMEDATE
bcf1fa6b
RR
6876EOF
6877
6878fi
6879
8248314d 6880if test "$wxUSE_INTL" = 1 ; then
bcf1fa6b 6881 cat >> confdefs.h <<EOF
8248314d 6882#define wxUSE_INTL $wxUSE_INTL
bcf1fa6b
RR
6883EOF
6884
6885fi
6886
8248314d 6887if test "$wxUSE_STREAMS" = 1 ; then
bcf1fa6b 6888 cat >> confdefs.h <<EOF
8248314d 6889#define wxUSE_STREAMS $wxUSE_STREAMS
bcf1fa6b
RR
6890EOF
6891
6892fi
6893
8248314d 6894if test "$wxUSE_SERIAL" = 1 ; then
bcf1fa6b 6895 cat >> confdefs.h <<EOF
8248314d 6896#define wxUSE_SERIAL $wxUSE_SERIAL
bcf1fa6b
RR
6897EOF
6898
6899fi
6900
bcf1fa6b 6901
eb9bbf52
VZ
6902HAVE_DL_FUNCS=0
6903if test "$wxUSE_DYNLIB_CLASS" = "1"; then
6904 for ac_func in dlopen
6905do
6906echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
35a4dab7 6907echo "configure:6908: checking for $ac_func" >&5
eb9bbf52
VZ
6908if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6910else
6911 cat > conftest.$ac_ext <<EOF
35a4dab7 6912#line 6913 "configure"
eb9bbf52
VZ
6913#include "confdefs.h"
6914/* System header to define __stub macros and hopefully few prototypes,
6915 which can conflict with char $ac_func(); below. */
6916#include <assert.h>
6917/* Override any gcc2 internal prototype to avoid an error. */
6918/* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6920char $ac_func();
6921
6922int main() {
6923
6924/* The GNU C library defines this for functions which it implements
6925 to always fail with ENOSYS. Some functions are actually named
6926 something starting with __ and the normal name is an alias. */
6927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6928choke me
6929#else
6930$ac_func();
6931#endif
6932
6933; return 0; }
6934EOF
35a4dab7 6935if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb9bbf52
VZ
6936 rm -rf conftest*
6937 eval "ac_cv_func_$ac_func=yes"
6938else
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6941 rm -rf conftest*
6942 eval "ac_cv_func_$ac_func=no"
6943fi
6944rm -f conftest*
6945fi
6946
6947if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6950 cat >> confdefs.h <<EOF
6951#define $ac_tr_func 1
6952EOF
6953 cat >> confdefs.h <<\EOF
6954#define HAVE_DLOPEN 1
6955EOF
6956 HAVE_DL_FUNCS=1
6957else
6958 echo "$ac_t""no" 1>&6
6959echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
35a4dab7 6960echo "configure:6961: checking for dlopen in -ldl" >&5
eb9bbf52
VZ
6961ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6964else
6965 ac_save_LIBS="$LIBS"
6966LIBS="-ldl $LIBS"
6967cat > conftest.$ac_ext <<EOF
35a4dab7 6968#line 6969 "configure"
eb9bbf52
VZ
6969#include "confdefs.h"
6970/* Override any gcc2 internal prototype to avoid an error. */
6971/* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6973char dlopen();
6974
6975int main() {
6976dlopen()
6977; return 0; }
6978EOF
35a4dab7 6979if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb9bbf52
VZ
6980 rm -rf conftest*
6981 eval "ac_cv_lib_$ac_lib_var=yes"
6982else
6983 echo "configure: failed program was:" >&5
6984 cat conftest.$ac_ext >&5
6985 rm -rf conftest*
6986 eval "ac_cv_lib_$ac_lib_var=no"
6987fi
6988rm -f conftest*
6989LIBS="$ac_save_LIBS"
6990
6991fi
6992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 cat >> confdefs.h <<\EOF
6995#define HAVE_DLOPEN 1
6996EOF
6997 HAVE_DL_FUNCS=1
6998else
6999 echo "$ac_t""no" 1>&6
7000fi
7001
7002fi
7003done
7004
7005 for ac_func in shl_load
7006do
7007echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
35a4dab7 7008echo "configure:7009: checking for $ac_func" >&5
eb9bbf52
VZ
7009if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7010 echo $ac_n "(cached) $ac_c" 1>&6
7011else
7012 cat > conftest.$ac_ext <<EOF
35a4dab7 7013#line 7014 "configure"
eb9bbf52
VZ
7014#include "confdefs.h"
7015/* System header to define __stub macros and hopefully few prototypes,
7016 which can conflict with char $ac_func(); below. */
7017#include <assert.h>
7018/* Override any gcc2 internal prototype to avoid an error. */
7019/* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7021char $ac_func();
7022
7023int main() {
7024
7025/* The GNU C library defines this for functions which it implements
7026 to always fail with ENOSYS. Some functions are actually named
7027 something starting with __ and the normal name is an alias. */
7028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7029choke me
7030#else
7031$ac_func();
7032#endif
7033
7034; return 0; }
7035EOF
35a4dab7 7036if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb9bbf52
VZ
7037 rm -rf conftest*
7038 eval "ac_cv_func_$ac_func=yes"
7039else
7040 echo "configure: failed program was:" >&5
7041 cat conftest.$ac_ext >&5
7042 rm -rf conftest*
7043 eval "ac_cv_func_$ac_func=no"
7044fi
7045rm -f conftest*
7046fi
7047
7048if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7051 cat >> confdefs.h <<EOF
7052#define $ac_tr_func 1
7053EOF
7054 cat >> confdefs.h <<\EOF
7055#define HAVE_SHL_LOAD 1
7056EOF
7057 HAVE_DL_FUNCS=1
7058else
7059 echo "$ac_t""no" 1>&6
7060fi
7061done
7062
7063
7064 if test "$HAVE_DL_FUNCS" = 0; then
7065 echo "configure: warning: "--with-dynlib will be disabled because no function was found to load a shared library on this platform"" 1>&2
7066
7067 wxUSE_DYNLIB_CLASS=0
7068 fi
7069fi
7070
7071if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
7072 cat >> confdefs.h <<EOF
7073#define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
7074EOF
7075
7076fi
7077
7078
8248314d 7079if test "$wxUSE_RPC" = 1 ; then
bcf1fa6b 7080 cat >> confdefs.h <<EOF
8248314d 7081#define wxUSE_RPC $wxUSE_RPC
bcf1fa6b
RR
7082EOF
7083
7084fi
7085
8248314d 7086if test "$wxUSE_WX_RESOURCES" = 1 ; then
bcf1fa6b 7087 cat >> confdefs.h <<EOF
8248314d 7088#define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
bcf1fa6b
RR
7089EOF
7090
7091fi
7092
8248314d 7093if test "$wxUSE_PROLOGIO" = 1 ; then
bcf1fa6b 7094 cat >> confdefs.h <<EOF
8248314d 7095#define wxUSE_PROLOGIO 1
bcf1fa6b
RR
7096EOF
7097
7098fi
7099
7100
8248314d 7101if test "$wxUSE_POSTSCRIPT" = 1 ; then
bcf1fa6b 7102 cat >> confdefs.h <<EOF
8248314d 7103#define wxUSE_POSTSCRIPT 1
bcf1fa6b
RR
7104EOF
7105
7106fi
7107
7108cat >> confdefs.h <<EOF
8248314d 7109#define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
bcf1fa6b
RR
7110EOF
7111
7112
7113cat >> confdefs.h <<EOF
7114#define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
7115EOF
7116
7117
7118
8248314d 7119if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
bcf1fa6b 7120 cat >> confdefs.h <<EOF
8248314d 7121#define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
bcf1fa6b
RR
7122EOF
7123
7124fi
7125
8248314d 7126if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
bcf1fa6b 7127 cat >> confdefs.h <<EOF
8248314d 7128#define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
bcf1fa6b
RR
7129EOF
7130
7131fi
7132
8248314d 7133if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
bcf1fa6b 7134 cat >> confdefs.h <<EOF
8248314d 7135#define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
bcf1fa6b
RR
7136EOF
7137
7138fi
7139
7140
fb4e5803
VZ
7141if test "$wxUSE_UNICODE" = 1 ; then
7142 cat >> confdefs.h <<EOF
7143#define wxUSE_UNICODE 1
7144EOF
7145
7146fi
7147
7148if test "$wxUSE_WCSRTOMBS" = 1 ; then
7149 cat >> confdefs.h <<EOF
7150#define wxUSE_WCSRTOMBS 1
7151EOF
7152
7153fi
7154
7155
8248314d 7156if test "$wxUSE_IPC" = 1 ; then
bcf1fa6b 7157 cat >> confdefs.h <<EOF
8248314d 7158#define wxUSE_IPC 1
bcf1fa6b
RR
7159EOF
7160
7161fi
7162
8248314d 7163if test "$wxUSE_RESOURCES" = 1 ; then
bcf1fa6b 7164 cat >> confdefs.h <<EOF
8248314d 7165#define wxUSE_RESOURCES $wxUSE_RESOURCES
bcf1fa6b
RR
7166EOF
7167
7168fi
7169
8248314d 7170if test "$wxUSE_CLIPBOARD" = 1 ; then
bcf1fa6b 7171 cat >> confdefs.h <<EOF
8248314d 7172#define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
bcf1fa6b
RR
7173EOF
7174
7175fi
7176
ff8bfdbb
VZ
7177if test "$wxUSE_TOOLTIPS" = 1 ; then
7178 cat >> confdefs.h <<EOF
7179#define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7180EOF
7181
7182fi
7183
ac57418f 7184if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
bcf1fa6b 7185 cat >> confdefs.h <<EOF
ac57418f 7186#define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
bcf1fa6b
RR
7187EOF
7188
7189fi
7190
7191
7192HELP=NONE
8248314d 7193if test "$wxUSE_HELP" = 1 ; then
bcf1fa6b
RR
7194 HELP="HELP"
7195 cat >> confdefs.h <<EOF
8248314d 7196#define wxUSE_HELP $wxUSE_HELP
bcf1fa6b
RR
7197EOF
7198
7199fi
7200
7201
bcf1fa6b 7202
bcf1fa6b 7203THREADS_LINK=""
ac57418f 7204UNIX_THREAD=""
bcf1fa6b 7205
d18ed59a 7206if test "$wxUSE_THREADS" = "1"; then
bcf1fa6b 7207
f3855ef0
RR
7208
7209 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
35a4dab7 7210echo "configure:7211: checking for pthread_create in -lpthread-0.7" >&5
bcf1fa6b
RR
7211ac_lib_var=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
7212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7214else
7215 ac_save_LIBS="$LIBS"
7216LIBS="-lpthread-0.7 $LIBS"
7217cat > conftest.$ac_ext <<EOF
35a4dab7 7218#line 7219 "configure"
bcf1fa6b
RR
7219#include "confdefs.h"
7220/* Override any gcc2 internal prototype to avoid an error. */
7221/* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7223char pthread_create();
7224
7225int main() {
7226pthread_create()
7227; return 0; }
7228EOF
35a4dab7 7229if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
7230 rm -rf conftest*
7231 eval "ac_cv_lib_$ac_lib_var=yes"
7232else
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 rm -rf conftest*
7236 eval "ac_cv_lib_$ac_lib_var=no"
7237fi
7238rm -f conftest*
7239LIBS="$ac_save_LIBS"
7240
7241fi
7242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244
f3855ef0
RR
7245 UNIX_THREAD="gtk/threadpsx.cpp"
7246 THREADS_LINK="-lpthread-0.7"
7247
bcf1fa6b
RR
7248else
7249 echo "$ac_t""no" 1>&6
7250
f3855ef0 7251 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
bcf1fa6b 7252echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
35a4dab7 7253echo "configure:7254: checking for sys/prctl.h" >&5
bcf1fa6b
RR
7254if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7256else
7257 cat > conftest.$ac_ext <<EOF
35a4dab7 7258#line 7259 "configure"
bcf1fa6b
RR
7259#include "confdefs.h"
7260#include <sys/prctl.h>
7261EOF
7262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35a4dab7
GL
7263{ (eval echo configure:7264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bcf1fa6b
RR
7265if test -z "$ac_err"; then
7266 rm -rf conftest*
7267 eval "ac_cv_header_$ac_safe=yes"
7268else
7269 echo "$ac_err" >&5
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7272 rm -rf conftest*
7273 eval "ac_cv_header_$ac_safe=no"
7274fi
7275rm -f conftest*
7276fi
7277if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7279
f3855ef0
RR
7280 UNIX_THREAD="gtk/threadsgi.cpp"
7281
bcf1fa6b
RR
7282else
7283 echo "$ac_t""no" 1>&6
7284fi
7285
7286
f3855ef0
RR
7287
7288 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
35a4dab7 7289echo "configure:7290: checking for pthread_setcanceltype in -lpthread" >&5
bcf1fa6b
RR
7290ac_lib_var=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
7291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7293else
7294 ac_save_LIBS="$LIBS"
7295LIBS="-lpthread $LIBS"
7296cat > conftest.$ac_ext <<EOF
35a4dab7 7297#line 7298 "configure"
bcf1fa6b
RR
7298#include "confdefs.h"
7299/* Override any gcc2 internal prototype to avoid an error. */
7300/* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7302char pthread_setcanceltype();
7303
7304int main() {
7305pthread_setcanceltype()
7306; return 0; }
7307EOF
35a4dab7 7308if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
7309 rm -rf conftest*
7310 eval "ac_cv_lib_$ac_lib_var=yes"
7311else
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7314 rm -rf conftest*
7315 eval "ac_cv_lib_$ac_lib_var=no"
7316fi
7317rm -f conftest*
7318LIBS="$ac_save_LIBS"
7319
7320fi
7321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7322 echo "$ac_t""yes" 1>&6
7323
7324 UNIX_THREAD="gtk/threadpsx.cpp"
7325 THREADS_LINK="-lpthread"
f3855ef0 7326
bcf1fa6b
RR
7327else
7328 echo "$ac_t""no" 1>&6
7329fi
7330
f3855ef0 7331
bcf1fa6b
RR
7332fi
7333
f3855ef0 7334
ac57418f
RR
7335 if test "$THREADS_LINK" != ""; then
7336 cat >> confdefs.h <<\EOF
7337#define wxUSE_THREADS 1
7338EOF
7339
7340 fi
7341
f3855ef0
RR
7342
7343 echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
35a4dab7 7344echo "configure:7345: checking for printf in -lposix4" >&5
f3855ef0 7345ac_lib_var=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
bcf1fa6b
RR
7346if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7348else
7349 ac_save_LIBS="$LIBS"
f3855ef0 7350LIBS="-lposix4 $LIBS"
bcf1fa6b 7351cat > conftest.$ac_ext <<EOF
35a4dab7 7352#line 7353 "configure"
bcf1fa6b
RR
7353#include "confdefs.h"
7354/* Override any gcc2 internal prototype to avoid an error. */
7355/* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
f3855ef0 7357char printf();
bcf1fa6b
RR
7358
7359int main() {
f3855ef0 7360printf()
bcf1fa6b
RR
7361; return 0; }
7362EOF
35a4dab7 7363if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bcf1fa6b
RR
7364 rm -rf conftest*
7365 eval "ac_cv_lib_$ac_lib_var=yes"
7366else
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 rm -rf conftest*
7370 eval "ac_cv_lib_$ac_lib_var=no"
7371fi
7372rm -f conftest*
7373LIBS="$ac_save_LIBS"
7374
7375fi
7376if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7377 echo "$ac_t""yes" 1>&6
7378
f3855ef0
RR
7379 THREADS_LINK="$THREADS_LINK -lposix4"
7380
bcf1fa6b
RR
7381else
7382 echo "$ac_t""no" 1>&6
7383fi
7384
ac57418f 7385
bcf1fa6b
RR
7386fi
7387
d18ed59a
RR
7388if test "$wxUSE_MOTIF" = "1"; then
7389 UNIX_THREAD="motif/thread.cpp"
7390fi
7391
bcf1fa6b 7392if test -z "$UNIX_THREAD"; then
d18ed59a 7393 wxUSE_THREADS=0
bcf1fa6b
RR
7394fi
7395
7396
7397
bcf1fa6b
RR
7398
7399
7400
7401PICFLAGS=
7402CREATE_SHARED=
7403case "${canonical}" in
7404
7405 *-hp-hpux* )
7cacdad3 7406 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
7407 CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
7408 CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE"
7409 PICFLAGS="+z"
7410 else
7411 PICFLAGS="-fPIC"
7412 fi
7413 LDFLAGS="-Wl,+s"
7414 CREATE_SHARED=sharedHpux
7415 ;;
7416
7417 *-*-linux* )
7418 PICFLAGS=-fPIC
7419 CREATE_SHARED=sharedLinux
7420 ;;
7421
7422 *-*-irix5* | *-*-irix6* )
7423 # PICFLAGS can remain empty, as pic is the default
7424 LDFLAGS="-Wl,+s"
7425 CREATE_SHARED=sharedIrix
7426 cat >> confdefs.h <<\EOF
7427#define SVR4 1
7428EOF
7429
7430 ;;
7431
7432 *-*-solaris2* )
7cacdad3 7433 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
7434 PICFLAGS="-KPIC"
7435 else
7436 PICFLAGS="-fPIC"
7437 fi
7438 CREATE_SHARED=sharedSolaris2
7439 cat >> confdefs.h <<\EOF
7440#define SVR4 1
7441EOF
7442
7443 ;;
7444
7445 *-*-sunos4* )
7cacdad3 7446 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
7447 PICFLAGS="-PIC"
7448 else
7449 PICFLAGS="-fPIC"
7450 fi
7451 LDFLAGS="-Wl,+s"
7452 CREATE_SHARED=sharedSunos4
7453 cat >> confdefs.h <<\EOF
7454#define BSD 1
7455EOF
7456
7457 ;;
7458
7459 *-*-freebsd* | *-*-netbsd*)
7460 PICFLAGS=-fPIC
7461 CREATE_SHARED=sharedBsd
7462 cat >> confdefs.h <<\EOF
7463#define BSD 1
7464EOF
7465
7466 ;;
7467
7468 *-*-osf* )
7469 PICFLAGS="-fPIC"
7470 CREATE_SHARED=sharedOSF
7471 ;;
7472
7473 *-*-dgux5* )
7cacdad3 7474 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
7475 PICFLAGS="-K PIC"
7476 else
7477 PICFLAGS="-fPIC"
7478 fi
7479 CREATE_SHARED=sharedDgux
7480 cat >> confdefs.h <<\EOF
7481#define SVR4 1
7482EOF
7483
7484 ;;
7485
7486 *-*-sysv5* )
7cacdad3 7487 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
7488 PICFLAGS="-K PIC"
7489 else
7490 PICFLAGS="-fPIC"
7491 fi
7492 CREATE_SHARED=sharedSysV
7493 cat >> confdefs.h <<\EOF
7494#define SVR4 1
7495EOF
7496
7497 ;;
7498
7499 *-*-aix* )
7cacdad3 7500 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
7501 PICFLAGS="-bM\:SRE"
7502 else
7503 PICFLAGS="-fPIC"
7504 fi
7505 CREATE_SHARED=sharedAIX
7506 cat >> confdefs.h <<\EOF
7507#define SYSV 1
7508EOF
7509
7510 ;;
7511
7512 *)
7513 CREATE_SHARED=
7514 PICFLAGS=
7515esac
7516
7517if test "x$GCC" = xyes; then
cd5bf2a6 7518 CFLAGS="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
bcf1fa6b
RR
7519fi
7520
7521if test "x$GXX" = xyes; then
f6c6dd8c 7522 if test "$wxUSE_MOTIF" = 1; then
06f46ad1 7523 CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
f6c6dd8c 7524 else
06f46ad1 7525 CXXFLAGS="${CXXFLAGS} -Wall -D_REENTRANT"
f6c6dd8c 7526 fi
bcf1fa6b
RR
7527fi
7528
8248314d 7529if test "$wxUSE_SHARED" != 1; then
bcf1fa6b
RR
7530 CREATE_SHARED=
7531 PICFLAGS=
7532fi
7533
7534
7535
7536
7537
7538
7539echo $OS >> system.list
7540
7541
7542trap '' 1 2 15
7543cat > confcache <<\EOF
7544# This file is a shell script that caches the results of configure
7545# tests run on this system so they can be shared between configure
7546# scripts and configure runs. It is not useful on other systems.
7547# If it contains results you don't want to keep, you may remove or edit it.
7548#
7549# By default, configure uses ./config.cache as the cache file,
7550# creating it if it does not exist already. You can give configure
7551# the --cache-file=FILE option to use a different cache file; that is
7552# what configure does when it calls configure scripts in
7553# subdirectories, so they share the cache.
7554# Giving --cache-file=/dev/null disables caching, for debugging configure.
7555# config.status only pays attention to the cache file if you give it the
7556# --recheck option to rerun configure.
7557#
7558EOF
7559# The following way of writing the cache mishandles newlines in values,
7560# but we know of no workaround that is simple, portable, and efficient.
7561# So, don't put newlines in cache variables' values.
7562# Ultrix sh set writes to stderr and can't be redirected directly,
7563# and sets the high bit in the cache file unless we assign to the vars.
7564(set) 2>&1 |
35a4dab7 7565 case `(ac_space=' '; set | grep ac_space) 2>&1` in
bcf1fa6b
RR
7566 *ac_space=\ *)
7567 # `set' does not quote correctly, so add quotes (double-quote substitution
7568 # turns \\\\ into \\, and sed turns \\ into \).
7569 sed -n \
7570 -e "s/'/'\\\\''/g" \
7571 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7572 ;;
7573 *)
7574 # `set' quotes correctly as required by POSIX, so do not add quotes.
7575 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7576 ;;
7577 esac >> confcache
7578if cmp -s $cache_file confcache; then
7579 :
7580else
7581 if test -w $cache_file; then
7582 echo "updating cache $cache_file"
7583 cat confcache > $cache_file
7584 else
7585 echo "not updating unwritable cache $cache_file"
7586 fi
7587fi
7588rm -f confcache
7589
7590trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7591
7592test "x$prefix" = xNONE && prefix=$ac_default_prefix
7593# Let make expand exec_prefix.
7594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7595
7596# Any assignment to VPATH causes Sun make to only execute
7597# the first set of double-colon rules, so remove it if not needed.
7598# If there is a colon in the path, we need to keep it.
7599if test "x$srcdir" = x.; then
7600 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7601fi
7602
7603trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7604
7605DEFS=-DHAVE_CONFIG_H
7606
7607# Without the "./", some shells look in PATH for config.status.
7608: ${CONFIG_STATUS=./config.status}
7609
7610echo creating $CONFIG_STATUS
7611rm -f $CONFIG_STATUS
7612cat > $CONFIG_STATUS <<EOF
7613#! /bin/sh
7614# Generated automatically by configure.
7615# Run this file to recreate the current configuration.
7616# This directory was configured as follows,
7617# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7618#
7619# $0 $ac_configure_args
7620#
7621# Compiler output produced by configure, useful for debugging
7622# configure, is in ./config.log if it exists.
7623
7624ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7625for ac_option
7626do
7627 case "\$ac_option" in
7628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7629 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7630 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7631 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
35a4dab7 7632 echo "$CONFIG_STATUS generated by autoconf version 2.13"
bcf1fa6b
RR
7633 exit 0 ;;
7634 -help | --help | --hel | --he | --h)
7635 echo "\$ac_cs_usage"; exit 0 ;;
7636 *) echo "\$ac_cs_usage"; exit 1 ;;
7637 esac
7638done
7639
7640ac_given_srcdir=$srcdir
7641ac_given_INSTALL="$INSTALL"
7642
f3cb6592 7643trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/gtk/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
bcf1fa6b
RR
7644EOF
7645cat >> $CONFIG_STATUS <<EOF
7646
7647# Protect against being on the right side of a sed subst in config.status.
7648sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7649 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7650$ac_vpsub
7651$extrasub
35a4dab7 7652s%@SHELL@%$SHELL%g
bcf1fa6b
RR
7653s%@CFLAGS@%$CFLAGS%g
7654s%@CPPFLAGS@%$CPPFLAGS%g
7655s%@CXXFLAGS@%$CXXFLAGS%g
35a4dab7 7656s%@FFLAGS@%$FFLAGS%g
bcf1fa6b
RR
7657s%@DEFS@%$DEFS%g
7658s%@LDFLAGS@%$LDFLAGS%g
7659s%@LIBS@%$LIBS%g
7660s%@exec_prefix@%$exec_prefix%g
7661s%@prefix@%$prefix%g
7662s%@program_transform_name@%$program_transform_name%g
7663s%@bindir@%$bindir%g
7664s%@sbindir@%$sbindir%g
7665s%@libexecdir@%$libexecdir%g
7666s%@datadir@%$datadir%g
7667s%@sysconfdir@%$sysconfdir%g
7668s%@sharedstatedir@%$sharedstatedir%g
7669s%@localstatedir@%$localstatedir%g
7670s%@libdir@%$libdir%g
7671s%@includedir@%$includedir%g
7672s%@oldincludedir@%$oldincludedir%g
7673s%@infodir@%$infodir%g
7674s%@mandir@%$mandir%g
7675s%@WXBASEDIR@%$WXBASEDIR%g
7676s%@CC@%$CC%g
7677s%@CPP@%$CPP%g
7678s%@CXX@%$CXX%g
7679s%@CXXCPP@%$CXXCPP%g
7680s%@RANLIB@%$RANLIB%g
7681s%@AR@%$AR%g
7682s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
35a4dab7 7683s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
bcf1fa6b
RR
7684s%@INSTALL_DATA@%$INSTALL_DATA%g
7685s%@LN_S@%$LN_S%g
7686s%@AWK@%$AWK%g
7687s%@X_CFLAGS@%$X_CFLAGS%g
7688s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7689s%@X_LIBS@%$X_LIBS%g
7690s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7691s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
7692s%@LIBOBJS@%$LIBOBJS%g
7693s%@YACC@%$YACC%g
7694s%@LEX@%$LEX%g
7695s%@LEXLIB@%$LEXLIB%g
7696s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
cd5bf2a6 7697s%@DL_LIBRARY@%$DL_LIBRARY%g
bcf1fa6b
RR
7698s%@host@%$host%g
7699s%@host_alias@%$host_alias%g
7700s%@host_cpu@%$host_cpu%g
7701s%@host_vendor@%$host_vendor%g
7702s%@host_os@%$host_os%g
7703s%@GTK_CONFIG@%$GTK_CONFIG%g
7704s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7705s%@GTK_LIBS@%$GTK_LIBS%g
7706s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
7707s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
7708s%@GUI_TK_LINK@%$GUI_TK_LINK%g
76153302 7709s%@WX_LINK@%$WX_LINK%g
bcf1fa6b
RR
7710s%@TOOLKIT@%$TOOLKIT%g
7711s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
7712s%@MAKEINCLUDE@%$MAKEINCLUDE%g
7713s%@WXDEBUG@%$WXDEBUG%g
7714s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
7715s%@EXTRA_LINK@%$EXTRA_LINK%g
7716s%@PROFILE@%$PROFILE%g
7717s%@OPTIMISE@%$OPTIMISE%g
ac57418f
RR
7718s%@Z_C_SRC@%$Z_C_SRC%g
7719s%@PNG_C_SRC@%$PNG_C_SRC%g
2fff5f08 7720s%@JPEG_LINK@%$JPEG_LINK%g
84b46c35 7721s%@IODBC_C_SRC@%$IODBC_C_SRC%g
bcf1fa6b 7722s%@HELP@%$HELP%g
bcf1fa6b
RR
7723s%@UNIX_THREAD@%$UNIX_THREAD%g
7724s%@THREADS_LINK@%$THREADS_LINK%g
bcf1fa6b
RR
7725s%@OS@%$OS%g
7726s%@PICFLAGS@%$PICFLAGS%g
7727s%@CREATE_SHARED@%$CREATE_SHARED%g
7728
7729CEOF
7730EOF
7731
7732cat >> $CONFIG_STATUS <<\EOF
7733
7734# Split the substitutions into bite-sized pieces for seds with
7735# small command number limits, like on Digital OSF/1 and HP-UX.
7736ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7737ac_file=1 # Number of current file.
7738ac_beg=1 # First line for current file.
7739ac_end=$ac_max_sed_cmds # Line after last line for current file.
7740ac_more_lines=:
7741ac_sed_cmds=""
7742while $ac_more_lines; do
7743 if test $ac_beg -gt 1; then
7744 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7745 else
7746 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7747 fi
7748 if test ! -s conftest.s$ac_file; then
7749 ac_more_lines=false
7750 rm -f conftest.s$ac_file
7751 else
7752 if test -z "$ac_sed_cmds"; then
7753 ac_sed_cmds="sed -f conftest.s$ac_file"
7754 else
7755 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7756 fi
7757 ac_file=`expr $ac_file + 1`
7758 ac_beg=$ac_end
7759 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7760 fi
7761done
7762if test -z "$ac_sed_cmds"; then
7763 ac_sed_cmds=cat
7764fi
7765EOF
7766
7767cat >> $CONFIG_STATUS <<EOF
7768
f3cb6592 7769CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
bcf1fa6b
RR
7770EOF
7771cat >> $CONFIG_STATUS <<\EOF
7772for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7773 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7774 case "$ac_file" in
7775 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7776 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7777 *) ac_file_in="${ac_file}.in" ;;
7778 esac
7779
7780 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7781
7782 # Remove last slash and all that follows it. Not all systems have dirname.
7783 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7784 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7785 # The file is in a subdirectory.
7786 test ! -d "$ac_dir" && mkdir "$ac_dir"
7787 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7788 # A "../" for each directory in $ac_dir_suffix.
7789 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7790 else
7791 ac_dir_suffix= ac_dots=
7792 fi
7793
7794 case "$ac_given_srcdir" in
7795 .) srcdir=.
7796 if test -z "$ac_dots"; then top_srcdir=.
7797 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7798 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7799 *) # Relative path.
7800 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7801 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7802 esac
7803
7804 case "$ac_given_INSTALL" in
7805 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7806 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7807 esac
7808
7809 echo creating "$ac_file"
7810 rm -f "$ac_file"
7811 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7812 case "$ac_file" in
7813 *Makefile*) ac_comsub="1i\\
7814# $configure_input" ;;
7815 *) ac_comsub= ;;
7816 esac
7817
7818 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7819 sed -e "$ac_comsub
7820s%@configure_input@%$configure_input%g
7821s%@srcdir@%$srcdir%g
7822s%@top_srcdir@%$top_srcdir%g
7823s%@INSTALL@%$INSTALL%g
7824" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7825fi; done
7826rm -f conftest.s*
7827
7828# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7829# NAME is the cpp macro being defined and VALUE is the value it is being given.
7830#
7831# ac_d sets the value in "#define NAME VALUE" lines.
7832ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7833ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7834ac_dC='\3'
7835ac_dD='%g'
7836# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7837ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7838ac_uB='\([ ]\)%\1#\2define\3'
7839ac_uC=' '
7840ac_uD='\4%g'
7841# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7842ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7843ac_eB='$%\1#\2define\3'
7844ac_eC=' '
7845ac_eD='%g'
7846
7847if test "${CONFIG_HEADERS+set}" != set; then
7848EOF
7849cat >> $CONFIG_STATUS <<EOF
c98f0421 7850 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
bcf1fa6b
RR
7851EOF
7852cat >> $CONFIG_STATUS <<\EOF
7853fi
7854for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7856 case "$ac_file" in
7857 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7858 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7859 *) ac_file_in="${ac_file}.in" ;;
7860 esac
7861
7862 echo creating $ac_file
7863
7864 rm -f conftest.frag conftest.in conftest.out
7865 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7866 cat $ac_file_inputs > conftest.in
7867
7868EOF
7869
7870# Transform confdefs.h into a sed script conftest.vals that substitutes
7871# the proper values into config.h.in to produce config.h. And first:
7872# Protect against being on the right side of a sed subst in config.status.
7873# Protect against being in an unquoted here document in config.status.
7874rm -f conftest.vals
7875cat > conftest.hdr <<\EOF
7876s/[\\&%]/\\&/g
7877s%[\\$`]%\\&%g
7878s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7879s%ac_d%ac_u%gp
7880s%ac_u%ac_e%gp
7881EOF
7882sed -n -f conftest.hdr confdefs.h > conftest.vals
7883rm -f conftest.hdr
7884
7885# This sed command replaces #undef with comments. This is necessary, for
7886# example, in the case of _POSIX_SOURCE, which is predefined and required
7887# on some systems where configure will not decide to define it.
7888cat >> conftest.vals <<\EOF
7889s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7890EOF
7891
7892# Break up conftest.vals because some shells have a limit on
7893# the size of here documents, and old seds have small limits too.
7894
7895rm -f conftest.tail
7896while :
7897do
7898 ac_lines=`grep -c . conftest.vals`
7899 # grep -c gives empty output for an empty file on some AIX systems.
7900 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7901 # Write a limited-size here document to conftest.frag.
7902 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7903 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7904 echo 'CEOF
7905 sed -f conftest.frag conftest.in > conftest.out
7906 rm -f conftest.in
7907 mv conftest.out conftest.in
7908' >> $CONFIG_STATUS
7909 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7910 rm -f conftest.vals
7911 mv conftest.tail conftest.vals
7912done
7913rm -f conftest.vals
7914
7915cat >> $CONFIG_STATUS <<\EOF
7916 rm -f conftest.frag conftest.h
7917 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7918 cat conftest.in >> conftest.h
7919 rm -f conftest.in
7920 if cmp -s $ac_file conftest.h 2>/dev/null; then
7921 echo "$ac_file is unchanged"
7922 rm -f conftest.h
7923 else
7924 # Remove last slash and all that follows it. Not all systems have dirname.
7925 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7926 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7927 # The file is in a subdirectory.
7928 test ! -d "$ac_dir" && mkdir "$ac_dir"
7929 fi
7930 rm -f $ac_file
7931 mv conftest.h $ac_file
7932 fi
7933fi; done
7934
7935EOF
7936cat >> $CONFIG_STATUS <<EOF
7937
7938EOF
7939cat >> $CONFIG_STATUS <<\EOF
7940./setup/general/createall
7941exit 0
7942EOF
7943chmod +x $CONFIG_STATUS
7944rm -fr confdefs* $ac_clean_files
7945test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7946
7947
7948
7949mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache
7950