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