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