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