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