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