]>
Commit | Line | Data |
---|---|---|
5436fc65 C |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4ff3dfab | 4 | # Generated automatically using autoconf version 2.12 |
bc859e63 | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
5436fc65 C |
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: | |
fcfc3c0c TT |
14 | ac_help="$ac_help |
15 | --disable-nls do not use Native Language Support" | |
16 | ac_help="$ac_help | |
17 | --with-included-gettext use the GNU gettext library included here" | |
5436fc65 C |
18 | ac_help="$ac_help |
19 | --enable-netrom " | |
0728afad FF |
20 | ac_help="$ac_help |
21 | --with-mmalloc use memory mapped malloc package" | |
2476848a MH |
22 | ac_help="$ac_help |
23 | --enable-ide Enable IDE support" | |
c076f1ed DM |
24 | ac_help="$ac_help |
25 | --with-foundry-libs=directory use the Foundry SDK in directory" | |
5436fc65 C |
26 | ac_help="$ac_help |
27 | --enable-gdbtk " | |
28 | ac_help="$ac_help | |
047465fd | 29 | --with-tclconfig directory containing tcl configuration (tclConfig.sh)" |
4e327047 | 30 | ac_help="$ac_help |
047465fd | 31 | --with-tkconfig directory containing tk configuration (tkConfig.sh)" |
4e327047 | 32 | ac_help="$ac_help |
047465fd | 33 | --with-tclinclude directory where tcl private headers are" |
4e327047 | 34 | ac_help="$ac_help |
047465fd | 35 | --with-tkinclude directory where tk private headers are" |
b236defa FCE |
36 | ac_help="$ac_help |
37 | --with-x use the X Window System" | |
38 | ac_help="$ac_help | |
39 | --with-sim-gpu2=path Use GPU2 library under given directory" | |
75a55dc3 JM |
40 | ac_help="$ac_help |
41 | --with-sim-funit=path Use target FP lib under given directory" | |
1d5eb137 FF |
42 | ac_help="$ac_help |
43 | --enable-shared use shared libraries" | |
5436fc65 C |
44 | |
45 | # Initialize some variables set by options. | |
46 | # The variables have the same names as the options, with | |
47 | # dashes changed to underlines. | |
48 | build=NONE | |
49 | cache_file=./config.cache | |
50 | exec_prefix=NONE | |
51 | host=NONE | |
52 | no_create= | |
53 | nonopt=NONE | |
54 | no_recursion= | |
55 | prefix=NONE | |
56 | program_prefix=NONE | |
57 | program_suffix=NONE | |
58 | program_transform_name=s,x,x, | |
59 | silent= | |
60 | site= | |
61 | srcdir= | |
62 | target=NONE | |
63 | verbose= | |
64 | x_includes=NONE | |
65 | x_libraries=NONE | |
1a7b4b7c DE |
66 | bindir='${exec_prefix}/bin' |
67 | sbindir='${exec_prefix}/sbin' | |
68 | libexecdir='${exec_prefix}/libexec' | |
69 | datadir='${prefix}/share' | |
70 | sysconfdir='${prefix}/etc' | |
71 | sharedstatedir='${prefix}/com' | |
72 | localstatedir='${prefix}/var' | |
73 | libdir='${exec_prefix}/lib' | |
74 | includedir='${prefix}/include' | |
75 | oldincludedir='/usr/include' | |
76 | infodir='${prefix}/info' | |
77 | mandir='${prefix}/man' | |
5436fc65 C |
78 | |
79 | # Initialize some other variables. | |
80 | subdirs= | |
1a7b4b7c | 81 | MFLAGS= MAKEFLAGS= |
bfde4a67 SG |
82 | # Maximum number of lines to put in a shell here document. |
83 | ac_max_here_lines=12 | |
5436fc65 C |
84 | |
85 | ac_prev= | |
86 | for ac_option | |
87 | do | |
88 | ||
89 | # If the previous option needs an argument, assign it. | |
90 | if test -n "$ac_prev"; then | |
91 | eval "$ac_prev=\$ac_option" | |
92 | ac_prev= | |
93 | continue | |
94 | fi | |
95 | ||
96 | case "$ac_option" in | |
97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
98 | *) ac_optarg= ;; | |
99 | esac | |
100 | ||
101 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
102 | ||
103 | case "$ac_option" in | |
104 | ||
1a7b4b7c DE |
105 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
106 | ac_prev=bindir ;; | |
107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
108 | bindir="$ac_optarg" ;; | |
109 | ||
110 | -build | --build | --buil | --bui | --bu) | |
5436fc65 | 111 | ac_prev=build ;; |
1a7b4b7c | 112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5436fc65 C |
113 | build="$ac_optarg" ;; |
114 | ||
115 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
117 | ac_prev=cache_file ;; | |
118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
120 | cache_file="$ac_optarg" ;; | |
121 | ||
1a7b4b7c DE |
122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
123 | ac_prev=datadir ;; | |
124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
125 | | --da=*) | |
126 | datadir="$ac_optarg" ;; | |
127 | ||
5436fc65 C |
128 | -disable-* | --disable-*) |
129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
130 | # Reject names that are not valid shell variable names. | |
131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
133 | fi | |
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
135 | eval "enable_${ac_feature}=no" ;; | |
136 | ||
137 | -enable-* | --enable-*) | |
138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
139 | # Reject names that are not valid shell variable names. | |
140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
142 | fi | |
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
144 | case "$ac_option" in | |
145 | *=*) ;; | |
146 | *) ac_optarg=yes ;; | |
147 | esac | |
148 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
149 | ||
150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
152 | | --exec | --exe | --ex) | |
153 | ac_prev=exec_prefix ;; | |
154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
156 | | --exec=* | --exe=* | --ex=*) | |
157 | exec_prefix="$ac_optarg" ;; | |
158 | ||
159 | -gas | --gas | --ga | --g) | |
160 | # Obsolete; use --with-gas. | |
161 | with_gas=yes ;; | |
162 | ||
163 | -help | --help | --hel | --he) | |
164 | # Omit some internal or obsolete options to make the list less imposing. | |
165 | # This message is too long to be a string in the A/UX 3.1 sh. | |
166 | cat << EOF | |
167 | Usage: configure [options] [host] | |
168 | Options: [defaults in brackets after descriptions] | |
169 | Configuration: | |
170 | --cache-file=FILE cache test results in FILE | |
171 | --help print this message | |
172 | --no-create do not create output files | |
173 | --quiet, --silent do not print \`checking...' messages | |
174 | --version print the version of autoconf that created configure | |
175 | Directory and file names: | |
176 | --prefix=PREFIX install architecture-independent files in PREFIX | |
177 | [$ac_default_prefix] | |
1a7b4b7c | 178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5436fc65 | 179 | [same as prefix] |
1a7b4b7c DE |
180 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
183 | --datadir=DIR read-only architecture-independent data in DIR | |
184 | [PREFIX/share] | |
185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
187 | [PREFIX/com] | |
188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
190 | --includedir=DIR C header files in DIR [PREFIX/include] | |
191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
192 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
193 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
5436fc65 C |
194 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
195 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
196 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1a7b4b7c DE |
197 | --program-transform-name=PROGRAM |
198 | run sed PROGRAM on installed program names | |
199 | EOF | |
200 | cat << EOF | |
5436fc65 C |
201 | Host type: |
202 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
203 | --host=HOST configure for HOST [guessed] | |
204 | --target=TARGET configure for TARGET [TARGET=HOST] | |
205 | Features and packages: | |
206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
210 | --x-includes=DIR X include files are in DIR | |
211 | --x-libraries=DIR X library files are in DIR | |
5436fc65 | 212 | EOF |
1a7b4b7c DE |
213 | if test -n "$ac_help"; then |
214 | echo "--enable and --with options recognized:$ac_help" | |
215 | fi | |
5436fc65 C |
216 | exit 0 ;; |
217 | ||
218 | -host | --host | --hos | --ho) | |
219 | ac_prev=host ;; | |
220 | -host=* | --host=* | --hos=* | --ho=*) | |
221 | host="$ac_optarg" ;; | |
222 | ||
1a7b4b7c DE |
223 | -includedir | --includedir | --includedi | --included | --include \ |
224 | | --includ | --inclu | --incl | --inc) | |
225 | ac_prev=includedir ;; | |
226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
227 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
228 | includedir="$ac_optarg" ;; | |
229 | ||
230 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
231 | ac_prev=infodir ;; | |
232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
233 | infodir="$ac_optarg" ;; | |
234 | ||
235 | -libdir | --libdir | --libdi | --libd) | |
236 | ac_prev=libdir ;; | |
237 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
238 | libdir="$ac_optarg" ;; | |
239 | ||
240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
241 | | --libexe | --libex | --libe) | |
242 | ac_prev=libexecdir ;; | |
243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
244 | | --libexe=* | --libex=* | --libe=*) | |
245 | libexecdir="$ac_optarg" ;; | |
246 | ||
247 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
248 | | --localstate | --localstat | --localsta | --localst \ | |
249 | | --locals | --local | --loca | --loc | --lo) | |
250 | ac_prev=localstatedir ;; | |
251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
254 | localstatedir="$ac_optarg" ;; | |
255 | ||
256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
257 | ac_prev=mandir ;; | |
258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
259 | mandir="$ac_optarg" ;; | |
260 | ||
5436fc65 C |
261 | -nfp | --nfp | --nf) |
262 | # Obsolete; use --without-fp. | |
263 | with_fp=no ;; | |
264 | ||
265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
266 | | --no-cr | --no-c) | |
267 | no_create=yes ;; | |
268 | ||
269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
271 | no_recursion=yes ;; | |
272 | ||
1a7b4b7c DE |
273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
275 | | --oldin | --oldi | --old | --ol | --o) | |
276 | ac_prev=oldincludedir ;; | |
277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
280 | oldincludedir="$ac_optarg" ;; | |
281 | ||
5436fc65 C |
282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
283 | ac_prev=prefix ;; | |
284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
285 | prefix="$ac_optarg" ;; | |
286 | ||
287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
288 | | --program-pre | --program-pr | --program-p) | |
289 | ac_prev=program_prefix ;; | |
290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
292 | program_prefix="$ac_optarg" ;; | |
293 | ||
294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
295 | | --program-suf | --program-su | --program-s) | |
296 | ac_prev=program_suffix ;; | |
297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
299 | program_suffix="$ac_optarg" ;; | |
300 | ||
301 | -program-transform-name | --program-transform-name \ | |
302 | | --program-transform-nam | --program-transform-na \ | |
303 | | --program-transform-n | --program-transform- \ | |
304 | | --program-transform | --program-transfor \ | |
305 | | --program-transfo | --program-transf \ | |
306 | | --program-trans | --program-tran \ | |
307 | | --progr-tra | --program-tr | --program-t) | |
308 | ac_prev=program_transform_name ;; | |
309 | -program-transform-name=* | --program-transform-name=* \ | |
310 | | --program-transform-nam=* | --program-transform-na=* \ | |
311 | | --program-transform-n=* | --program-transform-=* \ | |
312 | | --program-transform=* | --program-transfor=* \ | |
313 | | --program-transfo=* | --program-transf=* \ | |
314 | | --program-trans=* | --program-tran=* \ | |
315 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
316 | program_transform_name="$ac_optarg" ;; | |
317 | ||
318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
319 | | -silent | --silent | --silen | --sile | --sil) | |
320 | silent=yes ;; | |
321 | ||
1a7b4b7c DE |
322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
323 | ac_prev=sbindir ;; | |
324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
325 | | --sbi=* | --sb=*) | |
326 | sbindir="$ac_optarg" ;; | |
327 | ||
328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
330 | | --sharedst | --shareds | --shared | --share | --shar \ | |
331 | | --sha | --sh) | |
332 | ac_prev=sharedstatedir ;; | |
333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
336 | | --sha=* | --sh=*) | |
337 | sharedstatedir="$ac_optarg" ;; | |
338 | ||
5436fc65 C |
339 | -site | --site | --sit) |
340 | ac_prev=site ;; | |
341 | -site=* | --site=* | --sit=*) | |
342 | site="$ac_optarg" ;; | |
343 | ||
344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
345 | ac_prev=srcdir ;; | |
346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
347 | srcdir="$ac_optarg" ;; | |
348 | ||
1a7b4b7c DE |
349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
350 | | --syscon | --sysco | --sysc | --sys | --sy) | |
351 | ac_prev=sysconfdir ;; | |
352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
354 | sysconfdir="$ac_optarg" ;; | |
355 | ||
5436fc65 C |
356 | -target | --target | --targe | --targ | --tar | --ta | --t) |
357 | ac_prev=target ;; | |
358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
359 | target="$ac_optarg" ;; | |
360 | ||
361 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
362 | verbose=yes ;; | |
363 | ||
364 | -version | --version | --versio | --versi | --vers) | |
4ff3dfab | 365 | echo "configure generated by autoconf version 2.12" |
5436fc65 C |
366 | exit 0 ;; |
367 | ||
368 | -with-* | --with-*) | |
369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
370 | # Reject names that are not valid shell variable names. | |
371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
373 | fi | |
374 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
375 | case "$ac_option" in | |
376 | *=*) ;; | |
377 | *) ac_optarg=yes ;; | |
378 | esac | |
379 | eval "with_${ac_package}='$ac_optarg'" ;; | |
380 | ||
381 | -without-* | --without-*) | |
382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
383 | # Reject names that are not valid shell variable names. | |
384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
386 | fi | |
387 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
388 | eval "with_${ac_package}=no" ;; | |
389 | ||
390 | --x) | |
391 | # Obsolete; use --with-x. | |
392 | with_x=yes ;; | |
393 | ||
394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
395 | | --x-incl | --x-inc | --x-in | --x-i) | |
396 | ac_prev=x_includes ;; | |
397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
399 | x_includes="$ac_optarg" ;; | |
400 | ||
401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
403 | ac_prev=x_libraries ;; | |
404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
406 | x_libraries="$ac_optarg" ;; | |
407 | ||
408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
409 | ;; | |
410 | ||
1a7b4b7c | 411 | *) |
5436fc65 C |
412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
413 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
414 | fi | |
415 | if test "x$nonopt" != xNONE; then | |
416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
417 | fi | |
418 | nonopt="$ac_option" | |
419 | ;; | |
420 | ||
421 | esac | |
422 | done | |
423 | ||
424 | if test -n "$ac_prev"; then | |
425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
426 | fi | |
427 | ||
428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
429 | ||
430 | # File descriptor usage: | |
431 | # 0 standard input | |
432 | # 1 file creation | |
433 | # 2 errors and warnings | |
434 | # 3 some systems may open it to /dev/tty | |
435 | # 4 used on the Kubota Titan | |
436 | # 6 checking for... messages and results | |
437 | # 5 compiler messages saved in config.log | |
438 | if test "$silent" = yes; then | |
439 | exec 6>/dev/null | |
440 | else | |
441 | exec 6>&1 | |
442 | fi | |
443 | exec 5>./config.log | |
444 | ||
445 | echo "\ | |
446 | This file contains any messages produced by compilers while | |
447 | running configure, to aid debugging if configure makes a mistake. | |
448 | " 1>&5 | |
449 | ||
450 | # Strip out --no-create and --no-recursion so they do not pile up. | |
451 | # Also quote any args containing shell metacharacters. | |
452 | ac_configure_args= | |
453 | for ac_arg | |
454 | do | |
455 | case "$ac_arg" in | |
456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
457 | | --no-cr | --no-c) ;; | |
458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
463 | esac | |
464 | done | |
465 | ||
466 | # NLS nuisances. | |
bfde4a67 SG |
467 | # Only set these to C if already set. These must not be set unconditionally |
468 | # because not all systems understand e.g. LANG=C (notably SCO). | |
469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
470 | # Non-C LC_CTYPE values break the ctype check. | |
ef6c51d1 | 471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
bfde4a67 SG |
472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
5436fc65 C |
475 | |
476 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
477 | rm -rf conftest* confdefs.h | |
478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
479 | echo > confdefs.h | |
480 | ||
481 | # A filename unique to this package, relative to the directory that | |
482 | # configure is in, which we can look for to find out if srcdir is correct. | |
483 | ac_unique_file=main.c | |
484 | ||
485 | # Find the source files, if location was not specified. | |
486 | if test -z "$srcdir"; then | |
487 | ac_srcdir_defaulted=yes | |
488 | # Try the directory containing this script, then its parent. | |
489 | ac_prog=$0 | |
490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
492 | srcdir=$ac_confdir | |
493 | if test ! -r $srcdir/$ac_unique_file; then | |
494 | srcdir=.. | |
495 | fi | |
496 | else | |
497 | ac_srcdir_defaulted=no | |
498 | fi | |
499 | if test ! -r $srcdir/$ac_unique_file; then | |
500 | if test "$ac_srcdir_defaulted" = yes; then | |
501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
502 | else | |
503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
504 | fi | |
505 | fi | |
506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
507 | ||
508 | # Prefer explicitly selected file to automatically selected ones. | |
509 | if test -z "$CONFIG_SITE"; then | |
510 | if test "x$prefix" != xNONE; then | |
511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
512 | else | |
513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
514 | fi | |
515 | fi | |
516 | for ac_site_file in $CONFIG_SITE; do | |
517 | if test -r "$ac_site_file"; then | |
518 | echo "loading site script $ac_site_file" | |
519 | . "$ac_site_file" | |
520 | fi | |
521 | done | |
522 | ||
523 | if test -r "$cache_file"; then | |
524 | echo "loading cache $cache_file" | |
525 | . $cache_file | |
526 | else | |
527 | echo "creating cache $cache_file" | |
528 | > $cache_file | |
529 | fi | |
530 | ||
531 | ac_ext=c | |
532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
3dedc867 | 533 | ac_cpp='$CPP $CPPFLAGS' |
1a7b4b7c | 534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
4ff3dfab | 535 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bfde4a67 | 536 | cross_compiling=$ac_cv_prog_cc_cross |
5436fc65 C |
537 | |
538 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
539 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
540 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
541 | ac_n= ac_c=' | |
542 | ' ac_t=' ' | |
543 | else | |
544 | ac_n=-n ac_c= ac_t= | |
545 | fi | |
546 | else | |
547 | ac_n= ac_c='\c' ac_t= | |
548 | fi | |
549 | ||
550 | ||
551 | ||
db210d08 | 552 | |
5436fc65 C |
553 | # Extract the first word of "gcc", so it can be a program name with args. |
554 | set dummy gcc; ac_word=$2 | |
555 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 556 | echo "configure:557: checking for $ac_word" >&5 |
5436fc65 C |
557 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
559 | else | |
560 | if test -n "$CC"; then | |
561 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
562 | else | |
4ff3dfab | 563 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
da3d57e3 | 564 | for ac_dir in $PATH; do |
5436fc65 C |
565 | test -z "$ac_dir" && ac_dir=. |
566 | if test -f $ac_dir/$ac_word; then | |
567 | ac_cv_prog_CC="gcc" | |
568 | break | |
569 | fi | |
570 | done | |
571 | IFS="$ac_save_ifs" | |
5436fc65 C |
572 | fi |
573 | fi | |
574 | CC="$ac_cv_prog_CC" | |
575 | if test -n "$CC"; then | |
576 | echo "$ac_t""$CC" 1>&6 | |
577 | else | |
578 | echo "$ac_t""no" 1>&6 | |
579 | fi | |
580 | ||
1a7b4b7c DE |
581 | if test -z "$CC"; then |
582 | # Extract the first word of "cc", so it can be a program name with args. | |
583 | set dummy cc; ac_word=$2 | |
584 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 585 | echo "configure:586: checking for $ac_word" >&5 |
1a7b4b7c DE |
586 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
588 | else | |
589 | if test -n "$CC"; then | |
590 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
591 | else | |
4ff3dfab | 592 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1a7b4b7c DE |
593 | ac_prog_rejected=no |
594 | for ac_dir in $PATH; do | |
595 | test -z "$ac_dir" && ac_dir=. | |
596 | if test -f $ac_dir/$ac_word; then | |
597 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
598 | ac_prog_rejected=yes | |
599 | continue | |
600 | fi | |
601 | ac_cv_prog_CC="cc" | |
602 | break | |
603 | fi | |
604 | done | |
605 | IFS="$ac_save_ifs" | |
606 | if test $ac_prog_rejected = yes; then | |
607 | # We found a bogon in the path, so make sure we never use it. | |
608 | set dummy $ac_cv_prog_CC | |
609 | shift | |
610 | if test $# -gt 0; then | |
611 | # We chose a different compiler from the bogus one. | |
612 | # However, it has the same basename, so the bogon will be chosen | |
613 | # first if we set CC to just the basename; use the full file name. | |
614 | shift | |
615 | set dummy "$ac_dir/$ac_word" "$@" | |
616 | shift | |
617 | ac_cv_prog_CC="$@" | |
618 | fi | |
619 | fi | |
620 | fi | |
621 | fi | |
622 | CC="$ac_cv_prog_CC" | |
623 | if test -n "$CC"; then | |
624 | echo "$ac_t""$CC" 1>&6 | |
625 | else | |
626 | echo "$ac_t""no" 1>&6 | |
627 | fi | |
628 | ||
629 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
630 | fi | |
5436fc65 | 631 | |
bfde4a67 | 632 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
4ff3dfab | 633 | echo "configure:634: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
bfde4a67 SG |
634 | |
635 | ac_ext=c | |
636 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
637 | ac_cpp='$CPP $CPPFLAGS' | |
638 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4ff3dfab | 639 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bfde4a67 SG |
640 | cross_compiling=$ac_cv_prog_cc_cross |
641 | ||
642 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 643 | #line 644 "configure" |
bfde4a67 SG |
644 | #include "confdefs.h" |
645 | main(){return(0);} | |
646 | EOF | |
4ff3dfab | 647 | if { (eval echo configure:648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bfde4a67 SG |
648 | ac_cv_prog_cc_works=yes |
649 | # If we can't run a trivial program, we are probably using a cross compiler. | |
650 | if (./conftest; exit) 2>/dev/null; then | |
651 | ac_cv_prog_cc_cross=no | |
652 | else | |
653 | ac_cv_prog_cc_cross=yes | |
654 | fi | |
655 | else | |
656 | echo "configure: failed program was:" >&5 | |
657 | cat conftest.$ac_ext >&5 | |
658 | ac_cv_prog_cc_works=no | |
659 | fi | |
660 | rm -fr conftest* | |
661 | ||
662 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
663 | if test $ac_cv_prog_cc_works = no; then | |
664 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
665 | fi | |
666 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
4ff3dfab | 667 | echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
bfde4a67 SG |
668 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
669 | cross_compiling=$ac_cv_prog_cc_cross | |
670 | ||
5436fc65 | 671 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
4ff3dfab | 672 | echo "configure:673: checking whether we are using GNU C" >&5 |
5436fc65 C |
673 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
675 | else | |
676 | cat > conftest.c <<EOF | |
677 | #ifdef __GNUC__ | |
678 | yes; | |
679 | #endif | |
680 | EOF | |
4ff3dfab | 681 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
5436fc65 C |
682 | ac_cv_prog_gcc=yes |
683 | else | |
684 | ac_cv_prog_gcc=no | |
685 | fi | |
686 | fi | |
1a7b4b7c | 687 | |
5436fc65 | 688 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
bfde4a67 | 689 | |
5436fc65 C |
690 | if test $ac_cv_prog_gcc = yes; then |
691 | GCC=yes | |
4ff3dfab JM |
692 | ac_test_CFLAGS="${CFLAGS+set}" |
693 | ac_save_CFLAGS="$CFLAGS" | |
694 | CFLAGS= | |
695 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
696 | echo "configure:697: checking whether ${CC-cc} accepts -g" >&5 | |
bfde4a67 | 697 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
5436fc65 C |
698 | echo $ac_n "(cached) $ac_c" 1>&6 |
699 | else | |
700 | echo 'void f(){}' > conftest.c | |
701 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
bfde4a67 | 702 | ac_cv_prog_cc_g=yes |
5436fc65 | 703 | else |
bfde4a67 | 704 | ac_cv_prog_cc_g=no |
5436fc65 C |
705 | fi |
706 | rm -f conftest* | |
707 | ||
708 | fi | |
1a7b4b7c | 709 | |
bfde4a67 | 710 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
4ff3dfab JM |
711 | if test "$ac_test_CFLAGS" = set; then |
712 | CFLAGS="$ac_save_CFLAGS" | |
713 | elif test $ac_cv_prog_cc_g = yes; then | |
bfde4a67 SG |
714 | CFLAGS="-g -O2" |
715 | else | |
eac4afd1 | 716 | CFLAGS="-O2" |
eac4afd1 | 717 | fi |
4ff3dfab JM |
718 | else |
719 | GCC= | |
720 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
5436fc65 C |
721 | fi |
722 | ||
723 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
4ff3dfab | 724 | echo "configure:725: checking how to run the C preprocessor" >&5 |
5436fc65 C |
725 | # On Suns, sometimes $CPP names a directory. |
726 | if test -n "$CPP" && test -d "$CPP"; then | |
727 | CPP= | |
728 | fi | |
729 | if test -z "$CPP"; then | |
730 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
732 | else | |
733 | # This must be in double quotes, not single quotes, because CPP may get | |
734 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
735 | CPP="${CC-cc} -E" | |
736 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
737 | # not just through cpp. | |
738 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 739 | #line 740 "configure" |
5436fc65 C |
740 | #include "confdefs.h" |
741 | #include <assert.h> | |
742 | Syntax Error | |
743 | EOF | |
1a7b4b7c | 744 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4ff3dfab JM |
745 | { (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
746 | ac_err=`grep -v '^ *+' conftest.out` | |
5436fc65 C |
747 | if test -z "$ac_err"; then |
748 | : | |
749 | else | |
750 | echo "$ac_err" >&5 | |
bfde4a67 SG |
751 | echo "configure: failed program was:" >&5 |
752 | cat conftest.$ac_ext >&5 | |
5436fc65 C |
753 | rm -rf conftest* |
754 | CPP="${CC-cc} -E -traditional-cpp" | |
755 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 756 | #line 757 "configure" |
eac4afd1 JM |
757 | #include "confdefs.h" |
758 | #include <assert.h> | |
759 | Syntax Error | |
760 | EOF | |
761 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
762 | { (eval echo configure:763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
763 | ac_err=`grep -v '^ *+' conftest.out` | |
5436fc65 C |
764 | if test -z "$ac_err"; then |
765 | : | |
766 | else | |
767 | echo "$ac_err" >&5 | |
bfde4a67 SG |
768 | echo "configure: failed program was:" >&5 |
769 | cat conftest.$ac_ext >&5 | |
5436fc65 | 770 | rm -rf conftest* |
fcfc3c0c TT |
771 | CPP=/lib/cpp |
772 | fi | |
773 | rm -f conftest* | |
774 | fi | |
775 | rm -f conftest* | |
776 | ac_cv_prog_CPP="$CPP" | |
777 | fi | |
778 | CPP="$ac_cv_prog_CPP" | |
779 | else | |
780 | ac_cv_prog_CPP="$CPP" | |
781 | fi | |
782 | echo "$ac_t""$CPP" 1>&6 | |
783 | ||
784 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
4ff3dfab | 785 | echo "configure:786: checking for AIX" >&5 |
fcfc3c0c | 786 | cat > conftest.$ac_ext <<EOF |
4ff3dfab | 787 | #line 788 "configure" |
fcfc3c0c TT |
788 | #include "confdefs.h" |
789 | #ifdef _AIX | |
790 | yes | |
791 | #endif | |
792 | ||
793 | EOF | |
794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
795 | egrep "yes" >/dev/null 2>&1; then | |
796 | rm -rf conftest* | |
797 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
798 | #define _ALL_SOURCE 1 | |
799 | EOF | |
800 | ||
801 | else | |
802 | rm -rf conftest* | |
803 | echo "$ac_t""no" 1>&6 | |
804 | fi | |
805 | rm -f conftest* | |
806 | ||
807 | ||
808 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` | |
809 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | |
4ff3dfab | 810 | echo "configure:811: checking for minix/config.h" >&5 |
fcfc3c0c TT |
811 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
813 | else | |
814 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 815 | #line 816 "configure" |
fcfc3c0c TT |
816 | #include "confdefs.h" |
817 | #include <minix/config.h> | |
818 | EOF | |
819 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
820 | { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
821 | ac_err=`grep -v '^ *+' conftest.out` | |
fcfc3c0c TT |
822 | if test -z "$ac_err"; then |
823 | rm -rf conftest* | |
824 | eval "ac_cv_header_$ac_safe=yes" | |
825 | else | |
826 | echo "$ac_err" >&5 | |
827 | echo "configure: failed program was:" >&5 | |
828 | cat conftest.$ac_ext >&5 | |
829 | rm -rf conftest* | |
830 | eval "ac_cv_header_$ac_safe=no" | |
831 | fi | |
832 | rm -f conftest* | |
833 | fi | |
834 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
835 | echo "$ac_t""yes" 1>&6 | |
836 | MINIX=yes | |
837 | else | |
838 | echo "$ac_t""no" 1>&6 | |
839 | MINIX= | |
840 | fi | |
841 | ||
842 | if test "$MINIX" = yes; then | |
843 | cat >> confdefs.h <<\EOF | |
844 | #define _POSIX_SOURCE 1 | |
845 | EOF | |
846 | ||
847 | cat >> confdefs.h <<\EOF | |
848 | #define _POSIX_1_SOURCE 2 | |
849 | EOF | |
850 | ||
851 | cat >> confdefs.h <<\EOF | |
852 | #define _MINIX 1 | |
853 | EOF | |
854 | ||
855 | fi | |
856 | ||
857 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
4ff3dfab | 858 | echo "configure:859: checking for POSIXized ISC" >&5 |
fcfc3c0c TT |
859 | if test -d /etc/conf/kconfig.d && |
860 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
861 | then | |
862 | echo "$ac_t""yes" 1>&6 | |
863 | ISC=yes # If later tests want to check for ISC. | |
864 | cat >> confdefs.h <<\EOF | |
865 | #define _POSIX_SOURCE 1 | |
866 | EOF | |
867 | ||
868 | if test "$GCC" = yes; then | |
869 | CC="$CC -posix" | |
870 | else | |
871 | CC="$CC -Xp" | |
872 | fi | |
873 | else | |
874 | echo "$ac_t""no" 1>&6 | |
875 | ISC= | |
876 | fi | |
877 | ||
878 | ||
879 | DLLTOOL=${DLLTOOL-dlltool} | |
880 | ||
881 | ||
882 | ac_aux_dir= | |
883 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
884 | if test -f $ac_dir/install-sh; then | |
885 | ac_aux_dir=$ac_dir | |
886 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
887 | break | |
888 | elif test -f $ac_dir/install.sh; then | |
889 | ac_aux_dir=$ac_dir | |
890 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
891 | break | |
892 | fi | |
893 | done | |
894 | if test -z "$ac_aux_dir"; then | |
895 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; } | |
896 | fi | |
897 | ac_config_guess=$ac_aux_dir/config.guess | |
898 | ac_config_sub=$ac_aux_dir/config.sub | |
899 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
900 | ||
901 | ||
902 | # Do some error checking and defaulting for the host and target type. | |
903 | # The inputs are: | |
904 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
905 | # | |
906 | # The rules are: | |
907 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
908 | # same time. | |
909 | # 2. Host defaults to nonopt. | |
910 | # 3. If nonopt is not specified, then host defaults to the current host, | |
911 | # as determined by config.guess. | |
912 | # 4. Target and build default to nonopt. | |
913 | # 5. If nonopt is not specified, then target and build default to host. | |
914 | ||
915 | # The aliases save the names the user supplied, while $host etc. | |
916 | # will get canonicalized. | |
917 | case $host---$target---$nonopt in | |
918 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
919 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
920 | esac | |
921 | ||
922 | ||
923 | # Make sure we can run config.sub. | |
4ff3dfab | 924 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
fcfc3c0c TT |
925 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
926 | fi | |
927 | ||
928 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
4ff3dfab | 929 | echo "configure:930: checking host system type" >&5 |
fcfc3c0c TT |
930 | |
931 | host_alias=$host | |
932 | case "$host_alias" in | |
933 | NONE) | |
934 | case $nonopt in | |
935 | NONE) | |
4ff3dfab | 936 | if host_alias=`$ac_config_guess`; then : |
fcfc3c0c TT |
937 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
938 | fi ;; | |
939 | *) host_alias=$nonopt ;; | |
940 | esac ;; | |
941 | esac | |
942 | ||
4ff3dfab | 943 | host=`$ac_config_sub $host_alias` |
fcfc3c0c TT |
944 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
945 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
946 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
947 | echo "$ac_t""$host" 1>&6 | |
948 | ||
949 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
4ff3dfab | 950 | echo "configure:951: checking target system type" >&5 |
fcfc3c0c TT |
951 | |
952 | target_alias=$target | |
953 | case "$target_alias" in | |
954 | NONE) | |
955 | case $nonopt in | |
956 | NONE) target_alias=$host_alias ;; | |
957 | *) target_alias=$nonopt ;; | |
958 | esac ;; | |
959 | esac | |
960 | ||
4ff3dfab | 961 | target=`$ac_config_sub $target_alias` |
fcfc3c0c TT |
962 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
963 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
964 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
965 | echo "$ac_t""$target" 1>&6 | |
966 | ||
967 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
4ff3dfab | 968 | echo "configure:969: checking build system type" >&5 |
fcfc3c0c TT |
969 | |
970 | build_alias=$build | |
971 | case "$build_alias" in | |
972 | NONE) | |
973 | case $nonopt in | |
974 | NONE) build_alias=$host_alias ;; | |
975 | *) build_alias=$nonopt ;; | |
976 | esac ;; | |
977 | esac | |
978 | ||
4ff3dfab | 979 | build=`$ac_config_sub $build_alias` |
fcfc3c0c TT |
980 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
981 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
982 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
983 | echo "$ac_t""$build" 1>&6 | |
984 | ||
985 | test "$host_alias" != "$target_alias" && | |
986 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
987 | NONENONEs,x,x, && | |
988 | program_prefix=${target_alias}- | |
989 | ||
990 | ||
991 | ALL_LINGUAS= | |
992 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
4ff3dfab | 993 | echo "configure:994: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
fcfc3c0c TT |
994 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
995 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
997 | else | |
998 | cat > conftestmake <<\EOF | |
999 | all: | |
1000 | @echo 'ac_maketemp="${MAKE}"' | |
1001 | EOF | |
1002 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1003 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1004 | if test -n "$ac_maketemp"; then | |
1005 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1006 | else | |
1007 | eval ac_cv_prog_make_${ac_make}_set=no | |
1008 | fi | |
1009 | rm -f conftestmake | |
1010 | fi | |
1011 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1012 | echo "$ac_t""yes" 1>&6 | |
1013 | SET_MAKE= | |
1014 | else | |
1015 | echo "$ac_t""no" 1>&6 | |
1016 | SET_MAKE="MAKE=${MAKE-make}" | |
1017 | fi | |
1018 | ||
1019 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1020 | set dummy ranlib; ac_word=$2 | |
1021 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 1022 | echo "configure:1023: checking for $ac_word" >&5 |
fcfc3c0c TT |
1023 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1025 | else | |
1026 | if test -n "$RANLIB"; then | |
1027 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1028 | else | |
4ff3dfab | 1029 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
fcfc3c0c TT |
1030 | for ac_dir in $PATH; do |
1031 | test -z "$ac_dir" && ac_dir=. | |
1032 | if test -f $ac_dir/$ac_word; then | |
1033 | ac_cv_prog_RANLIB="ranlib" | |
1034 | break | |
1035 | fi | |
1036 | done | |
1037 | IFS="$ac_save_ifs" | |
1038 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1039 | fi | |
1040 | fi | |
1041 | RANLIB="$ac_cv_prog_RANLIB" | |
1042 | if test -n "$RANLIB"; then | |
1043 | echo "$ac_t""$RANLIB" 1>&6 | |
1044 | else | |
1045 | echo "$ac_t""no" 1>&6 | |
1046 | fi | |
1047 | ||
1048 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
4ff3dfab | 1049 | echo "configure:1050: checking for ANSI C header files" >&5 |
fcfc3c0c TT |
1050 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1052 | else | |
1053 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1054 | #line 1055 "configure" |
fcfc3c0c TT |
1055 | #include "confdefs.h" |
1056 | #include <stdlib.h> | |
1057 | #include <stdarg.h> | |
1058 | #include <string.h> | |
1059 | #include <float.h> | |
1060 | EOF | |
1061 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
1062 | { (eval echo configure:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1063 | ac_err=`grep -v '^ *+' conftest.out` | |
fcfc3c0c TT |
1064 | if test -z "$ac_err"; then |
1065 | rm -rf conftest* | |
1066 | ac_cv_header_stdc=yes | |
1067 | else | |
1068 | echo "$ac_err" >&5 | |
1069 | echo "configure: failed program was:" >&5 | |
1070 | cat conftest.$ac_ext >&5 | |
1071 | rm -rf conftest* | |
1072 | ac_cv_header_stdc=no | |
1073 | fi | |
1074 | rm -f conftest* | |
1075 | ||
1076 | if test $ac_cv_header_stdc = yes; then | |
1077 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1078 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1079 | #line 1080 "configure" |
fcfc3c0c TT |
1080 | #include "confdefs.h" |
1081 | #include <string.h> | |
1082 | EOF | |
1083 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1084 | egrep "memchr" >/dev/null 2>&1; then | |
1085 | : | |
1086 | else | |
1087 | rm -rf conftest* | |
1088 | ac_cv_header_stdc=no | |
1089 | fi | |
1090 | rm -f conftest* | |
1091 | ||
1092 | fi | |
1093 | ||
1094 | if test $ac_cv_header_stdc = yes; then | |
1095 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1096 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1097 | #line 1098 "configure" |
fcfc3c0c TT |
1098 | #include "confdefs.h" |
1099 | #include <stdlib.h> | |
1100 | EOF | |
1101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1102 | egrep "free" >/dev/null 2>&1; then | |
1103 | : | |
1104 | else | |
1105 | rm -rf conftest* | |
1106 | ac_cv_header_stdc=no | |
1107 | fi | |
1108 | rm -f conftest* | |
1109 | ||
1110 | fi | |
1111 | ||
1112 | if test $ac_cv_header_stdc = yes; then | |
1113 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1114 | if test "$cross_compiling" = yes; then | |
1115 | : | |
1116 | else | |
1117 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1118 | #line 1119 "configure" |
fcfc3c0c TT |
1119 | #include "confdefs.h" |
1120 | #include <ctype.h> | |
1121 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1122 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1123 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1124 | int main () { int i; for (i = 0; i < 256; i++) | |
1125 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1126 | exit (0); } | |
1127 | ||
1128 | EOF | |
4ff3dfab | 1129 | if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
fcfc3c0c TT |
1130 | then |
1131 | : | |
1132 | else | |
1133 | echo "configure: failed program was:" >&5 | |
1134 | cat conftest.$ac_ext >&5 | |
1135 | rm -fr conftest* | |
1136 | ac_cv_header_stdc=no | |
1137 | fi | |
1138 | rm -fr conftest* | |
1139 | fi | |
1140 | ||
1141 | fi | |
1142 | fi | |
1143 | ||
1144 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1145 | if test $ac_cv_header_stdc = yes; then | |
1146 | cat >> confdefs.h <<\EOF | |
1147 | #define STDC_HEADERS 1 | |
1148 | EOF | |
1149 | ||
1150 | fi | |
1151 | ||
1152 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
4ff3dfab | 1153 | echo "configure:1154: checking for working const" >&5 |
fcfc3c0c TT |
1154 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1156 | else | |
1157 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1158 | #line 1159 "configure" |
fcfc3c0c TT |
1159 | #include "confdefs.h" |
1160 | ||
1161 | int main() { | |
1162 | ||
1163 | /* Ultrix mips cc rejects this. */ | |
1164 | typedef int charset[2]; const charset x; | |
1165 | /* SunOS 4.1.1 cc rejects this. */ | |
1166 | char const *const *ccp; | |
1167 | char **p; | |
1168 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1169 | struct point {int x, y;}; | |
1170 | static struct point const zero = {0,0}; | |
1171 | /* AIX XL C 1.02.0.0 rejects this. | |
1172 | It does not let you subtract one const X* pointer from another in an arm | |
1173 | of an if-expression whose if-part is not a constant expression */ | |
1174 | const char *g = "string"; | |
1175 | ccp = &g + (g ? g-g : 0); | |
1176 | /* HPUX 7.0 cc rejects these. */ | |
1177 | ++ccp; | |
1178 | p = (char**) ccp; | |
1179 | ccp = (char const *const *) p; | |
1180 | { /* SCO 3.2v4 cc rejects this. */ | |
1181 | char *t; | |
1182 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1183 | ||
1184 | *t++ = 0; | |
1185 | } | |
1186 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1187 | int x[] = {25, 17}; | |
1188 | const int *foo = &x[0]; | |
1189 | ++foo; | |
1190 | } | |
1191 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1192 | typedef const int *iptr; | |
1193 | iptr p = 0; | |
1194 | ++p; | |
1195 | } | |
1196 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1197 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1198 | struct s { int j; const int *ap[3]; }; | |
1199 | struct s *b; b->j = 5; | |
1200 | } | |
1201 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1202 | const int foo = 10; | |
1203 | } | |
1204 | ||
1205 | ; return 0; } | |
1206 | EOF | |
4ff3dfab | 1207 | if { (eval echo configure:1208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
fcfc3c0c TT |
1208 | rm -rf conftest* |
1209 | ac_cv_c_const=yes | |
1210 | else | |
1211 | echo "configure: failed program was:" >&5 | |
1212 | cat conftest.$ac_ext >&5 | |
1213 | rm -rf conftest* | |
1214 | ac_cv_c_const=no | |
1215 | fi | |
1216 | rm -f conftest* | |
1217 | fi | |
1218 | ||
1219 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
1220 | if test $ac_cv_c_const = no; then | |
1221 | cat >> confdefs.h <<\EOF | |
1222 | #define const | |
1223 | EOF | |
1224 | ||
1225 | fi | |
1226 | ||
1227 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
4ff3dfab | 1228 | echo "configure:1229: checking for inline" >&5 |
fcfc3c0c TT |
1229 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
1230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1231 | else | |
1232 | ac_cv_c_inline=no | |
1233 | for ac_kw in inline __inline__ __inline; do | |
1234 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1235 | #line 1236 "configure" |
fcfc3c0c TT |
1236 | #include "confdefs.h" |
1237 | ||
1238 | int main() { | |
1239 | } $ac_kw foo() { | |
1240 | ; return 0; } | |
1241 | EOF | |
4ff3dfab | 1242 | if { (eval echo configure:1243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
fcfc3c0c TT |
1243 | rm -rf conftest* |
1244 | ac_cv_c_inline=$ac_kw; break | |
1245 | else | |
1246 | echo "configure: failed program was:" >&5 | |
1247 | cat conftest.$ac_ext >&5 | |
1248 | fi | |
1249 | rm -f conftest* | |
1250 | done | |
1251 | ||
1252 | fi | |
1253 | ||
1254 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
1255 | case "$ac_cv_c_inline" in | |
1256 | inline | yes) ;; | |
1257 | no) cat >> confdefs.h <<\EOF | |
1258 | #define inline | |
1259 | EOF | |
1260 | ;; | |
1261 | *) cat >> confdefs.h <<EOF | |
1262 | #define inline $ac_cv_c_inline | |
1263 | EOF | |
1264 | ;; | |
1265 | esac | |
1266 | ||
1267 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
4ff3dfab | 1268 | echo "configure:1269: checking for off_t" >&5 |
fcfc3c0c TT |
1269 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
1270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1271 | else | |
1272 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1273 | #line 1274 "configure" |
fcfc3c0c TT |
1274 | #include "confdefs.h" |
1275 | #include <sys/types.h> | |
1276 | #if STDC_HEADERS | |
1277 | #include <stdlib.h> | |
1278 | #include <stddef.h> | |
1279 | #endif | |
1280 | EOF | |
1281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1282 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1283 | rm -rf conftest* | |
1284 | ac_cv_type_off_t=yes | |
1285 | else | |
1286 | rm -rf conftest* | |
1287 | ac_cv_type_off_t=no | |
1288 | fi | |
1289 | rm -f conftest* | |
1290 | ||
1291 | fi | |
1292 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
1293 | if test $ac_cv_type_off_t = no; then | |
1294 | cat >> confdefs.h <<\EOF | |
1295 | #define off_t long | |
1296 | EOF | |
1297 | ||
1298 | fi | |
1299 | ||
1300 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
4ff3dfab | 1301 | echo "configure:1302: checking for size_t" >&5 |
fcfc3c0c TT |
1302 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1304 | else | |
1305 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1306 | #line 1307 "configure" |
fcfc3c0c TT |
1307 | #include "confdefs.h" |
1308 | #include <sys/types.h> | |
1309 | #if STDC_HEADERS | |
1310 | #include <stdlib.h> | |
1311 | #include <stddef.h> | |
1312 | #endif | |
1313 | EOF | |
1314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1315 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1316 | rm -rf conftest* | |
1317 | ac_cv_type_size_t=yes | |
1318 | else | |
1319 | rm -rf conftest* | |
1320 | ac_cv_type_size_t=no | |
1321 | fi | |
1322 | rm -f conftest* | |
1323 | ||
1324 | fi | |
1325 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
1326 | if test $ac_cv_type_size_t = no; then | |
1327 | cat >> confdefs.h <<\EOF | |
1328 | #define size_t unsigned | |
1329 | EOF | |
1330 | ||
1331 | fi | |
1332 | ||
1333 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
1334 | # for constant arguments. Useless! | |
1335 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
4ff3dfab | 1336 | echo "configure:1337: checking for working alloca.h" >&5 |
fcfc3c0c TT |
1337 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
1338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1339 | else | |
1340 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1341 | #line 1342 "configure" |
fcfc3c0c TT |
1342 | #include "confdefs.h" |
1343 | #include <alloca.h> | |
1344 | int main() { | |
1345 | char *p = alloca(2 * sizeof(int)); | |
1346 | ; return 0; } | |
1347 | EOF | |
4ff3dfab | 1348 | if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
1349 | rm -rf conftest* |
1350 | ac_cv_header_alloca_h=yes | |
1351 | else | |
1352 | echo "configure: failed program was:" >&5 | |
1353 | cat conftest.$ac_ext >&5 | |
1354 | rm -rf conftest* | |
1355 | ac_cv_header_alloca_h=no | |
1356 | fi | |
1357 | rm -f conftest* | |
1358 | fi | |
1359 | ||
1360 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
1361 | if test $ac_cv_header_alloca_h = yes; then | |
1362 | cat >> confdefs.h <<\EOF | |
1363 | #define HAVE_ALLOCA_H 1 | |
1364 | EOF | |
1365 | ||
1366 | fi | |
1367 | ||
1368 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
4ff3dfab | 1369 | echo "configure:1370: checking for alloca" >&5 |
fcfc3c0c TT |
1370 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
1371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1372 | else | |
1373 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1374 | #line 1375 "configure" |
fcfc3c0c TT |
1375 | #include "confdefs.h" |
1376 | ||
1377 | #ifdef __GNUC__ | |
1378 | # define alloca __builtin_alloca | |
1379 | #else | |
4ff3dfab JM |
1380 | # if HAVE_ALLOCA_H |
1381 | # include <alloca.h> | |
fcfc3c0c | 1382 | # else |
4ff3dfab | 1383 | # ifdef _AIX |
eac4afd1 | 1384 | #pragma alloca |
4ff3dfab JM |
1385 | # else |
1386 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
fcfc3c0c TT |
1387 | char *alloca (); |
1388 | # endif | |
1389 | # endif | |
1390 | # endif | |
1391 | #endif | |
1392 | ||
1393 | int main() { | |
1394 | char *p = (char *) alloca(1); | |
1395 | ; return 0; } | |
1396 | EOF | |
4ff3dfab | 1397 | if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
1398 | rm -rf conftest* |
1399 | ac_cv_func_alloca_works=yes | |
1400 | else | |
1401 | echo "configure: failed program was:" >&5 | |
1402 | cat conftest.$ac_ext >&5 | |
1403 | rm -rf conftest* | |
1404 | ac_cv_func_alloca_works=no | |
1405 | fi | |
1406 | rm -f conftest* | |
1407 | fi | |
1408 | ||
1409 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
1410 | if test $ac_cv_func_alloca_works = yes; then | |
1411 | cat >> confdefs.h <<\EOF | |
1412 | #define HAVE_ALLOCA 1 | |
1413 | EOF | |
1414 | ||
1415 | fi | |
1416 | ||
1417 | if test $ac_cv_func_alloca_works = no; then | |
1418 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
1419 | # that cause trouble. Some versions do not even contain alloca or | |
1420 | # contain a buggy version. If you still want to use their alloca, | |
1421 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4ff3dfab | 1422 | ALLOCA=alloca.o |
fcfc3c0c TT |
1423 | cat >> confdefs.h <<\EOF |
1424 | #define C_ALLOCA 1 | |
1425 | EOF | |
1426 | ||
1427 | ||
1428 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
4ff3dfab | 1429 | echo "configure:1430: checking whether alloca needs Cray hooks" >&5 |
fcfc3c0c TT |
1430 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
1431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1432 | else | |
1433 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1434 | #line 1435 "configure" |
fcfc3c0c TT |
1435 | #include "confdefs.h" |
1436 | #if defined(CRAY) && ! defined(CRAY2) | |
1437 | webecray | |
1438 | #else | |
1439 | wenotbecray | |
1440 | #endif | |
1441 | ||
1442 | EOF | |
1443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1444 | egrep "webecray" >/dev/null 2>&1; then | |
1445 | rm -rf conftest* | |
1446 | ac_cv_os_cray=yes | |
1447 | else | |
1448 | rm -rf conftest* | |
1449 | ac_cv_os_cray=no | |
1450 | fi | |
1451 | rm -f conftest* | |
1452 | ||
1453 | fi | |
1454 | ||
1455 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
1456 | if test $ac_cv_os_cray = yes; then | |
1457 | for ac_func in _getb67 GETB67 getb67; do | |
1458 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 1459 | echo "configure:1460: checking for $ac_func" >&5 |
fcfc3c0c TT |
1460 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1462 | else | |
1463 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1464 | #line 1465 "configure" |
fcfc3c0c TT |
1465 | #include "confdefs.h" |
1466 | /* System header to define __stub macros and hopefully few prototypes, | |
1467 | which can conflict with char $ac_func(); below. */ | |
1468 | #include <assert.h> | |
1469 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1470 | /* We use char because int might match the return type of a gcc2 | |
1471 | builtin and then its argument prototype would still apply. */ | |
1472 | char $ac_func(); | |
1473 | ||
1474 | int main() { | |
1475 | ||
1476 | /* The GNU C library defines this for functions which it implements | |
1477 | to always fail with ENOSYS. Some functions are actually named | |
1478 | something starting with __ and the normal name is an alias. */ | |
1479 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1480 | choke me | |
1481 | #else | |
1482 | $ac_func(); | |
1483 | #endif | |
1484 | ||
1485 | ; return 0; } | |
1486 | EOF | |
4ff3dfab | 1487 | if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
1488 | rm -rf conftest* |
1489 | eval "ac_cv_func_$ac_func=yes" | |
1490 | else | |
1491 | echo "configure: failed program was:" >&5 | |
1492 | cat conftest.$ac_ext >&5 | |
1493 | rm -rf conftest* | |
1494 | eval "ac_cv_func_$ac_func=no" | |
1495 | fi | |
1496 | rm -f conftest* | |
1497 | fi | |
1498 | ||
1499 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1500 | echo "$ac_t""yes" 1>&6 | |
1501 | cat >> confdefs.h <<EOF | |
1502 | #define CRAY_STACKSEG_END $ac_func | |
1503 | EOF | |
1504 | ||
1505 | break | |
1506 | else | |
1507 | echo "$ac_t""no" 1>&6 | |
1508 | fi | |
1509 | ||
1510 | done | |
1511 | fi | |
1512 | ||
1513 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
4ff3dfab | 1514 | echo "configure:1515: checking stack direction for C alloca" >&5 |
fcfc3c0c TT |
1515 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
1516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1517 | else | |
1518 | if test "$cross_compiling" = yes; then | |
1519 | ac_cv_c_stack_direction=0 | |
1520 | else | |
1521 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1522 | #line 1523 "configure" |
fcfc3c0c TT |
1523 | #include "confdefs.h" |
1524 | find_stack_direction () | |
1525 | { | |
1526 | static char *addr = 0; | |
1527 | auto char dummy; | |
1528 | if (addr == 0) | |
1529 | { | |
1530 | addr = &dummy; | |
1531 | return find_stack_direction (); | |
1532 | } | |
1533 | else | |
1534 | return (&dummy > addr) ? 1 : -1; | |
1535 | } | |
1536 | main () | |
1537 | { | |
1538 | exit (find_stack_direction() < 0); | |
1539 | } | |
1540 | EOF | |
4ff3dfab | 1541 | if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
fcfc3c0c TT |
1542 | then |
1543 | ac_cv_c_stack_direction=1 | |
1544 | else | |
1545 | echo "configure: failed program was:" >&5 | |
1546 | cat conftest.$ac_ext >&5 | |
1547 | rm -fr conftest* | |
1548 | ac_cv_c_stack_direction=-1 | |
1549 | fi | |
1550 | rm -fr conftest* | |
1551 | fi | |
1552 | ||
1553 | fi | |
1554 | ||
1555 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
1556 | cat >> confdefs.h <<EOF | |
1557 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
1558 | EOF | |
1559 | ||
1560 | fi | |
1561 | ||
1562 | for ac_hdr in unistd.h | |
1563 | do | |
1564 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1565 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4ff3dfab | 1566 | echo "configure:1567: checking for $ac_hdr" >&5 |
fcfc3c0c TT |
1567 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1569 | else | |
1570 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1571 | #line 1572 "configure" |
fcfc3c0c TT |
1572 | #include "confdefs.h" |
1573 | #include <$ac_hdr> | |
1574 | EOF | |
1575 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
1576 | { (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1577 | ac_err=`grep -v '^ *+' conftest.out` | |
fcfc3c0c TT |
1578 | if test -z "$ac_err"; then |
1579 | rm -rf conftest* | |
1580 | eval "ac_cv_header_$ac_safe=yes" | |
1581 | else | |
1582 | echo "$ac_err" >&5 | |
1583 | echo "configure: failed program was:" >&5 | |
1584 | cat conftest.$ac_ext >&5 | |
1585 | rm -rf conftest* | |
1586 | eval "ac_cv_header_$ac_safe=no" | |
1587 | fi | |
1588 | rm -f conftest* | |
1589 | fi | |
1590 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1591 | echo "$ac_t""yes" 1>&6 | |
1592 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1593 | cat >> confdefs.h <<EOF | |
1594 | #define $ac_tr_hdr 1 | |
1595 | EOF | |
1596 | ||
1597 | else | |
1598 | echo "$ac_t""no" 1>&6 | |
1599 | fi | |
1600 | done | |
1601 | ||
1602 | for ac_func in getpagesize | |
1603 | do | |
1604 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 1605 | echo "configure:1606: checking for $ac_func" >&5 |
fcfc3c0c TT |
1606 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1608 | else | |
1609 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1610 | #line 1611 "configure" |
fcfc3c0c TT |
1611 | #include "confdefs.h" |
1612 | /* System header to define __stub macros and hopefully few prototypes, | |
1613 | which can conflict with char $ac_func(); below. */ | |
1614 | #include <assert.h> | |
1615 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1616 | /* We use char because int might match the return type of a gcc2 | |
1617 | builtin and then its argument prototype would still apply. */ | |
1618 | char $ac_func(); | |
1619 | ||
1620 | int main() { | |
1621 | ||
1622 | /* The GNU C library defines this for functions which it implements | |
1623 | to always fail with ENOSYS. Some functions are actually named | |
1624 | something starting with __ and the normal name is an alias. */ | |
1625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1626 | choke me | |
1627 | #else | |
1628 | $ac_func(); | |
1629 | #endif | |
1630 | ||
1631 | ; return 0; } | |
1632 | EOF | |
4ff3dfab | 1633 | if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
1634 | rm -rf conftest* |
1635 | eval "ac_cv_func_$ac_func=yes" | |
1636 | else | |
1637 | echo "configure: failed program was:" >&5 | |
1638 | cat conftest.$ac_ext >&5 | |
1639 | rm -rf conftest* | |
1640 | eval "ac_cv_func_$ac_func=no" | |
1641 | fi | |
1642 | rm -f conftest* | |
1643 | fi | |
1644 | ||
1645 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1646 | echo "$ac_t""yes" 1>&6 | |
1647 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1648 | cat >> confdefs.h <<EOF | |
1649 | #define $ac_tr_func 1 | |
1650 | EOF | |
1651 | ||
1652 | else | |
1653 | echo "$ac_t""no" 1>&6 | |
1654 | fi | |
1655 | done | |
1656 | ||
1657 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
4ff3dfab | 1658 | echo "configure:1659: checking for working mmap" >&5 |
fcfc3c0c TT |
1659 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
1660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1661 | else | |
1662 | if test "$cross_compiling" = yes; then | |
1663 | ac_cv_func_mmap_fixed_mapped=no | |
1664 | else | |
1665 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1666 | #line 1667 "configure" |
fcfc3c0c TT |
1667 | #include "confdefs.h" |
1668 | ||
1669 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
1670 | Here is a matrix of mmap possibilities: | |
1671 | mmap private not fixed | |
1672 | mmap private fixed at somewhere currently unmapped | |
1673 | mmap private fixed at somewhere already mapped | |
1674 | mmap shared not fixed | |
1675 | mmap shared fixed at somewhere currently unmapped | |
1676 | mmap shared fixed at somewhere already mapped | |
1677 | For private mappings, we should verify that changes cannot be read() | |
1678 | back from the file, nor mmap's back from the file at a different | |
1679 | address. (There have been systems where private was not correctly | |
1680 | implemented like the infamous i386 svr4.0, and systems where the | |
1681 | VM page cache was not coherent with the filesystem buffer cache | |
1682 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
1683 | For shared mappings, we should conversely verify that changes get | |
1684 | propogated back to all the places they're supposed to be. | |
1685 | ||
1686 | Grep wants private fixed already mapped. | |
1687 | The main things grep needs to know about mmap are: | |
1688 | * does it exist and is it safe to write into the mmap'd area | |
1689 | * how to use it (BSD variants) */ | |
1690 | #include <sys/types.h> | |
1691 | #include <fcntl.h> | |
1692 | #include <sys/mman.h> | |
1693 | ||
1694 | /* This mess was copied from the GNU getpagesize.h. */ | |
1695 | #ifndef HAVE_GETPAGESIZE | |
1696 | # ifdef HAVE_UNISTD_H | |
1697 | # include <unistd.h> | |
1698 | # endif | |
1699 | ||
1700 | /* Assume that all systems that can run configure have sys/param.h. */ | |
1701 | # ifndef HAVE_SYS_PARAM_H | |
1702 | # define HAVE_SYS_PARAM_H 1 | |
1703 | # endif | |
1704 | ||
1705 | # ifdef _SC_PAGESIZE | |
1706 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
1707 | # else /* no _SC_PAGESIZE */ | |
1708 | # ifdef HAVE_SYS_PARAM_H | |
1709 | # include <sys/param.h> | |
1710 | # ifdef EXEC_PAGESIZE | |
1711 | # define getpagesize() EXEC_PAGESIZE | |
1712 | # else /* no EXEC_PAGESIZE */ | |
1713 | # ifdef NBPG | |
1714 | # define getpagesize() NBPG * CLSIZE | |
1715 | # ifndef CLSIZE | |
1716 | # define CLSIZE 1 | |
1717 | # endif /* no CLSIZE */ | |
1718 | # else /* no NBPG */ | |
1719 | # ifdef NBPC | |
1720 | # define getpagesize() NBPC | |
1721 | # else /* no NBPC */ | |
1722 | # ifdef PAGESIZE | |
1723 | # define getpagesize() PAGESIZE | |
1724 | # endif /* PAGESIZE */ | |
1725 | # endif /* no NBPC */ | |
1726 | # endif /* no NBPG */ | |
1727 | # endif /* no EXEC_PAGESIZE */ | |
1728 | # else /* no HAVE_SYS_PARAM_H */ | |
1729 | # define getpagesize() 8192 /* punt totally */ | |
1730 | # endif /* no HAVE_SYS_PARAM_H */ | |
1731 | # endif /* no _SC_PAGESIZE */ | |
1732 | ||
1733 | #endif /* no HAVE_GETPAGESIZE */ | |
1734 | ||
1735 | #ifdef __cplusplus | |
1736 | extern "C" { void *malloc(unsigned); } | |
1737 | #else | |
1738 | char *malloc(); | |
1739 | #endif | |
1740 | ||
1741 | int | |
1742 | main() | |
1743 | { | |
1744 | char *data, *data2, *data3; | |
1745 | int i, pagesize; | |
1746 | int fd; | |
1747 | ||
1748 | pagesize = getpagesize(); | |
1749 | ||
1750 | /* | |
1751 | * First, make a file with some known garbage in it. | |
1752 | */ | |
1753 | data = malloc(pagesize); | |
1754 | if (!data) | |
1755 | exit(1); | |
1756 | for (i = 0; i < pagesize; ++i) | |
1757 | *(data + i) = rand(); | |
1758 | umask(0); | |
1759 | fd = creat("conftestmmap", 0600); | |
1760 | if (fd < 0) | |
1761 | exit(1); | |
1762 | if (write(fd, data, pagesize) != pagesize) | |
1763 | exit(1); | |
1764 | close(fd); | |
1765 | ||
1766 | /* | |
1767 | * Next, try to mmap the file at a fixed address which | |
1768 | * already has something else allocated at it. If we can, | |
1769 | * also make sure that we see the same garbage. | |
1770 | */ | |
1771 | fd = open("conftestmmap", O_RDWR); | |
1772 | if (fd < 0) | |
1773 | exit(1); | |
1774 | data2 = malloc(2 * pagesize); | |
1775 | if (!data2) | |
1776 | exit(1); | |
1777 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
1778 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
1779 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
1780 | exit(1); | |
1781 | for (i = 0; i < pagesize; ++i) | |
1782 | if (*(data + i) != *(data2 + i)) | |
1783 | exit(1); | |
1784 | ||
1785 | /* | |
1786 | * Finally, make sure that changes to the mapped area | |
1787 | * do not percolate back to the file as seen by read(). | |
1788 | * (This is a bug on some variants of i386 svr4.0.) | |
1789 | */ | |
1790 | for (i = 0; i < pagesize; ++i) | |
1791 | *(data2 + i) = *(data2 + i) + 1; | |
1792 | data3 = malloc(pagesize); | |
1793 | if (!data3) | |
1794 | exit(1); | |
1795 | if (read(fd, data3, pagesize) != pagesize) | |
1796 | exit(1); | |
1797 | for (i = 0; i < pagesize; ++i) | |
1798 | if (*(data + i) != *(data3 + i)) | |
1799 | exit(1); | |
1800 | close(fd); | |
1801 | unlink("conftestmmap"); | |
1802 | exit(0); | |
1803 | } | |
1804 | ||
1805 | EOF | |
4ff3dfab | 1806 | if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
fcfc3c0c TT |
1807 | then |
1808 | ac_cv_func_mmap_fixed_mapped=yes | |
1809 | else | |
1810 | echo "configure: failed program was:" >&5 | |
1811 | cat conftest.$ac_ext >&5 | |
1812 | rm -fr conftest* | |
1813 | ac_cv_func_mmap_fixed_mapped=no | |
1814 | fi | |
1815 | rm -fr conftest* | |
1816 | fi | |
1817 | ||
1818 | fi | |
1819 | ||
1820 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
1821 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
1822 | cat >> confdefs.h <<\EOF | |
1823 | #define HAVE_MMAP 1 | |
1824 | EOF | |
1825 | ||
1826 | fi | |
1827 | ||
1828 | ||
1829 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
1830 | unistd.h values.h sys/param.h | |
1831 | do | |
1832 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1833 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4ff3dfab | 1834 | echo "configure:1835: checking for $ac_hdr" >&5 |
fcfc3c0c TT |
1835 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1837 | else | |
1838 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1839 | #line 1840 "configure" |
fcfc3c0c TT |
1840 | #include "confdefs.h" |
1841 | #include <$ac_hdr> | |
1842 | EOF | |
1843 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
1844 | { (eval echo configure:1845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1845 | ac_err=`grep -v '^ *+' conftest.out` | |
fcfc3c0c TT |
1846 | if test -z "$ac_err"; then |
1847 | rm -rf conftest* | |
1848 | eval "ac_cv_header_$ac_safe=yes" | |
1849 | else | |
1850 | echo "$ac_err" >&5 | |
1851 | echo "configure: failed program was:" >&5 | |
1852 | cat conftest.$ac_ext >&5 | |
1853 | rm -rf conftest* | |
1854 | eval "ac_cv_header_$ac_safe=no" | |
1855 | fi | |
1856 | rm -f conftest* | |
1857 | fi | |
1858 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1859 | echo "$ac_t""yes" 1>&6 | |
1860 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1861 | cat >> confdefs.h <<EOF | |
1862 | #define $ac_tr_hdr 1 | |
1863 | EOF | |
1864 | ||
1865 | else | |
1866 | echo "$ac_t""no" 1>&6 | |
1867 | fi | |
1868 | done | |
1869 | ||
1870 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
1871 | __argz_count __argz_stringify __argz_next | |
1872 | do | |
1873 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 1874 | echo "configure:1875: checking for $ac_func" >&5 |
fcfc3c0c TT |
1875 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1877 | else | |
1878 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1879 | #line 1880 "configure" |
fcfc3c0c TT |
1880 | #include "confdefs.h" |
1881 | /* System header to define __stub macros and hopefully few prototypes, | |
1882 | which can conflict with char $ac_func(); below. */ | |
1883 | #include <assert.h> | |
1884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1885 | /* We use char because int might match the return type of a gcc2 | |
1886 | builtin and then its argument prototype would still apply. */ | |
1887 | char $ac_func(); | |
1888 | ||
1889 | int main() { | |
1890 | ||
1891 | /* The GNU C library defines this for functions which it implements | |
1892 | to always fail with ENOSYS. Some functions are actually named | |
1893 | something starting with __ and the normal name is an alias. */ | |
1894 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1895 | choke me | |
1896 | #else | |
1897 | $ac_func(); | |
1898 | #endif | |
1899 | ||
1900 | ; return 0; } | |
1901 | EOF | |
4ff3dfab | 1902 | if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
1903 | rm -rf conftest* |
1904 | eval "ac_cv_func_$ac_func=yes" | |
1905 | else | |
1906 | echo "configure: failed program was:" >&5 | |
1907 | cat conftest.$ac_ext >&5 | |
1908 | rm -rf conftest* | |
1909 | eval "ac_cv_func_$ac_func=no" | |
1910 | fi | |
1911 | rm -f conftest* | |
1912 | fi | |
1913 | ||
1914 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1915 | echo "$ac_t""yes" 1>&6 | |
1916 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1917 | cat >> confdefs.h <<EOF | |
1918 | #define $ac_tr_func 1 | |
1919 | EOF | |
1920 | ||
1921 | else | |
1922 | echo "$ac_t""no" 1>&6 | |
1923 | fi | |
1924 | done | |
1925 | ||
1926 | ||
1927 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
1928 | for ac_func in stpcpy | |
1929 | do | |
1930 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 1931 | echo "configure:1932: checking for $ac_func" >&5 |
fcfc3c0c TT |
1932 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1934 | else | |
1935 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1936 | #line 1937 "configure" |
fcfc3c0c TT |
1937 | #include "confdefs.h" |
1938 | /* System header to define __stub macros and hopefully few prototypes, | |
1939 | which can conflict with char $ac_func(); below. */ | |
1940 | #include <assert.h> | |
1941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1942 | /* We use char because int might match the return type of a gcc2 | |
1943 | builtin and then its argument prototype would still apply. */ | |
1944 | char $ac_func(); | |
1945 | ||
1946 | int main() { | |
1947 | ||
1948 | /* The GNU C library defines this for functions which it implements | |
1949 | to always fail with ENOSYS. Some functions are actually named | |
1950 | something starting with __ and the normal name is an alias. */ | |
1951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1952 | choke me | |
1953 | #else | |
1954 | $ac_func(); | |
1955 | #endif | |
1956 | ||
1957 | ; return 0; } | |
1958 | EOF | |
4ff3dfab | 1959 | if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
1960 | rm -rf conftest* |
1961 | eval "ac_cv_func_$ac_func=yes" | |
1962 | else | |
1963 | echo "configure: failed program was:" >&5 | |
1964 | cat conftest.$ac_ext >&5 | |
1965 | rm -rf conftest* | |
1966 | eval "ac_cv_func_$ac_func=no" | |
1967 | fi | |
1968 | rm -f conftest* | |
1969 | fi | |
1970 | ||
1971 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1972 | echo "$ac_t""yes" 1>&6 | |
1973 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1974 | cat >> confdefs.h <<EOF | |
1975 | #define $ac_tr_func 1 | |
1976 | EOF | |
1977 | ||
1978 | else | |
1979 | echo "$ac_t""no" 1>&6 | |
1980 | fi | |
1981 | done | |
1982 | ||
1983 | fi | |
1984 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
1985 | cat >> confdefs.h <<\EOF | |
1986 | #define HAVE_STPCPY 1 | |
1987 | EOF | |
1988 | ||
1989 | fi | |
1990 | ||
1991 | if test $ac_cv_header_locale_h = yes; then | |
1992 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
4ff3dfab | 1993 | echo "configure:1994: checking for LC_MESSAGES" >&5 |
fcfc3c0c TT |
1994 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
1995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1996 | else | |
1997 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 1998 | #line 1999 "configure" |
fcfc3c0c TT |
1999 | #include "confdefs.h" |
2000 | #include <locale.h> | |
2001 | int main() { | |
2002 | return LC_MESSAGES | |
2003 | ; return 0; } | |
2004 | EOF | |
4ff3dfab | 2005 | if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
2006 | rm -rf conftest* |
2007 | am_cv_val_LC_MESSAGES=yes | |
2008 | else | |
2009 | echo "configure: failed program was:" >&5 | |
2010 | cat conftest.$ac_ext >&5 | |
2011 | rm -rf conftest* | |
2012 | am_cv_val_LC_MESSAGES=no | |
2013 | fi | |
2014 | rm -f conftest* | |
2015 | fi | |
2016 | ||
2017 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
2018 | if test $am_cv_val_LC_MESSAGES = yes; then | |
2019 | cat >> confdefs.h <<\EOF | |
2020 | #define HAVE_LC_MESSAGES 1 | |
2021 | EOF | |
2022 | ||
2023 | fi | |
2024 | fi | |
2025 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
4ff3dfab | 2026 | echo "configure:2027: checking whether NLS is requested" >&5 |
fcfc3c0c TT |
2027 | # Check whether --enable-nls or --disable-nls was given. |
2028 | if test "${enable_nls+set}" = set; then | |
2029 | enableval="$enable_nls" | |
2030 | USE_NLS=$enableval | |
2031 | else | |
2032 | USE_NLS=yes | |
2033 | fi | |
2034 | ||
2035 | echo "$ac_t""$USE_NLS" 1>&6 | |
2036 | ||
2037 | ||
2038 | USE_INCLUDED_LIBINTL=no | |
2039 | ||
2040 | if test "$USE_NLS" = "yes"; then | |
2041 | cat >> confdefs.h <<\EOF | |
2042 | #define ENABLE_NLS 1 | |
2043 | EOF | |
2044 | ||
2045 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
4ff3dfab | 2046 | echo "configure:2047: checking whether included gettext is requested" >&5 |
fcfc3c0c TT |
2047 | # Check whether --with-included-gettext or --without-included-gettext was given. |
2048 | if test "${with_included_gettext+set}" = set; then | |
2049 | withval="$with_included_gettext" | |
2050 | nls_cv_force_use_gnu_gettext=$withval | |
2051 | else | |
2052 | nls_cv_force_use_gnu_gettext=no | |
2053 | fi | |
2054 | ||
2055 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
2056 | ||
2057 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
2058 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
2059 | nls_cv_header_intl= | |
2060 | nls_cv_header_libgt= | |
2061 | CATOBJEXT=NONE | |
2062 | ||
2063 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
2064 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
4ff3dfab | 2065 | echo "configure:2066: checking for libintl.h" >&5 |
fcfc3c0c TT |
2066 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2068 | else | |
2069 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2070 | #line 2071 "configure" |
fcfc3c0c TT |
2071 | #include "confdefs.h" |
2072 | #include <libintl.h> | |
2073 | EOF | |
2074 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
2075 | { (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2076 | ac_err=`grep -v '^ *+' conftest.out` | |
fcfc3c0c TT |
2077 | if test -z "$ac_err"; then |
2078 | rm -rf conftest* | |
2079 | eval "ac_cv_header_$ac_safe=yes" | |
2080 | else | |
2081 | echo "$ac_err" >&5 | |
2082 | echo "configure: failed program was:" >&5 | |
2083 | cat conftest.$ac_ext >&5 | |
2084 | rm -rf conftest* | |
2085 | eval "ac_cv_header_$ac_safe=no" | |
2086 | fi | |
2087 | rm -f conftest* | |
2088 | fi | |
2089 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2090 | echo "$ac_t""yes" 1>&6 | |
2091 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
4ff3dfab | 2092 | echo "configure:2093: checking for gettext in libc" >&5 |
fcfc3c0c TT |
2093 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
2094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2095 | else | |
2096 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2097 | #line 2098 "configure" |
fcfc3c0c TT |
2098 | #include "confdefs.h" |
2099 | #include <libintl.h> | |
2100 | int main() { | |
2101 | return (int) gettext ("") | |
2102 | ; return 0; } | |
2103 | EOF | |
4ff3dfab | 2104 | if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
2105 | rm -rf conftest* |
2106 | gt_cv_func_gettext_libc=yes | |
2107 | else | |
2108 | echo "configure: failed program was:" >&5 | |
2109 | cat conftest.$ac_ext >&5 | |
2110 | rm -rf conftest* | |
2111 | gt_cv_func_gettext_libc=no | |
2112 | fi | |
2113 | rm -f conftest* | |
2114 | fi | |
2115 | ||
2116 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
2117 | ||
2118 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
2119 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
4ff3dfab | 2120 | echo "configure:2121: checking for bindtextdomain in -lintl" >&5 |
fcfc3c0c TT |
2121 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
2122 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2124 | else | |
2125 | ac_save_LIBS="$LIBS" | |
2126 | LIBS="-lintl $LIBS" | |
2127 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2128 | #line 2129 "configure" |
fcfc3c0c TT |
2129 | #include "confdefs.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 bindtextdomain(); | |
2134 | ||
2135 | int main() { | |
2136 | bindtextdomain() | |
2137 | ; return 0; } | |
2138 | EOF | |
4ff3dfab | 2139 | if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
2140 | rm -rf conftest* |
2141 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2142 | else | |
2143 | echo "configure: failed program was:" >&5 | |
2144 | cat conftest.$ac_ext >&5 | |
2145 | rm -rf conftest* | |
2146 | eval "ac_cv_lib_$ac_lib_var=no" | |
2147 | fi | |
2148 | rm -f conftest* | |
2149 | LIBS="$ac_save_LIBS" | |
2150 | ||
2151 | fi | |
2152 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2153 | echo "$ac_t""yes" 1>&6 | |
2154 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
4ff3dfab | 2155 | echo "configure:2156: checking for gettext in libintl" >&5 |
fcfc3c0c TT |
2156 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
2157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2158 | else | |
2159 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2160 | #line 2161 "configure" |
fcfc3c0c TT |
2161 | #include "confdefs.h" |
2162 | ||
2163 | int main() { | |
2164 | return (int) gettext ("") | |
2165 | ; return 0; } | |
2166 | EOF | |
4ff3dfab | 2167 | if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
2168 | rm -rf conftest* |
2169 | gt_cv_func_gettext_libintl=yes | |
2170 | else | |
2171 | echo "configure: failed program was:" >&5 | |
2172 | cat conftest.$ac_ext >&5 | |
2173 | rm -rf conftest* | |
2174 | gt_cv_func_gettext_libintl=no | |
2175 | fi | |
2176 | rm -f conftest* | |
2177 | fi | |
2178 | ||
2179 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
2180 | else | |
2181 | echo "$ac_t""no" 1>&6 | |
2182 | fi | |
2183 | ||
2184 | fi | |
2185 | ||
2186 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
2187 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
2188 | cat >> confdefs.h <<\EOF | |
2189 | #define HAVE_GETTEXT 1 | |
2190 | EOF | |
2191 | ||
2192 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
2193 | set dummy msgfmt; ac_word=$2 | |
2194 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2195 | echo "configure:2196: checking for $ac_word" >&5 |
fcfc3c0c TT |
2196 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
2197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2198 | else | |
2199 | case "$MSGFMT" in | |
2200 | /*) | |
2201 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
2202 | ;; | |
2203 | *) | |
2204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2205 | for ac_dir in $PATH; do | |
2206 | test -z "$ac_dir" && ac_dir=. | |
2207 | if test -f $ac_dir/$ac_word; then | |
2208 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
2209 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
2210 | break | |
2211 | fi | |
2212 | fi | |
2213 | done | |
2214 | IFS="$ac_save_ifs" | |
2215 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
2216 | ;; | |
2217 | esac | |
2218 | fi | |
2219 | MSGFMT="$ac_cv_path_MSGFMT" | |
2220 | if test -n "$MSGFMT"; then | |
2221 | echo "$ac_t""$MSGFMT" 1>&6 | |
2222 | else | |
2223 | echo "$ac_t""no" 1>&6 | |
2224 | fi | |
2225 | if test "$MSGFMT" != "no"; then | |
2226 | for ac_func in dcgettext | |
2227 | do | |
2228 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 2229 | echo "configure:2230: checking for $ac_func" >&5 |
fcfc3c0c TT |
2230 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2232 | else | |
2233 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2234 | #line 2235 "configure" |
fcfc3c0c TT |
2235 | #include "confdefs.h" |
2236 | /* System header to define __stub macros and hopefully few prototypes, | |
2237 | which can conflict with char $ac_func(); below. */ | |
2238 | #include <assert.h> | |
2239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2240 | /* We use char because int might match the return type of a gcc2 | |
2241 | builtin and then its argument prototype would still apply. */ | |
2242 | char $ac_func(); | |
2243 | ||
2244 | int main() { | |
2245 | ||
2246 | /* The GNU C library defines this for functions which it implements | |
2247 | to always fail with ENOSYS. Some functions are actually named | |
2248 | something starting with __ and the normal name is an alias. */ | |
2249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2250 | choke me | |
2251 | #else | |
2252 | $ac_func(); | |
2253 | #endif | |
2254 | ||
2255 | ; return 0; } | |
2256 | EOF | |
4ff3dfab | 2257 | if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
2258 | rm -rf conftest* |
2259 | eval "ac_cv_func_$ac_func=yes" | |
2260 | else | |
2261 | echo "configure: failed program was:" >&5 | |
2262 | cat conftest.$ac_ext >&5 | |
2263 | rm -rf conftest* | |
2264 | eval "ac_cv_func_$ac_func=no" | |
2265 | fi | |
2266 | rm -f conftest* | |
2267 | fi | |
2268 | ||
2269 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2270 | echo "$ac_t""yes" 1>&6 | |
2271 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2272 | cat >> confdefs.h <<EOF | |
2273 | #define $ac_tr_func 1 | |
2274 | EOF | |
2275 | ||
2276 | else | |
2277 | echo "$ac_t""no" 1>&6 | |
2278 | fi | |
2279 | done | |
2280 | ||
2281 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
2282 | set dummy gmsgfmt; ac_word=$2 | |
2283 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2284 | echo "configure:2285: checking for $ac_word" >&5 |
fcfc3c0c TT |
2285 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
2286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2287 | else | |
2288 | case "$GMSGFMT" in | |
2289 | /*) | |
2290 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2291 | ;; | |
fcfc3c0c | 2292 | *) |
4ff3dfab | 2293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
fcfc3c0c TT |
2294 | for ac_dir in $PATH; do |
2295 | test -z "$ac_dir" && ac_dir=. | |
2296 | if test -f $ac_dir/$ac_word; then | |
2297 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2298 | break | |
2299 | fi | |
2300 | done | |
2301 | IFS="$ac_save_ifs" | |
2302 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
2303 | ;; | |
2304 | esac | |
2305 | fi | |
2306 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
2307 | if test -n "$GMSGFMT"; then | |
2308 | echo "$ac_t""$GMSGFMT" 1>&6 | |
2309 | else | |
2310 | echo "$ac_t""no" 1>&6 | |
2311 | fi | |
2312 | ||
2313 | # Extract the first word of "xgettext", so it can be a program name with args. | |
2314 | set dummy xgettext; ac_word=$2 | |
2315 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2316 | echo "configure:2317: checking for $ac_word" >&5 |
fcfc3c0c TT |
2317 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
2318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2319 | else | |
2320 | case "$XGETTEXT" in | |
2321 | /*) | |
2322 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
2323 | ;; | |
2324 | *) | |
2325 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2326 | for ac_dir in $PATH; do | |
2327 | test -z "$ac_dir" && ac_dir=. | |
2328 | if test -f $ac_dir/$ac_word; then | |
2329 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
2330 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
2331 | break | |
2332 | fi | |
2333 | fi | |
2334 | done | |
2335 | IFS="$ac_save_ifs" | |
2336 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
2337 | ;; | |
2338 | esac | |
2339 | fi | |
2340 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
2341 | if test -n "$XGETTEXT"; then | |
2342 | echo "$ac_t""$XGETTEXT" 1>&6 | |
2343 | else | |
2344 | echo "$ac_t""no" 1>&6 | |
2345 | fi | |
2346 | ||
2347 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2348 | #line 2349 "configure" |
fcfc3c0c TT |
2349 | #include "confdefs.h" |
2350 | ||
2351 | int main() { | |
2352 | extern int _nl_msg_cat_cntr; | |
2353 | return _nl_msg_cat_cntr | |
2354 | ; return 0; } | |
2355 | EOF | |
4ff3dfab | 2356 | if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
fcfc3c0c TT |
2357 | rm -rf conftest* |
2358 | CATOBJEXT=.gmo | |
2359 | DATADIRNAME=share | |
2360 | else | |
2361 | echo "configure: failed program was:" >&5 | |
2362 | cat conftest.$ac_ext >&5 | |
2363 | rm -rf conftest* | |
2364 | CATOBJEXT=.mo | |
2365 | DATADIRNAME=lib | |
5436fc65 C |
2366 | fi |
2367 | rm -f conftest* | |
fcfc3c0c TT |
2368 | INSTOBJEXT=.mo |
2369 | fi | |
2370 | fi | |
2371 | ||
2372 | else | |
2373 | echo "$ac_t""no" 1>&6 | |
5436fc65 | 2374 | fi |
fcfc3c0c TT |
2375 | |
2376 | ||
2377 | ||
2378 | if test "$CATOBJEXT" = "NONE"; then | |
2379 | nls_cv_use_gnu_gettext=yes | |
2380 | fi | |
2381 | fi | |
2382 | ||
2383 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
2384 | INTLOBJS="\$(GETTOBJS)" | |
2385 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
2386 | set dummy msgfmt; ac_word=$2 | |
2387 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2388 | echo "configure:2389: checking for $ac_word" >&5 |
fcfc3c0c TT |
2389 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
2390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2391 | else | |
2392 | case "$MSGFMT" in | |
2393 | /*) | |
2394 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
2395 | ;; | |
2396 | *) | |
2397 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2398 | for ac_dir in $PATH; do | |
2399 | test -z "$ac_dir" && ac_dir=. | |
2400 | if test -f $ac_dir/$ac_word; then | |
2401 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
2402 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
2403 | break | |
2404 | fi | |
2405 | fi | |
2406 | done | |
2407 | IFS="$ac_save_ifs" | |
2408 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
2409 | ;; | |
2410 | esac | |
5436fc65 | 2411 | fi |
fcfc3c0c TT |
2412 | MSGFMT="$ac_cv_path_MSGFMT" |
2413 | if test -n "$MSGFMT"; then | |
2414 | echo "$ac_t""$MSGFMT" 1>&6 | |
dedcc91d | 2415 | else |
fcfc3c0c | 2416 | echo "$ac_t""no" 1>&6 |
5436fc65 | 2417 | fi |
5436fc65 | 2418 | |
fcfc3c0c TT |
2419 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
2420 | set dummy gmsgfmt; ac_word=$2 | |
2421 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2422 | echo "configure:2423: checking for $ac_word" >&5 |
fcfc3c0c TT |
2423 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
2424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2425 | else | |
2426 | case "$GMSGFMT" in | |
2427 | /*) | |
2428 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2429 | ;; | |
fcfc3c0c | 2430 | *) |
4ff3dfab | 2431 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
fcfc3c0c TT |
2432 | for ac_dir in $PATH; do |
2433 | test -z "$ac_dir" && ac_dir=. | |
2434 | if test -f $ac_dir/$ac_word; then | |
2435 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2436 | break | |
2437 | fi | |
2438 | done | |
2439 | IFS="$ac_save_ifs" | |
2440 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
2441 | ;; | |
2442 | esac | |
2443 | fi | |
2444 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
2445 | if test -n "$GMSGFMT"; then | |
2446 | echo "$ac_t""$GMSGFMT" 1>&6 | |
2447 | else | |
2448 | echo "$ac_t""no" 1>&6 | |
2449 | fi | |
5436fc65 | 2450 | |
fcfc3c0c TT |
2451 | # Extract the first word of "xgettext", so it can be a program name with args. |
2452 | set dummy xgettext; ac_word=$2 | |
2453 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2454 | echo "configure:2455: checking for $ac_word" >&5 |
fcfc3c0c TT |
2455 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
2456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2457 | else | |
2458 | case "$XGETTEXT" in | |
2459 | /*) | |
2460 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
2461 | ;; | |
2462 | *) | |
2463 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2464 | for ac_dir in $PATH; do | |
2465 | test -z "$ac_dir" && ac_dir=. | |
2466 | if test -f $ac_dir/$ac_word; then | |
2467 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
2468 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
2469 | break | |
2470 | fi | |
2471 | fi | |
2472 | done | |
2473 | IFS="$ac_save_ifs" | |
2474 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
2475 | ;; | |
2476 | esac | |
2477 | fi | |
2478 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
2479 | if test -n "$XGETTEXT"; then | |
2480 | echo "$ac_t""$XGETTEXT" 1>&6 | |
5436fc65 | 2481 | else |
5436fc65 C |
2482 | echo "$ac_t""no" 1>&6 |
2483 | fi | |
5436fc65 | 2484 | |
fcfc3c0c TT |
2485 | |
2486 | USE_INCLUDED_LIBINTL=yes | |
2487 | CATOBJEXT=.gmo | |
2488 | INSTOBJEXT=.mo | |
2489 | DATADIRNAME=share | |
2490 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
2491 | INTLLIBS=$INTLDEPS | |
2492 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
2493 | nls_cv_header_intl=libintl.h | |
2494 | nls_cv_header_libgt=libgettext.h | |
2495 | fi | |
5436fc65 | 2496 | |
fcfc3c0c TT |
2497 | if test "$XGETTEXT" != ":"; then |
2498 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
2499 | : ; | |
2500 | else | |
2501 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
2502 | XGETTEXT=":" | |
2503 | fi | |
2504 | fi | |
2505 | ||
2506 | # We need to process the po/ directory. | |
2507 | POSUB=po | |
2508 | else | |
2509 | DATADIRNAME=share | |
2510 | nls_cv_header_intl=libintl.h | |
2511 | nls_cv_header_libgt=libgettext.h | |
2512 | fi | |
2513 | ||
2514 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
2515 | # because some of the sources are only built for this goal. | |
2516 | if test "$PACKAGE" = gettext; then | |
2517 | USE_NLS=yes | |
2518 | USE_INCLUDED_LIBINTL=yes | |
2519 | fi | |
2520 | ||
2521 | for lang in $ALL_LINGUAS; do | |
2522 | GMOFILES="$GMOFILES $lang.gmo" | |
2523 | POFILES="$POFILES $lang.po" | |
2524 | done | |
2525 | ||
2526 | ||
2527 | ||
2528 | ||
2529 | ||
2530 | ||
2531 | ||
2532 | ||
2533 | ||
2534 | ||
2535 | ||
2536 | ||
2537 | ||
2538 | ||
2539 | if test "x$CATOBJEXT" != "x"; then | |
2540 | if test "x$ALL_LINGUAS" = "x"; then | |
2541 | LINGUAS= | |
2542 | else | |
2543 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
4ff3dfab | 2544 | echo "configure:2545: checking for catalogs to be installed" >&5 |
fcfc3c0c TT |
2545 | NEW_LINGUAS= |
2546 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
2547 | case "$ALL_LINGUAS" in | |
2548 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
2549 | esac | |
2550 | done | |
2551 | LINGUAS=$NEW_LINGUAS | |
2552 | echo "$ac_t""$LINGUAS" 1>&6 | |
2553 | fi | |
2554 | ||
2555 | if test -n "$LINGUAS"; then | |
2556 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
2557 | fi | |
2558 | fi | |
2559 | ||
2560 | if test $ac_cv_header_locale_h = yes; then | |
2561 | INCLUDE_LOCALE_H="#include <locale.h>" | |
2562 | else | |
2563 | INCLUDE_LOCALE_H="\ | |
2564 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | if test -f $srcdir/po2tbl.sed.in; then | |
2569 | if test "$CATOBJEXT" = ".cat"; then | |
2570 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
2571 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
4ff3dfab | 2572 | echo "configure:2573: checking for linux/version.h" >&5 |
5436fc65 C |
2573 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2575 | else | |
2576 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2577 | #line 2578 "configure" |
5436fc65 | 2578 | #include "confdefs.h" |
fcfc3c0c | 2579 | #include <linux/version.h> |
5436fc65 | 2580 | EOF |
1a7b4b7c | 2581 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4ff3dfab JM |
2582 | { (eval echo configure:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2583 | ac_err=`grep -v '^ *+' conftest.out` | |
5436fc65 C |
2584 | if test -z "$ac_err"; then |
2585 | rm -rf conftest* | |
2586 | eval "ac_cv_header_$ac_safe=yes" | |
2587 | else | |
2588 | echo "$ac_err" >&5 | |
bfde4a67 SG |
2589 | echo "configure: failed program was:" >&5 |
2590 | cat conftest.$ac_ext >&5 | |
5436fc65 C |
2591 | rm -rf conftest* |
2592 | eval "ac_cv_header_$ac_safe=no" | |
2593 | fi | |
2594 | rm -f conftest* | |
2595 | fi | |
2596 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2597 | echo "$ac_t""yes" 1>&6 | |
fcfc3c0c | 2598 | msgformat=linux |
5436fc65 C |
2599 | else |
2600 | echo "$ac_t""no" 1>&6 | |
fcfc3c0c | 2601 | msgformat=xopen |
0579b53d GN |
2602 | fi |
2603 | ||
0579b53d | 2604 | |
fcfc3c0c TT |
2605 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
2606 | fi | |
2607 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
2608 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
2609 | fi | |
2610 | ||
2611 | if test "$PACKAGE" = "gettext"; then | |
2612 | GT_NO="#NO#" | |
2613 | GT_YES= | |
2614 | else | |
2615 | GT_NO= | |
2616 | GT_YES="#YES#" | |
2617 | fi | |
2618 | ||
2619 | ||
0579b53d | 2620 | |
fcfc3c0c TT |
2621 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" |
2622 | ||
0579b53d | 2623 | |
fcfc3c0c TT |
2624 | l= |
2625 | ||
0579b53d | 2626 | |
fcfc3c0c TT |
2627 | if test -d $srcdir/po; then |
2628 | test -d po || mkdir po | |
2629 | if test "x$srcdir" != "x."; then | |
2630 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
2631 | posrcprefix="$srcdir/" | |
2632 | else | |
2633 | posrcprefix="../$srcdir/" | |
2634 | fi | |
2635 | else | |
2636 | posrcprefix="../" | |
2637 | fi | |
2638 | rm -f po/POTFILES | |
2639 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
2640 | < $srcdir/po/POTFILES.in > po/POTFILES | |
2641 | fi | |
2642 | ||
0579b53d | 2643 | |
bfde4a67 SG |
2644 | |
2645 | CONFIG_OBS= | |
018d76dd | 2646 | CONFIG_DEPS= |
c7bb1531 | 2647 | CONFIG_SRCS= |
bfde4a67 SG |
2648 | |
2649 | configdirs="doc testsuite" | |
2650 | ||
2651 | ||
2652 | . ${srcdir}/configure.host | |
2653 | ||
2654 | . ${srcdir}/configure.tgt | |
2655 | ||
2656 | ||
5436fc65 C |
2657 | # Find a good install program. We prefer a C program (faster), |
2658 | # so one script is as good as another. But avoid the broken or | |
2659 | # incompatible versions: | |
2660 | # SysV /etc/install, /usr/sbin/install | |
2661 | # SunOS /usr/etc/install | |
2662 | # IRIX /sbin/install | |
2663 | # AIX /bin/install | |
2664 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2665 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2666 | # ./install, which can be erroneously created by make from ./install.sh. | |
2667 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
4ff3dfab | 2668 | echo "configure:2669: checking for a BSD compatible install" >&5 |
5436fc65 C |
2669 | if test -z "$INSTALL"; then |
2670 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2672 | else | |
4ff3dfab | 2673 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
5436fc65 C |
2674 | for ac_dir in $PATH; do |
2675 | # Account for people who put trailing slashes in PATH elements. | |
2676 | case "$ac_dir/" in | |
2677 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2678 | *) | |
2679 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4ff3dfab | 2680 | for ac_prog in ginstall installbsd scoinst install; do |
5436fc65 C |
2681 | if test -f $ac_dir/$ac_prog; then |
2682 | if test $ac_prog = install && | |
2683 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2684 | # AIX install. It has an incompatible calling convention. | |
4ff3dfab | 2685 | # OSF/1 installbsd also uses dspmsg, but is usable. |
5436fc65 C |
2686 | : |
2687 | else | |
2688 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2689 | break 2 | |
2690 | fi | |
2691 | fi | |
2692 | done | |
2693 | ;; | |
2694 | esac | |
2695 | done | |
bfde4a67 | 2696 | IFS="$ac_save_IFS" |
1a7b4b7c | 2697 | |
5436fc65 | 2698 | fi |
1a7b4b7c DE |
2699 | if test "${ac_cv_path_install+set}" = set; then |
2700 | INSTALL="$ac_cv_path_install" | |
2701 | else | |
2702 | # As a last resort, use the slow shell script. We don't cache a | |
2703 | # path for INSTALL within a source directory, because that will | |
2704 | # break other packages using the cache if that directory is | |
2705 | # removed, or if the path is relative. | |
2706 | INSTALL="$ac_install_sh" | |
2707 | fi | |
5436fc65 C |
2708 | fi |
2709 | echo "$ac_t""$INSTALL" 1>&6 | |
2710 | ||
2711 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2712 | # It thinks the first close brace ends the variable substitution. | |
2713 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2714 | ||
2715 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2716 | ||
d8efbc66 FF |
2717 | if test $host != $build; then |
2718 | ac_tool_prefix=${host_alias}- | |
2719 | else | |
2720 | ac_tool_prefix= | |
2721 | fi | |
2722 | ||
2723 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
2724 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
2725 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2726 | echo "configure:2727: checking for $ac_word" >&5 |
d8efbc66 FF |
2727 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
2728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2729 | else | |
2730 | if test -n "$AR"; then | |
2731 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2732 | else | |
4ff3dfab | 2733 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
d8efbc66 FF |
2734 | for ac_dir in $PATH; do |
2735 | test -z "$ac_dir" && ac_dir=. | |
2736 | if test -f $ac_dir/$ac_word; then | |
2737 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
2738 | break | |
2739 | fi | |
2740 | done | |
2741 | IFS="$ac_save_ifs" | |
2742 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
2743 | fi | |
2744 | fi | |
2745 | AR="$ac_cv_prog_AR" | |
2746 | if test -n "$AR"; then | |
2747 | echo "$ac_t""$AR" 1>&6 | |
2748 | else | |
2749 | echo "$ac_t""no" 1>&6 | |
2750 | fi | |
2751 | ||
2752 | ||
2753 | ||
2754 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2755 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2756 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2757 | echo "configure:2758: checking for $ac_word" >&5 |
d8efbc66 FF |
2758 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2760 | else | |
2761 | if test -n "$RANLIB"; then | |
2762 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2763 | else | |
4ff3dfab | 2764 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
d8efbc66 FF |
2765 | for ac_dir in $PATH; do |
2766 | test -z "$ac_dir" && ac_dir=. | |
2767 | if test -f $ac_dir/$ac_word; then | |
2768 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2769 | break | |
2770 | fi | |
2771 | done | |
2772 | IFS="$ac_save_ifs" | |
2773 | fi | |
2774 | fi | |
2775 | RANLIB="$ac_cv_prog_RANLIB" | |
2776 | if test -n "$RANLIB"; then | |
2777 | echo "$ac_t""$RANLIB" 1>&6 | |
2778 | else | |
2779 | echo "$ac_t""no" 1>&6 | |
2780 | fi | |
2781 | ||
2782 | ||
2783 | if test -z "$ac_cv_prog_RANLIB"; then | |
2784 | if test -n "$ac_tool_prefix"; then | |
2785 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5436fc65 C |
2786 | set dummy ranlib; ac_word=$2 |
2787 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2788 | echo "configure:2789: checking for $ac_word" >&5 |
5436fc65 C |
2789 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2791 | else | |
2792 | if test -n "$RANLIB"; then | |
2793 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2794 | else | |
4ff3dfab | 2795 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
da3d57e3 | 2796 | for ac_dir in $PATH; do |
5436fc65 C |
2797 | test -z "$ac_dir" && ac_dir=. |
2798 | if test -f $ac_dir/$ac_word; then | |
2799 | ac_cv_prog_RANLIB="ranlib" | |
2800 | break | |
2801 | fi | |
2802 | done | |
2803 | IFS="$ac_save_ifs" | |
2804 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2805 | fi | |
2806 | fi | |
2807 | RANLIB="$ac_cv_prog_RANLIB" | |
2808 | if test -n "$RANLIB"; then | |
2809 | echo "$ac_t""$RANLIB" 1>&6 | |
2810 | else | |
2811 | echo "$ac_t""no" 1>&6 | |
2812 | fi | |
2813 | ||
d8efbc66 FF |
2814 | else |
2815 | RANLIB=":" | |
2816 | fi | |
2817 | fi | |
2818 | ||
204c8825 FF |
2819 | for ac_prog in 'bison -y' byacc |
2820 | do | |
2821 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2822 | set dummy $ac_prog; ac_word=$2 | |
2823 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2824 | echo "configure:2825: checking for $ac_word" >&5 |
204c8825 FF |
2825 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2827 | else | |
2828 | if test -n "$YACC"; then | |
2829 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
2830 | else | |
4ff3dfab | 2831 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
204c8825 FF |
2832 | for ac_dir in $PATH; do |
2833 | test -z "$ac_dir" && ac_dir=. | |
2834 | if test -f $ac_dir/$ac_word; then | |
2835 | ac_cv_prog_YACC="$ac_prog" | |
2836 | break | |
2837 | fi | |
2838 | done | |
2839 | IFS="$ac_save_ifs" | |
2840 | fi | |
2841 | fi | |
2842 | YACC="$ac_cv_prog_YACC" | |
2843 | if test -n "$YACC"; then | |
2844 | echo "$ac_t""$YACC" 1>&6 | |
2845 | else | |
2846 | echo "$ac_t""no" 1>&6 | |
2847 | fi | |
2848 | ||
2849 | test -n "$YACC" && break | |
2850 | done | |
2851 | test -n "$YACC" || YACC="yacc" | |
2852 | ||
d8efbc66 FF |
2853 | for ac_prog in mawk gawk nawk awk |
2854 | do | |
2855 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2856 | set dummy $ac_prog; ac_word=$2 | |
2857 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4ff3dfab | 2858 | echo "configure:2859: checking for $ac_word" >&5 |
d8efbc66 FF |
2859 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
2860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2861 | else | |
2862 | if test -n "$AWK"; then | |
2863 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2864 | else | |
4ff3dfab | 2865 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
d8efbc66 FF |
2866 | for ac_dir in $PATH; do |
2867 | test -z "$ac_dir" && ac_dir=. | |
2868 | if test -f $ac_dir/$ac_word; then | |
2869 | ac_cv_prog_AWK="$ac_prog" | |
2870 | break | |
2871 | fi | |
2872 | done | |
2873 | IFS="$ac_save_ifs" | |
2874 | fi | |
2875 | fi | |
2876 | AWK="$ac_cv_prog_AWK" | |
2877 | if test -n "$AWK"; then | |
2878 | echo "$ac_t""$AWK" 1>&6 | |
2879 | else | |
2880 | echo "$ac_t""no" 1>&6 | |
2881 | fi | |
2882 | ||
2883 | test -n "$AWK" && break | |
2884 | done | |
2885 | ||
5436fc65 | 2886 | |
5436fc65 C |
2887 | if test "$program_transform_name" = s,x,x,; then |
2888 | program_transform_name= | |
2889 | else | |
1a7b4b7c DE |
2890 | # Double any \ or $. echo might interpret backslashes. |
2891 | cat <<\EOF_SED > conftestsed | |
2892 | s,\\,\\\\,g; s,\$,$$,g | |
2893 | EOF_SED | |
5436fc65 C |
2894 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
2895 | rm -f conftestsed | |
2896 | fi | |
2897 | test "$program_prefix" != NONE && | |
2898 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
2899 | # Use a double $ so make ignores it. | |
2900 | test "$program_suffix" != NONE && | |
2901 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
2902 | ||
2903 | # sed with no file args requires a program. | |
2904 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
2905 | ||
2906 | ||
c14cabba | 2907 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
4ff3dfab | 2908 | echo "configure:2909: checking return type of signal handlers" >&5 |
c14cabba AC |
2909 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2911 | else | |
2912 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2913 | #line 2914 "configure" |
c14cabba AC |
2914 | #include "confdefs.h" |
2915 | #include <sys/types.h> | |
2916 | #include <signal.h> | |
2917 | #ifdef signal | |
2918 | #undef signal | |
2919 | #endif | |
2920 | #ifdef __cplusplus | |
2921 | extern "C" void (*signal (int, void (*)(int)))(int); | |
2922 | #else | |
2923 | void (*signal ()) (); | |
2924 | #endif | |
2925 | ||
2926 | int main() { | |
2927 | int i; | |
2928 | ; return 0; } | |
2929 | EOF | |
4ff3dfab | 2930 | if { (eval echo configure:2931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c14cabba AC |
2931 | rm -rf conftest* |
2932 | ac_cv_type_signal=void | |
2933 | else | |
2934 | echo "configure: failed program was:" >&5 | |
2935 | cat conftest.$ac_ext >&5 | |
2936 | rm -rf conftest* | |
2937 | ac_cv_type_signal=int | |
2938 | fi | |
2939 | rm -f conftest* | |
2940 | fi | |
2941 | ||
2942 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2943 | cat >> confdefs.h <<EOF | |
2944 | #define RETSIGTYPE $ac_cv_type_signal | |
2945 | EOF | |
2946 | ||
2947 | ||
2948 | ||
2b576293 | 2949 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
4ff3dfab | 2950 | echo "configure:2951: checking for ANSI C header files" >&5 |
2b576293 C |
2951 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2953 | else | |
2954 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2955 | #line 2956 "configure" |
2b576293 C |
2956 | #include "confdefs.h" |
2957 | #include <stdlib.h> | |
2958 | #include <stdarg.h> | |
2959 | #include <string.h> | |
2960 | #include <float.h> | |
2961 | EOF | |
1a7b4b7c | 2962 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4ff3dfab JM |
2963 | { (eval echo configure:2964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2964 | ac_err=`grep -v '^ *+' conftest.out` | |
2b576293 C |
2965 | if test -z "$ac_err"; then |
2966 | rm -rf conftest* | |
2967 | ac_cv_header_stdc=yes | |
2968 | else | |
2969 | echo "$ac_err" >&5 | |
bfde4a67 SG |
2970 | echo "configure: failed program was:" >&5 |
2971 | cat conftest.$ac_ext >&5 | |
2b576293 C |
2972 | rm -rf conftest* |
2973 | ac_cv_header_stdc=no | |
2974 | fi | |
2975 | rm -f conftest* | |
2976 | ||
2977 | if test $ac_cv_header_stdc = yes; then | |
2978 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2979 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2980 | #line 2981 "configure" |
2b576293 C |
2981 | #include "confdefs.h" |
2982 | #include <string.h> | |
2983 | EOF | |
2984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2985 | egrep "memchr" >/dev/null 2>&1; then | |
2986 | : | |
2987 | else | |
2988 | rm -rf conftest* | |
2989 | ac_cv_header_stdc=no | |
2990 | fi | |
2991 | rm -f conftest* | |
2992 | ||
2993 | fi | |
2994 | ||
2995 | if test $ac_cv_header_stdc = yes; then | |
2996 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2997 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 2998 | #line 2999 "configure" |
2b576293 C |
2999 | #include "confdefs.h" |
3000 | #include <stdlib.h> | |
3001 | EOF | |
3002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3003 | egrep "free" >/dev/null 2>&1; then | |
3004 | : | |
3005 | else | |
3006 | rm -rf conftest* | |
3007 | ac_cv_header_stdc=no | |
3008 | fi | |
3009 | rm -f conftest* | |
3010 | ||
3011 | fi | |
3012 | ||
3013 | if test $ac_cv_header_stdc = yes; then | |
3014 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3015 | if test "$cross_compiling" = yes; then | |
1a7b4b7c | 3016 | : |
2b576293 | 3017 | else |
bfde4a67 | 3018 | cat > conftest.$ac_ext <<EOF |
4ff3dfab | 3019 | #line 3020 "configure" |
2b576293 C |
3020 | #include "confdefs.h" |
3021 | #include <ctype.h> | |
3022 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3023 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3024 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3025 | int main () { int i; for (i = 0; i < 256; i++) | |
3026 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
3027 | exit (0); } | |
3028 | ||
3029 | EOF | |
4ff3dfab | 3030 | if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bfde4a67 | 3031 | then |
2b576293 C |
3032 | : |
3033 | else | |
bfde4a67 SG |
3034 | echo "configure: failed program was:" >&5 |
3035 | cat conftest.$ac_ext >&5 | |
3036 | rm -fr conftest* | |
2b576293 C |
3037 | ac_cv_header_stdc=no |
3038 | fi | |
ef6c51d1 | 3039 | rm -fr conftest* |
bfde4a67 SG |
3040 | fi |
3041 | ||
2b576293 C |
3042 | fi |
3043 | fi | |
1a7b4b7c | 3044 | |
2b576293 C |
3045 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
3046 | if test $ac_cv_header_stdc = yes; then | |
3047 | cat >> confdefs.h <<\EOF | |
3048 | #define STDC_HEADERS 1 | |
3049 | EOF | |
3050 | ||
3051 | fi | |
3052 | ||
4ff3dfab JM |
3053 | for ac_hdr in ctype.h curses.h endian.h libintl.h limits.h link.h \ |
3054 | memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ | |
3055 | string.h strings.h sys/procfs.h sys/ptrace.h sys/reg.h \ | |
3056 | term.h termio.h termios.h unistd.h wait.h sys/wait.h \ | |
3057 | wchar.h wctype.h | |
1a494973 | 3058 | do |
bfde4a67 | 3059 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1a494973 | 3060 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4ff3dfab | 3061 | echo "configure:3062: checking for $ac_hdr" >&5 |
1a494973 C |
3062 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3064 | else | |
3065 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3066 | #line 3067 "configure" |
1a494973 C |
3067 | #include "confdefs.h" |
3068 | #include <$ac_hdr> | |
3069 | EOF | |
1a7b4b7c | 3070 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4ff3dfab JM |
3071 | { (eval echo configure:3072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3072 | ac_err=`grep -v '^ *+' conftest.out` | |
1a494973 C |
3073 | if test -z "$ac_err"; then |
3074 | rm -rf conftest* | |
3075 | eval "ac_cv_header_$ac_safe=yes" | |
3076 | else | |
3077 | echo "$ac_err" >&5 | |
bfde4a67 SG |
3078 | echo "configure: failed program was:" >&5 |
3079 | cat conftest.$ac_ext >&5 | |
1a494973 C |
3080 | rm -rf conftest* |
3081 | eval "ac_cv_header_$ac_safe=no" | |
3082 | fi | |
3083 | rm -f conftest* | |
3084 | fi | |
3085 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3086 | echo "$ac_t""yes" 1>&6 | |
bfde4a67 | 3087 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1a494973 C |
3088 | cat >> confdefs.h <<EOF |
3089 | #define $ac_tr_hdr 1 | |
3090 | EOF | |
3091 | ||
3092 | else | |
3093 | echo "$ac_t""no" 1>&6 | |
3094 | fi | |
3095 | done | |
3096 | ||
eac4afd1 | 3097 | |
2b576293 | 3098 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
4ff3dfab | 3099 | echo "configure:3100: checking whether stat file-mode macros are broken" >&5 |
2b576293 C |
3100 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
3101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3102 | else | |
3103 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3104 | #line 3105 "configure" |
2b576293 C |
3105 | #include "confdefs.h" |
3106 | #include <sys/types.h> | |
3107 | #include <sys/stat.h> | |
3108 | ||
3109 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
3110 | # if S_ISBLK (S_IFDIR) | |
3111 | You lose. | |
3112 | # endif | |
3113 | #endif | |
3114 | ||
3115 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
3116 | # if S_ISBLK (S_IFCHR) | |
3117 | You lose. | |
3118 | # endif | |
3119 | #endif | |
3120 | ||
3121 | #if defined(S_ISLNK) && defined(S_IFREG) | |
3122 | # if S_ISLNK (S_IFREG) | |
3123 | You lose. | |
3124 | # endif | |
3125 | #endif | |
3126 | ||
3127 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
3128 | # if S_ISSOCK (S_IFREG) | |
3129 | You lose. | |
3130 | # endif | |
3131 | #endif | |
3132 | ||
3133 | EOF | |
3134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3135 | egrep "You lose" >/dev/null 2>&1; then | |
3136 | rm -rf conftest* | |
3137 | ac_cv_header_stat_broken=yes | |
3138 | else | |
3139 | rm -rf conftest* | |
3140 | ac_cv_header_stat_broken=no | |
3141 | fi | |
3142 | rm -f conftest* | |
3143 | ||
3144 | fi | |
1a7b4b7c | 3145 | |
2b576293 C |
3146 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
3147 | if test $ac_cv_header_stat_broken = yes; then | |
3148 | cat >> confdefs.h <<\EOF | |
3149 | #define STAT_MACROS_BROKEN 1 | |
3150 | EOF | |
3151 | ||
3152 | fi | |
3153 | ||
3154 | ||
8501c742 | 3155 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
4ff3dfab | 3156 | echo "configure:3157: checking for working const" >&5 |
8501c742 SG |
3157 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3158 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3159 | else | |
3160 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3161 | #line 3162 "configure" |
8501c742 SG |
3162 | #include "confdefs.h" |
3163 | ||
bfde4a67 | 3164 | int main() { |
8501c742 SG |
3165 | |
3166 | /* Ultrix mips cc rejects this. */ | |
3167 | typedef int charset[2]; const charset x; | |
3168 | /* SunOS 4.1.1 cc rejects this. */ | |
3169 | char const *const *ccp; | |
3170 | char **p; | |
3171 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3172 | struct point {int x, y;}; | |
3173 | static struct point const zero = {0,0}; | |
3174 | /* AIX XL C 1.02.0.0 rejects this. | |
3175 | It does not let you subtract one const X* pointer from another in an arm | |
3176 | of an if-expression whose if-part is not a constant expression */ | |
3177 | const char *g = "string"; | |
3178 | ccp = &g + (g ? g-g : 0); | |
3179 | /* HPUX 7.0 cc rejects these. */ | |
3180 | ++ccp; | |
3181 | p = (char**) ccp; | |
3182 | ccp = (char const *const *) p; | |
3183 | { /* SCO 3.2v4 cc rejects this. */ | |
3184 | char *t; | |
3185 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3186 | ||
3187 | *t++ = 0; | |
3188 | } | |
3189 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3190 | int x[] = {25, 17}; | |
3191 | const int *foo = &x[0]; | |
3192 | ++foo; | |
3193 | } | |
3194 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3195 | typedef const int *iptr; | |
3196 | iptr p = 0; | |
3197 | ++p; | |
3198 | } | |
3199 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3200 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3201 | struct s { int j; const int *ap[3]; }; | |
3202 | struct s *b; b->j = 5; | |
3203 | } | |
3204 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3205 | const int foo = 10; | |
3206 | } | |
3207 | ||
3208 | ; return 0; } | |
3209 | EOF | |
4ff3dfab | 3210 | if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8501c742 SG |
3211 | rm -rf conftest* |
3212 | ac_cv_c_const=yes | |
3213 | else | |
bfde4a67 SG |
3214 | echo "configure: failed program was:" >&5 |
3215 | cat conftest.$ac_ext >&5 | |
8501c742 SG |
3216 | rm -rf conftest* |
3217 | ac_cv_c_const=no | |
3218 | fi | |
3219 | rm -f conftest* | |
8501c742 SG |
3220 | fi |
3221 | ||
3222 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3223 | if test $ac_cv_c_const = no; then | |
3224 | cat >> confdefs.h <<\EOF | |
3225 | #define const | |
3226 | EOF | |
3227 | ||
3228 | fi | |
3229 | ||
3230 | ||
46ccc6bf | 3231 | for ac_func in setpgid sbrk select poll sigaction isascii bzero bcopy memcpy btowc |
72ae15f6 FF |
3232 | do |
3233 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 3234 | echo "configure:3235: checking for $ac_func" >&5 |
72ae15f6 FF |
3235 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3236 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3237 | else | |
3238 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3239 | #line 3240 "configure" |
72ae15f6 FF |
3240 | #include "confdefs.h" |
3241 | /* System header to define __stub macros and hopefully few prototypes, | |
3242 | which can conflict with char $ac_func(); below. */ | |
3243 | #include <assert.h> | |
3244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
bc859e63 SG |
3245 | /* We use char because int might match the return type of a gcc2 |
3246 | builtin and then its argument prototype would still apply. */ | |
1a7b4b7c | 3247 | char $ac_func(); |
72ae15f6 | 3248 | |
bfde4a67 | 3249 | int main() { |
72ae15f6 FF |
3250 | |
3251 | /* The GNU C library defines this for functions which it implements | |
3252 | to always fail with ENOSYS. Some functions are actually named | |
3253 | something starting with __ and the normal name is an alias. */ | |
3254 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3255 | choke me | |
3256 | #else | |
3257 | $ac_func(); | |
3258 | #endif | |
3259 | ||
3260 | ; return 0; } | |
3261 | EOF | |
4ff3dfab | 3262 | if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
72ae15f6 FF |
3263 | rm -rf conftest* |
3264 | eval "ac_cv_func_$ac_func=yes" | |
3265 | else | |
bfde4a67 SG |
3266 | echo "configure: failed program was:" >&5 |
3267 | cat conftest.$ac_ext >&5 | |
72ae15f6 FF |
3268 | rm -rf conftest* |
3269 | eval "ac_cv_func_$ac_func=no" | |
3270 | fi | |
3271 | rm -f conftest* | |
ef6c51d1 | 3272 | fi |
bfde4a67 | 3273 | |
72ae15f6 FF |
3274 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3275 | echo "$ac_t""yes" 1>&6 | |
1a7b4b7c | 3276 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
72ae15f6 FF |
3277 | cat >> confdefs.h <<EOF |
3278 | #define $ac_tr_func 1 | |
3279 | EOF | |
3280 | ||
3281 | else | |
3282 | echo "$ac_t""no" 1>&6 | |
3283 | fi | |
3284 | done | |
3285 | ||
0aa3233e ILT |
3286 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
3287 | # for constant arguments. Useless! | |
3288 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
4ff3dfab | 3289 | echo "configure:3290: checking for working alloca.h" >&5 |
0aa3233e ILT |
3290 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
3291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3292 | else | |
3293 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3294 | #line 3295 "configure" |
0aa3233e ILT |
3295 | #include "confdefs.h" |
3296 | #include <alloca.h> | |
3297 | int main() { | |
3298 | char *p = alloca(2 * sizeof(int)); | |
3299 | ; return 0; } | |
3300 | EOF | |
4ff3dfab | 3301 | if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0aa3233e ILT |
3302 | rm -rf conftest* |
3303 | ac_cv_header_alloca_h=yes | |
3304 | else | |
3305 | echo "configure: failed program was:" >&5 | |
3306 | cat conftest.$ac_ext >&5 | |
3307 | rm -rf conftest* | |
3308 | ac_cv_header_alloca_h=no | |
3309 | fi | |
3310 | rm -f conftest* | |
3311 | fi | |
3312 | ||
3313 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
3314 | if test $ac_cv_header_alloca_h = yes; then | |
3315 | cat >> confdefs.h <<\EOF | |
3316 | #define HAVE_ALLOCA_H 1 | |
3317 | EOF | |
3318 | ||
3319 | fi | |
3320 | ||
3321 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
4ff3dfab | 3322 | echo "configure:3323: checking for alloca" >&5 |
0aa3233e ILT |
3323 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
3324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3325 | else | |
3326 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3327 | #line 3328 "configure" |
0aa3233e ILT |
3328 | #include "confdefs.h" |
3329 | ||
3330 | #ifdef __GNUC__ | |
3331 | # define alloca __builtin_alloca | |
3332 | #else | |
4ff3dfab JM |
3333 | # if HAVE_ALLOCA_H |
3334 | # include <alloca.h> | |
0aa3233e | 3335 | # else |
4ff3dfab | 3336 | # ifdef _AIX |
eac4afd1 | 3337 | #pragma alloca |
4ff3dfab JM |
3338 | # else |
3339 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
0aa3233e ILT |
3340 | char *alloca (); |
3341 | # endif | |
3342 | # endif | |
3343 | # endif | |
3344 | #endif | |
3345 | ||
3346 | int main() { | |
3347 | char *p = (char *) alloca(1); | |
3348 | ; return 0; } | |
3349 | EOF | |
4ff3dfab | 3350 | if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0aa3233e ILT |
3351 | rm -rf conftest* |
3352 | ac_cv_func_alloca_works=yes | |
3353 | else | |
3354 | echo "configure: failed program was:" >&5 | |
3355 | cat conftest.$ac_ext >&5 | |
3356 | rm -rf conftest* | |
3357 | ac_cv_func_alloca_works=no | |
3358 | fi | |
3359 | rm -f conftest* | |
3360 | fi | |
3361 | ||
3362 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
3363 | if test $ac_cv_func_alloca_works = yes; then | |
3364 | cat >> confdefs.h <<\EOF | |
3365 | #define HAVE_ALLOCA 1 | |
3366 | EOF | |
3367 | ||
3368 | fi | |
3369 | ||
3370 | if test $ac_cv_func_alloca_works = no; then | |
3371 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3372 | # that cause trouble. Some versions do not even contain alloca or | |
3373 | # contain a buggy version. If you still want to use their alloca, | |
3374 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4ff3dfab | 3375 | ALLOCA=alloca.o |
0aa3233e ILT |
3376 | cat >> confdefs.h <<\EOF |
3377 | #define C_ALLOCA 1 | |
3378 | EOF | |
3379 | ||
3380 | ||
3381 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
4ff3dfab | 3382 | echo "configure:3383: checking whether alloca needs Cray hooks" >&5 |
0aa3233e ILT |
3383 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
3384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3385 | else | |
3386 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3387 | #line 3388 "configure" |
0aa3233e ILT |
3388 | #include "confdefs.h" |
3389 | #if defined(CRAY) && ! defined(CRAY2) | |
3390 | webecray | |
3391 | #else | |
3392 | wenotbecray | |
3393 | #endif | |
3394 | ||
3395 | EOF | |
3396 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3397 | egrep "webecray" >/dev/null 2>&1; then | |
3398 | rm -rf conftest* | |
3399 | ac_cv_os_cray=yes | |
3400 | else | |
3401 | rm -rf conftest* | |
3402 | ac_cv_os_cray=no | |
3403 | fi | |
3404 | rm -f conftest* | |
3405 | ||
3406 | fi | |
3407 | ||
3408 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
3409 | if test $ac_cv_os_cray = yes; then | |
3410 | for ac_func in _getb67 GETB67 getb67; do | |
3411 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 3412 | echo "configure:3413: checking for $ac_func" >&5 |
0aa3233e ILT |
3413 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3415 | else | |
3416 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3417 | #line 3418 "configure" |
0aa3233e ILT |
3418 | #include "confdefs.h" |
3419 | /* System header to define __stub macros and hopefully few prototypes, | |
3420 | which can conflict with char $ac_func(); below. */ | |
3421 | #include <assert.h> | |
3422 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3423 | /* We use char because int might match the return type of a gcc2 | |
3424 | builtin and then its argument prototype would still apply. */ | |
3425 | char $ac_func(); | |
3426 | ||
3427 | int main() { | |
3428 | ||
3429 | /* The GNU C library defines this for functions which it implements | |
3430 | to always fail with ENOSYS. Some functions are actually named | |
3431 | something starting with __ and the normal name is an alias. */ | |
3432 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3433 | choke me | |
3434 | #else | |
3435 | $ac_func(); | |
3436 | #endif | |
3437 | ||
3438 | ; return 0; } | |
3439 | EOF | |
4ff3dfab | 3440 | if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
0aa3233e ILT |
3441 | rm -rf conftest* |
3442 | eval "ac_cv_func_$ac_func=yes" | |
3443 | else | |
3444 | echo "configure: failed program was:" >&5 | |
3445 | cat conftest.$ac_ext >&5 | |
3446 | rm -rf conftest* | |
3447 | eval "ac_cv_func_$ac_func=no" | |
3448 | fi | |
3449 | rm -f conftest* | |
3450 | fi | |
3451 | ||
3452 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3453 | echo "$ac_t""yes" 1>&6 | |
3454 | cat >> confdefs.h <<EOF | |
3455 | #define CRAY_STACKSEG_END $ac_func | |
3456 | EOF | |
3457 | ||
3458 | break | |
3459 | else | |
3460 | echo "$ac_t""no" 1>&6 | |
3461 | fi | |
3462 | ||
3463 | done | |
3464 | fi | |
3465 | ||
3466 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
4ff3dfab | 3467 | echo "configure:3468: checking stack direction for C alloca" >&5 |
0aa3233e ILT |
3468 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
3469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3470 | else | |
3471 | if test "$cross_compiling" = yes; then | |
3472 | ac_cv_c_stack_direction=0 | |
3473 | else | |
3474 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3475 | #line 3476 "configure" |
0aa3233e ILT |
3476 | #include "confdefs.h" |
3477 | find_stack_direction () | |
3478 | { | |
3479 | static char *addr = 0; | |
3480 | auto char dummy; | |
3481 | if (addr == 0) | |
3482 | { | |
3483 | addr = &dummy; | |
3484 | return find_stack_direction (); | |
3485 | } | |
3486 | else | |
3487 | return (&dummy > addr) ? 1 : -1; | |
3488 | } | |
3489 | main () | |
3490 | { | |
3491 | exit (find_stack_direction() < 0); | |
3492 | } | |
3493 | EOF | |
4ff3dfab | 3494 | if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
0aa3233e ILT |
3495 | then |
3496 | ac_cv_c_stack_direction=1 | |
3497 | else | |
3498 | echo "configure: failed program was:" >&5 | |
3499 | cat conftest.$ac_ext >&5 | |
3500 | rm -fr conftest* | |
3501 | ac_cv_c_stack_direction=-1 | |
3502 | fi | |
3503 | rm -fr conftest* | |
3504 | fi | |
3505 | ||
3506 | fi | |
3507 | ||
3508 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
3509 | cat >> confdefs.h <<EOF | |
3510 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3511 | EOF | |
3512 | ||
3513 | fi | |
3514 | ||
72ae15f6 | 3515 | |
75a55dc3 | 3516 | # If we are configured native on GNU/Linux, work around problems with sys/procfs.h |
0d4c1152 FF |
3517 | if test "${target}" = "${host}"; then |
3518 | case "${host}" in | |
0728afad | 3519 | i[3456]86-*-linux*) |
0d4c1152 | 3520 | cat >> confdefs.h <<\EOF |
0728afad | 3521 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
0d4c1152 FF |
3522 | EOF |
3523 | ||
3524 | cat >> confdefs.h <<\EOF | |
3525 | #define sys_quotactl 1 | |
3526 | EOF | |
3527 | ||
3528 | ;; | |
3529 | esac | |
3530 | fi | |
3531 | ||
4708ac65 | 3532 | echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6 |
4ff3dfab | 3533 | echo "configure:3534: checking for gregset_t type" >&5 |
07b77f5c | 3534 | if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then |
4708ac65 FF |
3535 | echo $ac_n "(cached) $ac_c" 1>&6 |
3536 | else | |
3537 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3538 | #line 3539 "configure" |
4708ac65 FF |
3539 | #include "confdefs.h" |
3540 | #include <sys/procfs.h> | |
bfde4a67 | 3541 | int main() { |
4708ac65 FF |
3542 | gregset_t *gregsetp = 0 |
3543 | ; return 0; } | |
3544 | EOF | |
4ff3dfab | 3545 | if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4708ac65 | 3546 | rm -rf conftest* |
07b77f5c | 3547 | gdb_cv_have_gregset_t=yes |
4708ac65 | 3548 | else |
bfde4a67 SG |
3549 | echo "configure: failed program was:" >&5 |
3550 | cat conftest.$ac_ext >&5 | |
4708ac65 | 3551 | rm -rf conftest* |
07b77f5c | 3552 | gdb_cv_have_gregset_t=no |
4708ac65 FF |
3553 | fi |
3554 | rm -f conftest* | |
4708ac65 FF |
3555 | fi |
3556 | ||
07b77f5c FF |
3557 | echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6 |
3558 | if test $gdb_cv_have_gregset_t = yes; then | |
4708ac65 FF |
3559 | cat >> confdefs.h <<\EOF |
3560 | #define HAVE_GREGSET_T 1 | |
3561 | EOF | |
3562 | ||
3563 | fi | |
3564 | ||
3565 | echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6 | |
4ff3dfab | 3566 | echo "configure:3567: checking for fpregset_t type" >&5 |
07b77f5c | 3567 | if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then |
4708ac65 FF |
3568 | echo $ac_n "(cached) $ac_c" 1>&6 |
3569 | else | |
3570 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3571 | #line 3572 "configure" |
4708ac65 FF |
3572 | #include "confdefs.h" |
3573 | #include <sys/procfs.h> | |
bfde4a67 | 3574 | int main() { |
4708ac65 FF |
3575 | fpregset_t *fpregsetp = 0 |
3576 | ; return 0; } | |
3577 | EOF | |
4ff3dfab | 3578 | if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4708ac65 | 3579 | rm -rf conftest* |
07b77f5c | 3580 | gdb_cv_have_fpregset_t=yes |
4708ac65 | 3581 | else |
bfde4a67 SG |
3582 | echo "configure: failed program was:" >&5 |
3583 | cat conftest.$ac_ext >&5 | |
4708ac65 | 3584 | rm -rf conftest* |
07b77f5c | 3585 | gdb_cv_have_fpregset_t=no |
4708ac65 FF |
3586 | fi |
3587 | rm -f conftest* | |
4708ac65 FF |
3588 | fi |
3589 | ||
07b77f5c FF |
3590 | echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6 |
3591 | if test $gdb_cv_have_fpregset_t = yes; then | |
4708ac65 FF |
3592 | cat >> confdefs.h <<\EOF |
3593 | #define HAVE_FPREGSET_T 1 | |
3594 | EOF | |
3595 | ||
3596 | fi | |
3597 | ||
bfde4a67 | 3598 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 |
4ff3dfab | 3599 | echo "configure:3600: checking for main in -lm" >&5 |
bfde4a67 | 3600 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` |
ef6c51d1 SG |
3601 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3603 | else | |
3604 | ac_save_LIBS="$LIBS" | |
3605 | LIBS="-lm $LIBS" | |
3606 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3607 | #line 3608 "configure" |
ef6c51d1 SG |
3608 | #include "confdefs.h" |
3609 | ||
bfde4a67 | 3610 | int main() { |
ef6c51d1 SG |
3611 | main() |
3612 | ; return 0; } | |
3613 | EOF | |
4ff3dfab | 3614 | if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
ef6c51d1 SG |
3615 | rm -rf conftest* |
3616 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3617 | else | |
bfde4a67 SG |
3618 | echo "configure: failed program was:" >&5 |
3619 | cat conftest.$ac_ext >&5 | |
ef6c51d1 SG |
3620 | rm -rf conftest* |
3621 | eval "ac_cv_lib_$ac_lib_var=no" | |
3622 | fi | |
3623 | rm -f conftest* | |
3624 | LIBS="$ac_save_LIBS" | |
3625 | ||
3626 | fi | |
3627 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3628 | echo "$ac_t""yes" 1>&6 | |
bfde4a67 SG |
3629 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
3630 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
ef6c51d1 SG |
3631 | cat >> confdefs.h <<EOF |
3632 | #define $ac_tr_lib 1 | |
3633 | EOF | |
3634 | ||
3635 | LIBS="-lm $LIBS" | |
3636 | ||
3637 | else | |
3638 | echo "$ac_t""no" 1>&6 | |
3639 | fi | |
3640 | ||
3641 | ||
aa220473 | 3642 | |
3f550b59 | 3643 | echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6 |
4ff3dfab | 3644 | echo "configure:3645: checking for long long support in compiler" >&5 |
3f550b59 FF |
3645 | if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then |
3646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3647 | else | |
3648 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3649 | #line 3650 "configure" |
3f550b59 FF |
3650 | #include "confdefs.h" |
3651 | ||
bfde4a67 | 3652 | int main() { |
80f600a4 | 3653 | |
d538f9cf FF |
3654 | extern long long foo; |
3655 | switch (foo & 2) { case 0: return 1; } | |
3656 | ||
3f550b59 FF |
3657 | ; return 0; } |
3658 | EOF | |
4ff3dfab | 3659 | if { (eval echo configure:3660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3f550b59 FF |
3660 | rm -rf conftest* |
3661 | gdb_cv_c_long_long=yes | |
3662 | else | |
bfde4a67 SG |
3663 | echo "configure: failed program was:" >&5 |
3664 | cat conftest.$ac_ext >&5 | |
3f550b59 FF |
3665 | rm -rf conftest* |
3666 | gdb_cv_c_long_long=no | |
3667 | fi | |
3668 | rm -f conftest* | |
3f550b59 FF |
3669 | fi |
3670 | ||
3671 | echo "$ac_t""$gdb_cv_c_long_long" 1>&6 | |
3672 | if test $gdb_cv_c_long_long = yes; then | |
3673 | cat >> confdefs.h <<\EOF | |
3674 | #define CC_HAS_LONG_LONG 1 | |
3675 | EOF | |
3676 | ||
3677 | fi | |
3678 | ||
3679 | ||
3680 | echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6 | |
4ff3dfab | 3681 | echo "configure:3682: checking for long long support in printf" >&5 |
3f550b59 FF |
3682 | if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then |
3683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3684 | else | |
3685 | if test "$cross_compiling" = yes; then | |
3686 | gdb_cv_printf_has_long_long=no | |
3687 | else | |
bfde4a67 | 3688 | cat > conftest.$ac_ext <<EOF |
4ff3dfab | 3689 | #line 3690 "configure" |
3f550b59 FF |
3690 | #include "confdefs.h" |
3691 | ||
3692 | int main () { | |
f7b8c9ce AC |
3693 | char buf[32]; |
3694 | long long l = 0; | |
3695 | l = (l << 16) + 0x0123; | |
3696 | l = (l << 16) + 0x4567; | |
3697 | l = (l << 16) + 0x89ab; | |
3698 | l = (l << 16) + 0xcdef; | |
3699 | sprintf (buf, "0x%016llx", l); | |
3700 | return (strcmp ("0x0123456789abcdef", buf)); | |
3f550b59 FF |
3701 | } |
3702 | EOF | |
4ff3dfab | 3703 | if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bfde4a67 | 3704 | then |
3f550b59 FF |
3705 | gdb_cv_printf_has_long_long=yes |
3706 | else | |
bfde4a67 SG |
3707 | echo "configure: failed program was:" >&5 |
3708 | cat conftest.$ac_ext >&5 | |
3709 | rm -fr conftest* | |
3f550b59 FF |
3710 | gdb_cv_printf_has_long_long=no |
3711 | fi | |
ef6c51d1 | 3712 | rm -fr conftest* |
8b701284 ILT |
3713 | fi |
3714 | ||
bfde4a67 SG |
3715 | fi |
3716 | ||
3f550b59 FF |
3717 | if test $gdb_cv_printf_has_long_long = yes; then |
3718 | cat >> confdefs.h <<\EOF | |
3719 | #define PRINTF_HAS_LONG_LONG 1 | |
3720 | EOF | |
3721 | ||
3722 | fi | |
3723 | echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6 | |
3724 | ||
3725 | ||
07b77f5c | 3726 | echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6 |
4ff3dfab | 3727 | echo "configure:3728: checking for long double support in compiler" >&5 |
aa220473 SG |
3728 | if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then |
3729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3730 | else | |
3731 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3732 | #line 3733 "configure" |
aa220473 SG |
3733 | #include "confdefs.h" |
3734 | ||
bfde4a67 | 3735 | int main() { |
aa220473 SG |
3736 | long double foo; |
3737 | ; return 0; } | |
3738 | EOF | |
4ff3dfab | 3739 | if { (eval echo configure:3740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
aa220473 SG |
3740 | rm -rf conftest* |
3741 | ac_cv_c_long_double=yes | |
3742 | else | |
bfde4a67 SG |
3743 | echo "configure: failed program was:" >&5 |
3744 | cat conftest.$ac_ext >&5 | |
aa220473 SG |
3745 | rm -rf conftest* |
3746 | ac_cv_c_long_double=no | |
3747 | fi | |
3748 | rm -f conftest* | |
aa220473 SG |
3749 | fi |
3750 | ||
3751 | echo "$ac_t""$ac_cv_c_long_double" 1>&6 | |
3752 | if test $ac_cv_c_long_double = yes; then | |
3753 | cat >> confdefs.h <<\EOF | |
3754 | #define HAVE_LONG_DOUBLE 1 | |
3755 | EOF | |
3756 | ||
3757 | fi | |
3758 | ||
07b77f5c FF |
3759 | |
3760 | echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6 | |
4ff3dfab | 3761 | echo "configure:3762: checking for long double support in printf" >&5 |
07b77f5c FF |
3762 | if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then |
3763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3764 | else | |
3765 | if test "$cross_compiling" = yes; then | |
3766 | gdb_cv_printf_has_long_double=no | |
3767 | else | |
bfde4a67 | 3768 | cat > conftest.$ac_ext <<EOF |
4ff3dfab | 3769 | #line 3770 "configure" |
07b77f5c FF |
3770 | #include "confdefs.h" |
3771 | ||
3772 | int main () { | |
3773 | char buf[16]; | |
3774 | long double f = 3.141592653; | |
3775 | sprintf (buf, "%Lg", f); | |
3776 | return (strncmp ("3.14159", buf, 7)); | |
3777 | } | |
3778 | EOF | |
4ff3dfab | 3779 | if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bfde4a67 | 3780 | then |
07b77f5c FF |
3781 | gdb_cv_printf_has_long_double=yes |
3782 | else | |
bfde4a67 SG |
3783 | echo "configure: failed program was:" >&5 |
3784 | cat conftest.$ac_ext >&5 | |
3785 | rm -fr conftest* | |
07b77f5c FF |
3786 | gdb_cv_printf_has_long_double=no |
3787 | fi | |
ef6c51d1 | 3788 | rm -fr conftest* |
8b701284 ILT |
3789 | fi |
3790 | ||
bfde4a67 SG |
3791 | fi |
3792 | ||
07b77f5c FF |
3793 | if test $gdb_cv_printf_has_long_double = yes; then |
3794 | cat >> confdefs.h <<\EOF | |
3795 | #define PRINTF_HAS_LONG_DOUBLE 1 | |
3796 | EOF | |
3797 | ||
3798 | fi | |
3799 | echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6 | |
3800 | ||
f7b8c9ce AC |
3801 | |
3802 | echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6 | |
4ff3dfab | 3803 | echo "configure:3804: checking for long double support in scanf" >&5 |
f7b8c9ce AC |
3804 | if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then |
3805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3806 | else | |
3807 | if test "$cross_compiling" = yes; then | |
3808 | gdb_cv_scanf_has_long_double=no | |
3809 | else | |
3810 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3811 | #line 3812 "configure" |
f7b8c9ce AC |
3812 | #include "confdefs.h" |
3813 | ||
3814 | int main () { | |
3815 | char *buf = "3.141592653"; | |
3816 | long double f = 0; | |
3817 | sscanf (buf, "%Lg", &f); | |
3818 | return !(f > 3.14159 && f < 3.14160); | |
3819 | } | |
3820 | EOF | |
4ff3dfab | 3821 | if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
f7b8c9ce AC |
3822 | then |
3823 | gdb_cv_scanf_has_long_double=yes | |
3824 | else | |
3825 | echo "configure: failed program was:" >&5 | |
3826 | cat conftest.$ac_ext >&5 | |
3827 | rm -fr conftest* | |
3828 | gdb_cv_scanf_has_long_double=no | |
3829 | fi | |
3830 | rm -fr conftest* | |
3831 | fi | |
3832 | ||
3833 | fi | |
3834 | ||
3835 | if test $gdb_cv_scanf_has_long_double = yes; then | |
3836 | cat >> confdefs.h <<\EOF | |
3837 | #define SCANF_HAS_LONG_DOUBLE 1 | |
3838 | EOF | |
3839 | ||
3840 | fi | |
3841 | echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6 | |
3842 | ||
bfde4a67 SG |
3843 | for ac_hdr in unistd.h |
3844 | do | |
3845 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3846 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4ff3dfab | 3847 | echo "configure:3848: checking for $ac_hdr" >&5 |
bfde4a67 SG |
3848 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3850 | else | |
3851 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3852 | #line 3853 "configure" |
bfde4a67 SG |
3853 | #include "confdefs.h" |
3854 | #include <$ac_hdr> | |
3855 | EOF | |
3856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
3857 | { (eval echo configure:3858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3858 | ac_err=`grep -v '^ *+' conftest.out` | |
bfde4a67 SG |
3859 | if test -z "$ac_err"; then |
3860 | rm -rf conftest* | |
3861 | eval "ac_cv_header_$ac_safe=yes" | |
3862 | else | |
3863 | echo "$ac_err" >&5 | |
3864 | echo "configure: failed program was:" >&5 | |
3865 | cat conftest.$ac_ext >&5 | |
3866 | rm -rf conftest* | |
3867 | eval "ac_cv_header_$ac_safe=no" | |
3868 | fi | |
3869 | rm -f conftest* | |
3870 | fi | |
3871 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3872 | echo "$ac_t""yes" 1>&6 | |
3873 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3874 | cat >> confdefs.h <<EOF | |
3875 | #define $ac_tr_hdr 1 | |
3876 | EOF | |
3877 | ||
3878 | else | |
3879 | echo "$ac_t""no" 1>&6 | |
3880 | fi | |
3881 | done | |
3882 | ||
3883 | for ac_func in getpagesize | |
1a7b4b7c DE |
3884 | do |
3885 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4ff3dfab | 3886 | echo "configure:3887: checking for $ac_func" >&5 |
1a7b4b7c DE |
3887 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3889 | else | |
3890 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 3891 | #line 3892 "configure" |
1a7b4b7c DE |
3892 | #include "confdefs.h" |
3893 | /* System header to define __stub macros and hopefully few prototypes, | |
3894 | which can conflict with char $ac_func(); below. */ | |
3895 | #include <assert.h> | |
3896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
bc859e63 SG |
3897 | /* We use char because int might match the return type of a gcc2 |
3898 | builtin and then its argument prototype would still apply. */ | |
1a7b4b7c DE |
3899 | char $ac_func(); |
3900 | ||
bfde4a67 | 3901 | int main() { |
1a7b4b7c DE |
3902 | |
3903 | /* The GNU C library defines this for functions which it implements | |
3904 | to always fail with ENOSYS. Some functions are actually named | |
3905 | something starting with __ and the normal name is an alias. */ | |
3906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3907 | choke me | |
3908 | #else | |
3909 | $ac_func(); | |
3910 | #endif | |
3911 | ||
3912 | ; return 0; } | |
3913 | EOF | |
4ff3dfab | 3914 | if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1a7b4b7c DE |
3915 | rm -rf conftest* |
3916 | eval "ac_cv_func_$ac_func=yes" | |
3917 | else | |
bfde4a67 SG |
3918 | echo "configure: failed program was:" >&5 |
3919 | cat conftest.$ac_ext >&5 | |
1a7b4b7c DE |
3920 | rm -rf conftest* |
3921 | eval "ac_cv_func_$ac_func=no" | |
3922 | fi | |
3923 | rm -f conftest* | |
ef6c51d1 | 3924 | fi |
bfde4a67 | 3925 | |
1a7b4b7c DE |
3926 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3927 | echo "$ac_t""yes" 1>&6 | |
3928 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3929 | cat >> confdefs.h <<EOF | |
3930 | #define $ac_tr_func 1 | |
3931 | EOF | |
3932 | ||
3933 | else | |
3934 | echo "$ac_t""no" 1>&6 | |
3935 | fi | |
3936 | done | |
3937 | ||
2b576293 | 3938 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
4ff3dfab | 3939 | echo "configure:3940: checking for working mmap" >&5 |
bfde4a67 | 3940 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2b576293 C |
3941 | echo $ac_n "(cached) $ac_c" 1>&6 |
3942 | else | |
3943 | if test "$cross_compiling" = yes; then | |
bfde4a67 | 3944 | ac_cv_func_mmap_fixed_mapped=no |
2b576293 | 3945 | else |
bfde4a67 | 3946 | cat > conftest.$ac_ext <<EOF |
4ff3dfab | 3947 | #line 3948 "configure" |
2b576293 C |
3948 | #include "confdefs.h" |
3949 | ||
bfde4a67 SG |
3950 | /* Thanks to Mike Haertel and Jim Avera for this test. |
3951 | Here is a matrix of mmap possibilities: | |
3952 | mmap private not fixed | |
3953 | mmap private fixed at somewhere currently unmapped | |
3954 | mmap private fixed at somewhere already mapped | |
3955 | mmap shared not fixed | |
3956 | mmap shared fixed at somewhere currently unmapped | |
3957 | mmap shared fixed at somewhere already mapped | |
3958 | For private mappings, we should verify that changes cannot be read() | |
3959 | back from the file, nor mmap's back from the file at a different | |
3960 | address. (There have been systems where private was not correctly | |
3961 | implemented like the infamous i386 svr4.0, and systems where the | |
3962 | VM page cache was not coherent with the filesystem buffer cache | |
3963 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
3964 | For shared mappings, we should conversely verify that changes get | |
3965 | propogated back to all the places they're supposed to be. | |
3966 | ||
3967 | Grep wants private fixed already mapped. | |
3968 | The main things grep needs to know about mmap are: | |
3969 | * does it exist and is it safe to write into the mmap'd area | |
3970 | * how to use it (BSD variants) */ | |
2b576293 C |
3971 | #include <sys/types.h> |
3972 | #include <fcntl.h> | |
3973 | #include <sys/mman.h> | |
3974 | ||
bfde4a67 | 3975 | /* This mess was copied from the GNU getpagesize.h. */ |
2b576293 | 3976 | #ifndef HAVE_GETPAGESIZE |
bfde4a67 SG |
3977 | # ifdef HAVE_UNISTD_H |
3978 | # include <unistd.h> | |
8b701284 ILT |
3979 | # endif |
3980 | ||
bfde4a67 SG |
3981 | /* Assume that all systems that can run configure have sys/param.h. */ |
3982 | # ifndef HAVE_SYS_PARAM_H | |
3983 | # define HAVE_SYS_PARAM_H 1 | |
3984 | # endif | |
3985 | ||
3986 | # ifdef _SC_PAGESIZE | |
3987 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3988 | # else /* no _SC_PAGESIZE */ | |
3989 | # ifdef HAVE_SYS_PARAM_H | |
3990 | # include <sys/param.h> | |
3991 | # ifdef EXEC_PAGESIZE | |
3992 | # define getpagesize() EXEC_PAGESIZE | |
3993 | # else /* no EXEC_PAGESIZE */ | |
3994 | # ifdef NBPG | |
3995 | # define getpagesize() NBPG * CLSIZE | |
3996 | # ifndef CLSIZE | |
3997 | # define CLSIZE 1 | |
3998 | # endif /* no CLSIZE */ | |
3999 | # else /* no NBPG */ | |
4000 | # ifdef NBPC | |
4001 | # define getpagesize() NBPC | |
4002 | # else /* no NBPC */ | |
4003 | # ifdef PAGESIZE | |
4004 | # define getpagesize() PAGESIZE | |
4005 | # endif /* PAGESIZE */ | |
4006 | # endif /* no NBPC */ | |
4007 | # endif /* no NBPG */ | |
4008 | # endif /* no EXEC_PAGESIZE */ | |
4009 | # else /* no HAVE_SYS_PARAM_H */ | |
4010 | # define getpagesize() 8192 /* punt totally */ | |
4011 | # endif /* no HAVE_SYS_PARAM_H */ | |
4012 | # endif /* no _SC_PAGESIZE */ | |
4013 | ||
4014 | #endif /* no HAVE_GETPAGESIZE */ | |
2b576293 C |
4015 | |
4016 | #ifdef __cplusplus | |
bfde4a67 | 4017 | extern "C" { void *malloc(unsigned); } |
2b576293 | 4018 | #else |
bfde4a67 | 4019 | char *malloc(); |
2b576293 C |
4020 | #endif |
4021 | ||
4022 | int | |
4023 | main() | |
4024 | { | |
bfde4a67 SG |
4025 | char *data, *data2, *data3; |
4026 | int i, pagesize; | |
4027 | int fd; | |
4028 | ||
4029 | pagesize = getpagesize(); | |
4030 | ||
4031 | /* | |
4032 | * First, make a file with some known garbage in it. | |
4033 | */ | |
4034 | data = malloc(pagesize); | |
4035 | if (!data) | |
4036 | exit(1); | |
4037 | for (i = 0; i < pagesize; ++i) | |
4038 | *(data + i) = rand(); | |
4039 | umask(0); | |
4040 | fd = creat("conftestmmap", 0600); | |
4041 | if (fd < 0) | |
4042 | exit(1); | |
4043 | if (write(fd, data, pagesize) != pagesize) | |
4044 | exit(1); | |
4045 | close(fd); | |
4046 | ||
4047 | /* | |
4048 | * Next, try to mmap the file at a fixed address which | |
4049 | * already has something else allocated at it. If we can, | |
4050 | * also make sure that we see the same garbage. | |
4051 | */ | |
4052 | fd = open("conftestmmap", O_RDWR); | |
4053 | if (fd < 0) | |
4054 | exit(1); | |
4055 | data2 = malloc(2 * pagesize); | |
4056 | if (!data2) | |
4057 | exit(1); | |
4058 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
4059 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
4060 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4061 | exit(1); | |
4062 | for (i = 0; i < pagesize; ++i) | |
4063 | if (*(data + i) != *(data2 + i)) | |
4064 | exit(1); | |
4065 | ||
4066 | /* | |
4067 | * Finally, make sure that changes to the mapped area | |
4068 | * do not percolate back to the file as seen by read(). | |
4069 | * (This is a bug on some variants of i386 svr4.0.) | |
4070 | */ | |
4071 | for (i = 0; i < pagesize; ++i) | |
4072 | *(data2 + i) = *(data2 + i) + 1; | |
4073 | data3 = malloc(pagesize); | |
4074 | if (!data3) | |
4075 | exit(1); | |
4076 | if (read(fd, data3, pagesize) != pagesize) | |
4077 | exit(1); | |
4078 | for (i = 0; i < pagesize; ++i) | |
4079 | if (*(data + i) != *(data3 + i)) | |
4080 | exit(1); | |
4081 | close(fd); | |
4082 | unlink("conftestmmap"); | |
4083 | exit(0); | |
2b576293 C |
4084 | } |
4085 | ||
4086 | EOF | |
4ff3dfab | 4087 | if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bfde4a67 SG |
4088 | then |
4089 | ac_cv_func_mmap_fixed_mapped=yes | |
2b576293 | 4090 | else |
bfde4a67 SG |
4091 | echo "configure: failed program was:" >&5 |
4092 | cat conftest.$ac_ext >&5 | |
4093 | rm -fr conftest* | |
4094 | ac_cv_func_mmap_fixed_mapped=no | |
2b576293 | 4095 | fi |
ef6c51d1 | 4096 | rm -fr conftest* |
8b701284 ILT |
4097 | fi |
4098 | ||
bfde4a67 SG |
4099 | fi |
4100 | ||
4101 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
4102 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
2b576293 C |
4103 | cat >> confdefs.h <<\EOF |
4104 | #define HAVE_MMAP 1 | |
4105 | EOF | |
4106 | ||
4107 | fi | |
4108 | ||
5436fc65 | 4109 | |
5819f35d | 4110 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 |
4ff3dfab | 4111 | echo "configure:4112: checking whether malloc must be declared" >&5 |
5819f35d SG |
4112 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then |
4113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4114 | else | |
4115 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4116 | #line 4117 "configure" |
5819f35d SG |
4117 | #include "confdefs.h" |
4118 | ||
4119 | #include <stdio.h> | |
4120 | #ifdef HAVE_STRING_H | |
4121 | #include <string.h> | |
4122 | #else | |
4123 | #ifdef HAVE_STRINGS_H | |
4124 | #include <strings.h> | |
4125 | #endif | |
4126 | #endif | |
4127 | #ifdef HAVE_STDLIB_H | |
4128 | #include <stdlib.h> | |
4129 | #endif | |
4130 | #ifdef HAVE_UNISTD_H | |
4131 | #include <unistd.h> | |
4132 | #endif | |
bfde4a67 | 4133 | int main() { |
5819f35d SG |
4134 | char *(*pfn) = (char *(*)) malloc |
4135 | ; return 0; } | |
4136 | EOF | |
4ff3dfab | 4137 | if { (eval echo configure:4138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5819f35d SG |
4138 | rm -rf conftest* |
4139 | bfd_cv_decl_needed_malloc=no | |
4140 | else | |
bfde4a67 SG |
4141 | echo "configure: failed program was:" >&5 |
4142 | cat conftest.$ac_ext >&5 | |
5819f35d SG |
4143 | rm -rf conftest* |
4144 | bfd_cv_decl_needed_malloc=yes | |
4145 | fi | |
4146 | rm -f conftest* | |
5819f35d SG |
4147 | fi |
4148 | ||
4149 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 | |
4150 | if test $bfd_cv_decl_needed_malloc = yes; then | |
4151 | bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4152 | cat >> confdefs.h <<EOF | |
4153 | #define $bfd_tr_decl 1 | |
4154 | EOF | |
4155 | ||
4156 | fi | |
4157 | ||
4158 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 | |
4ff3dfab | 4159 | echo "configure:4160: checking whether realloc must be declared" >&5 |
5819f35d SG |
4160 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then |
4161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4162 | else | |
4163 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4164 | #line 4165 "configure" |
5819f35d SG |
4165 | #include "confdefs.h" |
4166 | ||
4167 | #include <stdio.h> | |
4168 | #ifdef HAVE_STRING_H | |
4169 | #include <string.h> | |
4170 | #else | |
4171 | #ifdef HAVE_STRINGS_H | |
4172 | #include <strings.h> | |
4173 | #endif | |
4174 | #endif | |
4175 | #ifdef HAVE_STDLIB_H | |
4176 | #include <stdlib.h> | |
4177 | #endif | |
4178 | #ifdef HAVE_UNISTD_H | |
4179 | #include <unistd.h> | |
4180 | #endif | |
bfde4a67 | 4181 | int main() { |
5819f35d SG |
4182 | char *(*pfn) = (char *(*)) realloc |
4183 | ; return 0; } | |
4184 | EOF | |
4ff3dfab | 4185 | if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5819f35d SG |
4186 | rm -rf conftest* |
4187 | bfd_cv_decl_needed_realloc=no | |
4188 | else | |
bfde4a67 SG |
4189 | echo "configure: failed program was:" >&5 |
4190 | cat conftest.$ac_ext >&5 | |
5819f35d SG |
4191 | rm -rf conftest* |
4192 | bfd_cv_decl_needed_realloc=yes | |
4193 | fi | |
4194 | rm -f conftest* | |
5819f35d SG |
4195 | fi |
4196 | ||
4197 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 | |
4198 | if test $bfd_cv_decl_needed_realloc = yes; then | |
4199 | bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4200 | cat >> confdefs.h <<EOF | |
4201 | #define $bfd_tr_decl 1 | |
4202 | EOF | |
4203 | ||
4204 | fi | |
4205 | ||
4206 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 | |
4ff3dfab | 4207 | echo "configure:4208: checking whether free must be declared" >&5 |
5819f35d SG |
4208 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then |
4209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4210 | else | |
4211 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4212 | #line 4213 "configure" |
5819f35d SG |
4213 | #include "confdefs.h" |
4214 | ||
4215 | #include <stdio.h> | |
4216 | #ifdef HAVE_STRING_H | |
4217 | #include <string.h> | |
4218 | #else | |
4219 | #ifdef HAVE_STRINGS_H | |
4220 | #include <strings.h> | |
4221 | #endif | |
4222 | #endif | |
4223 | #ifdef HAVE_STDLIB_H | |
4224 | #include <stdlib.h> | |
4225 | #endif | |
4226 | #ifdef HAVE_UNISTD_H | |
4227 | #include <unistd.h> | |
4228 | #endif | |
bfde4a67 | 4229 | int main() { |
5819f35d SG |
4230 | char *(*pfn) = (char *(*)) free |
4231 | ; return 0; } | |
4232 | EOF | |
4ff3dfab | 4233 | if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5819f35d SG |
4234 | rm -rf conftest* |
4235 | bfd_cv_decl_needed_free=no | |
4236 | else | |
bfde4a67 SG |
4237 | echo "configure: failed program was:" >&5 |
4238 | cat conftest.$ac_ext >&5 | |
5819f35d SG |
4239 | rm -rf conftest* |
4240 | bfd_cv_decl_needed_free=yes | |
4241 | fi | |
4242 | rm -f conftest* | |
5819f35d SG |
4243 | fi |
4244 | ||
4245 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6 | |
4246 | if test $bfd_cv_decl_needed_free = yes; then | |
4247 | bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4248 | cat >> confdefs.h <<EOF | |
4249 | #define $bfd_tr_decl 1 | |
4250 | EOF | |
4251 | ||
4252 | fi | |
4253 | ||
fef1696f | 4254 | |
21cbc60c | 4255 | echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6 |
4ff3dfab | 4256 | echo "configure:4257: checking whether strerror must be declared" >&5 |
21cbc60c JM |
4257 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then |
4258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4259 | else | |
4260 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4261 | #line 4262 "configure" |
21cbc60c JM |
4262 | #include "confdefs.h" |
4263 | ||
4264 | #include <stdio.h> | |
4265 | #ifdef HAVE_STRING_H | |
4266 | #include <string.h> | |
4267 | #else | |
4268 | #ifdef HAVE_STRINGS_H | |
4269 | #include <strings.h> | |
4270 | #endif | |
4271 | #endif | |
4272 | #ifdef HAVE_STDLIB_H | |
4273 | #include <stdlib.h> | |
4274 | #endif | |
4275 | #ifdef HAVE_UNISTD_H | |
4276 | #include <unistd.h> | |
4277 | #endif | |
4278 | int main() { | |
4279 | char *(*pfn) = (char *(*)) strerror | |
4280 | ; return 0; } | |
4281 | EOF | |
4ff3dfab | 4282 | if { (eval echo configure:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21cbc60c JM |
4283 | rm -rf conftest* |
4284 | bfd_cv_decl_needed_strerror=no | |
4285 | else | |
4286 | echo "configure: failed program was:" >&5 | |
4287 | cat conftest.$ac_ext >&5 | |
4288 | rm -rf conftest* | |
4289 | bfd_cv_decl_needed_strerror=yes | |
4290 | fi | |
4291 | rm -f conftest* | |
4292 | fi | |
4293 | ||
4294 | echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6 | |
4295 | if test $bfd_cv_decl_needed_strerror = yes; then | |
4296 | bfd_tr_decl=NEED_DECLARATION_`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4297 | cat >> confdefs.h <<EOF | |
4298 | #define $bfd_tr_decl 1 | |
4299 | EOF | |
4300 | ||
4301 | fi | |
4302 | ||
4303 | ||
47ef0da5 | 4304 | |
89e673a4 SG |
4305 | |
4306 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
4b95e9a1 JM |
4307 | case ${host_os} in |
4308 | hpux*) | |
4309 | echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6 | |
4ff3dfab | 4310 | echo "configure:4311: checking for HPUX/OSF thread support" >&5 |
4b95e9a1 JM |
4311 | if test -f /usr/include/dce/cma_config.h ; then |
4312 | if test "$GCC" = "yes" ; then | |
4313 | echo "$ac_t""yes" 1>&6 | |
4314 | cat >> confdefs.h <<\EOF | |
5d394f70 SG |
4315 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
4316 | EOF | |
4317 | ||
4b95e9a1 | 4318 | CONFIG_OBS="${CONFIG_OJS} hpux-thread.o" |
c7bb1531 | 4319 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
4b95e9a1 JM |
4320 | else |
4321 | echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6 | |
4322 | fi | |
4323 | else | |
4324 | echo "$ac_t""no" 1>&6 | |
4325 | fi | |
4326 | ;; | |
4327 | solaris*) | |
4328 | echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6 | |
4ff3dfab | 4329 | echo "configure:4330: checking for Solaris thread debugging library" >&5 |
4b95e9a1 JM |
4330 | if test -f /usr/lib/libthread_db.so.1 ; then |
4331 | echo "$ac_t""yes" 1>&6 | |
4332 | cat >> confdefs.h <<\EOF | |
6c310da8 SG |
4333 | #define HAVE_THREAD_DB_LIB 1 |
4334 | EOF | |
4335 | ||
4b95e9a1 | 4336 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c7bb1531 | 4337 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
4b95e9a1 | 4338 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
4ff3dfab | 4339 | echo "configure:4340: checking for dlopen in -ldl" >&5 |
bfde4a67 | 4340 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
95b47547 SG |
4341 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4343 | else | |
4344 | ac_save_LIBS="$LIBS" | |
4345 | LIBS="-ldl $LIBS" | |
4346 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4347 | #line 4348 "configure" |
95b47547 SG |
4348 | #include "confdefs.h" |
4349 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4350 | /* We use char because int might match the return type of a gcc2 | |
4351 | builtin and then its argument prototype would still apply. */ | |
4352 | char dlopen(); | |
4353 | ||
bfde4a67 | 4354 | int main() { |
95b47547 SG |
4355 | dlopen() |
4356 | ; return 0; } | |
4357 | EOF | |
4ff3dfab | 4358 | if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
95b47547 SG |
4359 | rm -rf conftest* |
4360 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4361 | else | |
bfde4a67 SG |
4362 | echo "configure: failed program was:" >&5 |
4363 | cat conftest.$ac_ext >&5 | |
95b47547 SG |
4364 | rm -rf conftest* |
4365 | eval "ac_cv_lib_$ac_lib_var=no" | |
4366 | fi | |
4367 | rm -f conftest* | |
4368 | LIBS="$ac_save_LIBS" | |
4369 | ||
4370 | fi | |
4371 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4372 | echo "$ac_t""yes" 1>&6 | |
bfde4a67 SG |
4373 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
4374 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
95b47547 SG |
4375 | cat >> confdefs.h <<EOF |
4376 | #define $ac_tr_lib 1 | |
4377 | EOF | |
4378 | ||
4379 | LIBS="-ldl $LIBS" | |
4380 | ||
4381 | else | |
4382 | echo "$ac_t""no" 1>&6 | |
4383 | fi | |
4384 | ||
4b95e9a1 JM |
4385 | if test "$GCC" = "yes" ; then |
4386 | # The GNU linker requires the -export-dynamic option to make | |
4387 | # all symbols visible in the dynamic symbol table. | |
4388 | hold_ldflags=$LDFLAGS | |
4389 | echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6 | |
4ff3dfab | 4390 | echo "configure:4391: checking for the ld -export-dynamic flag" >&5 |
4b95e9a1 JM |
4391 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
4392 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4393 | #line 4394 "configure" |
4b95e9a1 JM |
4394 | #include "confdefs.h" |
4395 | ||
4396 | int main() { | |
4397 | int i; | |
4398 | ; return 0; } | |
4399 | EOF | |
4ff3dfab | 4400 | if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
4b95e9a1 JM |
4401 | rm -rf conftest* |
4402 | found=yes | |
4403 | else | |
4404 | echo "configure: failed program was:" >&5 | |
4405 | cat conftest.$ac_ext >&5 | |
4406 | rm -rf conftest* | |
4407 | found=no | |
4408 | fi | |
4409 | rm -f conftest* | |
4410 | LDFLAGS=$hold_ldflags | |
4411 | echo "$ac_t""$found" 1>&6 | |
4412 | if test $found = yes; then | |
4413 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
4414 | fi | |
4415 | fi | |
4416 | else | |
4417 | echo "$ac_t""no" 1>&6 | |
4418 | fi | |
4419 | ;; | |
4420 | esac | |
4421 | ||
89e673a4 | 4422 | fi |
47ef0da5 | 4423 | |
5436fc65 | 4424 | ENABLE_CFLAGS= |
5436fc65 C |
4425 | |
4426 | # Check whether --enable-netrom or --disable-netrom was given. | |
1a7b4b7c DE |
4427 | if test "${enable_netrom+set}" = set; then |
4428 | enableval="$enable_netrom" | |
5436fc65 C |
4429 | case "${enableval}" in |
4430 | yes) enable_netrom=yes ;; | |
4431 | no) enable_netrom=no ;; | |
4432 | *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;; | |
4433 | esac | |
4434 | fi | |
4435 | ||
4436 | ||
4437 | if test "${enable_netrom}" = "yes"; then | |
6c310da8 | 4438 | CONFIG_OBS="${CONFIG_OBS} remote-nrom.o" |
c7bb1531 | 4439 | CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c" |
5436fc65 C |
4440 | fi |
4441 | ||
0728afad FF |
4442 | MMALLOC_CFLAGS= |
4443 | MMALLOC= | |
4444 | ||
4445 | ||
4446 | ||
4447 | # Check whether --with-mmalloc or --without-mmalloc was given. | |
4448 | if test "${with_mmalloc+set}" = set; then | |
4449 | withval="$with_mmalloc" | |
4450 | case "${withval}" in | |
4451 | yes) want_mmalloc=true ;; | |
4452 | no) want_mmalloc=false;; | |
4453 | *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;; | |
4454 | esac | |
4455 | else | |
4456 | want_mmalloc=false | |
4457 | fi | |
4458 | ||
4459 | if test x$want_mmalloc = xtrue; then | |
4460 | cat >> confdefs.h <<\EOF | |
4461 | #define USE_MMALLOC 1 | |
4462 | EOF | |
4463 | ||
4464 | cat >> confdefs.h <<\EOF | |
dd600735 | 4465 | #define MMCHECK_FORCE 1 |
0728afad FF |
4466 | EOF |
4467 | ||
4468 | MMALLOC_CFLAGS="-I$srcdir/../mmalloc" | |
4469 | MMALLOC='../mmalloc/libmmalloc.a' | |
4470 | fi | |
4471 | ||
5436fc65 | 4472 | # start-sanitize-gdbtk |
2476848a MH |
4473 | ENABLE_IDE= |
4474 | # Check whether --enable-ide or --disable-ide was given. | |
4475 | if test "${enable_ide+set}" = set; then | |
4476 | enableval="$enable_ide" | |
4477 | : | |
4478 | fi | |
4479 | ||
4480 | if test "$enable_ide" = yes; then | |
4481 | enable_ide=yes | |
4482 | ENABLE_IDE=1 | |
4483 | else | |
4484 | enable_ide=no | |
4485 | fi | |
4486 | ||
4487 | ||
c076f1ed DM |
4488 | # Check whether --with-foundry-libs or --without-foundry-libs was given. |
4489 | if test "${with_foundry_libs+set}" = set; then | |
4490 | withval="$with_foundry_libs" | |
4491 | FOUNDRY_LIB_BASE=${withval} | |
4492 | fi | |
4493 | ||
4494 | ||
4495 | ||
4496 | # | |
4497 | # This is the Foundry SDK | |
4498 | # | |
4499 | # These variables are used to determine where the Foundry libs and | |
4500 | # header files are located. | |
4501 | # | |
4502 | if test "$FOUNDRY_LIB_BASE" != ""; then | |
4503 | LIBGUI="${FOUNDRY_LIB_BASE}/lib/libgui.a" | |
4504 | GUI_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include" | |
4505 | if test x$enable_ide = xyes; then | |
4506 | IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include -DIDE" | |
4507 | IDE_X="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu" | |
4508 | else | |
4509 | IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include" | |
4510 | fi | |
4511 | LIBIDETCL="${FOUNDRY_LIB_BASE}/lib/libidetcl.a" | |
4512 | LIBIDE="${FOUNDRY_LIB_BASE}/lib/libide.a" | |
4513 | IDE_DEPS="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a" | |
4514 | else | |
4515 | LIBGUI="../libgui/src/libgui.a" | |
4516 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
4517 | if test x$enable_ide = xyes; then | |
4518 | IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop" | |
4519 | IDE_X="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu" | |
4520 | else | |
4521 | IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src" | |
4522 | fi | |
4523 | LIBIDETCL="../libidetcl/src/libidetcl.a" | |
4524 | LIBIDE="../libide/src/libide.a" | |
4525 | IDE_DEPS="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a" | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
5436fc65 C |
4535 | ENABLE_GDBTK= |
4536 | ||
4537 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
1a7b4b7c DE |
4538 | if test "${enable_gdbtk+set}" = set; then |
4539 | enableval="$enable_gdbtk" | |
5436fc65 | 4540 | case "${enableval}" in |
0fe1522a SG |
4541 | yes) |
4542 | case "$host" in | |
4543 | *go32*) | |
4544 | echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2 | |
4545 | enable_gdbtk=no ;; | |
8a19b35a | 4546 | *windows*) |
b613bfbf GN |
4547 | echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2 |
4548 | enable_gdbtk=no ;; | |
0fe1522a SG |
4549 | *) |
4550 | enable_gdbtk=yes ;; | |
4551 | esac ;; | |
4552 | no) | |
4553 | enable_gdbtk=no ;; | |
4554 | *) | |
4555 | { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;; | |
5436fc65 | 4556 | esac |
0fe1522a SG |
4557 | else |
4558 | ||
b613bfbf | 4559 | # Default is on for everything but go32 and cygwin32 |
0fe1522a | 4560 | case "$host" in |
8a19b35a | 4561 | *go32* | *windows*) |
b613bfbf | 4562 | ;; |
0fe1522a SG |
4563 | *) |
4564 | enable_gdbtk=yes ;; | |
4565 | esac | |
4566 | ||
5436fc65 C |
4567 | fi |
4568 | ||
4569 | ||
9b119644 ILT |
4570 | # In the cygwin32 environment, we need some additional flags. |
4571 | echo $ac_n "checking for cygwin32""... $ac_c" 1>&6 | |
4ff3dfab | 4572 | echo "configure:4573: checking for cygwin32" >&5 |
9b119644 ILT |
4573 | if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then |
4574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4575 | else | |
4576 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4577 | #line 4578 "configure" |
9b119644 ILT |
4578 | #include "confdefs.h" |
4579 | ||
4580 | #ifdef __CYGWIN32__ | |
4581 | lose | |
4582 | #endif | |
4583 | EOF | |
4584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4585 | egrep "lose" >/dev/null 2>&1; then | |
4586 | rm -rf conftest* | |
4587 | gdb_cv_os_cygwin32=yes | |
4588 | else | |
4589 | rm -rf conftest* | |
4590 | gdb_cv_os_cygwin32=no | |
4591 | fi | |
4592 | rm -f conftest* | |
4593 | ||
4594 | fi | |
4595 | ||
4596 | echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6 | |
4597 | ||
4598 | WIN32LIBS= | |
4599 | WIN32LDAPP= | |
4600 | ||
4601 | ||
4602 | ||
929db6e5 EZ |
4603 | WINDRES=${WINDRES-windres} |
4604 | ||
4605 | ||
9b119644 ILT |
4606 | if test x$gdb_cv_os_cygwin32 = xyes; then |
4607 | if test x$enable_ide = xyes; then | |
4608 | WIN32LIBS="-ladvapi32" | |
4609 | fi | |
4610 | fi | |
4611 | ||
4612 | configdir="unix" | |
8a19b35a | 4613 | |
b177bf84 | 4614 | GDBTKLIBS= |
5436fc65 | 4615 | if test "${enable_gdbtk}" = "yes"; then |
0fe1522a | 4616 | |
047465fd TT |
4617 | |
4618 | # | |
4619 | # Ok, lets find the tcl configuration | |
4620 | # First, look for one uninstalled. | |
4621 | # the alternative search directory is invoked by --with-tclconfig | |
4622 | # | |
5436fc65 | 4623 | |
047465fd TT |
4624 | if test x"${no_tcl}" = x ; then |
4625 | # we reset no_tcl in case something fails here | |
4626 | no_tcl=true | |
4627 | # Check whether --with-tclconfig or --without-tclconfig was given. | |
4628 | if test "${with_tclconfig+set}" = set; then | |
4629 | withval="$with_tclconfig" | |
4630 | with_tclconfig=${withval} | |
5436fc65 C |
4631 | fi |
4632 | ||
047465fd | 4633 | echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6 |
4ff3dfab | 4634 | echo "configure:4635: checking for Tcl configuration" >&5 |
047465fd | 4635 | if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then |
5436fc65 C |
4636 | echo $ac_n "(cached) $ac_c" 1>&6 |
4637 | else | |
047465fd | 4638 | |
1a7b4b7c | 4639 | |
047465fd TT |
4640 | # First check to see if --with-tclconfig was specified. |
4641 | if test x"${with_tclconfig}" != x ; then | |
4642 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
4643 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
4644 | else | |
4645 | { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; } | |
5436fc65 | 4646 | fi |
047465fd | 4647 | fi |
5436fc65 | 4648 | |
047465fd TT |
4649 | # then check for a private Tcl installation |
4650 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
4651 | for i in \ | |
4652 | ../tcl \ | |
4653 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
4654 | ../../tcl \ | |
4655 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
4656 | ../../../tcl \ | |
4657 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
8a19b35a MH |
4658 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
4659 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
047465fd TT |
4660 | break |
4661 | fi | |
4662 | done | |
4663 | fi | |
4664 | # check in a few common install locations | |
4665 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
4666 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
4667 | if test -f "$i/tclConfig.sh" ; then | |
4668 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
4669 | break | |
4670 | fi | |
4671 | done | |
4672 | fi | |
4673 | # check in a few other private locations | |
4674 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
4675 | for i in \ | |
4676 | ${srcdir}/../tcl \ | |
4677 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
8a19b35a MH |
4678 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
4679 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
047465fd TT |
4680 | break |
4681 | fi | |
4682 | done | |
4683 | fi | |
4684 | ||
5436fc65 | 4685 | fi |
1a7b4b7c | 4686 | |
047465fd TT |
4687 | if test x"${ac_cv_c_tclconfig}" = x ; then |
4688 | TCLCONFIG="# no Tcl configs found" | |
4689 | echo "configure: warning: Can't find Tcl configuration definitions" 1>&2 | |
4690 | else | |
4691 | no_tcl= | |
4692 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
4693 | echo "$ac_t""found $TCLCONFIG" 1>&6 | |
5436fc65 | 4694 | fi |
5436fc65 C |
4695 | fi |
4696 | ||
0cf433d9 ILT |
4697 | if test -z "${no_tcl}"; then |
4698 | ||
047465fd | 4699 | . $TCLCONFIG |
5436fc65 | 4700 | |
047465fd TT |
4701 | |
4702 | ||
4703 | ||
4704 | ||
4705 | ||
5436fc65 | 4706 | |
5436fc65 | 4707 | |
5436fc65 | 4708 | |
5436fc65 | 4709 | |
047465fd TT |
4710 | |
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | ||
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | ||
5436fc65 | 4722 | |
5436fc65 | 4723 | |
5436fc65 | 4724 | |
0cf433d9 | 4725 | |
047465fd TT |
4726 | # |
4727 | # Ok, lets find the tk configuration | |
4728 | # First, look for one uninstalled. | |
4729 | # the alternative search directory is invoked by --with-tkconfig | |
4730 | # | |
5436fc65 | 4731 | |
047465fd TT |
4732 | if test x"${no_tk}" = x ; then |
4733 | # we reset no_tk in case something fails here | |
4734 | no_tk=true | |
4735 | # Check whether --with-tkconfig or --without-tkconfig was given. | |
4736 | if test "${with_tkconfig+set}" = set; then | |
4737 | withval="$with_tkconfig" | |
4738 | with_tkconfig=${withval} | |
5436fc65 C |
4739 | fi |
4740 | ||
047465fd | 4741 | echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6 |
4ff3dfab | 4742 | echo "configure:4743: checking for Tk configuration" >&5 |
047465fd | 4743 | if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then |
5436fc65 C |
4744 | echo $ac_n "(cached) $ac_c" 1>&6 |
4745 | else | |
047465fd | 4746 | |
5436fc65 | 4747 | |
047465fd TT |
4748 | # First check to see if --with-tkconfig was specified. |
4749 | if test x"${with_tkconfig}" != x ; then | |
4750 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
4751 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
4752 | else | |
4753 | { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; } | |
5436fc65 | 4754 | fi |
047465fd | 4755 | fi |
5436fc65 | 4756 | |
047465fd TT |
4757 | # then check for a private Tk library |
4758 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
4759 | for i in \ | |
4760 | ../tk \ | |
4761 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
4762 | ../../tk \ | |
4763 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
4764 | ../../../tk \ | |
4765 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
8a19b35a MH |
4766 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
4767 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
047465fd TT |
4768 | break |
4769 | fi | |
4770 | done | |
4771 | fi | |
4772 | # check in a few common install locations | |
4773 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
4774 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
4775 | if test -f "$i/tkConfig.sh" ; then | |
4776 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
4777 | break | |
4778 | fi | |
4779 | done | |
4780 | fi | |
4781 | # check in a few other private locations | |
4782 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
4783 | for i in \ | |
4784 | ${srcdir}/../tk \ | |
4785 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
8a19b35a MH |
4786 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
4787 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
047465fd TT |
4788 | break |
4789 | fi | |
4790 | done | |
4791 | fi | |
4792 | ||
5436fc65 | 4793 | fi |
5436fc65 | 4794 | |
047465fd TT |
4795 | if test x"${ac_cv_c_tkconfig}" = x ; then |
4796 | TKCONFIG="# no Tk configs found" | |
4797 | echo "configure: warning: Can't find Tk configuration definitions" 1>&2 | |
4798 | else | |
4799 | no_tk= | |
4800 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
4801 | echo "$ac_t""found $TKCONFIG" 1>&6 | |
4802 | fi | |
5436fc65 C |
4803 | fi |
4804 | ||
4805 | ||
5436fc65 | 4806 | |
0cf433d9 ILT |
4807 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
4808 | # point to doing Tcl. | |
4809 | if test -z "${no_tk}"; then | |
4810 | ||
047465fd TT |
4811 | if test -f "$TKCONFIG" ; then |
4812 | . $TKCONFIG | |
4813 | fi | |
5436fc65 | 4814 | |
047465fd TT |
4815 | |
4816 | ||
5436fc65 | 4817 | |
047465fd | 4818 | |
5436fc65 C |
4819 | |
4820 | ||
a2b63bbd | 4821 | |
047465fd TT |
4822 | |
4823 | ||
4824 | ||
9b119644 | 4825 | |
047465fd | 4826 | |
0cf433d9 | 4827 | |
5436fc65 | 4828 | # |
4e327047 TT |
4829 | # Ok, lets find the tcl source trees so we can use the headers |
4830 | # Warning: transition of version 9 to 10 will break this algorithm | |
4831 | # because 10 sorts before 9. We also look for just tcl. We have to | |
4832 | # be careful that we don't match stuff like tclX by accident. | |
4833 | # the alternative search directory is involked by --with-tclinclude | |
5436fc65 | 4834 | # |
8a19b35a | 4835 | |
4e327047 | 4836 | no_tcl=true |
8a19b35a | 4837 | echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6 |
4ff3dfab | 4838 | echo "configure:4839: checking for Tcl private headers. dir=${configdir}" >&5 |
4e327047 | 4839 | # Check whether --with-tclinclude or --without-tclinclude was given. |
1a7b4b7c DE |
4840 | if test "${with_tclinclude+set}" = set; then |
4841 | withval="$with_tclinclude" | |
4e327047 TT |
4842 | with_tclinclude=${withval} |
4843 | fi | |
4844 | ||
4845 | if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then | |
4846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4847 | else | |
4848 | ||
4849 | # first check to see if --with-tclinclude was specified | |
4850 | if test x"${with_tclinclude}" != x ; then | |
4851 | if test -f ${with_tclinclude}/tclInt.h ; then | |
4852 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
047465fd TT |
4853 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then |
4854 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
5436fc65 | 4855 | else |
4e327047 TT |
4856 | { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; } |
4857 | fi | |
4858 | fi | |
047465fd TT |
4859 | |
4860 | # next check if it came with Tcl configuration file | |
4861 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
4862 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
4863 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
4864 | fi | |
4865 | fi | |
4866 | ||
4e327047 TT |
4867 | # next check in private source directory |
4868 | # | |
4869 | # since ls returns lowest version numbers first, reverse its output | |
4870 | if test x"${ac_cv_c_tclh}" = x ; then | |
4871 | for i in \ | |
4872 | ${srcdir}/../tcl \ | |
047465fd | 4873 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ |
4e327047 | 4874 | ${srcdir}/../../tcl \ |
047465fd | 4875 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ |
4e327047 | 4876 | ${srcdir}/../../../tcl \ |
047465fd | 4877 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do |
4e327047 | 4878 | if test -f $i/generic/tclInt.h ; then |
047465fd | 4879 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
1a7b4b7c | 4880 | break |
4e327047 TT |
4881 | fi |
4882 | done | |
4883 | fi | |
4884 | # finally check in a few common install locations | |
4885 | # | |
4886 | # since ls returns lowest version numbers first, reverse its output | |
4887 | if test x"${ac_cv_c_tclh}" = x ; then | |
4888 | for i in \ | |
047465fd TT |
4889 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ |
4890 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
4e327047 TT |
4891 | /usr/local/src/tcl \ |
4892 | /usr/local/lib/tcl \ | |
4893 | ${prefix}/include ; do | |
047465fd TT |
4894 | if test -f $i/generic/tclInt.h ; then |
4895 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
4e327047 TT |
4896 | break |
4897 | fi | |
4898 | done | |
4899 | fi | |
4900 | # see if one is installed | |
4901 | if test x"${ac_cv_c_tclh}" = x ; then | |
bfde4a67 | 4902 | ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'` |
4e327047 | 4903 | echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6 |
4ff3dfab | 4904 | echo "configure:4905: checking for tclInt.h" >&5 |
5436fc65 C |
4905 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4907 | else | |
4908 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 4909 | #line 4910 "configure" |
5436fc65 | 4910 | #include "confdefs.h" |
4e327047 | 4911 | #include <tclInt.h> |
5436fc65 | 4912 | EOF |
1a7b4b7c | 4913 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4ff3dfab JM |
4914 | { (eval echo configure:4915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4915 | ac_err=`grep -v '^ *+' conftest.out` | |
5436fc65 C |
4916 | if test -z "$ac_err"; then |
4917 | rm -rf conftest* | |
4918 | eval "ac_cv_header_$ac_safe=yes" | |
4919 | else | |
4920 | echo "$ac_err" >&5 | |
bfde4a67 SG |
4921 | echo "configure: failed program was:" >&5 |
4922 | cat conftest.$ac_ext >&5 | |
5436fc65 C |
4923 | rm -rf conftest* |
4924 | eval "ac_cv_header_$ac_safe=no" | |
4925 | fi | |
4926 | rm -f conftest* | |
4927 | fi | |
4928 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4929 | echo "$ac_t""yes" 1>&6 | |
4e327047 | 4930 | ac_cv_c_tclh=installed |
5436fc65 C |
4931 | else |
4932 | echo "$ac_t""no" 1>&6 | |
4e327047 | 4933 | ac_cv_c_tclh="" |
5436fc65 C |
4934 | fi |
4935 | ||
4e327047 TT |
4936 | fi |
4937 | ||
4938 | fi | |
4939 | ||
4940 | if test x"${ac_cv_c_tclh}" = x ; then | |
4941 | TCLHDIR="# no Tcl private headers found" | |
4942 | { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; } | |
4943 | fi | |
4944 | if test x"${ac_cv_c_tclh}" != x ; then | |
4945 | no_tcl="" | |
1a7b4b7c | 4946 | if test x"${ac_cv_c_tclh}" = x"installed" ; then |
4e327047 TT |
4947 | echo "$ac_t""is installed" 1>&6 |
4948 | TCLHDIR="" | |
4949 | else | |
4950 | echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6 | |
4951 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. | |
4952 | TCLHDIR="-I${ac_cv_c_tclh}" | |
5436fc65 | 4953 | fi |
5436fc65 | 4954 | fi |
4e327047 | 4955 | |
4e327047 | 4956 | |
5436fc65 | 4957 | |
0cf433d9 | 4958 | |
5436fc65 | 4959 | # |
4e327047 TT |
4960 | # Ok, lets find the tk source trees so we can use the headers |
4961 | # If the directory (presumably symlink) named "tk" exists, use that one | |
4962 | # in preference to any others. Same logic is used when choosing library | |
4963 | # and again with Tcl. The search order is the best place to look first, then in | |
4964 | # decreasing significance. The loop breaks if the trigger file is found. | |
4965 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
4966 | # directory. This converts the path from a relative to an absolute, so | |
4967 | # recursive cache variables for the path will work right. We check all | |
4968 | # the possible paths in one loop rather than many seperate loops to speed | |
4969 | # things up. | |
047465fd | 4970 | # the alternative search directory is involked by --with-tkinclude |
5436fc65 | 4971 | # |
047465fd | 4972 | no_tk=true |
4e327047 | 4973 | echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6 |
4ff3dfab | 4974 | echo "configure:4975: checking for Tk private headers" >&5 |
4e327047 | 4975 | # Check whether --with-tkinclude or --without-tkinclude was given. |
1a7b4b7c DE |
4976 | if test "${with_tkinclude+set}" = set; then |
4977 | withval="$with_tkinclude" | |
4e327047 TT |
4978 | with_tkinclude=${withval} |
4979 | fi | |
4980 | ||
4e327047 TT |
4981 | if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then |
4982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4983 | else | |
4984 | ||
4985 | # first check to see if --with-tkinclude was specified | |
4986 | if test x"${with_tkinclude}" != x ; then | |
4987 | if test -f ${with_tkinclude}/tk.h ; then | |
4988 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
047465fd TT |
4989 | elif test -f ${with_tkinclude}/generic/tk.h ; then |
4990 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
5436fc65 | 4991 | else |
4e327047 TT |
4992 | { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; } |
4993 | fi | |
4994 | fi | |
047465fd TT |
4995 | |
4996 | # next check if it came with Tk configuration file | |
4997 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
4998 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
4999 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
5000 | fi | |
5001 | fi | |
5002 | ||
4e327047 TT |
5003 | # next check in private source directory |
5004 | # | |
047465fd | 5005 | # since ls returns lowest version numbers first, reverse its output |
4e327047 TT |
5006 | if test x"${ac_cv_c_tkh}" = x ; then |
5007 | for i in \ | |
5008 | ${srcdir}/../tk \ | |
047465fd | 5009 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ |
4e327047 | 5010 | ${srcdir}/../../tk \ |
047465fd | 5011 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ |
4e327047 | 5012 | ${srcdir}/../../../tk \ |
047465fd TT |
5013 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do |
5014 | if test -f $i/generic/tk.h ; then | |
5015 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
4e327047 TT |
5016 | break |
5017 | fi | |
4e327047 TT |
5018 | done |
5019 | fi | |
5020 | # finally check in a few common install locations | |
5021 | # | |
047465fd | 5022 | # since ls returns lowest version numbers first, reverse its output |
4e327047 TT |
5023 | if test x"${ac_cv_c_tkh}" = x ; then |
5024 | for i in \ | |
047465fd TT |
5025 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ |
5026 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
4e327047 TT |
5027 | /usr/local/src/tk \ |
5028 | /usr/local/lib/tk \ | |
5029 | ${prefix}/include ; do | |
047465fd TT |
5030 | if test -f $i/generic/tk.h ; then |
5031 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
4e327047 TT |
5032 | break |
5033 | fi | |
5034 | done | |
5035 | fi | |
5036 | # see if one is installed | |
5037 | if test x"${ac_cv_c_tkh}" = x ; then | |
bfde4a67 | 5038 | ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'` |
4e327047 | 5039 | echo $ac_n "checking for tk.h""... $ac_c" 1>&6 |
4ff3dfab | 5040 | echo "configure:5041: checking for tk.h" >&5 |
5436fc65 C |
5041 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5043 | else | |
5044 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 5045 | #line 5046 "configure" |
5436fc65 | 5046 | #include "confdefs.h" |
4e327047 | 5047 | #include <tk.h> |
5436fc65 | 5048 | EOF |
1a7b4b7c | 5049 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4ff3dfab JM |
5050 | { (eval echo configure:5051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5051 | ac_err=`grep -v '^ *+' conftest.out` | |
5436fc65 C |
5052 | if test -z "$ac_err"; then |
5053 | rm -rf conftest* | |
5054 | eval "ac_cv_header_$ac_safe=yes" | |
5055 | else | |
5056 | echo "$ac_err" >&5 | |
bfde4a67 SG |
5057 | echo "configure: failed program was:" >&5 |
5058 | cat conftest.$ac_ext >&5 | |
5436fc65 C |
5059 | rm -rf conftest* |
5060 | eval "ac_cv_header_$ac_safe=no" | |
5061 | fi | |
5062 | rm -f conftest* | |
5063 | fi | |
5064 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5065 | echo "$ac_t""yes" 1>&6 | |
4e327047 | 5066 | ac_cv_c_tkh=installed |
5436fc65 C |
5067 | else |
5068 | echo "$ac_t""no" 1>&6 | |
047465fd | 5069 | ac_cv_c_tkh="" |
5436fc65 C |
5070 | fi |
5071 | ||
4e327047 TT |
5072 | fi |
5073 | ||
5074 | fi | |
5075 | ||
5076 | if test x"${ac_cv_c_tkh}" != x ; then | |
5077 | no_tk="" | |
5078 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
5079 | echo "$ac_t""is installed" 1>&6 | |
5080 | TKHDIR="" | |
5081 | else | |
047465fd | 5082 | echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6 |
4e327047 TT |
5083 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
5084 | TKHDIR="-I${ac_cv_c_tkh}" | |
5436fc65 C |
5085 | fi |
5086 | else | |
4e327047 TT |
5087 | TKHDIR="# no Tk directory found" |
5088 | echo "configure: warning: Can't find Tk private headers" 1>&2 | |
5089 | no_tk=true | |
5436fc65 C |
5090 | fi |
5091 | ||
5436fc65 C |
5092 | |
5093 | ||
2476848a MH |
5094 | |
5095 | echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6 | |
4ff3dfab | 5096 | echo "configure:5097: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
2476848a MH |
5097 | if test x"${ac_cv_c_itclh}" = x ; then |
5098 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do | |
5099 | if test -f $i/src/itcl.h ; then | |
5100 | ac_cv_c_itclh=`(cd $i/src; pwd)` | |
5101 | break | |
5102 | fi | |
5103 | done | |
5104 | fi | |
5105 | if test x"${ac_cv_c_itclh}" = x ; then | |
5106 | ITCLHDIR="# no Itcl private headers found" | |
5107 | { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; } | |
5108 | fi | |
5109 | if test x"${ac_cv_c_itclh}" != x ; then | |
5110 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
5111 | fi | |
5112 | # should always be here | |
5113 | ITCLLIB="../itcl/src/libitcl.a" | |
5114 | ||
5115 | ||
5116 | ||
5117 | ||
5118 | echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6 | |
4ff3dfab | 5119 | echo "configure:5120: checking for Tix private headers. srcdir=${srcdir}" >&5 |
2476848a MH |
5120 | if test x"${ac_cv_c_tixh}" = x ; then |
5121 | for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do | |
5122 | if test -f $i/generic/tix.h ; then | |
5123 | ac_cv_c_tixh=`(cd $i/generic; pwd)` | |
5124 | break | |
5125 | fi | |
5126 | done | |
5127 | fi | |
5128 | if test x"${ac_cv_c_tixh}" = x ; then | |
5129 | TIXHDIR="# no Tix private headers found" | |
5130 | { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; } | |
5131 | fi | |
5132 | if test x"${ac_cv_c_tixh}" != x ; then | |
5133 | TIXHDIR="-I${ac_cv_c_tixh}" | |
5134 | fi | |
2476848a MH |
5135 | |
5136 | ||
5137 | ||
6bc5b2fa | 5138 | # now look for tix library stuff |
1154b47a | 5139 | TIXVERSION=4.1.8.0 |
6bc5b2fa MH |
5140 | . ${ac_cv_c_tclconfig}/tclConfig.sh |
5141 | case "${host}" in | |
5142 | *-*-cygwin32*) | |
f1f6dd9c | 5143 | tixdir=../tix/win/tcl8.0 |
6bc5b2fa MH |
5144 | ;; |
5145 | *) | |
1154b47a | 5146 | tixdir=../tix/unix/tk8.0 |
6bc5b2fa MH |
5147 | ;; |
5148 | esac | |
bb3d9f43 KS |
5149 | if test "${TCL_SHARED_BUILD}" = "1"; then |
5150 | TIX_LIB_EXT="${TCL_SHLIB_SUFFIX}" | |
11f91b2b KS |
5151 | |
5152 | # Can't win them all: SunOS 4 (others?) appends a version | |
5153 | # number after the ".so" | |
5154 | case "${host}" in | |
5155 | *-*-sunos4*) | |
5156 | TIX_LIB_EXT="${TIX_LIB_EXT}.1.0" ;; | |
5157 | esac | |
5158 | ||
bb3d9f43 KS |
5159 | else |
5160 | TIX_LIB_EXT=".a" | |
5161 | fi | |
11f91b2b | 5162 | |
6bc5b2fa MH |
5163 | if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then |
5164 | TIXLIB="-L${tixdir} -ltix${TIXVERSION}" | |
bb3d9f43 | 5165 | TIX_DEPS="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}" |
6bc5b2fa MH |
5166 | else |
5167 | TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`" | |
bb3d9f43 | 5168 | TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}" |
6bc5b2fa | 5169 | fi |
5436fc65 | 5170 | |
0cf433d9 | 5171 | ENABLE_GDBTK=1 |
509b70ac | 5172 | ENABLE_CFLAGS="${ENABLE_CFLAGS} -DGDBTK" |
5436fc65 | 5173 | |
6c310da8 | 5174 | # Include some libraries that Tcl and Tk want. |
2476848a | 5175 | if test "${enable_ide}" = "yes"; then |
8b5befef ILT |
5176 | TCL_LIBS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
5177 | CONFIG_DEPS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' | |
2476848a | 5178 | else |
dafec9dd ILT |
5179 | TCL_LIBS='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
5180 | CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)' | |
2476848a | 5181 | fi |
46964086 TT |
5182 | # Yes, the ordering seems wrong here. But it isn't. |
5183 | # TK_LIBS is the list of libraries that need to be linked | |
b177bf84 TT |
5184 | # after Tcl/Tk. Note that this isn't put into LIBS. If it |
5185 | # were in LIBS then any link tests after this point would | |
5186 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
5187 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
f3b86a30 | 5188 | CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o" |
9b119644 ILT |
5189 | |
5190 | if test x$gdb_cv_os_cygwin32 = xyes; then | |
018d76dd | 5191 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32" |
47792960 | 5192 | WIN32LDAPP="-Wl,--subsystem,console" |
929db6e5 | 5193 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" |
9b119644 | 5194 | fi |
0cf433d9 | 5195 | fi |
1a57cd09 | 5196 | fi |
a2b63bbd | 5197 | fi |
66efdff9 | 5198 | |
66efdff9 | 5199 | |
5436fc65 | 5200 | |
66efdff9 JM |
5201 | |
5202 | ||
6bc5b2fa | 5203 | |
018d76dd | 5204 | |
b177bf84 | 5205 | |
5436fc65 C |
5206 | # end-sanitize-gdbtk |
5207 | ||
b236defa FCE |
5208 | # If we find X, set shell vars x_includes and x_libraries to the |
5209 | # paths, otherwise set no_x=yes. | |
5210 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
5211 | # --without-x overrides everything else, but does not touch the cache. | |
5212 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
4ff3dfab | 5213 | echo "configure:5214: checking for X" >&5 |
b236defa FCE |
5214 | |
5215 | # Check whether --with-x or --without-x was given. | |
5216 | if test "${with_x+set}" = set; then | |
5217 | withval="$with_x" | |
5218 | : | |
5219 | fi | |
5220 | ||
5221 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
5222 | if test "x$with_x" = xno; then | |
5223 | # The user explicitly disabled X. | |
5224 | have_x=disabled | |
5225 | else | |
5226 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5227 | # Both variables are already set. | |
5228 | have_x=yes | |
5229 | else | |
5230 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
5231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5232 | else | |
5233 | # One or both of the vars are not set, and there is no cached value. | |
5234 | ac_x_includes=NO ac_x_libraries=NO | |
5235 | rm -fr conftestdir | |
5236 | if mkdir conftestdir; then | |
5237 | cd conftestdir | |
5238 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
5239 | cat > Imakefile <<'EOF' | |
5240 | acfindx: | |
5241 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
5242 | EOF | |
5243 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
5244 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5245 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5246 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5247 | for ac_extension in a so sl; do | |
5248 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
5249 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
5250 | ac_im_usrlibdir=$ac_im_libdir; break | |
5251 | fi | |
5252 | done | |
5253 | # Screen out bogus values from the imake configuration. They are | |
5254 | # bogus both because they are the default anyway, and because | |
5255 | # using them would break gcc on systems where it needs fixed includes. | |
5256 | case "$ac_im_incroot" in | |
5257 | /usr/include) ;; | |
5258 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
5259 | esac | |
5260 | case "$ac_im_usrlibdir" in | |
5261 | /usr/lib | /lib) ;; | |
5262 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
5263 | esac | |
5264 | fi | |
5265 | cd .. | |
5266 | rm -fr conftestdir | |
5267 | fi | |
5268 | ||
5269 | if test "$ac_x_includes" = NO; then | |
5270 | # Guess where to find include files, by looking for this one X11 .h file. | |
5271 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
5272 | ||
5273 | # First, try using that file with no special directory specified. | |
5274 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 5275 | #line 5276 "configure" |
b236defa FCE |
5276 | #include "confdefs.h" |
5277 | #include <$x_direct_test_include> | |
5278 | EOF | |
5279 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4ff3dfab JM |
5280 | { (eval echo configure:5281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5281 | ac_err=`grep -v '^ *+' conftest.out` | |
b236defa FCE |
5282 | if test -z "$ac_err"; then |
5283 | rm -rf conftest* | |
5284 | # We can compile using X headers with no special include directory. | |
5285 | ac_x_includes= | |
5286 | else | |
5287 | echo "$ac_err" >&5 | |
5288 | echo "configure: failed program was:" >&5 | |
5289 | cat conftest.$ac_ext >&5 | |
5290 | rm -rf conftest* | |
5291 | # Look for the header file in a standard set of common directories. | |
5292 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
5293 | for ac_dir in \ | |
5294 | /usr/X11/include \ | |
5295 | /usr/X11R6/include \ | |
5296 | /usr/X11R5/include \ | |
5297 | /usr/X11R4/include \ | |
5298 | \ | |
5299 | /usr/include/X11 \ | |
5300 | /usr/include/X11R6 \ | |
5301 | /usr/include/X11R5 \ | |
5302 | /usr/include/X11R4 \ | |
5303 | \ | |
5304 | /usr/local/X11/include \ | |
5305 | /usr/local/X11R6/include \ | |
5306 | /usr/local/X11R5/include \ | |
5307 | /usr/local/X11R4/include \ | |
5308 | \ | |
5309 | /usr/local/include/X11 \ | |
5310 | /usr/local/include/X11R6 \ | |
5311 | /usr/local/include/X11R5 \ | |
5312 | /usr/local/include/X11R4 \ | |
5313 | \ | |
5314 | /usr/X386/include \ | |
5315 | /usr/x386/include \ | |
5316 | /usr/XFree86/include/X11 \ | |
5317 | \ | |
5318 | /usr/include \ | |
5319 | /usr/local/include \ | |
5320 | /usr/unsupported/include \ | |
5321 | /usr/athena/include \ | |
5322 | /usr/local/x11r5/include \ | |
5323 | /usr/lpp/Xamples/include \ | |
5324 | \ | |
5325 | /usr/openwin/include \ | |
5326 | /usr/openwin/share/include \ | |
5327 | ; \ | |
5328 | do | |
5329 | if test -r "$ac_dir/$x_direct_test_include"; then | |
5330 | ac_x_includes=$ac_dir | |
5331 | break | |
5332 | fi | |
5333 | done | |
5334 | fi | |
5335 | rm -f conftest* | |
5336 | fi # $ac_x_includes = NO | |
5337 | ||
5338 | if test "$ac_x_libraries" = NO; then | |
5339 | # Check for the libraries. | |
5340 | ||
5341 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
5342 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
5343 | ||
5344 | # See if we find them without any special options. | |
5345 | # Don't add to $LIBS permanently. | |
5346 | ac_save_LIBS="$LIBS" | |
5347 | LIBS="-l$x_direct_test_library $LIBS" | |
5348 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 5349 | #line 5350 "configure" |
b236defa FCE |
5350 | #include "confdefs.h" |
5351 | ||
5352 | int main() { | |
5353 | ${x_direct_test_function}() | |
5354 | ; return 0; } | |
5355 | EOF | |
4ff3dfab | 5356 | if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
b236defa FCE |
5357 | rm -rf conftest* |
5358 | LIBS="$ac_save_LIBS" | |
5359 | # We can link X programs with no special library path. | |
5360 | ac_x_libraries= | |
5361 | else | |
5362 | echo "configure: failed program was:" >&5 | |
5363 | cat conftest.$ac_ext >&5 | |
5364 | rm -rf conftest* | |
5365 | LIBS="$ac_save_LIBS" | |
5366 | # First see if replacing the include by lib works. | |
5367 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
5368 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
5369 | /usr/X11/lib \ | |
5370 | /usr/X11R6/lib \ | |
5371 | /usr/X11R5/lib \ | |
5372 | /usr/X11R4/lib \ | |
5373 | \ | |
5374 | /usr/lib/X11 \ | |
5375 | /usr/lib/X11R6 \ | |
5376 | /usr/lib/X11R5 \ | |
5377 | /usr/lib/X11R4 \ | |
5378 | \ | |
5379 | /usr/local/X11/lib \ | |
5380 | /usr/local/X11R6/lib \ | |
5381 | /usr/local/X11R5/lib \ | |
5382 | /usr/local/X11R4/lib \ | |
5383 | \ | |
5384 | /usr/local/lib/X11 \ | |
5385 | /usr/local/lib/X11R6 \ | |
5386 | /usr/local/lib/X11R5 \ | |
5387 | /usr/local/lib/X11R4 \ | |
5388 | \ | |
5389 | /usr/X386/lib \ | |
5390 | /usr/x386/lib \ | |
5391 | /usr/XFree86/lib/X11 \ | |
5392 | \ | |
5393 | /usr/lib \ | |
5394 | /usr/local/lib \ | |
5395 | /usr/unsupported/lib \ | |
5396 | /usr/athena/lib \ | |
5397 | /usr/local/x11r5/lib \ | |
5398 | /usr/lpp/Xamples/lib \ | |
5399 | /lib/usr/lib/X11 \ | |
5400 | \ | |
5401 | /usr/openwin/lib \ | |
5402 | /usr/openwin/share/lib \ | |
5403 | ; \ | |
5404 | do | |
5405 | for ac_extension in a so sl; do | |
5406 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
5407 | ac_x_libraries=$ac_dir | |
5408 | break 2 | |
5409 | fi | |
5410 | done | |
5411 | done | |
5412 | fi | |
5413 | rm -f conftest* | |
5414 | fi # $ac_x_libraries = NO | |
5415 | ||
5416 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
5417 | # Didn't find X anywhere. Cache the known absence of X. | |
5418 | ac_cv_have_x="have_x=no" | |
5419 | else | |
5420 | # Record where we found X for the cache. | |
5421 | ac_cv_have_x="have_x=yes \ | |
5422 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5423 | fi | |
5424 | fi | |
5425 | fi | |
5426 | eval "$ac_cv_have_x" | |
5427 | fi # $with_x != no | |
5428 | ||
5429 | if test "$have_x" != yes; then | |
5430 | echo "$ac_t""$have_x" 1>&6 | |
5431 | no_x=yes | |
5432 | else | |
5433 | # If each of the values was on the command line, it overrides each guess. | |
5434 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
5435 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
5436 | # Update the cache value to reflect the command line values. | |
5437 | ac_cv_have_x="have_x=yes \ | |
5438 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
5439 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
5440 | fi | |
5441 | ||
5442 | # start-sanitize-sky | |
5443 | # Enable GPU2 library for MIPS simulator | |
5444 | # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given. | |
5445 | if test "${with_sim_gpu2+set}" = set; then | |
5446 | withval="$with_sim_gpu2" | |
bd5eafcd FCE |
5447 | case "${target}" in |
5448 | mips*-sky-*) | |
5449 | if test -d "${withval}" | |
5450 | then | |
f915cc91 | 5451 | LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext" |
bd5eafcd FCE |
5452 | else |
5453 | echo "configure: warning: Directory ${withval} does not exist." 1>&2 | |
5454 | fi ;; | |
5455 | *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2 | |
5456 | esac | |
b236defa | 5457 | fi |
75a55dc3 JM |
5458 | |
5459 | # Enable target accurate FP library | |
5460 | # Check whether --with-sim-funit or --without-sim-funit was given. | |
5461 | if test "${with_sim_funit+set}" = set; then | |
5462 | withval="$with_sim_funit" | |
5463 | case "${target}" in | |
5464 | mips*-sky-*) | |
5465 | if test -d "${withval}" | |
5466 | then | |
5467 | LIBS="${LIBS} -L${withval}/lib -lfunit" | |
5468 | else | |
5469 | echo "configure: warning: Directory ${withval} does not exist." 1>&2 | |
5470 | fi ;; | |
5471 | *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2 | |
5472 | esac | |
5473 | fi | |
b236defa FCE |
5474 | # end-sanitize-sky |
5475 | ||
15125484 | 5476 | echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6 |
4ff3dfab | 5477 | echo "configure:5478: checking for wctype in -lw" >&5 |
15125484 JM |
5478 | ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'` |
5479 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5481 | else | |
5482 | ac_save_LIBS="$LIBS" | |
5483 | LIBS="-lw $LIBS" | |
5484 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 5485 | #line 5486 "configure" |
15125484 JM |
5486 | #include "confdefs.h" |
5487 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5488 | /* We use char because int might match the return type of a gcc2 | |
5489 | builtin and then its argument prototype would still apply. */ | |
5490 | char wctype(); | |
5491 | ||
5492 | int main() { | |
5493 | wctype() | |
5494 | ; return 0; } | |
5495 | EOF | |
4ff3dfab | 5496 | if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
15125484 JM |
5497 | rm -rf conftest* |
5498 | eval "ac_cv_lib_$ac_lib_var=yes" | |
5499 | else | |
5500 | echo "configure: failed program was:" >&5 | |
5501 | cat conftest.$ac_ext >&5 | |
5502 | rm -rf conftest* | |
5503 | eval "ac_cv_lib_$ac_lib_var=no" | |
5504 | fi | |
5505 | rm -f conftest* | |
5506 | LIBS="$ac_save_LIBS" | |
5507 | ||
5508 | fi | |
5509 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5510 | echo "$ac_t""yes" 1>&6 | |
5511 | LIBS="$LIBS -lw" | |
5512 | else | |
5513 | echo "$ac_t""no" 1>&6 | |
5514 | fi | |
5515 | ||
5516 | ||
5436fc65 C |
5517 | |
5518 | ||
5519 | ||
5520 | ||
018d76dd | 5521 | |
c7bb1531 | 5522 | |
1d5eb137 FF |
5523 | # Begin stuff to support --enable-shared |
5524 | # Check whether --enable-shared or --disable-shared was given. | |
5525 | if test "${enable_shared+set}" = set; then | |
5526 | enableval="$enable_shared" | |
5527 | case "${enableval}" in | |
5528 | yes) shared=true ;; | |
5529 | no) shared=false ;; | |
5530 | *) shared=true ;; | |
5531 | esac | |
5532 | fi | |
5533 | ||
5534 | HLDFLAGS= | |
5535 | HLDENV= | |
5536 | # If we have shared libraries, try to set rpath reasonably. | |
5537 | if test "${shared}" = "true"; then | |
5538 | case "${host}" in | |
5539 | *-*-hpux*) | |
5540 | HLDFLAGS='-Wl,+s,+b,$(libdir)' | |
5541 | ;; | |
5542 | *-*-irix5* | *-*-irix6*) | |
5543 | HLDFLAGS='-Wl,-rpath,$(libdir)' | |
5544 | ;; | |
5545 | *-*-linux*aout*) | |
5546 | ;; | |
8ddf07a2 | 5547 | *-*-linux* | *-pc-linux-gnu) |
1d5eb137 FF |
5548 | HLDFLAGS='-Wl,-rpath,$(libdir)' |
5549 | ;; | |
5550 | *-*-solaris*) | |
5551 | HLDFLAGS='-R $(libdir)' | |
5552 | ;; | |
5553 | *-*-sysv4*) | |
5554 | HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;' | |
5555 | ;; | |
5556 | esac | |
5557 | fi | |
5558 | ||
5559 | # On SunOS, if the linker supports the -rpath option, use it to | |
5560 | # prevent ../bfd and ../opcodes from being included in the run time | |
5561 | # search path. | |
5562 | case "${host}" in | |
5563 | *-*-sunos*) | |
5564 | echo 'main () { }' > conftest.c | |
5565 | ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t | |
5566 | if grep 'unrecognized' conftest.t >/dev/null 2>&1; then | |
5567 | : | |
5568 | elif grep 'No such file' conftest.t >/dev/null 2>&1; then | |
5569 | : | |
5570 | elif grep 'do not mix' conftest.t >/dev/null 2>&1; then | |
5571 | : | |
074d813d PS |
5572 | elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then |
5573 | : | |
1d5eb137 FF |
5574 | elif test "${shared}" = "true"; then |
5575 | HLDFLAGS='-Wl,-rpath=$(libdir)' | |
5576 | else | |
5577 | HLDFLAGS='-Wl,-rpath=' | |
5578 | fi | |
5579 | rm -f conftest.t conftest.c conftest | |
5580 | ;; | |
5581 | esac | |
5582 | ||
5583 | ||
5584 | # End stuff to support --enable-shared | |
5585 | ||
7c40dd08 DE |
5586 | # target_subdir is used by the testsuite to find the target libraries. |
5587 | target_subdir= | |
5588 | if test "${host}" != "${target}"; then | |
5589 | target_subdir="${target_alias}/" | |
5590 | fi | |
5591 | ||
5436fc65 | 5592 | |
5f107900 | 5593 | frags= |
5436fc65 C |
5594 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
5595 | if test ! -f ${host_makefile_frag}; then | |
5596 | { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; } | |
5597 | fi | |
5f107900 | 5598 | frags="$frags $host_makefile_frag" |
5436fc65 C |
5599 | |
5600 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
5601 | if test ! -f ${target_makefile_frag}; then | |
5602 | { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; } | |
5603 | fi | |
5f107900 | 5604 | frags="$frags $target_makefile_frag" |
5436fc65 C |
5605 | |
5606 | ||
5607 | ||
5608 | ||
5609 | ||
094fd4ae C |
5610 | hostfile=`sed -n ' |
5611 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
5612 | ' ${host_makefile_frag}` | |
5436fc65 | 5613 | |
094fd4ae C |
5614 | targetfile=`sed -n ' |
5615 | s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
5616 | ' ${target_makefile_frag}` | |
5436fc65 C |
5617 | |
5618 | # these really aren't orthogonal true/false values of the same condition, | |
5619 | # but shells are slow enough that I like to reuse the test conditions | |
5620 | # whenever possible | |
5621 | if test "${target}" = "${host}"; then | |
094fd4ae C |
5622 | nativefile=`sed -n ' |
5623 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
5624 | ' ${host_makefile_frag}` | |
33ef0f93 | 5625 | # else |
5436fc65 | 5626 | # GDBserver is only useful in a "native" enviroment |
33ef0f93 | 5627 | # configdirs=`echo $configdirs | sed 's/gdbserver//'` |
5436fc65 C |
5628 | fi |
5629 | ||
094fd4ae | 5630 | |
5436fc65 C |
5631 | # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile |
5632 | # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the | |
5633 | # corresponding links. But we have to remove the xm.h files and tm.h | |
5634 | # files anyway, e.g. when switching from "configure host" to | |
5635 | # "configure none". | |
5636 | ||
5637 | files= | |
5638 | links= | |
5639 | rm -f xm.h | |
5640 | if test "${hostfile}" != ""; then | |
5641 | files="${files} config/${gdb_host_cpu}/${hostfile}" | |
5642 | links="${links} xm.h" | |
5643 | fi | |
5644 | rm -f tm.h | |
5645 | if test "${targetfile}" != ""; then | |
5646 | files="${files} config/${gdb_target_cpu}/${targetfile}" | |
5647 | links="${links} tm.h" | |
5648 | fi | |
5649 | rm -f nm.h | |
5650 | if test "${nativefile}" != ""; then | |
5651 | files="${files} config/${gdb_host_cpu}/${nativefile}" | |
5652 | links="${links} nm.h" | |
5653 | else | |
5654 | # A cross-only configuration. | |
5655 | files="${files} config/nm-empty.h" | |
5656 | links="${links} nm.h" | |
5657 | fi | |
5658 | # start-sanitize-gdbtk | |
99174711 | 5659 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
4ff3dfab | 5660 | echo "configure:5661: checking whether ln -s works" >&5 |
99174711 JM |
5661 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
5662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5663 | else | |
5664 | rm -f conftestdata | |
5665 | if ln -s X conftestdata 2>/dev/null | |
5666 | then | |
5667 | rm -f conftestdata | |
5668 | ac_cv_prog_LN_S="ln -s" | |
5669 | else | |
5670 | ac_cv_prog_LN_S=ln | |
5671 | fi | |
5672 | fi | |
5673 | LN_S="$ac_cv_prog_LN_S" | |
5674 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
5675 | echo "$ac_t""yes" 1>&6 | |
5676 | else | |
5677 | echo "$ac_t""no" 1>&6 | |
5678 | fi | |
5436fc65 C |
5679 | |
5680 | # Make it possible to use the GUI without doing a full install | |
99174711 JM |
5681 | if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl ; then |
5682 | if test "$LN_S" = "ln -s" -a ! -f gdbtcl ; then | |
5683 | echo linking $srcdir/gdbtcl to gdbtcl | |
5684 | $LN_S $srcdir/gdbtcl gdbtcl | |
5685 | else | |
5686 | echo Warning: Unable to link $srcdir/gdbtcl to gdbtcl. You will need to do a | |
5687 | echo " " make install before you are able to run the GUI. | |
5688 | fi | |
5436fc65 C |
5689 | fi |
5690 | # end-sanitize-gdbtk | |
5691 | ||
5692 | ||
5693 | ||
3fbb8cde | 5694 | echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 |
4ff3dfab | 5695 | echo "configure:5696: checking for Cygwin32 environment" >&5 |
3fbb8cde ILT |
5696 | if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then |
5697 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5698 | else | |
5699 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 5700 | #line 5701 "configure" |
3fbb8cde ILT |
5701 | #include "confdefs.h" |
5702 | ||
5703 | int main() { | |
b2b1c5da | 5704 | return __CYGWIN32__; |
3fbb8cde ILT |
5705 | ; return 0; } |
5706 | EOF | |
4ff3dfab | 5707 | if { (eval echo configure:5708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3fbb8cde ILT |
5708 | rm -rf conftest* |
5709 | am_cv_cygwin32=yes | |
5710 | else | |
5711 | echo "configure: failed program was:" >&5 | |
5712 | cat conftest.$ac_ext >&5 | |
5713 | rm -rf conftest* | |
5714 | am_cv_cygwin32=no | |
5715 | fi | |
5716 | rm -f conftest* | |
5717 | rm -f conftest* | |
5718 | fi | |
5719 | ||
5720 | echo "$ac_t""$am_cv_cygwin32" 1>&6 | |
5721 | CYGWIN32= | |
5722 | test "$am_cv_cygwin32" = yes && CYGWIN32=yes | |
b2b1c5da | 5723 | echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 |
4ff3dfab | 5724 | echo "configure:5725: checking for Mingw32 environment" >&5 |
b2b1c5da MM |
5725 | if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then |
5726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5727 | else | |
5728 | cat > conftest.$ac_ext <<EOF | |
4ff3dfab | 5729 | #line 5730 "configure" |
b2b1c5da MM |
5730 | #include "confdefs.h" |
5731 | ||
5732 | int main() { | |
5733 | return __MINGW32__; | |
5734 | ; return 0; } | |
5735 | EOF | |
4ff3dfab | 5736 | if { (eval echo configure:5737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2b1c5da MM |
5737 | rm -rf conftest* |
5738 | am_cv_mingw32=yes | |
5739 | else | |
5740 | echo "configure: failed program was:" >&5 | |
5741 | cat conftest.$ac_ext >&5 | |
5742 | rm -rf conftest* | |
5743 | am_cv_mingw32=no | |
5744 | fi | |
5745 | rm -f conftest* | |
5746 | rm -f conftest* | |
5747 | fi | |
5748 | ||
5749 | echo "$ac_t""$am_cv_mingw32" 1>&6 | |
5750 | MINGW32= | |
5751 | test "$am_cv_mingw32" = yes && MINGW32=yes | |
5752 | ||
98fa4ade GN |
5753 | |
5754 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
4ff3dfab | 5755 | echo "configure:5756: checking for executable suffix" >&5 |
98fa4ade GN |
5756 | if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then |
5757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5758 | else | |
dd600735 | 5759 | if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then |
98fa4ade GN |
5760 | am_cv_exeext=.exe |
5761 | else | |
5762 | cat > am_c_test.c << 'EOF' | |
5763 | int main() { | |
5764 | /* Nothing needed here */ | |
5765 | } | |
5766 | EOF | |
5767 | ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 | |
75a55dc3 JM |
5768 | am_cv_exeext= |
5769 | for file in am_c_test.*; do | |
5770 | case $file in | |
5771 | *.c) ;; | |
5772 | *.o) ;; | |
5773 | *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; | |
5774 | esac | |
5775 | done | |
98fa4ade GN |
5776 | rm -f am_c_test* |
5777 | fi | |
5778 | ||
5779 | test x"${am_cv_exeext}" = x && am_cv_exeext=no | |
5780 | fi | |
5781 | EXEEXT="" | |
5782 | test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} | |
5783 | echo "$ac_t""${am_cv_exeext}" 1>&6 | |
5784 | ||
5785 | ||
5436fc65 C |
5786 | subdirs="$configdirs" |
5787 | ||
5788 | trap '' 1 2 15 | |
5789 | cat > confcache <<\EOF | |
5790 | # This file is a shell script that caches the results of configure | |
5791 | # tests run on this system so they can be shared between configure | |
5792 | # scripts and configure runs. It is not useful on other systems. | |
5793 | # If it contains results you don't want to keep, you may remove or edit it. | |
5794 | # | |
5795 | # By default, configure uses ./config.cache as the cache file, | |
5796 | # creating it if it does not exist already. You can give configure | |
5797 | # the --cache-file=FILE option to use a different cache file; that is | |
5798 | # what configure does when it calls configure scripts in | |
5799 | # subdirectories, so they share the cache. | |
5800 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5801 | # config.status only pays attention to the cache file if you give it the | |
5802 | # --recheck option to rerun configure. | |
5803 | # | |
5804 | EOF | |
bfde4a67 SG |
5805 | # The following way of writing the cache mishandles newlines in values, |
5806 | # but we know of no workaround that is simple, portable, and efficient. | |
5807 | # So, don't put newlines in cache variables' values. | |
5436fc65 C |
5808 | # Ultrix sh set writes to stderr and can't be redirected directly, |
5809 | # and sets the high bit in the cache file unless we assign to the vars. | |
5810 | (set) 2>&1 | | |
4ff3dfab | 5811 | case `(ac_space=' '; set) 2>&1` in |
bfde4a67 SG |
5812 | *ac_space=\ *) |
5813 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5814 | # turns \\\\ into \\, and sed turns \\ into \). | |
5815 | sed -n \ | |
5816 | -e "s/'/'\\\\''/g" \ | |
5817 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5818 | ;; | |
5819 | *) | |
5820 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5821 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5822 | ;; | |
5823 | esac >> confcache | |
5436fc65 C |
5824 | if cmp -s $cache_file confcache; then |
5825 | : | |
5826 | else | |
5827 | if test -w $cache_file; then | |
5828 | echo "updating cache $cache_file" | |
5829 | cat confcache > $cache_file | |
5830 | else | |
5831 | echo "not updating unwritable cache $cache_file" | |
5832 | fi | |
5833 | fi | |
5834 | rm -f confcache | |
5835 | ||
5836 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
5837 | ||
5838 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5839 | # Let make expand exec_prefix. | |
5840 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5841 | ||
5842 | # Any assignment to VPATH causes Sun make to only execute | |
5843 | # the first set of double-colon rules, so remove it if not needed. | |
5844 | # If there is a colon in the path, we need to keep it. | |
5845 | if test "x$srcdir" = x.; then | |
5846 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
5847 | fi | |
5848 | ||
5849 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
5850 | ||
db210d08 | 5851 | DEFS=-DHAVE_CONFIG_H |
5436fc65 C |
5852 | |
5853 | # Without the "./", some shells look in PATH for config.status. | |
5854 | : ${CONFIG_STATUS=./config.status} | |
5855 | ||
5856 | echo creating $CONFIG_STATUS | |
5857 | rm -f $CONFIG_STATUS | |
5858 | cat > $CONFIG_STATUS <<EOF | |
5859 | #! /bin/sh | |
5860 | # Generated automatically by configure. | |
5861 | # Run this file to recreate the current configuration. | |
5862 | # This directory was configured as follows, | |
5863 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
5864 | # | |
5865 | # $0 $ac_configure_args | |
5866 | # | |
5867 | # Compiler output produced by configure, useful for debugging | |
5868 | # configure, is in ./config.log if it exists. | |
5869 | ||
5870 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
5871 | for ac_option | |
5872 | do | |
5873 | case "\$ac_option" in | |
5874 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5875 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
5876 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
5877 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
4ff3dfab | 5878 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
5436fc65 C |
5879 | exit 0 ;; |
5880 | -help | --help | --hel | --he | --h) | |
5881 | echo "\$ac_cs_usage"; exit 0 ;; | |
5882 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
5883 | esac | |
5884 | done | |
5885 | ||
5886 | ac_given_srcdir=$srcdir | |
5887 | ac_given_INSTALL="$INSTALL" | |
5888 | ||
0cb7d01d | 5889 | trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1a7b4b7c DE |
5890 | EOF |
5891 | cat >> $CONFIG_STATUS <<EOF | |
5436fc65 | 5892 | |
1a7b4b7c DE |
5893 | # Protect against being on the right side of a sed subst in config.status. |
5894 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
5895 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
5436fc65 C |
5896 | $ac_vpsub |
5897 | $extrasub | |
5898 | s%@CFLAGS@%$CFLAGS%g | |
5899 | s%@CPPFLAGS@%$CPPFLAGS%g | |
5900 | s%@CXXFLAGS@%$CXXFLAGS%g | |
5901 | s%@DEFS@%$DEFS%g | |
5902 | s%@LDFLAGS@%$LDFLAGS%g | |
5903 | s%@LIBS@%$LIBS%g | |
5904 | s%@exec_prefix@%$exec_prefix%g | |
5905 | s%@prefix@%$prefix%g | |
5906 | s%@program_transform_name@%$program_transform_name%g | |
1a7b4b7c DE |
5907 | s%@bindir@%$bindir%g |
5908 | s%@sbindir@%$sbindir%g | |
5909 | s%@libexecdir@%$libexecdir%g | |
5910 | s%@datadir@%$datadir%g | |
5911 | s%@sysconfdir@%$sysconfdir%g | |
5912 | s%@sharedstatedir@%$sharedstatedir%g | |
5913 | s%@localstatedir@%$localstatedir%g | |
5914 | s%@libdir@%$libdir%g | |
5915 | s%@includedir@%$includedir%g | |
5916 | s%@oldincludedir@%$oldincludedir%g | |
5917 | s%@infodir@%$infodir%g | |
5918 | s%@mandir@%$mandir%g | |
5436fc65 C |
5919 | s%@CC@%$CC%g |
5920 | s%@CPP@%$CPP%g | |
35ce4f08 | 5921 | s%@DLLTOOL@%$DLLTOOL%g |
5436fc65 C |
5922 | s%@host@%$host%g |
5923 | s%@host_alias@%$host_alias%g | |
5924 | s%@host_cpu@%$host_cpu%g | |
5925 | s%@host_vendor@%$host_vendor%g | |
5926 | s%@host_os@%$host_os%g | |
0579b53d GN |
5927 | s%@target@%$target%g |
5928 | s%@target_alias@%$target_alias%g | |
5929 | s%@target_cpu@%$target_cpu%g | |
5930 | s%@target_vendor@%$target_vendor%g | |
5931 | s%@target_os@%$target_os%g | |
5436fc65 C |
5932 | s%@build@%$build%g |
5933 | s%@build_alias@%$build_alias%g | |
5934 | s%@build_cpu@%$build_cpu%g | |
5935 | s%@build_vendor@%$build_vendor%g | |
5936 | s%@build_os@%$build_os%g | |
fcfc3c0c TT |
5937 | s%@SET_MAKE@%$SET_MAKE%g |
5938 | s%@RANLIB@%$RANLIB%g | |
5939 | s%@ALLOCA@%$ALLOCA%g | |
5940 | s%@USE_NLS@%$USE_NLS%g | |
5941 | s%@MSGFMT@%$MSGFMT%g | |
5942 | s%@GMSGFMT@%$GMSGFMT%g | |
5943 | s%@XGETTEXT@%$XGETTEXT%g | |
5944 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
5945 | s%@CATALOGS@%$CATALOGS%g | |
5946 | s%@CATOBJEXT@%$CATOBJEXT%g | |
5947 | s%@DATADIRNAME@%$DATADIRNAME%g | |
5948 | s%@GMOFILES@%$GMOFILES%g | |
5949 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
5950 | s%@INTLDEPS@%$INTLDEPS%g | |
5951 | s%@INTLLIBS@%$INTLLIBS%g | |
5952 | s%@INTLOBJS@%$INTLOBJS%g | |
5953 | s%@POFILES@%$POFILES%g | |
5954 | s%@POSUB@%$POSUB%g | |
5955 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
5956 | s%@GT_NO@%$GT_NO%g | |
5957 | s%@GT_YES@%$GT_YES%g | |
5958 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
5959 | s%@l@%$l%g | |
0579b53d GN |
5960 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
5961 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
d8efbc66 | 5962 | s%@AR@%$AR%g |
d8efbc66 FF |
5963 | s%@YACC@%$YACC%g |
5964 | s%@AWK@%$AWK%g | |
4915acad | 5965 | s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g |
0728afad FF |
5966 | s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g |
5967 | s%@MMALLOC@%$MMALLOC%g | |
2476848a | 5968 | s%@ENABLE_IDE@%$ENABLE_IDE%g |
c076f1ed DM |
5969 | s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g |
5970 | s%@LIBGUI@%$LIBGUI%g | |
5971 | s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g | |
5972 | s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g | |
5973 | s%@IDE_X@%$IDE_X%g | |
5974 | s%@LIBIDETCL@%$LIBIDETCL%g | |
5975 | s%@LIBIDE@%$LIBIDE%g | |
5976 | s%@IDE_DEPS@%$IDE_DEPS%g | |
9b119644 ILT |
5977 | s%@WIN32LIBS@%$WIN32LIBS%g |
5978 | s%@WIN32LDAPP@%$WIN32LDAPP%g | |
929db6e5 | 5979 | s%@WINDRES@%$WINDRES%g |
047465fd TT |
5980 | s%@TCL_VERSION@%$TCL_VERSION%g |
5981 | s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g | |
5982 | s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g | |
5983 | s%@TCL_CC@%$TCL_CC%g | |
5984 | s%@TCL_DEFS@%$TCL_DEFS%g | |
5985 | s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g | |
5986 | s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g | |
5987 | s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g | |
5988 | s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g | |
5989 | s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g | |
5990 | s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g | |
5991 | s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g | |
5992 | s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g | |
5993 | s%@TCL_RANLIB@%$TCL_RANLIB%g | |
5994 | s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g | |
5995 | s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g | |
5996 | s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g | |
5997 | s%@TK_VERSION@%$TK_VERSION%g | |
5998 | s%@TK_DEFS@%$TK_DEFS%g | |
9b119644 | 5999 | s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g |
047465fd TT |
6000 | s%@TK_XINCLUDES@%$TK_XINCLUDES%g |
6001 | s%@TK_XLIBSW@%$TK_XLIBSW%g | |
6002 | s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g | |
6003 | s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g | |
5436fc65 | 6004 | s%@TCLHDIR@%$TCLHDIR%g |
4e327047 | 6005 | s%@TKHDIR@%$TKHDIR%g |
2476848a MH |
6006 | s%@ITCLHDIR@%$ITCLHDIR%g |
6007 | s%@ITCLLIB@%$ITCLLIB%g | |
6008 | s%@TIXHDIR@%$TIXHDIR%g | |
5436fc65 | 6009 | s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g |
047465fd | 6010 | s%@X_CFLAGS@%$X_CFLAGS%g |
a2b63bbd | 6011 | s%@X_LDFLAGS@%$X_LDFLAGS%g |
047465fd | 6012 | s%@X_LIBS@%$X_LIBS%g |
6bc5b2fa | 6013 | s%@TIXLIB@%$TIXLIB%g |
018d76dd | 6014 | s%@TIX_DEPS@%$TIX_DEPS%g |
b177bf84 | 6015 | s%@GDBTKLIBS@%$GDBTKLIBS%g |
5436fc65 | 6016 | s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g |
6c310da8 | 6017 | s%@CONFIG_OBS@%$CONFIG_OBS%g |
018d76dd | 6018 | s%@CONFIG_DEPS@%$CONFIG_DEPS%g |
c7bb1531 | 6019 | s%@CONFIG_SRCS@%$CONFIG_SRCS%g |
1d5eb137 FF |
6020 | s%@HLDFLAGS@%$HLDFLAGS%g |
6021 | s%@HLDENV@%$HLDENV%g | |
7c40dd08 | 6022 | s%@target_subdir@%$target_subdir%g |
5436fc65 C |
6023 | /@host_makefile_frag@/r $host_makefile_frag |
6024 | s%@host_makefile_frag@%%g | |
6025 | /@target_makefile_frag@/r $target_makefile_frag | |
6026 | s%@target_makefile_frag@%%g | |
5f107900 | 6027 | s%@frags@%$frags%g |
99174711 | 6028 | s%@LN_S@%$LN_S%g |
3fbb8cde | 6029 | s%@EXEEXT@%$EXEEXT%g |
5436fc65 C |
6030 | s%@subdirs@%$subdirs%g |
6031 | ||
6032 | CEOF | |
6033 | EOF | |
bfde4a67 SG |
6034 | |
6035 | cat >> $CONFIG_STATUS <<\EOF | |
6036 | ||
6037 | # Split the substitutions into bite-sized pieces for seds with | |
6038 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6039 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6040 | ac_file=1 # Number of current file. | |
6041 | ac_beg=1 # First line for current file. | |
6042 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6043 | ac_more_lines=: | |
6044 | ac_sed_cmds="" | |
6045 | while $ac_more_lines; do | |
6046 | if test $ac_beg -gt 1; then | |
6047 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6048 | else | |
6049 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6050 | fi | |
6051 | if test ! -s conftest.s$ac_file; then | |
6052 | ac_more_lines=false | |
6053 | rm -f conftest.s$ac_file | |
6054 | else | |
6055 | if test -z "$ac_sed_cmds"; then | |
6056 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6057 | else | |
6058 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6059 | fi | |
6060 | ac_file=`expr $ac_file + 1` | |
6061 | ac_beg=$ac_end | |
6062 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6063 | fi | |
6064 | done | |
6065 | if test -z "$ac_sed_cmds"; then | |
6066 | ac_sed_cmds=cat | |
6067 | fi | |
6068 | EOF | |
6069 | ||
5436fc65 C |
6070 | cat >> $CONFIG_STATUS <<EOF |
6071 | ||
0cb7d01d | 6072 | CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"} |
5436fc65 C |
6073 | EOF |
6074 | cat >> $CONFIG_STATUS <<\EOF | |
6075 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
bfde4a67 | 6076 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5436fc65 | 6077 | case "$ac_file" in |
bfde4a67 | 6078 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
5436fc65 C |
6079 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6080 | *) ac_file_in="${ac_file}.in" ;; | |
6081 | esac | |
6082 | ||
bfde4a67 | 6083 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
5436fc65 C |
6084 | |
6085 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6086 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6087 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6088 | # The file is in a subdirectory. | |
6089 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6090 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6091 | # A "../" for each directory in $ac_dir_suffix. | |
6092 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6093 | else | |
6094 | ac_dir_suffix= ac_dots= | |
6095 | fi | |
6096 | ||
6097 | case "$ac_given_srcdir" in | |
6098 | .) srcdir=. | |
6099 | if test -z "$ac_dots"; then top_srcdir=. | |
6100 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6101 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6102 | *) # Relative path. | |
6103 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6104 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6105 | esac | |
6106 | ||
6107 | case "$ac_given_INSTALL" in | |
6108 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6109 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6110 | esac | |
bfde4a67 | 6111 | |
5436fc65 C |
6112 | echo creating "$ac_file" |
6113 | rm -f "$ac_file" | |
6114 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6115 | case "$ac_file" in | |
6116 | *Makefile*) ac_comsub="1i\\ | |
6117 | # $configure_input" ;; | |
6118 | *) ac_comsub= ;; | |
6119 | esac | |
bfde4a67 SG |
6120 | |
6121 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5436fc65 C |
6122 | sed -e "$ac_comsub |
6123 | s%@configure_input@%$configure_input%g | |
6124 | s%@srcdir@%$srcdir%g | |
6125 | s%@top_srcdir@%$top_srcdir%g | |
6126 | s%@INSTALL@%$INSTALL%g | |
bfde4a67 | 6127 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
5436fc65 | 6128 | fi; done |
bfde4a67 | 6129 | rm -f conftest.s* |
5436fc65 | 6130 | |
db210d08 FF |
6131 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
6132 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6133 | # | |
6134 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6135 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6136 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6137 | ac_dC='\3' | |
6138 | ac_dD='%g' | |
6139 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6140 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6141 | ac_uB='\([ ]\)%\1#\2define\3' | |
6142 | ac_uC=' ' | |
6143 | ac_uD='\4%g' | |
6144 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6145 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6146 | ac_eB='$%\1#\2define\3' | |
6147 | ac_eC=' ' | |
6148 | ac_eD='%g' | |
6149 | ||
bfde4a67 SG |
6150 | if test "${CONFIG_HEADERS+set}" != set; then |
6151 | EOF | |
6152 | cat >> $CONFIG_STATUS <<EOF | |
6153 | CONFIG_HEADERS="config.h:config.in" | |
6154 | EOF | |
6155 | cat >> $CONFIG_STATUS <<\EOF | |
6156 | fi | |
db210d08 | 6157 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
bfde4a67 | 6158 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
db210d08 | 6159 | case "$ac_file" in |
bfde4a67 | 6160 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
db210d08 FF |
6161 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6162 | *) ac_file_in="${ac_file}.in" ;; | |
6163 | esac | |
6164 | ||
6165 | echo creating $ac_file | |
6166 | ||
6167 | rm -f conftest.frag conftest.in conftest.out | |
bfde4a67 SG |
6168 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
6169 | cat $ac_file_inputs > conftest.in | |
db210d08 FF |
6170 | |
6171 | EOF | |
6172 | ||
6173 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6174 | # the proper values into config.h.in to produce config.h. And first: | |
1a7b4b7c | 6175 | # Protect against being on the right side of a sed subst in config.status. |
db210d08 FF |
6176 | # Protect against being in an unquoted here document in config.status. |
6177 | rm -f conftest.vals | |
6178 | cat > conftest.hdr <<\EOF | |
6179 | s/[\\&%]/\\&/g | |
6180 | s%[\\$`]%\\&%g | |
bc859e63 | 6181 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
db210d08 FF |
6182 | s%ac_d%ac_u%gp |
6183 | s%ac_u%ac_e%gp | |
6184 | EOF | |
6185 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6186 | rm -f conftest.hdr | |
6187 | ||
6188 | # This sed command replaces #undef with comments. This is necessary, for | |
6189 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6190 | # on some systems where configure will not decide to define it. | |
6191 | cat >> conftest.vals <<\EOF | |
6192 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6193 | EOF | |
6194 | ||
6195 | # Break up conftest.vals because some shells have a limit on | |
6196 | # the size of here documents, and old seds have small limits too. | |
db210d08 FF |
6197 | |
6198 | rm -f conftest.tail | |
6199 | while : | |
6200 | do | |
6201 | ac_lines=`grep -c . conftest.vals` | |
6202 | # grep -c gives empty output for an empty file on some AIX systems. | |
6203 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6204 | # Write a limited-size here document to conftest.frag. | |
6205 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6206 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6207 | echo 'CEOF | |
6208 | sed -f conftest.frag conftest.in > conftest.out | |
6209 | rm -f conftest.in | |
6210 | mv conftest.out conftest.in | |
6211 | ' >> $CONFIG_STATUS | |
6212 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6213 | rm -f conftest.vals | |
6214 | mv conftest.tail conftest.vals | |
6215 | done | |
6216 | rm -f conftest.vals | |
6217 | ||
6218 | cat >> $CONFIG_STATUS <<\EOF | |
6219 | rm -f conftest.frag conftest.h | |
6220 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6221 | cat conftest.in >> conftest.h | |
6222 | rm -f conftest.in | |
6223 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6224 | echo "$ac_file is unchanged" | |
6225 | rm -f conftest.h | |
6226 | else | |
bc859e63 SG |
6227 | # Remove last slash and all that follows it. Not all systems have dirname. |
6228 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6229 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6230 | # The file is in a subdirectory. | |
6231 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6232 | fi | |
db210d08 FF |
6233 | rm -f $ac_file |
6234 | mv conftest.h $ac_file | |
6235 | fi | |
6236 | fi; done | |
6237 | ||
5436fc65 C |
6238 | EOF |
6239 | ||
6240 | cat >> $CONFIG_STATUS <<EOF | |
6241 | ac_sources="$files" | |
6242 | ac_dests="$links" | |
6243 | EOF | |
6244 | ||
6245 | cat >> $CONFIG_STATUS <<\EOF | |
6246 | srcdir=$ac_given_srcdir | |
6247 | while test -n "$ac_sources"; do | |
6248 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
6249 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
6250 | ||
6251 | echo "linking $srcdir/$ac_source to $ac_dest" | |
6252 | ||
6253 | if test ! -r $srcdir/$ac_source; then | |
6254 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
6255 | fi | |
6256 | rm -f $ac_dest | |
6257 | ||
6258 | # Make relative symlinks. | |
6259 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6260 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
6261 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
6262 | # The dest file is in a subdirectory. | |
6263 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
6264 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
6265 | # A "../" for each directory in $ac_dest_dir_suffix. | |
6266 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
6267 | else | |
6268 | ac_dest_dir_suffix= ac_dots= | |
6269 | fi | |
6270 | ||
6271 | case "$srcdir" in | |
6272 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
6273 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
6274 | esac | |
6275 | ||
6276 | # Make a symlink if possible; otherwise try a hard link. | |
6277 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
6278 | ln $srcdir/$ac_source $ac_dest; then : | |
6279 | else | |
6280 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
6281 | fi | |
6282 | done | |
0a5a1821 C |
6283 | EOF |
6284 | cat >> $CONFIG_STATUS <<EOF | |
5436fc65 | 6285 | |
0a5a1821 C |
6286 | gdb_host_cpu=$gdb_host_cpu |
6287 | gdb_target_cpu=$gdb_target_cpu | |
6288 | nativefile=$nativefile | |
6289 | ||
6290 | EOF | |
6291 | cat >> $CONFIG_STATUS <<\EOF | |
5436fc65 C |
6292 | |
6293 | if test "${nativefile}" = ""; then | |
7bd1f0c5 | 6294 | sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \ |
5436fc65 C |
6295 | < Makefile > Makefile.tem |
6296 | mv -f Makefile.tem Makefile | |
6297 | fi | |
6298 | ||
6299 | sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, | |
6300 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, | |
6301 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
6302 | mv -f Makefile.tmp Makefile | |
6303 | ||
31520669 | 6304 | case x$CONFIG_HEADERS in |
18ea4416 | 6305 | xconfig.h:config.in) |
31520669 FF |
6306 | echo > stamp-h ;; |
6307 | esac | |
6308 | ||
5436fc65 C |
6309 | exit 0 |
6310 | EOF | |
6311 | chmod +x $CONFIG_STATUS | |
6312 | rm -fr confdefs* $ac_clean_files | |
6313 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6314 | ||
6315 | if test "$no_recursion" != yes; then | |
6316 | ||
6317 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
6318 | ac_sub_configure_args= | |
6319 | ac_prev= | |
6320 | for ac_arg in $ac_configure_args; do | |
6321 | if test -n "$ac_prev"; then | |
6322 | ac_prev= | |
6323 | continue | |
6324 | fi | |
6325 | case "$ac_arg" in | |
6326 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
6327 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
6328 | ac_prev=cache_file ;; | |
6329 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
6330 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
6331 | ;; | |
6332 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
6333 | ac_prev=srcdir ;; | |
6334 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6335 | ;; | |
6336 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
6337 | esac | |
6338 | done | |
6339 | ||
6340 | for ac_config_dir in $configdirs; do | |
6341 | ||
6342 | # Do not complain, so a configure script can configure whichever | |
6343 | # parts of a large source tree are present. | |
6344 | if test ! -d $srcdir/$ac_config_dir; then | |
6345 | continue | |
6346 | fi | |
6347 | ||
6348 | echo configuring in $ac_config_dir | |
6349 | ||
6350 | case "$srcdir" in | |
6351 | .) ;; | |
6352 | *) | |
6353 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
6354 | else | |
6355 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
6356 | fi | |
6357 | ;; | |
6358 | esac | |
6359 | ||
6360 | ac_popdir=`pwd` | |
6361 | cd $ac_config_dir | |
6362 | ||
bfde4a67 SG |
6363 | # A "../" for each directory in /$ac_config_dir. |
6364 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
6365 | ||
5436fc65 C |
6366 | case "$srcdir" in |
6367 | .) # No --srcdir option. We are building in place. | |
6368 | ac_sub_srcdir=$srcdir ;; | |
6369 | /*) # Absolute path. | |
6370 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
6371 | *) # Relative path. | |
bfde4a67 | 6372 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
5436fc65 C |
6373 | esac |
6374 | ||
6375 | # Check for guested configure; otherwise get Cygnus style configure. | |
6376 | if test -f $ac_sub_srcdir/configure; then | |
6377 | ac_sub_configure=$ac_sub_srcdir/configure | |
6378 | elif test -f $ac_sub_srcdir/configure.in; then | |
6379 | ac_sub_configure=$ac_configure | |
6380 | else | |
6381 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
6382 | ac_sub_configure= | |
6383 | fi | |
6384 | ||
6385 | # The recursion is here. | |
6386 | if test -n "$ac_sub_configure"; then | |
6387 | ||
6388 | # Make the cache file name correct relative to the subdirectory. | |
5436fc65 C |
6389 | case "$cache_file" in |
6390 | /*) ac_sub_cache_file=$cache_file ;; | |
6391 | *) # Relative path. | |
6392 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
6393 | esac | |
6394 | case "$ac_given_INSTALL" in | |
6395 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6396 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6397 | esac | |
6398 | ||
6399 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
6400 | # The eval makes quoting arguments work. | |
6401 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
6402 | then : | |
6403 | else | |
6404 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
6405 | fi | |
6406 | fi | |
6407 | ||
6408 | cd $ac_popdir | |
6409 | done | |
6410 | fi | |
6411 | ||
5e711e7f PS |
6412 | |
6413 | exit 0 | |
b7f3b6d5 | 6414 |