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