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