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