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