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