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