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