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