]> git.saurik.com Git - wxWidgets.git/blame - install/gtk/configure
* Hope this is the last bug fix in the wxThread merge ...
[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
c801d85f
KB
35**--with-opengl use opengl (OpenGL or Mesa)"
36ac_help="$ac_help
37**--with-storable use storable classes"
38ac_help="$ac_help
39**--with-autotrans use gettext automatic translation"
40ac_help="$ac_help
41**--with-afmfonts use Adobe Font Metric Font table"
42ac_help="$ac_help
43**--with-PS-normalized use normalized PS fonts"
44ac_help="$ac_help
45**--with-rpc use RPC"
46ac_help="$ac_help
47**--with-wxresources use wxresources"
48ac_help="$ac_help
49**--with-prologio use prologio"
50ac_help="$ac_help
51**--with-postscript use postscript-device-context"
52ac_help="$ac_help
53b28675
RR
53**--with-wxconfig use wxconfig"
54ac_help="$ac_help
c801d85f
KB
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
82052aff 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
82052aff 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
82052aff 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
82052aff 760#line 761 "configure"
c801d85f
KB
761#include "confdefs.h"
762main(){return(0);}
763EOF
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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'
82052aff
GL
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.
82052aff 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'
82052aff
GL
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
82052aff 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
82052aff 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"
82052aff 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
82052aff 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"
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 1052#line 1053 "configure"
c801d85f
KB
1053#include "confdefs.h"
1054main(){return(0);}
1055EOF
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
82052aff 1549#line 1550 "configure"
c801d85f
KB
1550#include "confdefs.h"
1551
1552int main() {
1553${x_direct_test_function}()
1554; return 0; }
1555EOF
82052aff 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
82052aff 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
82052aff 1665#line 1666 "configure"
c801d85f
KB
1666#include "confdefs.h"
1667
1668int main() {
1669
1670; return 0; }
1671EOF
82052aff 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
82052aff 1688#line 1689 "configure"
c801d85f
KB
1689#include "confdefs.h"
1690
1691int main() {
1692
1693; return 0; }
1694EOF
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
82052aff 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
82052aff 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"
82052aff 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
7c351dad
GL
2679ac_safe=`echo "linux/joystick.h" | sed 'y%./+-%__p_%'`
2680echo $ac_n "checking for linux/joystick.h""... $ac_c" 1>&6
82052aff 2681echo "configure:2682: checking for linux/joystick.h" >&5
7c351dad
GL
2682if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2684else
2685 cat > conftest.$ac_ext <<EOF
82052aff 2686#line 2687 "configure"
7c351dad
GL
2687#include "confdefs.h"
2688#include <linux/joystick.h>
2689EOF
2690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82052aff 2691{ (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7c351dad
GL
2692ac_err=`grep -v '^ *+' conftest.out`
2693if test -z "$ac_err"; then
2694 rm -rf conftest*
2695 eval "ac_cv_header_$ac_safe=yes"
2696else
2697 echo "$ac_err" >&5
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2700 rm -rf conftest*
2701 eval "ac_cv_header_$ac_safe=no"
2702fi
2703rm -f conftest*
2704fi
2705if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 :
2708else
2709 echo "$ac_t""no" 1>&6
2710fi
2711
2712GTK_JOYSTICK=""
8d31c138 2713if test "$ac_cv_header_linux_joystick_h" = "yes"; then
7c351dad
GL
2714 GTK_JOYSTICK="gtk/joystick.cpp"
2715fi
2716
c801d85f
KB
2717
2718echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
82052aff 2719echo "configure:2720: checking for uid_t in sys/types.h" >&5
c801d85f
KB
2720if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2722else
2723 cat > conftest.$ac_ext <<EOF
82052aff 2724#line 2725 "configure"
c801d85f
KB
2725#include "confdefs.h"
2726#include <sys/types.h>
2727EOF
2728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2729 egrep "uid_t" >/dev/null 2>&1; then
2730 rm -rf conftest*
2731 ac_cv_type_uid_t=yes
2732else
2733 rm -rf conftest*
2734 ac_cv_type_uid_t=no
2735fi
2736rm -f conftest*
2737
2738fi
2739
2740echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2741if test $ac_cv_type_uid_t = no; then
2742 cat >> confdefs.h <<\EOF
2743#define uid_t int
2744EOF
2745
2746 cat >> confdefs.h <<\EOF
2747#define gid_t int
2748EOF
2749
2750fi
2751
2752echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
82052aff 2753echo "configure:2754: checking type of array argument to getgroups" >&5
c801d85f
KB
2754if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2756else
2757 if test "$cross_compiling" = yes; then
2758 ac_cv_type_getgroups=cross
2759else
2760 cat > conftest.$ac_ext <<EOF
82052aff 2761#line 2762 "configure"
c801d85f
KB
2762#include "confdefs.h"
2763
2764/* Thanks to Mike Rendell for this test. */
2765#include <sys/types.h>
2766#define NGID 256
2767#undef MAX
2768#define MAX(x, y) ((x) > (y) ? (x) : (y))
2769main()
2770{
2771 gid_t gidset[NGID];
2772 int i, n;
2773 union { gid_t gval; long lval; } val;
2774
2775 val.lval = -1;
2776 for (i = 0; i < NGID; i++)
2777 gidset[i] = val.gval;
2778 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2779 gidset);
2780 /* Exit non-zero if getgroups seems to require an array of ints. This
2781 happens when gid_t is short but getgroups modifies an array of ints. */
2782 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2783}
2784
2785EOF
82052aff 2786if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
2787then
2788 ac_cv_type_getgroups=gid_t
2789else
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -fr conftest*
2793 ac_cv_type_getgroups=int
2794fi
2795rm -fr conftest*
2796fi
2797
2798if test $ac_cv_type_getgroups = cross; then
2799 cat > conftest.$ac_ext <<EOF
82052aff 2800#line 2801 "configure"
c801d85f
KB
2801#include "confdefs.h"
2802#include <unistd.h>
2803EOF
2804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2805 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2806 rm -rf conftest*
2807 ac_cv_type_getgroups=gid_t
2808else
2809 rm -rf conftest*
2810 ac_cv_type_getgroups=int
2811fi
2812rm -f conftest*
2813
2814fi
2815fi
2816
2817echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2818cat >> confdefs.h <<EOF
2819#define GETGROUPS_T $ac_cv_type_getgroups
2820EOF
2821
2822
2823echo $ac_n "checking for mode_t""... $ac_c" 1>&6
82052aff 2824echo "configure:2825: checking for mode_t" >&5
c801d85f
KB
2825if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2827else
2828 cat > conftest.$ac_ext <<EOF
82052aff 2829#line 2830 "configure"
c801d85f
KB
2830#include "confdefs.h"
2831#include <sys/types.h>
2832#if STDC_HEADERS
2833#include <stdlib.h>
2834#include <stddef.h>
2835#endif
2836EOF
2837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2838 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2839 rm -rf conftest*
2840 ac_cv_type_mode_t=yes
2841else
2842 rm -rf conftest*
2843 ac_cv_type_mode_t=no
2844fi
2845rm -f conftest*
2846
2847fi
2848echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2849if test $ac_cv_type_mode_t = no; then
2850 cat >> confdefs.h <<\EOF
2851#define mode_t int
2852EOF
2853
2854fi
2855
2856echo $ac_n "checking for off_t""... $ac_c" 1>&6
82052aff 2857echo "configure:2858: checking for off_t" >&5
c801d85f
KB
2858if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2860else
2861 cat > conftest.$ac_ext <<EOF
82052aff 2862#line 2863 "configure"
c801d85f
KB
2863#include "confdefs.h"
2864#include <sys/types.h>
2865#if STDC_HEADERS
2866#include <stdlib.h>
2867#include <stddef.h>
2868#endif
2869EOF
2870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2871 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2872 rm -rf conftest*
2873 ac_cv_type_off_t=yes
2874else
2875 rm -rf conftest*
2876 ac_cv_type_off_t=no
2877fi
2878rm -f conftest*
2879
2880fi
2881echo "$ac_t""$ac_cv_type_off_t" 1>&6
2882if test $ac_cv_type_off_t = no; then
2883 cat >> confdefs.h <<\EOF
2884#define off_t long
2885EOF
2886
2887fi
2888
2889echo $ac_n "checking for pid_t""... $ac_c" 1>&6
82052aff 2890echo "configure:2891: checking for pid_t" >&5
c801d85f
KB
2891if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2893else
2894 cat > conftest.$ac_ext <<EOF
82052aff 2895#line 2896 "configure"
c801d85f
KB
2896#include "confdefs.h"
2897#include <sys/types.h>
2898#if STDC_HEADERS
2899#include <stdlib.h>
2900#include <stddef.h>
2901#endif
2902EOF
2903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2904 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2905 rm -rf conftest*
2906 ac_cv_type_pid_t=yes
2907else
2908 rm -rf conftest*
2909 ac_cv_type_pid_t=no
2910fi
2911rm -f conftest*
2912
2913fi
2914echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2915if test $ac_cv_type_pid_t = no; then
2916 cat >> confdefs.h <<\EOF
2917#define pid_t int
2918EOF
2919
2920fi
2921
2922echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
82052aff 2923echo "configure:2924: checking return type of signal handlers" >&5
c801d85f
KB
2924if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2926else
2927 cat > conftest.$ac_ext <<EOF
82052aff 2928#line 2929 "configure"
c801d85f
KB
2929#include "confdefs.h"
2930#include <sys/types.h>
2931#include <signal.h>
2932#ifdef signal
2933#undef signal
2934#endif
2935#ifdef __cplusplus
2936extern "C" void (*signal (int, void (*)(int)))(int);
2937#else
2938void (*signal ()) ();
2939#endif
2940
2941int main() {
2942int i;
2943; return 0; }
2944EOF
82052aff 2945if { (eval echo configure:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
2946 rm -rf conftest*
2947 ac_cv_type_signal=void
2948else
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 rm -rf conftest*
2952 ac_cv_type_signal=int
2953fi
2954rm -f conftest*
2955fi
2956
2957echo "$ac_t""$ac_cv_type_signal" 1>&6
2958cat >> confdefs.h <<EOF
2959#define RETSIGTYPE $ac_cv_type_signal
2960EOF
2961
2962
2963echo $ac_n "checking for size_t""... $ac_c" 1>&6
82052aff 2964echo "configure:2965: checking for size_t" >&5
c801d85f
KB
2965if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2967else
2968 cat > conftest.$ac_ext <<EOF
82052aff 2969#line 2970 "configure"
c801d85f
KB
2970#include "confdefs.h"
2971#include <sys/types.h>
2972#if STDC_HEADERS
2973#include <stdlib.h>
2974#include <stddef.h>
2975#endif
2976EOF
2977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2978 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2979 rm -rf conftest*
2980 ac_cv_type_size_t=yes
2981else
2982 rm -rf conftest*
2983 ac_cv_type_size_t=no
2984fi
2985rm -f conftest*
2986
2987fi
2988echo "$ac_t""$ac_cv_type_size_t" 1>&6
2989if test $ac_cv_type_size_t = no; then
2990 cat >> confdefs.h <<\EOF
2991#define size_t unsigned
2992EOF
2993
2994fi
2995
2996echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
82052aff 2997echo "configure:2998: checking for uid_t in sys/types.h" >&5
c801d85f
KB
2998if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3000else
3001 cat > conftest.$ac_ext <<EOF
82052aff 3002#line 3003 "configure"
c801d85f
KB
3003#include "confdefs.h"
3004#include <sys/types.h>
3005EOF
3006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3007 egrep "uid_t" >/dev/null 2>&1; then
3008 rm -rf conftest*
3009 ac_cv_type_uid_t=yes
3010else
3011 rm -rf conftest*
3012 ac_cv_type_uid_t=no
3013fi
3014rm -f conftest*
3015
3016fi
3017
3018echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3019if test $ac_cv_type_uid_t = no; then
3020 cat >> confdefs.h <<\EOF
3021#define uid_t int
3022EOF
3023
3024 cat >> confdefs.h <<\EOF
3025#define gid_t int
3026EOF
3027
3028fi
3029
3030
3031
3032echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
82052aff 3033echo "configure:3034: checking whether stat file-mode macros are broken" >&5
c801d85f
KB
3034if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3036else
3037 cat > conftest.$ac_ext <<EOF
82052aff 3038#line 3039 "configure"
c801d85f
KB
3039#include "confdefs.h"
3040#include <sys/types.h>
3041#include <sys/stat.h>
3042
3043#if defined(S_ISBLK) && defined(S_IFDIR)
3044# if S_ISBLK (S_IFDIR)
3045You lose.
3046# endif
3047#endif
3048
3049#if defined(S_ISBLK) && defined(S_IFCHR)
3050# if S_ISBLK (S_IFCHR)
3051You lose.
3052# endif
3053#endif
3054
3055#if defined(S_ISLNK) && defined(S_IFREG)
3056# if S_ISLNK (S_IFREG)
3057You lose.
3058# endif
3059#endif
3060
3061#if defined(S_ISSOCK) && defined(S_IFREG)
3062# if S_ISSOCK (S_IFREG)
3063You lose.
3064# endif
3065#endif
3066
3067EOF
3068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3069 egrep "You lose" >/dev/null 2>&1; then
3070 rm -rf conftest*
3071 ac_cv_header_stat_broken=yes
3072else
3073 rm -rf conftest*
3074 ac_cv_header_stat_broken=no
3075fi
3076rm -f conftest*
3077
3078fi
3079
3080echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3081if test $ac_cv_header_stat_broken = yes; then
3082 cat >> confdefs.h <<\EOF
3083#define STAT_MACROS_BROKEN 1
3084EOF
3085
3086fi
3087
3088echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
82052aff 3089echo "configure:3090: checking whether time.h and sys/time.h may both be included" >&5
c801d85f
KB
3090if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3092else
3093 cat > conftest.$ac_ext <<EOF
82052aff 3094#line 3095 "configure"
c801d85f
KB
3095#include "confdefs.h"
3096#include <sys/types.h>
3097#include <sys/time.h>
3098#include <time.h>
3099int main() {
3100struct tm *tp;
3101; return 0; }
3102EOF
82052aff 3103if { (eval echo configure:3104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3104 rm -rf conftest*
3105 ac_cv_header_time=yes
3106else
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3109 rm -rf conftest*
3110 ac_cv_header_time=no
3111fi
3112rm -f conftest*
3113fi
3114
3115echo "$ac_t""$ac_cv_header_time" 1>&6
3116if test $ac_cv_header_time = yes; then
3117 cat >> confdefs.h <<\EOF
3118#define TIME_WITH_SYS_TIME 1
3119EOF
3120
3121fi
3122
3123echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
82052aff 3124echo "configure:3125: checking for st_blksize in struct stat" >&5
c801d85f
KB
3125if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127else
3128 cat > conftest.$ac_ext <<EOF
82052aff 3129#line 3130 "configure"
c801d85f
KB
3130#include "confdefs.h"
3131#include <sys/types.h>
3132#include <sys/stat.h>
3133int main() {
3134struct stat s; s.st_blksize;
3135; return 0; }
3136EOF
82052aff 3137if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3138 rm -rf conftest*
3139 ac_cv_struct_st_blksize=yes
3140else
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3143 rm -rf conftest*
3144 ac_cv_struct_st_blksize=no
3145fi
3146rm -f conftest*
3147fi
3148
3149echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3150if test $ac_cv_struct_st_blksize = yes; then
3151 cat >> confdefs.h <<\EOF
3152#define HAVE_ST_BLKSIZE 1
3153EOF
3154
3155fi
3156
3157echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
82052aff 3158echo "configure:3159: checking for st_blocks in struct stat" >&5
c801d85f
KB
3159if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3161else
3162 cat > conftest.$ac_ext <<EOF
82052aff 3163#line 3164 "configure"
c801d85f
KB
3164#include "confdefs.h"
3165#include <sys/types.h>
3166#include <sys/stat.h>
3167int main() {
3168struct stat s; s.st_blocks;
3169; return 0; }
3170EOF
82052aff 3171if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3172 rm -rf conftest*
3173 ac_cv_struct_st_blocks=yes
3174else
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3177 rm -rf conftest*
3178 ac_cv_struct_st_blocks=no
3179fi
3180rm -f conftest*
3181fi
3182
3183echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3184if test $ac_cv_struct_st_blocks = yes; then
3185 cat >> confdefs.h <<\EOF
3186#define HAVE_ST_BLOCKS 1
3187EOF
3188
3189else
3190 LIBOBJS="$LIBOBJS fileblocks.o"
3191fi
3192
3193echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
82052aff 3194echo "configure:3195: checking for st_rdev in struct stat" >&5
c801d85f
KB
3195if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3197else
3198 cat > conftest.$ac_ext <<EOF
82052aff 3199#line 3200 "configure"
c801d85f
KB
3200#include "confdefs.h"
3201#include <sys/types.h>
3202#include <sys/stat.h>
3203int main() {
3204struct stat s; s.st_rdev;
3205; return 0; }
3206EOF
82052aff 3207if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3208 rm -rf conftest*
3209 ac_cv_struct_st_rdev=yes
3210else
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3213 rm -rf conftest*
3214 ac_cv_struct_st_rdev=no
3215fi
3216rm -f conftest*
3217fi
3218
3219echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3220if test $ac_cv_struct_st_rdev = yes; then
3221 cat >> confdefs.h <<\EOF
3222#define HAVE_ST_RDEV 1
3223EOF
3224
3225fi
3226
3227echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
82052aff 3228echo "configure:3229: checking whether struct tm is in sys/time.h or time.h" >&5
c801d85f
KB
3229if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3231else
3232 cat > conftest.$ac_ext <<EOF
82052aff 3233#line 3234 "configure"
c801d85f
KB
3234#include "confdefs.h"
3235#include <sys/types.h>
3236#include <time.h>
3237int main() {
3238struct tm *tp; tp->tm_sec;
3239; return 0; }
3240EOF
82052aff 3241if { (eval echo configure:3242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3242 rm -rf conftest*
3243 ac_cv_struct_tm=time.h
3244else
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3247 rm -rf conftest*
3248 ac_cv_struct_tm=sys/time.h
3249fi
3250rm -f conftest*
3251fi
3252
3253echo "$ac_t""$ac_cv_struct_tm" 1>&6
3254if test $ac_cv_struct_tm = sys/time.h; then
3255 cat >> confdefs.h <<\EOF
3256#define TM_IN_SYS_TIME 1
3257EOF
3258
3259fi
3260
3261echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
82052aff 3262echo "configure:3263: checking for tm_zone in struct tm" >&5
c801d85f
KB
3263if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3265else
3266 cat > conftest.$ac_ext <<EOF
82052aff 3267#line 3268 "configure"
c801d85f
KB
3268#include "confdefs.h"
3269#include <sys/types.h>
3270#include <$ac_cv_struct_tm>
3271int main() {
3272struct tm tm; tm.tm_zone;
3273; return 0; }
3274EOF
82052aff 3275if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3276 rm -rf conftest*
3277 ac_cv_struct_tm_zone=yes
3278else
3279 echo "configure: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3281 rm -rf conftest*
3282 ac_cv_struct_tm_zone=no
3283fi
3284rm -f conftest*
3285fi
3286
3287echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3288if test "$ac_cv_struct_tm_zone" = yes; then
3289 cat >> confdefs.h <<\EOF
3290#define HAVE_TM_ZONE 1
3291EOF
3292
3293else
3294 echo $ac_n "checking for tzname""... $ac_c" 1>&6
82052aff 3295echo "configure:3296: checking for tzname" >&5
c801d85f
KB
3296if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298else
3299 cat > conftest.$ac_ext <<EOF
82052aff 3300#line 3301 "configure"
c801d85f
KB
3301#include "confdefs.h"
3302#include <time.h>
3303#ifndef tzname /* For SGI. */
3304extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3305#endif
3306int main() {
3307atoi(*tzname);
3308; return 0; }
3309EOF
82052aff 3310if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c801d85f
KB
3311 rm -rf conftest*
3312 ac_cv_var_tzname=yes
3313else
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 rm -rf conftest*
3317 ac_cv_var_tzname=no
3318fi
3319rm -f conftest*
3320fi
3321
3322echo "$ac_t""$ac_cv_var_tzname" 1>&6
3323 if test $ac_cv_var_tzname = yes; then
3324 cat >> confdefs.h <<\EOF
3325#define HAVE_TZNAME 1
3326EOF
3327
3328 fi
3329fi
3330
3331
3332
3333echo $ac_n "checking for working const""... $ac_c" 1>&6
82052aff 3334echo "configure:3335: checking for working const" >&5
c801d85f
KB
3335if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3337else
3338 cat > conftest.$ac_ext <<EOF
82052aff 3339#line 3340 "configure"
c801d85f
KB
3340#include "confdefs.h"
3341
3342int main() {
3343
3344/* Ultrix mips cc rejects this. */
3345typedef int charset[2]; const charset x;
3346/* SunOS 4.1.1 cc rejects this. */
3347char const *const *ccp;
3348char **p;
3349/* NEC SVR4.0.2 mips cc rejects this. */
3350struct point {int x, y;};
3351static struct point const zero = {0,0};
3352/* AIX XL C 1.02.0.0 rejects this.
3353 It does not let you subtract one const X* pointer from another in an arm
3354 of an if-expression whose if-part is not a constant expression */
3355const char *g = "string";
3356ccp = &g + (g ? g-g : 0);
3357/* HPUX 7.0 cc rejects these. */
3358++ccp;
3359p = (char**) ccp;
3360ccp = (char const *const *) p;
3361{ /* SCO 3.2v4 cc rejects this. */
3362 char *t;
3363 char const *s = 0 ? (char *) 0 : (char const *) 0;
3364
3365 *t++ = 0;
3366}
3367{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3368 int x[] = {25, 17};
3369 const int *foo = &x[0];
3370 ++foo;
3371}
3372{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3373 typedef const int *iptr;
3374 iptr p = 0;
3375 ++p;
3376}
3377{ /* AIX XL C 1.02.0.0 rejects this saying
3378 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3379 struct s { int j; const int *ap[3]; };
3380 struct s *b; b->j = 5;
3381}
3382{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3383 const int foo = 10;
3384}
3385
3386; return 0; }
3387EOF
82052aff 3388if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3389 rm -rf conftest*
3390 ac_cv_c_const=yes
3391else
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3394 rm -rf conftest*
3395 ac_cv_c_const=no
3396fi
3397rm -f conftest*
3398fi
3399
3400echo "$ac_t""$ac_cv_c_const" 1>&6
3401if test $ac_cv_c_const = no; then
3402 cat >> confdefs.h <<\EOF
3403#define const
3404EOF
3405
3406fi
3407
3408echo $ac_n "checking for inline""... $ac_c" 1>&6
82052aff 3409echo "configure:3410: checking for inline" >&5
c801d85f
KB
3410if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3412else
3413 ac_cv_c_inline=no
3414for ac_kw in inline __inline__ __inline; do
3415 cat > conftest.$ac_ext <<EOF
82052aff 3416#line 3417 "configure"
c801d85f
KB
3417#include "confdefs.h"
3418
3419int main() {
3420} $ac_kw foo() {
3421; return 0; }
3422EOF
82052aff 3423if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3424 rm -rf conftest*
3425 ac_cv_c_inline=$ac_kw; break
3426else
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429fi
3430rm -f conftest*
3431done
3432
3433fi
3434
3435echo "$ac_t""$ac_cv_c_inline" 1>&6
3436case "$ac_cv_c_inline" in
3437 inline | yes) ;;
3438 no) cat >> confdefs.h <<\EOF
3439#define inline
3440EOF
3441 ;;
3442 *) cat >> confdefs.h <<EOF
3443#define inline $ac_cv_c_inline
3444EOF
3445 ;;
3446esac
3447
3448echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
82052aff 3449echo "configure:3450: checking whether char is unsigned" >&5
c801d85f
KB
3450if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3452else
3453 if test "$GCC" = yes; then
3454 # GCC predefines this symbol on systems where it applies.
3455cat > conftest.$ac_ext <<EOF
82052aff 3456#line 3457 "configure"
c801d85f
KB
3457#include "confdefs.h"
3458#ifdef __CHAR_UNSIGNED__
3459 yes
3460#endif
3461
3462EOF
3463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464 egrep "yes" >/dev/null 2>&1; then
3465 rm -rf conftest*
3466 ac_cv_c_char_unsigned=yes
3467else
3468 rm -rf conftest*
3469 ac_cv_c_char_unsigned=no
3470fi
3471rm -f conftest*
3472
3473else
3474if test "$cross_compiling" = yes; then
3475 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3476else
3477 cat > conftest.$ac_ext <<EOF
82052aff 3478#line 3479 "configure"
c801d85f
KB
3479#include "confdefs.h"
3480/* volatile prevents gcc2 from optimizing the test away on sparcs. */
3481#if !defined(__STDC__) || __STDC__ != 1
3482#define volatile
3483#endif
3484main() {
3485 volatile char c = 255; exit(c < 0);
3486}
3487EOF
82052aff 3488if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
3489then
3490 ac_cv_c_char_unsigned=yes
3491else
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 rm -fr conftest*
3495 ac_cv_c_char_unsigned=no
3496fi
3497rm -fr conftest*
3498fi
3499
3500fi
3501fi
3502
3503echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3504if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3505 cat >> confdefs.h <<\EOF
3506#define __CHAR_UNSIGNED__ 1
3507EOF
3508
3509fi
3510
3511echo $ac_n "checking for long double""... $ac_c" 1>&6
82052aff 3512echo "configure:3513: checking for long double" >&5
c801d85f
KB
3513if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515else
3516 if test "$GCC" = yes; then
3517 ac_cv_c_long_double=yes
3518else
3519if test "$cross_compiling" = yes; then
3520 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3521else
3522 cat > conftest.$ac_ext <<EOF
82052aff 3523#line 3524 "configure"
c801d85f
KB
3524#include "confdefs.h"
3525int main() {
3526/* The Stardent Vistra knows sizeof(long double), but does not support it. */
3527long double foo = 0.0;
3528/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3529exit(sizeof(long double) < sizeof(double)); }
3530EOF
82052aff 3531if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
3532then
3533 ac_cv_c_long_double=yes
3534else
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3537 rm -fr conftest*
3538 ac_cv_c_long_double=no
3539fi
3540rm -fr conftest*
3541fi
3542
3543fi
3544fi
3545
3546echo "$ac_t""$ac_cv_c_long_double" 1>&6
3547if test $ac_cv_c_long_double = yes; then
3548 cat >> confdefs.h <<\EOF
3549#define HAVE_LONG_DOUBLE 1
3550EOF
3551
3552fi
3553
3554
3555echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
82052aff 3556echo "configure:3557: checking whether byte ordering is bigendian" >&5
c801d85f
KB
3557if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3559else
3560 ac_cv_c_bigendian=unknown
3561# See if sys/param.h defines the BYTE_ORDER macro.
3562cat > conftest.$ac_ext <<EOF
82052aff 3563#line 3564 "configure"
c801d85f
KB
3564#include "confdefs.h"
3565#include <sys/types.h>
3566#include <sys/param.h>
3567int main() {
3568
3569#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3570 bogus endian macros
3571#endif
3572; return 0; }
3573EOF
82052aff 3574if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3575 rm -rf conftest*
3576 # It does; now see whether it defined to BIG_ENDIAN or not.
3577cat > conftest.$ac_ext <<EOF
82052aff 3578#line 3579 "configure"
c801d85f
KB
3579#include "confdefs.h"
3580#include <sys/types.h>
3581#include <sys/param.h>
3582int main() {
3583
3584#if BYTE_ORDER != BIG_ENDIAN
3585 not big endian
3586#endif
3587; return 0; }
3588EOF
82052aff 3589if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c801d85f
KB
3590 rm -rf conftest*
3591 ac_cv_c_bigendian=yes
3592else
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 rm -rf conftest*
3596 ac_cv_c_bigendian=no
3597fi
3598rm -f conftest*
3599else
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3602fi
3603rm -f conftest*
3604if test $ac_cv_c_bigendian = unknown; then
3605if test "$cross_compiling" = yes; then
3606 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3607else
3608 cat > conftest.$ac_ext <<EOF
82052aff 3609#line 3610 "configure"
c801d85f
KB
3610#include "confdefs.h"
3611main () {
3612 /* Are we little or big endian? From Harbison&Steele. */
3613 union
3614 {
3615 long l;
3616 char c[sizeof (long)];
3617 } u;
3618 u.l = 1;
3619 exit (u.c[sizeof (long) - 1] == 1);
3620}
3621EOF
82052aff 3622if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
3623then
3624 ac_cv_c_bigendian=no
3625else
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 rm -fr conftest*
3629 ac_cv_c_bigendian=yes
3630fi
3631rm -fr conftest*
3632fi
3633
3634fi
3635fi
3636
3637echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3638if test $ac_cv_c_bigendian = yes; then
3639 cat >> confdefs.h <<\EOF
3640#define WORDS_BIGENDIAN 1
3641EOF
3642
3643fi
3644
3645
3646echo $ac_n "checking size of int *""... $ac_c" 1>&6
82052aff 3647echo "configure:3648: checking size of int *" >&5
c801d85f
KB
3648if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3650else
3651 if test "$cross_compiling" = yes; then
3652 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3653else
3654 cat > conftest.$ac_ext <<EOF
82052aff 3655#line 3656 "configure"
c801d85f
KB
3656#include "confdefs.h"
3657#include <stdio.h>
3658main()
3659{
3660 FILE *f=fopen("conftestval", "w");
3661 if (!f) exit(1);
3662 fprintf(f, "%d\n", sizeof(int *));
3663 exit(0);
3664}
3665EOF
82052aff 3666if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
3667then
3668 ac_cv_sizeof_int_p=`cat conftestval`
3669else
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3672 rm -fr conftest*
3673 ac_cv_sizeof_int_p=0
3674fi
3675rm -fr conftest*
3676fi
3677
3678fi
3679echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3680cat >> confdefs.h <<EOF
3681#define SIZEOF_INT_P $ac_cv_sizeof_int_p
3682EOF
3683
3684
3685echo $ac_n "checking size of int""... $ac_c" 1>&6
82052aff 3686echo "configure:3687: checking size of int" >&5
c801d85f
KB
3687if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3689else
3690 if test "$cross_compiling" = yes; then
3691 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3692else
3693 cat > conftest.$ac_ext <<EOF
82052aff 3694#line 3695 "configure"
c801d85f
KB
3695#include "confdefs.h"
3696#include <stdio.h>
3697main()
3698{
3699 FILE *f=fopen("conftestval", "w");
3700 if (!f) exit(1);
3701 fprintf(f, "%d\n", sizeof(int));
3702 exit(0);
3703}
3704EOF
82052aff 3705if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
3706then
3707 ac_cv_sizeof_int=`cat conftestval`
3708else
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 rm -fr conftest*
3712 ac_cv_sizeof_int=0
3713fi
3714rm -fr conftest*
3715fi
3716
3717fi
3718echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3719cat >> confdefs.h <<EOF
3720#define SIZEOF_INT $ac_cv_sizeof_int
3721EOF
3722
3723
3724echo $ac_n "checking size of long""... $ac_c" 1>&6
82052aff 3725echo "configure:3726: checking size of long" >&5
c801d85f
KB
3726if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3728else
3729 if test "$cross_compiling" = yes; then
3730 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3731else
3732 cat > conftest.$ac_ext <<EOF
82052aff 3733#line 3734 "configure"
c801d85f
KB
3734#include "confdefs.h"
3735#include <stdio.h>
3736main()
3737{
3738 FILE *f=fopen("conftestval", "w");
3739 if (!f) exit(1);
3740 fprintf(f, "%d\n", sizeof(long));
3741 exit(0);
3742}
3743EOF
82052aff 3744if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
3745then
3746 ac_cv_sizeof_long=`cat conftestval`
3747else
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3750 rm -fr conftest*
3751 ac_cv_sizeof_long=0
3752fi
3753rm -fr conftest*
3754fi
3755
3756fi
3757echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3758cat >> confdefs.h <<EOF
3759#define SIZEOF_LONG $ac_cv_sizeof_long
3760EOF
3761
3762
3763
3764
82052aff
GL
3765
3766
3767UNIX_THREAD="gtk/threadno.cpp"
7c351dad
GL
3768echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3769echo "configure:3770: checking for pthread_create in -lpthread" >&5
3770ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3771if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773else
3774 ac_save_LIBS="$LIBS"
3775LIBS="-lpthread $LIBS"
3776cat > conftest.$ac_ext <<EOF
3777#line 3778 "configure"
3778#include "confdefs.h"
3779/* Override any gcc2 internal prototype to avoid an error. */
3780/* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3782char pthread_create();
3783
3784int main() {
3785pthread_create()
3786; return 0; }
3787EOF
3788if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3789 rm -rf conftest*
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3791else
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 rm -rf conftest*
3795 eval "ac_cv_lib_$ac_lib_var=no"
3796fi
3797rm -f conftest*
3798LIBS="$ac_save_LIBS"
3799
3800fi
3801if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
82052aff
GL
3803
3804 UNIX_THREAD="gtk/threadpsx.cpp"
3805 THREADS_LINK="-lpthread"
3806 cat >> confdefs.h <<\EOF
3807#define USE_THREADS 1
7c351dad 3808EOF
7c351dad 3809
82052aff 3810
7c351dad
GL
3811else
3812 echo "$ac_t""no" 1>&6
3813fi
3814
3815echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
82052aff 3816echo "configure:3817: checking for pthread_create in -lpthreads" >&5
7c351dad
GL
3817ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3820else
3821 ac_save_LIBS="$LIBS"
3822LIBS="-lpthreads $LIBS"
3823cat > conftest.$ac_ext <<EOF
82052aff 3824#line 3825 "configure"
7c351dad
GL
3825#include "confdefs.h"
3826/* Override any gcc2 internal prototype to avoid an error. */
3827/* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3829char pthread_create();
3830
3831int main() {
3832pthread_create()
3833; return 0; }
3834EOF
82052aff 3835if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7c351dad
GL
3836 rm -rf conftest*
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3838else
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3841 rm -rf conftest*
3842 eval "ac_cv_lib_$ac_lib_var=no"
3843fi
3844rm -f conftest*
3845LIBS="$ac_save_LIBS"
3846
3847fi
3848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
82052aff
GL
3850
3851 UNIX_THREAD="gtk/threadpsx.cpp"
3852 THREADS_LINK="-lpthreads"
3853 cat >> confdefs.h <<\EOF
3854#define USE_THREADS 1
3855EOF
3856
3857
7c351dad
GL
3858else
3859 echo "$ac_t""no" 1>&6
3860fi
3861
3862ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
3863echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
82052aff 3864echo "configure:3865: checking for sys/prctl.h" >&5
7c351dad
GL
3865if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867else
3868 cat > conftest.$ac_ext <<EOF
82052aff 3869#line 3870 "configure"
7c351dad
GL
3870#include "confdefs.h"
3871#include <sys/prctl.h>
3872EOF
3873ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
82052aff 3874{ (eval echo configure:3875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7c351dad
GL
3875ac_err=`grep -v '^ *+' conftest.out`
3876if test -z "$ac_err"; then
3877 rm -rf conftest*
3878 eval "ac_cv_header_$ac_safe=yes"
3879else
3880 echo "$ac_err" >&5
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 eval "ac_cv_header_$ac_safe=no"
3885fi
3886rm -f conftest*
3887fi
3888if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
82052aff
GL
3890
3891 UNIX_THREAD="gtk/threadsgi.cpp"
3892 cat >> confdefs.h <<\EOF
3893#define USE_THREADS 1
3894EOF
3895
3896
7c351dad
GL
3897else
3898 echo "$ac_t""no" 1>&6
3899fi
3900
3901
c801d85f 3902
82052aff 3903
c801d85f 3904echo $ac_n "checking for long file names""... $ac_c" 1>&6
82052aff 3905echo "configure:3906: checking for long file names" >&5
c801d85f
KB
3906if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3908else
3909 ac_cv_sys_long_file_names=yes
3910# Test for long file names in all the places we know might matter:
3911# . the current directory, where building will happen
3912# $prefix/lib where we will be installing things
3913# $exec_prefix/lib likewise
3914# eval it to expand exec_prefix.
3915# $TMPDIR if set, where it might want to write temporary files
3916# if $TMPDIR is not set:
3917# /tmp where it might want to write temporary files
3918# /var/tmp likewise
3919# /usr/tmp likewise
3920if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3921 ac_tmpdirs="$TMPDIR"
3922else
3923 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3924fi
3925for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3926 test -d $ac_dir || continue
3927 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3928 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
3929 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
3930 val=`cat $ac_dir/conftest9012345 2>/dev/null`
3931 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
3932 ac_cv_sys_long_file_names=no
3933 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
3934 break
3935 fi
3936 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
3937done
3938fi
3939
3940echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3941if test $ac_cv_sys_long_file_names = yes; then
3942 cat >> confdefs.h <<\EOF
3943#define HAVE_LONG_FILE_NAMES 1
3944EOF
3945
3946fi
3947
3948
3949
3950
3951for ac_prog in 'bison -y' byacc
3952do
3953# Extract the first word of "$ac_prog", so it can be a program name with args.
3954set dummy $ac_prog; ac_word=$2
3955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82052aff 3956echo "configure:3957: checking for $ac_word" >&5
c801d85f
KB
3957if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3959else
3960 if test -n "$YACC"; then
3961 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3962else
3963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3964 for ac_dir in $PATH; do
3965 test -z "$ac_dir" && ac_dir=.
3966 if test -f $ac_dir/$ac_word; then
3967 ac_cv_prog_YACC="$ac_prog"
3968 break
3969 fi
3970 done
3971 IFS="$ac_save_ifs"
3972fi
3973fi
3974YACC="$ac_cv_prog_YACC"
3975if test -n "$YACC"; then
3976 echo "$ac_t""$YACC" 1>&6
3977else
3978 echo "$ac_t""no" 1>&6
3979fi
3980
3981test -n "$YACC" && break
3982done
3983test -n "$YACC" || YACC="yacc"
3984
3985
3986# Extract the first word of "flex", so it can be a program name with args.
3987set dummy flex; ac_word=$2
3988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82052aff 3989echo "configure:3990: checking for $ac_word" >&5
c801d85f
KB
3990if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992else
3993 if test -n "$LEX"; then
3994 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3995else
3996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3997 for ac_dir in $PATH; do
3998 test -z "$ac_dir" && ac_dir=.
3999 if test -f $ac_dir/$ac_word; then
4000 ac_cv_prog_LEX="flex"
4001 break
4002 fi
4003 done
4004 IFS="$ac_save_ifs"
4005 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4006fi
4007fi
4008LEX="$ac_cv_prog_LEX"
4009if test -n "$LEX"; then
4010 echo "$ac_t""$LEX" 1>&6
4011else
4012 echo "$ac_t""no" 1>&6
4013fi
4014
4015if test -z "$LEXLIB"
4016then
4017 case "$LEX" in
4018 flex*) ac_lib=fl ;;
4019 *) ac_lib=l ;;
4020 esac
4021 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
82052aff 4022echo "configure:4023: checking for yywrap in -l$ac_lib" >&5
c801d85f
KB
4023ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4024if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4026else
4027 ac_save_LIBS="$LIBS"
4028LIBS="-l$ac_lib $LIBS"
4029cat > conftest.$ac_ext <<EOF
82052aff 4030#line 4031 "configure"
c801d85f
KB
4031#include "confdefs.h"
4032/* Override any gcc2 internal prototype to avoid an error. */
4033/* We use char because int might match the return type of a gcc2
4034 builtin and then its argument prototype would still apply. */
4035char yywrap();
4036
4037int main() {
4038yywrap()
4039; return 0; }
4040EOF
82052aff 4041if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c801d85f
KB
4042 rm -rf conftest*
4043 eval "ac_cv_lib_$ac_lib_var=yes"
4044else
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4047 rm -rf conftest*
4048 eval "ac_cv_lib_$ac_lib_var=no"
4049fi
4050rm -f conftest*
4051LIBS="$ac_save_LIBS"
4052
4053fi
4054if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4055 echo "$ac_t""yes" 1>&6
4056 LEXLIB="-l$ac_lib"
4057else
4058 echo "$ac_t""no" 1>&6
4059fi
4060
4061fi
4062
4063echo $ac_n "checking lex output file root""... $ac_c" 1>&6
82052aff 4064echo "configure:4065: checking lex output file root" >&5
c801d85f
KB
4065if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067else
4068 # The minimal lex program is just a single line: %%. But some broken lexes
4069# (Solaris, I think it was) want two %% lines, so accommodate them.
4070echo '%%
4071%%' | $LEX
4072if test -f lex.yy.c; then
4073 ac_cv_prog_lex_root=lex.yy
4074elif test -f lexyy.c; then
4075 ac_cv_prog_lex_root=lexyy
4076else
4077 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4078fi
4079fi
4080
4081echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4082LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4083
4084echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
82052aff 4085echo "configure:4086: checking whether yytext is a pointer" >&5
c801d85f
KB
4086if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088else
4089 # POSIX says lex can declare yytext either as a pointer or an array; the
4090# default is implementation-dependent. Figure out which it is, since
4091# not all implementations provide the %pointer and %array declarations.
4092ac_cv_prog_lex_yytext_pointer=no
4093echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4094ac_save_LIBS="$LIBS"
4095LIBS="$LIBS $LEXLIB"
4096cat > conftest.$ac_ext <<EOF
82052aff 4097#line 4098 "configure"
c801d85f
KB
4098#include "confdefs.h"
4099`cat $LEX_OUTPUT_ROOT.c`
4100int main() {
4101
4102; return 0; }
4103EOF
82052aff 4104if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c801d85f
KB
4105 rm -rf conftest*
4106 ac_cv_prog_lex_yytext_pointer=yes
4107else
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110fi
4111rm -f conftest*
4112LIBS="$ac_save_LIBS"
4113rm -f "${LEX_OUTPUT_ROOT}.c"
4114
4115fi
4116
4117echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4118if test $ac_cv_prog_lex_yytext_pointer = yes; then
4119 cat >> confdefs.h <<\EOF
4120#define YYTEXT_POINTER 1
4121EOF
4122
4123fi
4124
4125
4126
4127CHECK_INCLUDE="-I/usr/include $X_CFLAGS"
4128CHECK_LIB="-L/lib -L/usr/lib $X_LIBS"
4129
4130
4131
4132# Make sure we can run config.sub.
4133if $ac_config_sub sun4 >/dev/null 2>&1; then :
4134else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4135fi
4136
4137echo $ac_n "checking host system type""... $ac_c" 1>&6
82052aff 4138echo "configure:4139: checking host system type" >&5
c801d85f
KB
4139
4140host_alias=$host
4141case "$host_alias" in
4142NONE)
4143 case $nonopt in
4144 NONE)
4145 if host_alias=`$ac_config_guess`; then :
4146 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4147 fi ;;
4148 *) host_alias=$nonopt ;;
4149 esac ;;
4150esac
4151
4152host=`$ac_config_sub $host_alias`
4153host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4154host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4155host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4156echo "$ac_t""$host" 1>&6
4157
4158canonical=$host
4159configuration=$host_alias
4160
4161
4162USE_GTK=1
4163USE_UNIX=1
4164
4165TOOLKIT=GTK
4166TOOLKIT_DEF=__GTK__
4167
4168USE_LINUX=
4169USE_SGI=
4170USE_HPUX=
4171USE_SYSV=
4172USE_SVR4=
4173USE_AIX=
4174USE_SUN=
4175USE_SOLARIS=
4176USE_SUNOS=
4177USE_ALPHA=
4178USE_OSF=
4179USE_BSD=
4180USE_FREEBSD=
4181USE_VMS=
4182USE_ULTRIX=
4183USE_DATA_GENERAL=
4184
4185case "${canonical}" in
4186 *-hp-hpux* )
4187 USE_HPUX=1
4188 cat >> confdefs.h <<\EOF
4189#define __HPUX__ 1
4190EOF
4191
4192 ;;
4193 *-*-linux* )
4194 USE_LINUX=1
4195 cat >> confdefs.h <<\EOF
4196#define __LINUX__ 1
4197EOF
4198
4199 ;;
4200 *-*-irix5* | *-*-irix6* )
4201 USE_SGI=1
4202 USE_SVR4=1
4203 cat >> confdefs.h <<\EOF
4204#define __SGI__ 1
4205EOF
4206
4207 cat >> confdefs.h <<\EOF
4208#define __SVR4__ 1
4209EOF
4210
4211 ;;
4212 *-*-solaris2* )
4213 USE_SUN=1
4214 USE_SOLARIS=1
4215 USE_SVR4=1
4216 cat >> confdefs.h <<\EOF
4217#define __SUN__ 1
4218EOF
4219
4220 cat >> confdefs.h <<\EOF
4221#define __SOLARIS__ 1
4222EOF
4223
4224 cat >> confdefs.h <<\EOF
4225#define __SVR4__ 1
4226EOF
4227
4228 ;;
4229 *-*-sunos4* )
4230 USE_SUN=1
4231 USE_SUNOS=1
4232 USE_BSD=1
4233 cat >> confdefs.h <<\EOF
4234#define __SUN__ 1
4235EOF
4236
4237 cat >> confdefs.h <<\EOF
4238#define __SUNOS__ 1
4239EOF
4240
4241 cat >> confdefs.h <<\EOF
4242#define __BSD__ 1
4243EOF
4244
4245 ;;
4246 *-*-freebsd* | *-*-netbsd*)
4247 USE_BSD=1
4248 USE_FREEBSD=1
4249 cat >> confdefs.h <<\EOF
4250#define __FREEBSD__ 1
4251EOF
4252
4253 cat >> confdefs.h <<\EOF
4254#define __BSD__ 1
4255EOF
4256
4257 ;;
4258 *-*-osf* )
4259 USE_ALPHA=1
4260 USE_OSF=1
4261 cat >> confdefs.h <<\EOF
4262#define __ALPHA__ 1
4263EOF
4264
4265 cat >> confdefs.h <<\EOF
4266#define __OSF__ 1
4267EOF
4268
4269 ;;
4270 *-*-dgux5* )
4271 USE_ALPHA=1
4272 USE_SVR4=1
4273 cat >> confdefs.h <<\EOF
4274#define __ALPHA__ 1
4275EOF
4276
4277 cat >> confdefs.h <<\EOF
4278#define __SVR4__ 1
4279EOF
4280
4281 ;;
4282 *-*-sysv5* )
4283 USE_SYSV=1
4284 USE_SVR4=1
4285 cat >> confdefs.h <<\EOF
4286#define __SYSV__ 1
4287EOF
4288
4289 cat >> confdefs.h <<\EOF
4290#define __SVR4__ 1
4291EOF
4292
4293 ;;
4294 *-*-aix* )
4295 USE_AIX=1
4296 USE_SYSV=1
4297 USE_SVR4=1
4298 cat >> confdefs.h <<\EOF
4299#define __AIX__ 1
4300EOF
4301
4302 cat >> confdefs.h <<\EOF
4303#define __SYSV__ 1
4304EOF
4305
4306 cat >> confdefs.h <<\EOF
4307#define __SVR4__ 1
4308EOF
4309
4310 ;;
4311 *)
4312 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4313esac
4314
4315
4316
4317rm -f ${OSTYPE}.system.cache.tmp
4318touch ${OSTYPE}.system.cache.tmp
4319touch ${OSTYPE}.system.cache
4320
4321
4322DEFAULT_USE_SHARED=0
4323DEFAULT_USE_OPTIMISE=1
4324DEFAULT_USE_PROFILE=0
4325DEFAULT_USE_DEBUG_FLAG=0
4326DEFAULT_USE_DEBUG_INFO=0
4327DEFAULT_USE_MEM_TRACING=0
4328
4329DEFAULT_USE_ZLIB=1
4330DEFAULT_USE_GDK_IMLIB=1
4331DEFAULT_USE_LIBPNG=1
4332
4333DEFAULT_USE_STORABLE_CLASSES=1
4334DEFAULT_USE_AUTOTRANS=1
4335DEFAULT_USE_AFM_FOR_POSTSCRIPT=1
4336DEFAULT_WX_NORMALIZED_PS_FONTS=1
4337
4338DEFAULT_USE_IOSTREAMH=1
4339
c801d85f
KB
4340DEFAULT_USE_OPENGL=0
4341
53b28675 4342DEFAULT_USE_WXCONFIG=1
c801d85f
KB
4343DEFAULT_USE_POSTSCRIPT=1
4344DEFAULT_USE_IPC=1
4345DEFAULT_USE_RESOURCES=1
4346DEFAULT_USE_TIMEDATE=1
4347DEFAULT_USE_FRACTION=1
4348DEFAULT_USE_CONSTRAINTS=1
4349DEFAULT_USE_TOOLBAR=1
4350DEFAULT_USE_GAUGE=1
4351DEFAULT_USE_SCROLLBAR=1
4352DEFAULT_USE_DOC_VIEW_ARCHITECTURE=1
4353DEFAULT_USE_PRINTING_ARCHITECTURE=1
4354
4355DEFAULT_USE_METAFILE=0
4356DEFAULT_USE_HELP=0
4357DEFAULT_USE_CLIPBOARD=0
4358DEFAULT_USE_VLBOX=0
4359DEFAULT_USE_WXGRAPH=0
4360DEFAULT_USE_WXTREE=0
4361DEFAULT_USE_ENHANCED_DIALOG=0
4362
4363DEFAULT_USE_FORM=0
53b28675 4364DEFAULT_USE_PROLOGIO=1
c801d85f
KB
4365DEFAULT_USE_RPC=0
4366DEFAULT_USE_WX_RESOURCES=1
4367
4368
4369
4370echo $ac_n "checking "for shared"""... $ac_c" 1>&6
82052aff 4371echo "configure:4372: checking "for shared"" >&5
c801d85f
KB
4372# Check whether --with-shared or --without-shared was given.
4373if test "${with_shared+set}" = set; then
4374 withval="$with_shared"
4375 if test "x$with_shared" = xyes; then
4376 ac_cv_use_shared='USE_SHARED="1"'
4377else
4378 ac_cv_use_shared='USE_SHARED="0"'
4379fi
4380else
4381
4382 LINE=`grep "USE_SHARED" ${OSTYPE}.system.cache`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 fi
4386 ac_cv_use_shared='USE_SHARED='$DEFAULT_USE_SHARED
4387
4388fi
4389
4390eval "$ac_cv_use_shared"
4391echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
4392if test "$USE_SHARED" = 1; then
4393 echo "$ac_t""yes" 1>&6
4394else
4395 echo "$ac_t""no" 1>&6
4396fi
4397
4398
4399
4400echo $ac_n "checking "for optimise"""... $ac_c" 1>&6
82052aff 4401echo "configure:4402: checking "for optimise"" >&5
c801d85f
KB
4402# Check whether --with-optimise or --without-optimise was given.
4403if test "${with_optimise+set}" = set; then
4404 withval="$with_optimise"
4405 if test "x$with_optimise" = xyes; then
4406 ac_cv_use_optimise='USE_OPTIMISE="1"'
4407else
4408 ac_cv_use_optimise='USE_OPTIMISE="0"'
4409fi
4410else
4411
4412 LINE=`grep "USE_OPTIMISE" ${OSTYPE}.system.cache`
4413 if test "x$LINE" != x ; then
4414 eval "DEFAULT_$LINE"
4415 fi
4416 ac_cv_use_optimise='USE_OPTIMISE='$DEFAULT_USE_OPTIMISE
4417
4418fi
4419
4420eval "$ac_cv_use_optimise"
4421echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
4422if test "$USE_OPTIMISE" = 1; then
4423 echo "$ac_t""yes" 1>&6
4424else
4425 echo "$ac_t""no" 1>&6
4426fi
4427
4428
4429
4430echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6
82052aff 4431echo "configure:4432: checking "for debug_flag"" >&5
c801d85f
KB
4432# Check whether --with-debug_flag or --without-debug_flag was given.
4433if test "${with_debug_flag+set}" = set; then
4434 withval="$with_debug_flag"
4435 if test "x$with_debug_flag" = xyes; then
4436 ac_cv_use_debug_flag='USE_DEBUG_FLAG="1"'
4437else
4438 ac_cv_use_debug_flag='USE_DEBUG_FLAG="0"'
4439fi
4440else
4441
4442 LINE=`grep "USE_DEBUG_FLAG" ${OSTYPE}.system.cache`
4443 if test "x$LINE" != x ; then
4444 eval "DEFAULT_$LINE"
4445 fi
4446 ac_cv_use_debug_flag='USE_DEBUG_FLAG='$DEFAULT_USE_DEBUG_FLAG
4447
4448fi
4449
4450eval "$ac_cv_use_debug_flag"
4451echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
4452if test "$USE_DEBUG_FLAG" = 1; then
4453 echo "$ac_t""yes" 1>&6
4454else
4455 echo "$ac_t""no" 1>&6
4456fi
4457
4458
4459
4460echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6
82052aff 4461echo "configure:4462: checking "for debug_info"" >&5
c801d85f
KB
4462# Check whether --with-debug_info or --without-debug_info was given.
4463if test "${with_debug_info+set}" = set; then
4464 withval="$with_debug_info"
4465 if test "x$with_debug_info" = xyes; then
4466 ac_cv_use_debug_info='USE_DEBUG_INFO="1"'
4467else
4468 ac_cv_use_debug_info='USE_DEBUG_INFO="0"'
4469fi
4470else
4471
4472 LINE=`grep "USE_DEBUG_INFO" ${OSTYPE}.system.cache`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 fi
4476 ac_cv_use_debug_info='USE_DEBUG_INFO='$DEFAULT_USE_DEBUG_INFO
4477
4478fi
4479
4480eval "$ac_cv_use_debug_info"
4481echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
4482if test "$USE_DEBUG_INFO" = 1; then
4483 echo "$ac_t""yes" 1>&6
4484else
4485 echo "$ac_t""no" 1>&6
4486fi
4487
4488
4489
4490echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6
82052aff 4491echo "configure:4492: checking "for mem_tracing"" >&5
c801d85f
KB
4492# Check whether --with-mem_tracing or --without-mem_tracing was given.
4493if test "${with_mem_tracing+set}" = set; then
4494 withval="$with_mem_tracing"
4495 if test "x$with_mem_tracing" = xyes; then
4496 ac_cv_use_mem_tracing='USE_MEM_TRACING="1"'
4497else
4498 ac_cv_use_mem_tracing='USE_MEM_TRACING="0"'
4499fi
4500else
4501
4502 LINE=`grep "USE_MEM_TRACING" ${OSTYPE}.system.cache`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 fi
4506 ac_cv_use_mem_tracing='USE_MEM_TRACING='$DEFAULT_USE_MEM_TRACING
4507
4508fi
4509
4510eval "$ac_cv_use_mem_tracing"
4511echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
4512if test "$USE_MEM_TRACING" = 1; then
4513 echo "$ac_t""yes" 1>&6
4514else
4515 echo "$ac_t""no" 1>&6
4516fi
4517
4518
4519
4520echo $ac_n "checking "for profile"""... $ac_c" 1>&6
82052aff 4521echo "configure:4522: checking "for profile"" >&5
c801d85f
KB
4522# Check whether --with-profile or --without-profile was given.
4523if test "${with_profile+set}" = set; then
4524 withval="$with_profile"
4525 if test "x$with_profile" = xyes; then
4526 ac_cv_use_profile='USE_PROFILE="1"'
4527else
4528 ac_cv_use_profile='USE_PROFILE="0"'
4529fi
4530else
4531
4532 LINE=`grep "USE_PROFILE" ${OSTYPE}.system.cache`
4533 if test "x$LINE" != x ; then
4534 eval "DEFAULT_$LINE"
4535 fi
4536 ac_cv_use_profile='USE_PROFILE='$DEFAULT_USE_PROFILE
4537
4538fi
4539
4540eval "$ac_cv_use_profile"
4541echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
4542if test "$USE_PROFILE" = 1; then
4543 echo "$ac_t""yes" 1>&6
4544else
4545 echo "$ac_t""no" 1>&6
4546fi
4547
4548
4549
4550
4551echo $ac_n "checking "for zlib"""... $ac_c" 1>&6
82052aff 4552echo "configure:4553: checking "for zlib"" >&5
c801d85f
KB
4553# Check whether --with-zlib or --without-zlib was given.
4554if test "${with_zlib+set}" = set; then
4555 withval="$with_zlib"
4556 if test "x$with_zlib" = xyes; then
4557 ac_cv_use_zlib='USE_ZLIB="1"'
4558else
4559 ac_cv_use_zlib='USE_ZLIB="0"'
4560fi
4561else
4562
4563 LINE=`grep "USE_ZLIB" ${OSTYPE}.system.cache`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 fi
4567 ac_cv_use_zlib='USE_ZLIB='$DEFAULT_USE_ZLIB
4568
4569fi
4570
4571eval "$ac_cv_use_zlib"
4572echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
4573if test "$USE_ZLIB" = 1; then
4574 echo "$ac_t""yes" 1>&6
4575else
4576 echo "$ac_t""no" 1>&6
4577fi
4578
4579
4580
4581echo $ac_n "checking "for gdk_imlib"""... $ac_c" 1>&6
82052aff 4582echo "configure:4583: checking "for gdk_imlib"" >&5
c801d85f
KB
4583# Check whether --with-gdk_imlib or --without-gdk_imlib was given.
4584if test "${with_gdk_imlib+set}" = set; then
4585 withval="$with_gdk_imlib"
4586 if test "x$with_gdk_imlib" = xyes; then
4587 ac_cv_use_gdk_imlib='USE_GDK_IMLIB="1"'
4588else
4589 ac_cv_use_gdk_imlib='USE_GDK_IMLIB="0"'
4590fi
4591else
4592
4593 LINE=`grep "USE_GDK_IMLIB" ${OSTYPE}.system.cache`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 fi
4597 ac_cv_use_gdk_imlib='USE_GDK_IMLIB='$DEFAULT_USE_GDK_IMLIB
4598
4599fi
4600
4601eval "$ac_cv_use_gdk_imlib"
4602echo $ac_cv_use_gdk_imlib >> ${OSTYPE}.system.cache.tmp
4603if test "$USE_GDK_IMLIB" = 1; then
4604 echo "$ac_t""yes" 1>&6
4605else
4606 echo "$ac_t""no" 1>&6
4607fi
4608
4609
4610
4611echo $ac_n "checking "for libpng"""... $ac_c" 1>&6
82052aff 4612echo "configure:4613: checking "for libpng"" >&5
c801d85f
KB
4613# Check whether --with-libpng or --without-libpng was given.
4614if test "${with_libpng+set}" = set; then
4615 withval="$with_libpng"
4616 if test "x$with_libpng" = xyes; then
4617 ac_cv_use_libpng='USE_LIBPNG="1"'
4618else
4619 ac_cv_use_libpng='USE_LIBPNG="0"'
4620fi
4621else
4622
4623 LINE=`grep "USE_LIBPNG" ${OSTYPE}.system.cache`
4624 if test "x$LINE" != x ; then
4625 eval "DEFAULT_$LINE"
4626 fi
4627 ac_cv_use_libpng='USE_LIBPNG='$DEFAULT_USE_LIBPNG
4628
4629fi
4630
4631eval "$ac_cv_use_libpng"
4632echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
4633if test "$USE_LIBPNG" = 1; then
4634 echo "$ac_t""yes" 1>&6
4635else
4636 echo "$ac_t""no" 1>&6
4637fi
4638
4639
4640
c801d85f 4641echo $ac_n "checking "for opengl"""... $ac_c" 1>&6
82052aff 4642echo "configure:4643: checking "for opengl"" >&5
c801d85f
KB
4643# Check whether --with-opengl or --without-opengl was given.
4644if test "${with_opengl+set}" = set; then
4645 withval="$with_opengl"
4646 if test "x$with_opengl" = xyes; then
4647 ac_cv_use_opengl='USE_OPENGL="1"'
4648else
4649 ac_cv_use_opengl='USE_OPENGL="0"'
4650fi
4651else
4652
4653 LINE=`grep "USE_OPENGL" ${OSTYPE}.system.cache`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 fi
4657 ac_cv_use_opengl='USE_OPENGL='$DEFAULT_USE_OPENGL
4658
4659fi
4660
4661eval "$ac_cv_use_opengl"
4662echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp
4663if test "$USE_OPENGL" = 1; then
4664 echo "$ac_t""yes" 1>&6
4665else
4666 echo "$ac_t""no" 1>&6
4667fi
4668
4669
4670
4671
4672echo $ac_n "checking "for storable"""... $ac_c" 1>&6
82052aff 4673echo "configure:4674: checking "for storable"" >&5
c801d85f
KB
4674# Check whether --with-storable or --without-storable was given.
4675if test "${with_storable+set}" = set; then
4676 withval="$with_storable"
4677 if test "x$with_storable" = xyes; then
4678 ac_cv_use_storable='USE_STORABLE_CLASSES="1"'
4679else
4680 ac_cv_use_storable='USE_STORABLE_CLASSES="0"'
4681fi
4682else
4683
4684 LINE=`grep "USE_STORABLE_CLASSES" ${OSTYPE}.system.cache`
4685 if test "x$LINE" != x ; then
4686 eval "DEFAULT_$LINE"
4687 fi
4688 ac_cv_use_storable='USE_STORABLE_CLASSES='$DEFAULT_USE_STORABLE_CLASSES
4689
4690fi
4691
4692eval "$ac_cv_use_storable"
4693echo $ac_cv_use_storable >> ${OSTYPE}.system.cache.tmp
4694if test "$USE_STORABLE_CLASSES" = 1; then
4695 echo "$ac_t""yes" 1>&6
4696else
4697 echo "$ac_t""no" 1>&6
4698fi
4699
4700
4701
4702echo $ac_n "checking "for autotrans"""... $ac_c" 1>&6
82052aff 4703echo "configure:4704: checking "for autotrans"" >&5
c801d85f
KB
4704# Check whether --with-autotrans or --without-autotrans was given.
4705if test "${with_autotrans+set}" = set; then
4706 withval="$with_autotrans"
4707 if test "x$with_autotrans" = xyes; then
4708 ac_cv_use_autotrans='USE_AUTOTRANS="1"'
4709else
4710 ac_cv_use_autotrans='USE_AUTOTRANS="0"'
4711fi
4712else
4713
4714 LINE=`grep "USE_AUTOTRANS" ${OSTYPE}.system.cache`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 fi
4718 ac_cv_use_autotrans='USE_AUTOTRANS='$DEFAULT_USE_AUTOTRANS
4719
4720fi
4721
4722eval "$ac_cv_use_autotrans"
4723echo $ac_cv_use_autotrans >> ${OSTYPE}.system.cache.tmp
4724if test "$USE_AUTOTRANS" = 1; then
4725 echo "$ac_t""yes" 1>&6
4726else
4727 echo "$ac_t""no" 1>&6
4728fi
4729
4730
4731
4732echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6
82052aff 4733echo "configure:4734: checking "for afmfonts"" >&5
c801d85f
KB
4734# Check whether --with-afmfonts or --without-afmfonts was given.
4735if test "${with_afmfonts+set}" = set; then
4736 withval="$with_afmfonts"
4737 if test "x$with_afmfonts" = xyes; then
4738 ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="1"'
4739else
4740 ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="0"'
4741fi
4742else
4743
4744 LINE=`grep "USE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
4745 if test "x$LINE" != x ; then
4746 eval "DEFAULT_$LINE"
4747 fi
4748 ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT='$DEFAULT_USE_AFM_FOR_POSTSCRIPT
4749
4750fi
4751
4752eval "$ac_cv_use_afmfonts"
4753echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
4754if test "$USE_AFM_FOR_POSTSCRIPT" = 1; then
4755 echo "$ac_t""yes" 1>&6
4756else
4757 echo "$ac_t""no" 1>&6
4758fi
4759
4760
4761
4762echo $ac_n "checking "for normalized"""... $ac_c" 1>&6
82052aff 4763echo "configure:4764: checking "for normalized"" >&5
c801d85f
KB
4764# Check whether --with-normalized or --without-normalized was given.
4765if test "${with_normalized+set}" = set; then
4766 withval="$with_normalized"
4767 if test "x$with_normalized" = xyes; then
4768 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"'
4769else
4770 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"'
4771fi
4772else
4773
4774 LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
4775 if test "x$LINE" != x ; then
4776 eval "DEFAULT_$LINE"
4777 fi
4778 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
4779
4780fi
4781
4782eval "$ac_cv_use_normalized"
4783echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
4784if test "$WX_NORMALIZED_PS_FONTS" = 1; then
4785 echo "$ac_t""yes" 1>&6
4786else
4787 echo "$ac_t""no" 1>&6
4788fi
4789
4790
4791
4792echo $ac_n "checking "for RPC"""... $ac_c" 1>&6
82052aff 4793echo "configure:4794: checking "for RPC"" >&5
c801d85f
KB
4794# Check whether --with-rpc or --without-rpc was given.
4795if test "${with_rpc+set}" = set; then
4796 withval="$with_rpc"
4797 if test "x$with_rpc" = xyes; then
4798 ac_cv_use_rpc='USE_RPC="1"'
4799else
4800 ac_cv_use_rpc='USE_RPC="0"'
4801fi
4802else
4803
4804 LINE=`grep "USE_RPC" ${OSTYPE}.system.cache`
4805 if test "x$LINE" != x ; then
4806 eval "DEFAULT_$LINE"
4807 fi
4808 ac_cv_use_rpc='USE_RPC='$DEFAULT_USE_RPC
4809
4810fi
4811
4812eval "$ac_cv_use_rpc"
4813echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
4814if test "$USE_RPC" = 1; then
4815 echo "$ac_t""yes" 1>&6
4816else
4817 echo "$ac_t""no" 1>&6
4818fi
4819
4820
4821
4822echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6
82052aff 4823echo "configure:4824: checking "for wxresources"" >&5
c801d85f
KB
4824# Check whether --with-wxresources or --without-wxresources was given.
4825if test "${with_wxresources+set}" = set; then
4826 withval="$with_wxresources"
4827 if test "x$with_wxresources" = xyes; then
4828 ac_cv_use_wxresources='USE_WX_RESOURCES="1"'
4829else
4830 ac_cv_use_wxresources='USE_WX_RESOURCES="0"'
4831fi
4832else
4833
4834 LINE=`grep "USE_WX_RESOURCES" ${OSTYPE}.system.cache`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 fi
4838 ac_cv_use_wxresources='USE_WX_RESOURCES='$DEFAULT_USE_WX_RESOURCES
4839
4840fi
4841
4842eval "$ac_cv_use_wxresources"
4843echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
4844if test "$USE_WX_RESOURCES" = 1; then
4845 echo "$ac_t""yes" 1>&6
4846else
4847 echo "$ac_t""no" 1>&6
4848fi
4849
4850
4851
4852echo $ac_n "checking "for prologio"""... $ac_c" 1>&6
82052aff 4853echo "configure:4854: checking "for prologio"" >&5
c801d85f
KB
4854# Check whether --with-prologio or --without-prologio was given.
4855if test "${with_prologio+set}" = set; then
4856 withval="$with_prologio"
4857 if test "x$with_prologio" = xyes; then
4858 ac_cv_use_prologio='USE_PROLOGIO="1"'
4859else
4860 ac_cv_use_prologio='USE_PROLOGIO="0"'
4861fi
4862else
4863
4864 LINE=`grep "USE_PROLOGIO" ${OSTYPE}.system.cache`
4865 if test "x$LINE" != x ; then
4866 eval "DEFAULT_$LINE"
4867 fi
4868 ac_cv_use_prologio='USE_PROLOGIO='$DEFAULT_USE_PROLOGIO
4869
4870fi
4871
4872eval "$ac_cv_use_prologio"
4873echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
4874if test "$USE_PROLOGIO" = 1; then
4875 echo "$ac_t""yes" 1>&6
4876else
4877 echo "$ac_t""no" 1>&6
4878fi
4879
4880
4881
4882echo $ac_n "checking "for postscript"""... $ac_c" 1>&6
82052aff 4883echo "configure:4884: checking "for postscript"" >&5
c801d85f
KB
4884# Check whether --with-postscript or --without-postscript was given.
4885if test "${with_postscript+set}" = set; then
4886 withval="$with_postscript"
4887 if test "x$with_postscript" = xyes; then
4888 ac_cv_use_postscript='USE_POSTSCRIPT="1"'
4889else
4890 ac_cv_use_postscript='USE_POSTSCRIPT="0"'
4891fi
4892else
4893
4894 LINE=`grep "USE_POSTSCRIPT" ${OSTYPE}.system.cache`
4895 if test "x$LINE" != x ; then
4896 eval "DEFAULT_$LINE"
4897 fi
4898 ac_cv_use_postscript='USE_POSTSCRIPT='$DEFAULT_USE_POSTSCRIPT
4899
4900fi
4901
4902eval "$ac_cv_use_postscript"
4903echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
4904if test "$USE_POSTSCRIPT" = 1; then
4905 echo "$ac_t""yes" 1>&6
4906else
4907 echo "$ac_t""no" 1>&6
4908fi
4909
4910
4911
53b28675 4912echo $ac_n "checking "for wxconfig"""... $ac_c" 1>&6
82052aff 4913echo "configure:4914: checking "for wxconfig"" >&5
53b28675
RR
4914# Check whether --with-wxconfig or --without-wxconfig was given.
4915if test "${with_wxconfig+set}" = set; then
4916 withval="$with_wxconfig"
4917 if test "x$with_wxconfig" = xyes; then
4918 ac_cv_use_wxconfig='USE_WXCONFIG="1"'
4919else
4920 ac_cv_use_wxconfig='USE_WXCONFIG="0"'
4921fi
4922else
4923
4924 LINE=`grep "USE_WXCONFIG" ${OSTYPE}.system.cache`
4925 if test "x$LINE" != x ; then
4926 eval "DEFAULT_$LINE"
4927 fi
4928 ac_cv_use_wxconfig='USE_WXCONFIG='$DEFAULT_USE_WXCONFIG
4929
4930fi
4931
4932eval "$ac_cv_use_wxconfig"
4933echo $ac_cv_use_wxconfig >> ${OSTYPE}.system.cache.tmp
4934if test "$USE_WXCONFIG" = 1; then
4935 echo "$ac_t""yes" 1>&6
4936else
4937 echo "$ac_t""no" 1>&6
4938fi
4939
4940
4941
c801d85f 4942echo $ac_n "checking "for metafile"""... $ac_c" 1>&6
82052aff 4943echo "configure:4944: checking "for metafile"" >&5
c801d85f
KB
4944# Check whether --with-metafile or --without-metafile was given.
4945if test "${with_metafile+set}" = set; then
4946 withval="$with_metafile"
4947 if test "x$with_metafile" = xyes; then
4948 ac_cv_use_metafile='USE_METAFILE="1"'
4949else
4950 ac_cv_use_metafile='USE_METAFILE="0"'
4951fi
4952else
4953
4954 LINE=`grep "USE_METAFILE" ${OSTYPE}.system.cache`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 fi
4958 ac_cv_use_metafile='USE_METAFILE='$DEFAULT_USE_METAFILE
4959
4960fi
4961
4962eval "$ac_cv_use_metafile"
4963echo $ac_cv_use_metafile >> ${OSTYPE}.system.cache.tmp
4964if test "$USE_METAFILE" = 1; then
4965 echo "$ac_t""yes" 1>&6
4966else
4967 echo "$ac_t""no" 1>&6
4968fi
4969
4970
4971
4972echo $ac_n "checking "for form"""... $ac_c" 1>&6
82052aff 4973echo "configure:4974: checking "for form"" >&5
c801d85f
KB
4974# Check whether --with-form or --without-form was given.
4975if test "${with_form+set}" = set; then
4976 withval="$with_form"
4977 if test "x$with_form" = xyes; then
4978 ac_cv_use_form='USE_FORM="1"'
4979else
4980 ac_cv_use_form='USE_FORM="0"'
4981fi
4982else
4983
4984 LINE=`grep "USE_FORM" ${OSTYPE}.system.cache`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 fi
4988 ac_cv_use_form='USE_FORM='$DEFAULT_USE_FORM
4989
4990fi
4991
4992eval "$ac_cv_use_form"
4993echo $ac_cv_use_form >> ${OSTYPE}.system.cache.tmp
4994if test "$USE_FORM" = 1; then
4995 echo "$ac_t""yes" 1>&6
4996else
4997 echo "$ac_t""no" 1>&6
4998fi
4999
5000
5001
5002echo $ac_n "checking "for help"""... $ac_c" 1>&6
82052aff 5003echo "configure:5004: checking "for help"" >&5
c801d85f
KB
5004# Check whether --with-help or --without-help was given.
5005if test "${with_help+set}" = set; then
5006 withval="$with_help"
5007 if test "x$with_help" = xyes; then
5008 ac_cv_use_help='USE_HELP="1"'
5009else
5010 ac_cv_use_help='USE_HELP="0"'
5011fi
5012else
5013
5014 LINE=`grep "USE_HELP" ${OSTYPE}.system.cache`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 fi
5018 ac_cv_use_help='USE_HELP='$DEFAULT_USE_HELP
5019
5020fi
5021
5022eval "$ac_cv_use_help"
5023echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
5024if test "$USE_HELP" = 1; then
5025 echo "$ac_t""yes" 1>&6
5026else
5027 echo "$ac_t""no" 1>&6
5028fi
5029
5030
5031
5032echo $ac_n "checking "for IPC"""... $ac_c" 1>&6
82052aff 5033echo "configure:5034: checking "for IPC"" >&5
c801d85f
KB
5034# Check whether --with-ipc or --without-ipc was given.
5035if test "${with_ipc+set}" = set; then
5036 withval="$with_ipc"
5037 if test "x$with_ipc" = xyes; then
5038 ac_cv_use_ipc='USE_IPC="1"'
5039else
5040 ac_cv_use_ipc='USE_IPC="0"'
5041fi
5042else
5043
5044 LINE=`grep "USE_IPC" ${OSTYPE}.system.cache`
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 fi
5048 ac_cv_use_ipc='USE_IPC='$DEFAULT_USE_IPC
5049
5050fi
5051
5052eval "$ac_cv_use_ipc"
5053echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
5054if test "$USE_IPC" = 1; then
5055 echo "$ac_t""yes" 1>&6
5056else
5057 echo "$ac_t""no" 1>&6
5058fi
5059
5060
5061
5062echo $ac_n "checking "for enhanced dialog"""... $ac_c" 1>&6
82052aff 5063echo "configure:5064: checking "for enhanced dialog"" >&5
c801d85f
KB
5064# Check whether --with-enhanceddialog or --without-enhanceddialog was given.
5065if test "${with_enhanceddialog+set}" = set; then
5066 withval="$with_enhanceddialog"
5067 if test "x$with_enhanceddialog" = xyes; then
5068 ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="1"'
5069else
5070 ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="0"'
5071fi
5072else
5073
5074 LINE=`grep "USE_ENHANCED_DIALOG" ${OSTYPE}.system.cache`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 fi
5078 ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG='$DEFAULT_USE_ENHANCED_DIALOG
5079
5080fi
5081
5082eval "$ac_cv_use_enhanceddialog"
5083echo $ac_cv_use_enhanceddialog >> ${OSTYPE}.system.cache.tmp
5084if test "$USE_ENHANCED_DIALOG" = 1; then
5085 echo "$ac_t""yes" 1>&6
5086else
5087 echo "$ac_t""no" 1>&6
5088fi
5089
5090
5091
5092echo $ac_n "checking "for resources"""... $ac_c" 1>&6
82052aff 5093echo "configure:5094: checking "for resources"" >&5
c801d85f
KB
5094# Check whether --with-resources or --without-resources was given.
5095if test "${with_resources+set}" = set; then
5096 withval="$with_resources"
5097 if test "x$with_resources" = xyes; then
5098 ac_cv_use_resources='USE_RESOURCES="1"'
5099else
5100 ac_cv_use_resources='USE_RESOURCES="0"'
5101fi
5102else
5103
5104 LINE=`grep "USE_RESOURCES" ${OSTYPE}.system.cache`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 fi
5108 ac_cv_use_resources='USE_RESOURCES='$DEFAULT_USE_RESOURCES
5109
5110fi
5111
5112eval "$ac_cv_use_resources"
5113echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
5114if test "$USE_RESOURCES" = 1; then
5115 echo "$ac_t""yes" 1>&6
5116else
5117 echo "$ac_t""no" 1>&6
5118fi
5119
5120
5121
5122echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6
82052aff 5123echo "configure:5124: checking "for clipboard"" >&5
c801d85f
KB
5124# Check whether --with-clipboard or --without-clipboard was given.
5125if test "${with_clipboard+set}" = set; then
5126 withval="$with_clipboard"
5127 if test "x$with_clipboard" = xyes; then
5128 ac_cv_use_clipboard='USE_CLIPBOARD="1"'
5129else
5130 ac_cv_use_clipboard='USE_CLIPBOARD="0"'
5131fi
5132else
5133
5134 LINE=`grep "USE_CLIPBOARD" ${OSTYPE}.system.cache`
5135 if test "x$LINE" != x ; then
5136 eval "DEFAULT_$LINE"
5137 fi
5138 ac_cv_use_clipboard='USE_CLIPBOARD='$DEFAULT_USE_CLIPBOARD
5139
5140fi
5141
5142eval "$ac_cv_use_clipboard"
5143echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
5144if test "$USE_CLIPBOARD" = 1; then
5145 echo "$ac_t""yes" 1>&6
5146else
5147 echo "$ac_t""no" 1>&6
5148fi
5149
5150
5151
5152echo $ac_n "checking "for timedate"""... $ac_c" 1>&6
82052aff 5153echo "configure:5154: checking "for timedate"" >&5
c801d85f
KB
5154# Check whether --with-timedate or --without-timedate was given.
5155if test "${with_timedate+set}" = set; then
5156 withval="$with_timedate"
5157 if test "x$with_timedate" = xyes; then
5158 ac_cv_use_timedate='USE_TIMEDATE="1"'
5159else
5160 ac_cv_use_timedate='USE_TIMEDATE="0"'
5161fi
5162else
5163
5164 LINE=`grep "USE_TIMEDATE" ${OSTYPE}.system.cache`
5165 if test "x$LINE" != x ; then
5166 eval "DEFAULT_$LINE"
5167 fi
5168 ac_cv_use_timedate='USE_TIMEDATE='$DEFAULT_USE_TIMEDATE
5169
5170fi
5171
5172eval "$ac_cv_use_timedate"
5173echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5174if test "$USE_TIMEDATE" = 1; then
5175 echo "$ac_t""yes" 1>&6
5176else
5177 echo "$ac_t""no" 1>&6
5178fi
5179
5180
5181
5182echo $ac_n "checking "for fraction"""... $ac_c" 1>&6
82052aff 5183echo "configure:5184: checking "for fraction"" >&5
c801d85f
KB
5184# Check whether --with-fraction or --without-fraction was given.
5185if test "${with_fraction+set}" = set; then
5186 withval="$with_fraction"
5187 if test "x$with_fraction" = xyes; then
5188 ac_cv_use_fraction='USE_FRACTION="1"'
5189else
5190 ac_cv_use_fraction='USE_FRACTION="0"'
5191fi
5192else
5193
5194 LINE=`grep "USE_FRACTION" ${OSTYPE}.system.cache`
5195 if test "x$LINE" != x ; then
5196 eval "DEFAULT_$LINE"
5197 fi
5198 ac_cv_use_fraction='USE_FRACTION='$DEFAULT_USE_FRACTION
5199
5200fi
5201
5202eval "$ac_cv_use_fraction"
5203echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp
5204if test "$USE_FRACTION" = 1; then
5205 echo "$ac_t""yes" 1>&6
5206else
5207 echo "$ac_t""no" 1>&6
5208fi
5209
5210
5211
5212echo $ac_n "checking "for constrains"""... $ac_c" 1>&6
82052aff 5213echo "configure:5214: checking "for constrains"" >&5
c801d85f
KB
5214# Check whether --with-constraints or --without-constraints was given.
5215if test "${with_constraints+set}" = set; then
5216 withval="$with_constraints"
5217 if test "x$with_constraints" = xyes; then
5218 ac_cv_use_constraints='USE_CONSTRAINTS="1"'
5219else
5220 ac_cv_use_constraints='USE_CONSTRAINTS="0"'
5221fi
5222else
5223
5224 LINE=`grep "USE_CONSTRAINTS" ${OSTYPE}.system.cache`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 fi
5228 ac_cv_use_constraints='USE_CONSTRAINTS='$DEFAULT_USE_CONSTRAINTS
5229
5230fi
5231
5232eval "$ac_cv_use_constraints"
5233echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp
5234if test "$USE_CONSTRAINTS" = 1; then
5235 echo "$ac_t""yes" 1>&6
5236else
5237 echo "$ac_t""no" 1>&6
5238fi
5239
5240
5241
5242echo $ac_n "checking "for toolbar"""... $ac_c" 1>&6
82052aff 5243echo "configure:5244: checking "for toolbar"" >&5
c801d85f
KB
5244# Check whether --with-toolbar or --without-toolbar was given.
5245if test "${with_toolbar+set}" = set; then
5246 withval="$with_toolbar"
5247 if test "x$with_toolbar" = xyes; then
5248 ac_cv_use_toolbar='USE_TOOLBAR="1"'
5249else
5250 ac_cv_use_toolbar='USE_TOOLBAR="0"'
5251fi
5252else
5253
5254 LINE=`grep "USE_TOOLBAR" ${OSTYPE}.system.cache`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 fi
5258 ac_cv_use_toolbar='USE_TOOLBAR='$DEFAULT_USE_TOOLBAR
5259
5260fi
5261
5262eval "$ac_cv_use_toolbar"
5263echo $ac_cv_use_toolbar >> ${OSTYPE}.system.cache.tmp
5264if test "$USE_TOOLBAR" = 1; then
5265 echo "$ac_t""yes" 1>&6
5266else
5267 echo "$ac_t""no" 1>&6
5268fi
5269
5270
5271
5272echo $ac_n "checking "for gauge"""... $ac_c" 1>&6
82052aff 5273echo "configure:5274: checking "for gauge"" >&5
c801d85f
KB
5274# Check whether --with-gauge or --without-gauge was given.
5275if test "${with_gauge+set}" = set; then
5276 withval="$with_gauge"
5277 if test "x$with_gauge" = xyes; then
5278 ac_cv_use_gauge='USE_GAUGE="1"'
5279else
5280 ac_cv_use_gauge='USE_GAUGE="0"'
5281fi
5282else
5283
5284 LINE=`grep "USE_GAUGE" ${OSTYPE}.system.cache`
5285 if test "x$LINE" != x ; then
5286 eval "DEFAULT_$LINE"
5287 fi
5288 ac_cv_use_gauge='USE_GAUGE='$DEFAULT_USE_GAUGE
5289
5290fi
5291
5292eval "$ac_cv_use_gauge"
5293echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp
5294if test "$USE_GAUGE" = 1; then
5295 echo "$ac_t""yes" 1>&6
5296else
5297 echo "$ac_t""no" 1>&6
5298fi
5299
5300
5301
5302echo $ac_n "checking "for vllist"""... $ac_c" 1>&6
82052aff 5303echo "configure:5304: checking "for vllist"" >&5
c801d85f
KB
5304# Check whether --with-vllist or --without-vllist was given.
5305if test "${with_vllist+set}" = set; then
5306 withval="$with_vllist"
5307 if test "x$with_vllist" = xyes; then
5308 ac_cv_use_vllist='USE_VLBOX="1"'
5309else
5310 ac_cv_use_vllist='USE_VLBOX="0"'
5311fi
5312else
5313
5314 LINE=`grep "USE_VLBOX" ${OSTYPE}.system.cache`
5315 if test "x$LINE" != x ; then
5316 eval "DEFAULT_$LINE"
5317 fi
5318 ac_cv_use_vllist='USE_VLBOX='$DEFAULT_USE_VLBOX
5319
5320fi
5321
5322eval "$ac_cv_use_vllist"
5323echo $ac_cv_use_vllist >> ${OSTYPE}.system.cache.tmp
5324if test "$USE_VLBOX" = 1; then
5325 echo "$ac_t""yes" 1>&6
5326else
5327 echo "$ac_t""no" 1>&6
5328fi
5329
5330
5331
5332echo $ac_n "checking "for scrollbar"""... $ac_c" 1>&6
82052aff 5333echo "configure:5334: checking "for scrollbar"" >&5
c801d85f
KB
5334# Check whether --with-scrollbar or --without-scrollbar was given.
5335if test "${with_scrollbar+set}" = set; then
5336 withval="$with_scrollbar"
5337 if test "x$with_scrollbar" = xyes; then
5338 ac_cv_use_scrollbar='USE_SCROLLBAR="1"'
5339else
5340 ac_cv_use_scrollbar='USE_SCROLLBAR="0"'
5341fi
5342else
5343
5344 LINE=`grep "USE_SCROLLBAR" ${OSTYPE}.system.cache`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 fi
5348 ac_cv_use_scrollbar='USE_SCROLLBAR='$DEFAULT_USE_SCROLLBAR
5349
5350fi
5351
5352eval "$ac_cv_use_scrollbar"
5353echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp
5354if test "$USE_SCROLLBAR" = 1; then
5355 echo "$ac_t""yes" 1>&6
5356else
5357 echo "$ac_t""no" 1>&6
5358fi
5359
5360
5361
5362echo $ac_n "checking "for docview"""... $ac_c" 1>&6
82052aff 5363echo "configure:5364: checking "for docview"" >&5
c801d85f
KB
5364# Check whether --with-docview or --without-docview was given.
5365if test "${with_docview+set}" = set; then
5366 withval="$with_docview"
5367 if test "x$with_docview" = xyes; then
5368 ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="1"'
5369else
5370 ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="0"'
5371fi
5372else
5373
5374 LINE=`grep "USE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 fi
5378 ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE='$DEFAULT_USE_DOC_VIEW_ARCHITECTURE
5379
5380fi
5381
5382eval "$ac_cv_use_docview"
5383echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
5384if test "$USE_DOC_VIEW_ARCHITECTURE" = 1; then
5385 echo "$ac_t""yes" 1>&6
5386else
5387 echo "$ac_t""no" 1>&6
5388fi
5389
5390
5391
5392echo $ac_n "checking "for printarch"""... $ac_c" 1>&6
82052aff 5393echo "configure:5394: checking "for printarch"" >&5
c801d85f
KB
5394# Check whether --with-printarch or --without-printarch was given.
5395if test "${with_printarch+set}" = set; then
5396 withval="$with_printarch"
5397 if test "x$with_printarch" = xyes; then
5398 ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="1"'
5399else
5400 ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="0"'
5401fi
5402else
5403
5404 LINE=`grep "USE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 fi
5408 ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE='$DEFAULT_USE_PRINTING_ARCHITECTURE
5409
5410fi
5411
5412eval "$ac_cv_use_printarch"
5413echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
5414if test "$USE_PRINTING_ARCHITECTURE" = 1; then
5415 echo "$ac_t""yes" 1>&6
5416else
5417 echo "$ac_t""no" 1>&6
5418fi
5419
5420
5421
5422echo $ac_n "checking "for typetree"""... $ac_c" 1>&6
82052aff 5423echo "configure:5424: checking "for typetree"" >&5
c801d85f
KB
5424# Check whether --with-typetree or --without-typetree was given.
5425if test "${with_typetree+set}" = set; then
5426 withval="$with_typetree"
5427 if test "x$with_typetree" = xyes; then
5428 ac_cv_use_typetree='USE_TYPETREE="1"'
5429else
5430 ac_cv_use_typetree='USE_TYPETREE="0"'
5431fi
5432else
5433
5434 LINE=`grep "USE_TYPETREE" ${OSTYPE}.system.cache`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 fi
5438 ac_cv_use_typetree='USE_TYPETREE='$DEFAULT_USE_TYPETREE
5439
5440fi
5441
5442eval "$ac_cv_use_typetree"
5443echo $ac_cv_use_typetree >> ${OSTYPE}.system.cache.tmp
5444if test "$USE_TYPETREE" = 1; then
5445 echo "$ac_t""yes" 1>&6
5446else
5447 echo "$ac_t""no" 1>&6
5448fi
5449
5450
5451
5452echo $ac_n "checking "for wxgraph"""... $ac_c" 1>&6
82052aff 5453echo "configure:5454: checking "for wxgraph"" >&5
c801d85f
KB
5454# Check whether --with-wxgraph or --without-wxgraph was given.
5455if test "${with_wxgraph+set}" = set; then
5456 withval="$with_wxgraph"
5457 if test "x$with_wxgraph" = xyes; then
5458 ac_cv_use_wxgraph='USE_WXGRAPH="1"'
5459else
5460 ac_cv_use_wxgraph='USE_WXGRAPH="0"'
5461fi
5462else
5463
5464 LINE=`grep "USE_WXGRAPH" ${OSTYPE}.system.cache`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 fi
5468 ac_cv_use_wxgraph='USE_WXGRAPH='$DEFAULT_USE_WXGRAPH
5469
5470fi
5471
5472eval "$ac_cv_use_wxgraph"
5473echo $ac_cv_use_wxgraph >> ${OSTYPE}.system.cache.tmp
5474if test "$USE_WXGRAPH" = 1; then
5475 echo "$ac_t""yes" 1>&6
5476else
5477 echo "$ac_t""no" 1>&6
5478fi
5479
5480
5481
5482echo $ac_n "checking "for wxtree"""... $ac_c" 1>&6
82052aff 5483echo "configure:5484: checking "for wxtree"" >&5
c801d85f
KB
5484# Check whether --with-wxtree or --without-wxtree was given.
5485if test "${with_wxtree+set}" = set; then
5486 withval="$with_wxtree"
5487 if test "x$with_wxtree" = xyes; then
5488 ac_cv_use_wxtree='USE_WXTREE="1"'
5489else
5490 ac_cv_use_wxtree='USE_WXTREE="0"'
5491fi
5492else
5493
5494 LINE=`grep "USE_WXTREE" ${OSTYPE}.system.cache`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 fi
5498 ac_cv_use_wxtree='USE_WXTREE='$DEFAULT_USE_WXTREE
5499
5500fi
5501
5502eval "$ac_cv_use_wxtree"
5503echo $ac_cv_use_wxtree >> ${OSTYPE}.system.cache.tmp
5504if test "$USE_WXTREE" = 1; then
5505 echo "$ac_t""yes" 1>&6
5506else
5507 echo "$ac_t""no" 1>&6
5508fi
5509
5510
5511
5512
5513ZLIB=NONE
5514if test "$USE_ZLIB" = 1 ; then
5515 ZLIB="ZLIB"
5516fi
5517
5518GDK_IMLIB=NONE
5519if test "$USE_GDK_IMLIB" = 1 ; then
5520 GDK_IMLIB="GDK_IMLIB"
5521fi
5522
5523LIBPNG=NONE
5524if test "$USE_LIBPNG" = 1 ; then
5525 LIBPNG="LIBPNG"
5526fi
5527
c801d85f
KB
5528
5529STORABLE=NONE
5530if test "$USE_STORABLE_CLASSES" = 1 ; then
5531 STORABLE="STORABLE"
5532 cat >> confdefs.h <<EOF
5533#define USE_STORABLE_CLASSES $USE_STORABLE_CLASSES
5534EOF
5535
5536fi
5537
5538AUTOTRANS=NONE
5539if test "$USE_AUTOTRANS" = 1 ; then
5540 AUTOTRANS="AUTOTRANS"
5541 cat >> confdefs.h <<EOF
5542#define USE_AUTOTRANS $USE_AUTOTRANS
5543EOF
5544
5545fi
5546
5547DEBUG=
5548if test "$USE_DEBUG_INFO" = 1 ; then
5549 DEBUG="-g"
5550fi
5551
5552
5553if test "$USE_DEBUG_FLAG" = 1 ; then
5554 cat >> confdefs.h <<EOF
5555#define DEBUG $USE_DEBUG_FLAG
5556EOF
5557
5558fi
5559
5560if test "$USE_MEM_TRACING" = 1 ; then
5561 cat >> confdefs.h <<EOF
5562#define USE_MEMORY_TRACING $USE_MEM_TRACING
5563EOF
5564
5565 cat >> confdefs.h <<EOF
5566#define USE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING
5567EOF
5568
5569fi
5570
5571PROFILE=
5572if test "$USE_PROFILE" = 1 ; then
5573 PROFILE="-pg"
5574fi
5575
5576
5577CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
5578CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
5579if test "$USE_OPTIMISE" = 0 ; then
5580 OPTIMISE=
5581else
5582 if test "$GCC" = yes ; then
5583 OPTIMISE="-O2"
5584 case "${canonical}" in
5585 i586-*-*|i686-*-* )
5586 OPTIMISE="${OPTIMISE} "
5587 ;;
5588 esac
5589 else
5590 OPTIMISE="-O"
5591 fi
5592fi
5593
5594
5595USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH
5596cat >> confdefs.h <<EOF
5597#define USE_IOSTREAMH $USE_IOSTREAMH
5598EOF
5599
5600
5601RPC=NONE
5602if test "$USE_RPC" = 1 ; then
5603 RPC="RPC"
5604 cat >> confdefs.h <<EOF
5605#define USE_RPC $USE_RPC
5606EOF
5607
5608fi
5609
5610
5611WXRESOURCES=NONE
5612if test "$USE_WX_RESOURCES" = 1 ; then
5613 WXRESOURCES="WXRESOURCES"
5614 cat >> confdefs.h <<EOF
5615#define USE_WX_RESOURCES $USE_WX_RESOURCES
5616EOF
5617
5618fi
5619
5620
5621PROLOGIO=NONE
5622PROLOGIOSRC=NONE
5623if test "$USE_PROLOGIO" = 1 ; then
5624 PROLOGIO="PROLOGIO"
5625 PROLOGIOSRC="PROLOGIOSRC"
5626 cat >> confdefs.h <<EOF
5627#define USE_PROLOGIO 1
5628EOF
5629
5630fi
5631
5632
5633
5634POSTSCRIPTDC=NONE
5635if test "$USE_POSTSCRIPT" = 1 ; then
5636 POSTSCRIPTDC="POSTSCRIPTDC"
5637 cat >> confdefs.h <<EOF
5638#define USE_POSTSCRIPT 1
5639EOF
5640
5641fi
5642
5643
53b28675
RR
5644if test "$USE_WXCONFIG" = 1 ; then
5645 cat >> confdefs.h <<EOF
5646#define USE_WXCONFIG $USE_WXCONFIG
5647EOF
5648
5649fi
5650
c801d85f
KB
5651METAFILE=NONE
5652if test "$USE_METAFILE" = 1 ; then
5653 METAFILE="METAFILE"
5654 cat >> confdefs.h <<EOF
5655#define USE_METAFILE $USE_METAFILE
5656EOF
5657
5658fi
5659
5660
5661FORM=NONE
5662if test "$USE_FORM" = 1 ; then
5663 FORM="FORM"
5664 cat >> confdefs.h <<EOF
5665#define USE_FORM $USE_FORM
5666EOF
5667
5668fi
5669
5670
5671HELP=NONE
5672if test "$USE_HELP" = 1 ; then
5673 HELP="HELP"
5674 cat >> confdefs.h <<EOF
5675#define USE_HELP $USE_HELP
5676EOF
5677
5678fi
5679
5680
5681IPC=NONE
5682if test "$USE_IPC" = 1 ; then
5683 IPC="IPC"
5684 cat >> confdefs.h <<EOF
5685#define USE_IPC 1
5686EOF
5687
5688fi
5689
5690
5691ENHDIALOGBOX=NONE
5692if test "$USE_ENHANCED_DIALOG" = 1 ; then
5693 ENHDIALOGBOX="ENHDIALOGBOX"
5694 cat >> confdefs.h <<EOF
5695#define USE_ENHANCED_DIALOG $USE_ENHANCED_DIALOG
5696EOF
5697
5698fi
5699
5700
5701XRESOURCES=NONE
5702if test "$USE_RESOURCES" = 1 ; then
5703 XRESOURCES="XRESOURCES"
5704 cat >> confdefs.h <<EOF
5705#define USE_RESOURCES $USE_RESOURCES
5706EOF
5707
5708fi
5709
5710
5711CLIPBOARD=NONE
5712if test "$USE_CLIPBOARD" = 1 ; then
5713 CLIPBOARD="CLIPBOARD"
5714 cat >> confdefs.h <<EOF
5715#define USE_CLIPBOARD $USE_CLIPBOARD
5716EOF
5717
5718fi
5719
5720
5721CONSTRAINTS=NONE
5722if test "$USE_CONSTRAINTS" = 1 ; then
5723 CONSTRAINTS="CONSTRAINTS"
5724 cat >> confdefs.h <<EOF
5725#define USE_CONSTRAINTS $USE_CONSTRAINTS
5726EOF
5727
5728fi
5729
5730
5731TIMEDATE=NONE
5732if test "$USE_TIMEDATE" = 1 ; then
5733 TIMEDATE="TIMEDATE"
5734 cat >> confdefs.h <<EOF
5735#define USE_TIMEDATE $USE_TIMEDATE
5736EOF
5737
5738fi
5739
5740
5741FRACTION=NONE
5742if test "$USE_FRACTION" = 1 ; then
5743 FRACTION="FRACTION"
5744 cat >> confdefs.h <<EOF
5745#define USE_FRACTION $USE_FRACTION
5746EOF
5747
5748fi
5749
5750
5751TOOLBAR=NONE
5752if test "$USE_TOOLBAR" = 1 ; then
5753 TOOLBAR="TOOLBAR"
5754 cat >> confdefs.h <<EOF
5755#define USE_TOOLBAR $USE_TOOLBAR
5756EOF
5757
5758 cat >> confdefs.h <<EOF
5759#define USE_XT_TOOLBAR $USE_XT_TOOLBAR
5760EOF
5761
5762fi
5763
5764
5765GAUGE=NONE
5766if test "$USE_GAUGE" = 1 ; then
5767 GAUGE="GAUGE"
5768
5769 cat >> confdefs.h <<EOF
5770#define USE_GAUGE $USE_GAUGE
5771EOF
5772
5773fi
5774
5775VIRLISTBOX=NONE
5776if test "$USE_VLBOX" = 1 ; then
5777 VIRTLISTBOX="VIRLISTBOX"
5778 cat >> confdefs.h <<EOF
5779#define USE_VIRLISTBOX $USE_VIRLISTBOX
5780EOF
5781
5782fi
5783
5784
5785SCROLLBAR=NONE
5786if test "$USE_SCROLLBAR" = 1 ; then
5787 SCROLLBAR="SCROLLBAR"
5788 cat >> confdefs.h <<EOF
5789#define USE_SCROLLBAR $USE_SCROLLBAR
5790EOF
5791
5792fi
5793
5794
5795DOCVIEW=NONE
5796if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
5797 DOCVIEW="DOCVIEW"
5798 cat >> confdefs.h <<EOF
5799#define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE
5800EOF
5801
5802fi
5803
5804
5805PRINTPREVIEW=NONE
5806if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
5807 PRINTPREVIEW="PRINTPREVIEW"
5808 cat >> confdefs.h <<EOF
5809#define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE
5810EOF
5811
5812fi
5813
5814
5815TYPETREE=NONE
5816if test "$USE_TYPETREE" = 1 ; then
5817 TYPETREE="TYPETREE"
5818 cat >> confdefs.h <<EOF
5819#define USE_TYPETREE $USE_TYPETREE
5820EOF
5821
5822fi
5823
5824
5825WXGRAPH=NONE
5826if test "$USE_WXGRAPH" = 1 ; then
5827 WXGRAPH="WXGRAPH"
5828 cat >> confdefs.h <<EOF
5829#define USE_WXGRAPH $USE_WXGRAPH
5830EOF
5831
5832fi
5833
5834
5835WXTREE=NONE
5836if test "$USE_WXTREE" = 1 ; then
5837 WXTREE="WXTREE"
5838 cat >> confdefs.h <<EOF
5839#define USE_WXTREE $USE_WXTREE
5840EOF
5841
5842fi
5843
5844
5845GLCANVAS=NONE
5846if test "$USE_OPENGL" = 1 ; then
5847 GLCANVAS="GLCANVAS"
5848fi
5849
5850cat >> confdefs.h <<EOF
5851#define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT
5852EOF
5853
5854
5855cat >> confdefs.h <<EOF
5856#define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
5857EOF
5858
5859
5860
5861if test "$USE_UNIX" = 1 ; then
5862 cat >> confdefs.h <<\EOF
5863#define __UNIX__ 1
5864EOF
5865
5866fi
5867
5868
5869GUI_TK_INCLUDE=
5870GUI_TK_LIBRARY=
5871GUI_TK_LINK=
5872
5873if test "$USE_GTK" = 1; then
5874 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5875if test "${with_gtk_prefix+set}" = set; then
5876 withval="$with_gtk_prefix"
5877 gtk_config_prefix="$withval"
5878else
5879 gtk_config_prefix=""
5880fi
5881
5882# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5883if test "${with_gtk_exec_prefix+set}" = set; then
5884 withval="$with_gtk_exec_prefix"
5885 gtk_config_exec_prefix="$withval"
5886else
5887 gtk_config_exec_prefix=""
5888fi
5889
5890
5891 if test x$gtk_config_exec_prefix != x ; then
5892 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5893 if test x${GTK_CONFIG+set} != xset ; then
5894 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
5895 fi
5896 fi
5897 if test x$gtk_config_prefix != x ; then
5898 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
5899 if test x${GTK_CONFIG+set} != xset ; then
5900 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
5901 fi
5902 fi
5903
5904 # Extract the first word of "gtk-config", so it can be a program name with args.
5905set dummy gtk-config; ac_word=$2
5906echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
82052aff 5907echo "configure:5908: checking for $ac_word" >&5
c801d85f
KB
5908if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5910else
5911 case "$GTK_CONFIG" in
5912 /*)
5913 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5914 ;;
5915 *)
5916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5917 for ac_dir in $PATH; do
5918 test -z "$ac_dir" && ac_dir=.
5919 if test -f $ac_dir/$ac_word; then
5920 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5921 break
5922 fi
5923 done
5924 IFS="$ac_save_ifs"
5925 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5926 ;;
5927esac
5928fi
5929GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5930if test -n "$GTK_CONFIG"; then
5931 echo "$ac_t""$GTK_CONFIG" 1>&6
5932else
5933 echo "$ac_t""no" 1>&6
5934fi
5935
5936 min_gtk_version=0.99.7
5937 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
82052aff 5938echo "configure:5939: checking for GTK - version >= $min_gtk_version" >&5
c801d85f
KB
5939 no_gtk=""
5940 if test "$GTK_CONFIG" != "no" ; then
5941 GTK_CFLAGS=`$GTK_CONFIG --cflags`
5942 GTK_LIBS=`$GTK_CONFIG --libs`
5943 ac_save_CFLAGS="$CFLAGS"
5944 ac_save_LIBS="$LIBS"
5945 CFLAGS="$CFLAGS $GTK_CFLAGS"
5946 LIBS="$LIBS $GTK_LIBS"
5947 if test "$cross_compiling" = yes; then
5948 echo $ac_n "cross compiling; assumed OK... $ac_c"
5949else
5950 cat > conftest.$ac_ext <<EOF
82052aff 5951#line 5952 "configure"
c801d85f
KB
5952#include "confdefs.h"
5953
5954#include <gtk/gtk.h>
5955#include <stdio.h>
5956
5957int
5958main ()
5959{
5960 int major, minor, micro;
5961
5962 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
5963 printf("%s, bad version string\n", "$min_gtk_version");
5964 exit(1);
5965 }
5966
5967 return !((gtk_major_version > major) ||
5968 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5969 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5970}
5971
5972EOF
82052aff 5973if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c801d85f
KB
5974then
5975 :
5976else
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5979 rm -fr conftest*
5980 no_gtk=yes
5981fi
5982rm -fr conftest*
5983fi
5984
5985 CFLAGS="$ac_save_CFLAGS"
5986 LIBS="$ac_save_LIBS"
5987 else
5988 no_gtk=yes
5989 fi
5990 if test "x$no_gtk" = x ; then
5991 echo "$ac_t""yes" 1>&6
5992
5993 GUI_TK_INCLUDE="$GTK_CFLAGS"
5994 GUI_TK_LIBRARY="$GTK_LIBS"
5995
5996 else
5997 echo "$ac_t""no" 1>&6
5998 GTK_CFLAGS=""
5999 GTK_LIBS=""
6000 { echo "configure: error: Are gtk-config and the GTK in path and up-to-date?" 1>&2; exit 1; }
6001 fi
6002
6003
6004
6005 cat >> confdefs.h <<\EOF
6006#define __GTK__ 1
6007EOF
6008
6009fi
6010
6011
6012
6013
6014
6015
6016
6017
6018OPENGL_INCLUDE=
6019OPENGL_LIBRARY=
6020OPENGL_LINK=
6021
6022if test "$USE_OPENGL" = 1; then
6023 echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6
82052aff 6024echo "configure:6025: checking for OpenGL includes" >&5
c801d85f
KB
6025
6026ac_find_includes=
6027for ac_dir in $SEARCH_INCLUDE;
6028 do
6029 if test -f "$ac_dir/GL/gl.h"; then
6030 ac_find_includes=$ac_dir
6031 break
6032 fi
6033 done
6034
6035 if test "$ac_find_includes" != "" ; then
6036 OPENGL_INCLUDE="-I$ac_find_includes"
6037 echo "$ac_t""found $ac_find_includes" 1>&6
6038 echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
82052aff 6039echo "configure:6040: checking for OpenGL library" >&5
c801d85f
KB
6040
6041ac_find_libraries=
6042for ac_dir in $SEARCH_LIB;
6043 do
6044 for ac_extension in a so sl; do
6045 if test -f "$ac_dir/libGL.$ac_extension"; then
6046 ac_find_libraries=$ac_dir
6047 break 2
6048 fi
6049 done
6050 done
6051
6052 if test "$ac_find_libraries" != "" ; then
6053
6054 ac_path_to_include=$ac_find_includes
6055 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6056 result=$?
6057 if test $result = 0; then
6058 ac_path_to_include=""
6059 else
6060 ac_path_to_include="-I$ac_find_includes"
6061 fi
6062
6063
6064 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6065 result=$?
6066 if test $result = 0; then
6067 ac_path_to_link=""
6068 else
6069 ac_path_to_link="-L$ac_find_libraries"
6070 fi
6071
6072 CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
6073 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
6074 OPENGL_LIBRARY="$ac_path_to_link"
6075 OPENGL_INCLUDE="$ac_path_to_include"
6076 OPENGL_LINK="-lGL"
6077 echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6
6078 else
6079
6080ac_find_libraries=
6081for ac_dir in $SEARCH_LIB;
6082 do
6083 for ac_extension in a so sl; do
6084 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6085 ac_find_libraries=$ac_dir
6086 break 2
6087 fi
6088 done
6089 done
6090
6091 if test "$ac_find_libraries" != "" ; then
6092
6093 ac_path_to_include=$ac_find_includes
6094 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6095 result=$?
6096 if test $result = 0; then
6097 ac_path_to_include=""
6098 else
6099 ac_path_to_include="-I$ac_find_includes"
6100 fi
6101
6102
6103 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6104 result=$?
6105 if test $result = 0; then
6106 ac_path_to_link=""
6107 else
6108 ac_path_to_link="-L$ac_find_libraries"
6109 fi
6110
6111 CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
6112 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
6113 OPENGL_LIBRARY="$ac_path_to_link"
6114 OPENGL_INCLUDE="$ac_path_to_include"
6115 OPENGL_LINK="-lMesaGL"
6116 echo "$ac_t""found MESA at $ac_find_libraries" 1>&6
6117 else
6118 { echo "configure: error: no" 1>&2; exit 1; }
6119 fi
6120 fi
6121 else
6122 { echo "configure: error: no" 1>&2; exit 1; }
6123 fi
6124fi
6125
6126 if test "$USE_GDK_IMLIB" = 1; then
6127 cat >> confdefs.h <<EOF
6128#define USE_GDK_IMLIB $USE_GDK_IMLIB
6129EOF
6130
6131 fi
6132
6133 if test "$USE_ZLIB" = 1; then
6134 cat >> confdefs.h <<EOF
6135#define USE_ZLIB $USE_ZLIB
6136EOF
6137
6138 fi
6139
6140 if test "$USE_LIBPNG" = 1; then
6141 cat >> confdefs.h <<EOF
6142#define USE_LIBPNG $USE_LIBPNG
6143EOF
6144
6145 fi
6146
6147
6148
6149
6150USE_GLX=$USE_OPENGL
6151if test "$USE_OPENGL" != 1; then
6152 OPENGL_LIBRARIES=
6153 OPENGL_INCLUDE=
6154 OPENGL_LINK=
6155 GLCANVAS=NONE
6156fi
6157
6158cat >> confdefs.h <<EOF
6159#define USE_GLX $USE_GLX
6160EOF
6161
6162
6163
6164
6165
6166
6167
6168PICFLAGS=
6169CREATE_SHARED=
6170case "${canonical}" in
6171
6172 *-hp-hpux* )
6173 if test "${CC}" != "gcc" ; then
6174 CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
6175 CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE"
6176 PICFLAGS="+z"
6177 else
6178 PICFLAGS="-fPIC"
6179 fi
6180 LDFLAGS="-Wl,+s"
6181 CREATE_SHARED=sharedHpux
6182 ;;
6183
6184 *-*-linux* )
6185 PICFLAGS=-fPIC
6186 CREATE_SHARED=sharedLinux
6187 ;;
6188
6189 *-*-irix5* | *-*-irix6* )
6190 # PICFLAGS can remain empty, as pic is the default
6191 LDFLAGS="-Wl,+s"
6192 CREATE_SHARED=sharedIrix
6193 cat >> confdefs.h <<\EOF
6194#define SVR4 1
6195EOF
6196
6197 ;;
6198
6199 *-*-solaris2* )
6200 if test "${CC}" != "gcc" ; then
6201 PICFLAGS="-KPIC"
6202 else
6203 PICFLAGS="-fPIC"
6204 fi
6205 CREATE_SHARED=sharedSolaris2
6206 cat >> confdefs.h <<\EOF
6207#define SVR4 1
6208EOF
6209
6210 ;;
6211
6212 *-*-sunos4* )
6213 if test "${CC}" != "gcc" ; then
6214 PICFLAGS="-PIC"
6215 else
6216 PICFLAGS="-fPIC"
6217 fi
6218 LDFLAGS="-Wl,+s"
6219 CREATE_SHARED=sharedSunos4
6220 cat >> confdefs.h <<\EOF
6221#define BSD 1
6222EOF
6223
6224 ;;
6225
6226 *-*-freebsd* | *-*-netbsd*)
6227 PICFLAGS=-fPIC
6228 CREATE_SHARED=sharedBsd
6229 cat >> confdefs.h <<\EOF
6230#define BSD 1
6231EOF
6232
6233 ;;
6234
6235 *-*-osf* )
6236 PICFLAGS="-fPIC"
6237 CREATE_SHARED=sharedOSF
6238 ;;
6239
6240 *-*-dgux5* )
6241 if test "${CC}" != "gcc" ; then
6242 PICFLAGS="-K PIC"
6243 else
6244 PICFLAGS="-fPIC"
6245 fi
6246 CREATE_SHARED=sharedDgux
6247 cat >> confdefs.h <<\EOF
6248#define SVR4 1
6249EOF
6250
6251 ;;
6252
6253 *-*-sysv5* )
6254 if test "${CC}" != "gcc" ; then
6255 PICFLAGS="-K PIC"
6256 else
6257 PICFLAGS="-fPIC"
6258 fi
6259 CREATE_SHARED=sharedSysV
6260 cat >> confdefs.h <<\EOF
6261#define SVR4 1
6262EOF
6263
6264 ;;
6265
6266 *-*-aix* )
6267 if test "${CC}" != "gcc" ; then
6268 PICFLAGS="-bM\:SRE"
6269 else
6270 PICFLAGS="-fPIC"
6271 fi
6272 CREATE_SHARED=sharedAIX
6273 cat >> confdefs.h <<\EOF
6274#define SYSV 1
6275EOF
6276
6277 ;;
6278
6279 *)
6280 CREATE_SHARED=
6281 PICFLAGS=
6282esac
6283
6284if test "x$GCC" = xyes; then
6285 CFLAGS="${CFLAGS} -Wall"
6286fi
6287
6288if test "x$GXX" = xyes; then
6289 CXXFLAGS="${CXXFLAGS} -Wall"
6290fi
6291
6292if test "$USE_SHARED" != 1; then
6293 CREATE_SHARED=
6294 PICFLAGS=
6295fi
6296
6297
6298
6299
6300
6301
6302echo $OS >> system.list
abe1d62e 6303echo $OS >> ../../system.list
c801d85f
KB
6304
6305
6306trap '' 1 2 15
6307cat > confcache <<\EOF
6308# This file is a shell script that caches the results of configure
6309# tests run on this system so they can be shared between configure
6310# scripts and configure runs. It is not useful on other systems.
6311# If it contains results you don't want to keep, you may remove or edit it.
6312#
6313# By default, configure uses ./config.cache as the cache file,
6314# creating it if it does not exist already. You can give configure
6315# the --cache-file=FILE option to use a different cache file; that is
6316# what configure does when it calls configure scripts in
6317# subdirectories, so they share the cache.
6318# Giving --cache-file=/dev/null disables caching, for debugging configure.
6319# config.status only pays attention to the cache file if you give it the
6320# --recheck option to rerun configure.
6321#
6322EOF
6323# The following way of writing the cache mishandles newlines in values,
6324# but we know of no workaround that is simple, portable, and efficient.
6325# So, don't put newlines in cache variables' values.
6326# Ultrix sh set writes to stderr and can't be redirected directly,
6327# and sets the high bit in the cache file unless we assign to the vars.
6328(set) 2>&1 |
6329 case `(ac_space=' '; set) 2>&1` in
6330 *ac_space=\ *)
6331 # `set' does not quote correctly, so add quotes (double-quote substitution
6332 # turns \\\\ into \\, and sed turns \\ into \).
6333 sed -n \
6334 -e "s/'/'\\\\''/g" \
6335 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6336 ;;
6337 *)
6338 # `set' quotes correctly as required by POSIX, so do not add quotes.
6339 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6340 ;;
6341 esac >> confcache
6342if cmp -s $cache_file confcache; then
6343 :
6344else
6345 if test -w $cache_file; then
6346 echo "updating cache $cache_file"
6347 cat confcache > $cache_file
6348 else
6349 echo "not updating unwritable cache $cache_file"
6350 fi
6351fi
6352rm -f confcache
6353
6354trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6355
6356test "x$prefix" = xNONE && prefix=$ac_default_prefix
6357# Let make expand exec_prefix.
6358test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6359
6360# Any assignment to VPATH causes Sun make to only execute
6361# the first set of double-colon rules, so remove it if not needed.
6362# If there is a colon in the path, we need to keep it.
6363if test "x$srcdir" = x.; then
6364 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6365fi
6366
6367trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6368
6369DEFS=-DHAVE_CONFIG_H
6370
6371# Without the "./", some shells look in PATH for config.status.
6372: ${CONFIG_STATUS=./config.status}
6373
6374echo creating $CONFIG_STATUS
6375rm -f $CONFIG_STATUS
6376cat > $CONFIG_STATUS <<EOF
6377#! /bin/sh
6378# Generated automatically by configure.
6379# Run this file to recreate the current configuration.
6380# This directory was configured as follows,
6381# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6382#
6383# $0 $ac_configure_args
6384#
6385# Compiler output produced by configure, useful for debugging
6386# configure, is in ./config.log if it exists.
6387
6388ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6389for ac_option
6390do
6391 case "\$ac_option" in
6392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6393 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6394 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6395 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6396 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6397 exit 0 ;;
6398 -help | --help | --hel | --he | --h)
6399 echo "\$ac_cs_usage"; exit 0 ;;
6400 *) echo "\$ac_cs_usage"; exit 1 ;;
6401 esac
6402done
6403
6404ac_given_srcdir=$srcdir
6405ac_given_INSTALL="$INSTALL"
6406
abe1d62e 6407trap '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
6408EOF
6409cat >> $CONFIG_STATUS <<EOF
6410
6411# Protect against being on the right side of a sed subst in config.status.
6412sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6413 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6414$ac_vpsub
6415$extrasub
6416s%@CFLAGS@%$CFLAGS%g
6417s%@CPPFLAGS@%$CPPFLAGS%g
6418s%@CXXFLAGS@%$CXXFLAGS%g
6419s%@DEFS@%$DEFS%g
6420s%@LDFLAGS@%$LDFLAGS%g
6421s%@LIBS@%$LIBS%g
6422s%@exec_prefix@%$exec_prefix%g
6423s%@prefix@%$prefix%g
6424s%@program_transform_name@%$program_transform_name%g
6425s%@bindir@%$bindir%g
6426s%@sbindir@%$sbindir%g
6427s%@libexecdir@%$libexecdir%g
6428s%@datadir@%$datadir%g
6429s%@sysconfdir@%$sysconfdir%g
6430s%@sharedstatedir@%$sharedstatedir%g
6431s%@localstatedir@%$localstatedir%g
6432s%@libdir@%$libdir%g
6433s%@includedir@%$includedir%g
6434s%@oldincludedir@%$oldincludedir%g
6435s%@infodir@%$infodir%g
6436s%@mandir@%$mandir%g
6437s%@WXBASEDIR@%$WXBASEDIR%g
6438s%@CC@%$CC%g
6439s%@CPP@%$CPP%g
6440s%@CXX@%$CXX%g
6441s%@CXXCPP@%$CXXCPP%g
6442s%@RANLIB@%$RANLIB%g
6443s%@AR@%$AR%g
6444s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6445s%@INSTALL_DATA@%$INSTALL_DATA%g
6446s%@LN_S@%$LN_S%g
6447s%@AWK@%$AWK%g
6448s%@X_CFLAGS@%$X_CFLAGS%g
6449s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6450s%@X_LIBS@%$X_LIBS%g
6451s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7c351dad 6452s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
c801d85f 6453s%@LIBOBJS@%$LIBOBJS%g
7c351dad 6454s%@UNIX_THREAD@%$UNIX_THREAD%g
82052aff 6455s%@THREADS_LINK@%$THREADS_LINK%g
c801d85f
KB
6456s%@YACC@%$YACC%g
6457s%@LEX@%$LEX%g
6458s%@LEXLIB@%$LEXLIB%g
6459s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6460s%@host@%$host%g
6461s%@host_alias@%$host_alias%g
6462s%@host_cpu@%$host_cpu%g
6463s%@host_vendor@%$host_vendor%g
6464s%@host_os@%$host_os%g
c801d85f
KB
6465s%@DEBUG@%$DEBUG%g
6466s%@PROFILE@%$PROFILE%g
6467s%@OPTIMISE@%$OPTIMISE%g
6468s%@RPC@%$RPC%g
6469s%@WXRESOURCES@%$WXRESOURCES%g
6470s%@PROLOGIO@%$PROLOGIO%g
6471s%@PROLOGIOSRC@%$PROLOGIOSRC%g
6472s%@POSTSCRIPTDC@%$POSTSCRIPTDC%g
6473s%@METAFILE@%$METAFILE%g
6474s%@FORM@%$FORM%g
6475s%@HELP@%$HELP%g
6476s%@IPC@%$IPC%g
6477s%@ENHDIALOGBOX@%$ENHDIALOGBOX%g
6478s%@XRESOURCES@%$XRESOURCES%g
6479s%@CLIPBOARD@%$CLIPBOARD%g
6480s%@CONSTRAINTS@%$CONSTRAINTS%g
6481s%@TIMEDATE@%$TIMEDATE%g
6482s%@FRACTION@%$FRACTION%g
6483s%@TOOLBAR@%$TOOLBAR%g
6484s%@GAUGE@%$GAUGE%g
6485s%@VIRLISTBOX@%$VIRLISTBOX%g
6486s%@SCROLLBAR@%$SCROLLBAR%g
6487s%@DOCVIEW@%$DOCVIEW%g
6488s%@PRINTPREVIEW@%$PRINTPREVIEW%g
6489s%@TYPETREE@%$TYPETREE%g
6490s%@WXGRAPH@%$WXGRAPH%g
6491s%@WXTREE@%$WXTREE%g
6492s%@GTK_CONFIG@%$GTK_CONFIG%g
6493s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6494s%@GTK_LIBS@%$GTK_LIBS%g
6495s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
6496s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
6497s%@GUI_TK_LINK@%$GUI_TK_LINK%g
6498s%@TOOLKIT@%$TOOLKIT%g
6499s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
6500s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g
6501s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g
6502s%@OPENGL_LINK@%$OPENGL_LINK%g
6503s%@GLCANVAS@%$GLCANVAS%g
6504s%@OS@%$OS%g
6505s%@PICFLAGS@%$PICFLAGS%g
6506s%@CREATE_SHARED@%$CREATE_SHARED%g
6507
6508CEOF
6509EOF
6510
6511cat >> $CONFIG_STATUS <<\EOF
6512
6513# Split the substitutions into bite-sized pieces for seds with
6514# small command number limits, like on Digital OSF/1 and HP-UX.
6515ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6516ac_file=1 # Number of current file.
6517ac_beg=1 # First line for current file.
6518ac_end=$ac_max_sed_cmds # Line after last line for current file.
6519ac_more_lines=:
6520ac_sed_cmds=""
6521while $ac_more_lines; do
6522 if test $ac_beg -gt 1; then
6523 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6524 else
6525 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6526 fi
6527 if test ! -s conftest.s$ac_file; then
6528 ac_more_lines=false
6529 rm -f conftest.s$ac_file
6530 else
6531 if test -z "$ac_sed_cmds"; then
6532 ac_sed_cmds="sed -f conftest.s$ac_file"
6533 else
6534 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6535 fi
6536 ac_file=`expr $ac_file + 1`
6537 ac_beg=$ac_end
6538 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6539 fi
6540done
6541if test -z "$ac_sed_cmds"; then
6542 ac_sed_cmds=cat
6543fi
6544EOF
6545
6546cat >> $CONFIG_STATUS <<EOF
6547
abe1d62e 6548CONFIG_FILES=\${CONFIG_FILES-"../../src/gtk/setup/substit"}
c801d85f
KB
6549EOF
6550cat >> $CONFIG_STATUS <<\EOF
6551for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6553 case "$ac_file" in
6554 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6555 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6556 *) ac_file_in="${ac_file}.in" ;;
6557 esac
6558
6559 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6560
6561 # Remove last slash and all that follows it. Not all systems have dirname.
6562 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6563 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6564 # The file is in a subdirectory.
6565 test ! -d "$ac_dir" && mkdir "$ac_dir"
6566 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6567 # A "../" for each directory in $ac_dir_suffix.
6568 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6569 else
6570 ac_dir_suffix= ac_dots=
6571 fi
6572
6573 case "$ac_given_srcdir" in
6574 .) srcdir=.
6575 if test -z "$ac_dots"; then top_srcdir=.
6576 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6577 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6578 *) # Relative path.
6579 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6580 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6581 esac
6582
6583 case "$ac_given_INSTALL" in
6584 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6585 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6586 esac
6587
6588 echo creating "$ac_file"
6589 rm -f "$ac_file"
6590 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6591 case "$ac_file" in
6592 *Makefile*) ac_comsub="1i\\
6593# $configure_input" ;;
6594 *) ac_comsub= ;;
6595 esac
6596
6597 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6598 sed -e "$ac_comsub
6599s%@configure_input@%$configure_input%g
6600s%@srcdir@%$srcdir%g
6601s%@top_srcdir@%$top_srcdir%g
6602s%@INSTALL@%$INSTALL%g
6603" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6604fi; done
6605rm -f conftest.s*
6606
6607# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6608# NAME is the cpp macro being defined and VALUE is the value it is being given.
6609#
6610# ac_d sets the value in "#define NAME VALUE" lines.
6611ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6612ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6613ac_dC='\3'
6614ac_dD='%g'
6615# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6616ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6617ac_uB='\([ ]\)%\1#\2define\3'
6618ac_uC=' '
6619ac_uD='\4%g'
6620# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6621ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6622ac_eB='$%\1#\2define\3'
6623ac_eC=' '
6624ac_eD='%g'
6625
6626if test "${CONFIG_HEADERS+set}" != set; then
6627EOF
6628cat >> $CONFIG_STATUS <<EOF
abe1d62e 6629 CONFIG_HEADERS="../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin"
c801d85f
KB
6630EOF
6631cat >> $CONFIG_STATUS <<\EOF
6632fi
6633for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6635 case "$ac_file" in
6636 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6637 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6638 *) ac_file_in="${ac_file}.in" ;;
6639 esac
6640
6641 echo creating $ac_file
6642
6643 rm -f conftest.frag conftest.in conftest.out
6644 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6645 cat $ac_file_inputs > conftest.in
6646
6647EOF
6648
6649# Transform confdefs.h into a sed script conftest.vals that substitutes
6650# the proper values into config.h.in to produce config.h. And first:
6651# Protect against being on the right side of a sed subst in config.status.
6652# Protect against being in an unquoted here document in config.status.
6653rm -f conftest.vals
6654cat > conftest.hdr <<\EOF
6655s/[\\&%]/\\&/g
6656s%[\\$`]%\\&%g
6657s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6658s%ac_d%ac_u%gp
6659s%ac_u%ac_e%gp
6660EOF
6661sed -n -f conftest.hdr confdefs.h > conftest.vals
6662rm -f conftest.hdr
6663
6664# This sed command replaces #undef with comments. This is necessary, for
6665# example, in the case of _POSIX_SOURCE, which is predefined and required
6666# on some systems where configure will not decide to define it.
6667cat >> conftest.vals <<\EOF
6668s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6669EOF
6670
6671# Break up conftest.vals because some shells have a limit on
6672# the size of here documents, and old seds have small limits too.
6673
6674rm -f conftest.tail
6675while :
6676do
6677 ac_lines=`grep -c . conftest.vals`
6678 # grep -c gives empty output for an empty file on some AIX systems.
6679 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6680 # Write a limited-size here document to conftest.frag.
6681 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6682 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6683 echo 'CEOF
6684 sed -f conftest.frag conftest.in > conftest.out
6685 rm -f conftest.in
6686 mv conftest.out conftest.in
6687' >> $CONFIG_STATUS
6688 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6689 rm -f conftest.vals
6690 mv conftest.tail conftest.vals
6691done
6692rm -f conftest.vals
6693
6694cat >> $CONFIG_STATUS <<\EOF
6695 rm -f conftest.frag conftest.h
6696 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6697 cat conftest.in >> conftest.h
6698 rm -f conftest.in
6699 if cmp -s $ac_file conftest.h 2>/dev/null; then
6700 echo "$ac_file is unchanged"
6701 rm -f conftest.h
6702 else
6703 # Remove last slash and all that follows it. Not all systems have dirname.
6704 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6706 # The file is in a subdirectory.
6707 test ! -d "$ac_dir" && mkdir "$ac_dir"
6708 fi
6709 rm -f $ac_file
6710 mv conftest.h $ac_file
6711 fi
6712fi; done
6713
6714EOF
6715cat >> $CONFIG_STATUS <<EOF
6716
6717EOF
6718cat >> $CONFIG_STATUS <<\EOF
abe1d62e 6719
c801d85f
KB
6720exit 0
6721EOF
6722chmod +x $CONFIG_STATUS
6723rm -fr confdefs* $ac_clean_files
6724test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6725
6726
6727mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache
6728