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