]>
Commit | Line | Data |
---|---|---|
5436fc65 C |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
fda58904 FF |
4 | # Generated automatically using autoconf version 2.8 |
5 | # Copyright (C) 1992, 1993, 1994 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: | |
14 | ac_help="$ac_help | |
15 | --enable-netrom " | |
188c635f SG |
16 | ac_help="$ac_help |
17 | --enable-gm " | |
3c0bf315 MM |
18 | ac_help="$ac_help |
19 | --enable-sim-powerpc " | |
5436fc65 C |
20 | ac_help="$ac_help |
21 | --enable-gdbtk " | |
22 | ac_help="$ac_help | |
23 | --with-x use the X Window System" | |
4e327047 TT |
24 | ac_help="$ac_help |
25 | --with-tclinclude directory where tcl private headers are" | |
26 | ac_help="$ac_help | |
27 | --with-tcllib directory where the tcl library is" | |
28 | ac_help="$ac_help | |
29 | --with-tkinclude directory where the tk private headers are" | |
30 | ac_help="$ac_help | |
31 | --with-tklib directory where the tk library is" | |
5436fc65 C |
32 | |
33 | # Initialize some variables set by options. | |
34 | # The variables have the same names as the options, with | |
35 | # dashes changed to underlines. | |
36 | build=NONE | |
37 | cache_file=./config.cache | |
38 | exec_prefix=NONE | |
39 | host=NONE | |
40 | no_create= | |
41 | nonopt=NONE | |
42 | no_recursion= | |
43 | prefix=NONE | |
44 | program_prefix=NONE | |
45 | program_suffix=NONE | |
46 | program_transform_name=s,x,x, | |
47 | silent= | |
48 | site= | |
49 | srcdir= | |
50 | target=NONE | |
51 | verbose= | |
52 | x_includes=NONE | |
53 | x_libraries=NONE | |
229b2c87 DE |
54 | bindir='${exec_prefix}/bin' |
55 | sbindir='${exec_prefix}/sbin' | |
56 | libexecdir='${exec_prefix}/libexec' | |
57 | datadir='${prefix}/share' | |
58 | sysconfdir='${prefix}/etc' | |
59 | sharedstatedir='${prefix}/com' | |
60 | localstatedir='${prefix}/var' | |
61 | libdir='${exec_prefix}/lib' | |
62 | includedir='${prefix}/include' | |
63 | oldincludedir='/usr/include' | |
64 | infodir='${prefix}/info' | |
65 | mandir='${prefix}/man' | |
5436fc65 C |
66 | |
67 | # Initialize some other variables. | |
68 | subdirs= | |
229b2c87 | 69 | MFLAGS= MAKEFLAGS= |
5436fc65 C |
70 | |
71 | ac_prev= | |
72 | for ac_option | |
73 | do | |
74 | ||
75 | # If the previous option needs an argument, assign it. | |
76 | if test -n "$ac_prev"; then | |
77 | eval "$ac_prev=\$ac_option" | |
78 | ac_prev= | |
79 | continue | |
80 | fi | |
81 | ||
82 | case "$ac_option" in | |
83 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
84 | *) ac_optarg= ;; | |
85 | esac | |
86 | ||
87 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
88 | ||
89 | case "$ac_option" in | |
90 | ||
229b2c87 DE |
91 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
92 | ac_prev=bindir ;; | |
93 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
94 | bindir="$ac_optarg" ;; | |
95 | ||
96 | -build | --build | --buil | --bui | --bu) | |
5436fc65 | 97 | ac_prev=build ;; |
229b2c87 | 98 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5436fc65 C |
99 | build="$ac_optarg" ;; |
100 | ||
101 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
102 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
103 | ac_prev=cache_file ;; | |
104 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
105 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
106 | cache_file="$ac_optarg" ;; | |
107 | ||
229b2c87 DE |
108 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
109 | ac_prev=datadir ;; | |
110 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
111 | | --da=*) | |
112 | datadir="$ac_optarg" ;; | |
113 | ||
5436fc65 C |
114 | -disable-* | --disable-*) |
115 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
116 | # Reject names that are not valid shell variable names. | |
117 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
118 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
119 | fi | |
120 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
121 | eval "enable_${ac_feature}=no" ;; | |
122 | ||
123 | -enable-* | --enable-*) | |
124 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
125 | # Reject names that are not valid shell variable names. | |
126 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
127 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
128 | fi | |
129 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
130 | case "$ac_option" in | |
131 | *=*) ;; | |
132 | *) ac_optarg=yes ;; | |
133 | esac | |
134 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
135 | ||
136 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
137 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
138 | | --exec | --exe | --ex) | |
139 | ac_prev=exec_prefix ;; | |
140 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
141 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
142 | | --exec=* | --exe=* | --ex=*) | |
143 | exec_prefix="$ac_optarg" ;; | |
144 | ||
145 | -gas | --gas | --ga | --g) | |
146 | # Obsolete; use --with-gas. | |
147 | with_gas=yes ;; | |
148 | ||
149 | -help | --help | --hel | --he) | |
150 | # Omit some internal or obsolete options to make the list less imposing. | |
151 | # This message is too long to be a string in the A/UX 3.1 sh. | |
152 | cat << EOF | |
153 | Usage: configure [options] [host] | |
154 | Options: [defaults in brackets after descriptions] | |
155 | Configuration: | |
156 | --cache-file=FILE cache test results in FILE | |
157 | --help print this message | |
158 | --no-create do not create output files | |
159 | --quiet, --silent do not print \`checking...' messages | |
160 | --version print the version of autoconf that created configure | |
161 | Directory and file names: | |
162 | --prefix=PREFIX install architecture-independent files in PREFIX | |
163 | [$ac_default_prefix] | |
229b2c87 | 164 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5436fc65 | 165 | [same as prefix] |
229b2c87 DE |
166 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
167 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
168 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
169 | --datadir=DIR read-only architecture-independent data in DIR | |
170 | [PREFIX/share] | |
171 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
172 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
173 | [PREFIX/com] | |
174 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
175 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
176 | --includedir=DIR C header files in DIR [PREFIX/include] | |
177 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
178 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
179 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
5436fc65 C |
180 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
181 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
182 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
229b2c87 DE |
183 | --program-transform-name=PROGRAM |
184 | run sed PROGRAM on installed program names | |
185 | EOF | |
186 | cat << EOF | |
5436fc65 C |
187 | Host type: |
188 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
189 | --host=HOST configure for HOST [guessed] | |
190 | --target=TARGET configure for TARGET [TARGET=HOST] | |
191 | Features and packages: | |
192 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
193 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
194 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
195 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
196 | --x-includes=DIR X include files are in DIR | |
197 | --x-libraries=DIR X library files are in DIR | |
5436fc65 | 198 | EOF |
229b2c87 DE |
199 | if test -n "$ac_help"; then |
200 | echo "--enable and --with options recognized:$ac_help" | |
201 | fi | |
5436fc65 C |
202 | exit 0 ;; |
203 | ||
204 | -host | --host | --hos | --ho) | |
205 | ac_prev=host ;; | |
206 | -host=* | --host=* | --hos=* | --ho=*) | |
207 | host="$ac_optarg" ;; | |
208 | ||
229b2c87 DE |
209 | -includedir | --includedir | --includedi | --included | --include \ |
210 | | --includ | --inclu | --incl | --inc) | |
211 | ac_prev=includedir ;; | |
212 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
213 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
214 | includedir="$ac_optarg" ;; | |
215 | ||
216 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
217 | ac_prev=infodir ;; | |
218 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
219 | infodir="$ac_optarg" ;; | |
220 | ||
221 | -libdir | --libdir | --libdi | --libd) | |
222 | ac_prev=libdir ;; | |
223 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
224 | libdir="$ac_optarg" ;; | |
225 | ||
226 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
227 | | --libexe | --libex | --libe) | |
228 | ac_prev=libexecdir ;; | |
229 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
230 | | --libexe=* | --libex=* | --libe=*) | |
231 | libexecdir="$ac_optarg" ;; | |
232 | ||
233 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
234 | | --localstate | --localstat | --localsta | --localst \ | |
235 | | --locals | --local | --loca | --loc | --lo) | |
236 | ac_prev=localstatedir ;; | |
237 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
238 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
239 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
240 | localstatedir="$ac_optarg" ;; | |
241 | ||
242 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
243 | ac_prev=mandir ;; | |
244 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
245 | mandir="$ac_optarg" ;; | |
246 | ||
5436fc65 C |
247 | -nfp | --nfp | --nf) |
248 | # Obsolete; use --without-fp. | |
249 | with_fp=no ;; | |
250 | ||
251 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
252 | | --no-cr | --no-c) | |
253 | no_create=yes ;; | |
254 | ||
255 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
256 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
257 | no_recursion=yes ;; | |
258 | ||
229b2c87 DE |
259 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
260 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
261 | | --oldin | --oldi | --old | --ol | --o) | |
262 | ac_prev=oldincludedir ;; | |
263 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
264 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
265 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
266 | oldincludedir="$ac_optarg" ;; | |
267 | ||
5436fc65 C |
268 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
269 | ac_prev=prefix ;; | |
270 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
271 | prefix="$ac_optarg" ;; | |
272 | ||
273 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
274 | | --program-pre | --program-pr | --program-p) | |
275 | ac_prev=program_prefix ;; | |
276 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
277 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
278 | program_prefix="$ac_optarg" ;; | |
279 | ||
280 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
281 | | --program-suf | --program-su | --program-s) | |
282 | ac_prev=program_suffix ;; | |
283 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
284 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
285 | program_suffix="$ac_optarg" ;; | |
286 | ||
287 | -program-transform-name | --program-transform-name \ | |
288 | | --program-transform-nam | --program-transform-na \ | |
289 | | --program-transform-n | --program-transform- \ | |
290 | | --program-transform | --program-transfor \ | |
291 | | --program-transfo | --program-transf \ | |
292 | | --program-trans | --program-tran \ | |
293 | | --progr-tra | --program-tr | --program-t) | |
294 | ac_prev=program_transform_name ;; | |
295 | -program-transform-name=* | --program-transform-name=* \ | |
296 | | --program-transform-nam=* | --program-transform-na=* \ | |
297 | | --program-transform-n=* | --program-transform-=* \ | |
298 | | --program-transform=* | --program-transfor=* \ | |
299 | | --program-transfo=* | --program-transf=* \ | |
300 | | --program-trans=* | --program-tran=* \ | |
301 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
302 | program_transform_name="$ac_optarg" ;; | |
303 | ||
304 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
305 | | -silent | --silent | --silen | --sile | --sil) | |
306 | silent=yes ;; | |
307 | ||
229b2c87 DE |
308 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
309 | ac_prev=sbindir ;; | |
310 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
311 | | --sbi=* | --sb=*) | |
312 | sbindir="$ac_optarg" ;; | |
313 | ||
314 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
315 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
316 | | --sharedst | --shareds | --shared | --share | --shar \ | |
317 | | --sha | --sh) | |
318 | ac_prev=sharedstatedir ;; | |
319 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
320 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
321 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
322 | | --sha=* | --sh=*) | |
323 | sharedstatedir="$ac_optarg" ;; | |
324 | ||
5436fc65 C |
325 | -site | --site | --sit) |
326 | ac_prev=site ;; | |
327 | -site=* | --site=* | --sit=*) | |
328 | site="$ac_optarg" ;; | |
329 | ||
330 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
331 | ac_prev=srcdir ;; | |
332 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
333 | srcdir="$ac_optarg" ;; | |
334 | ||
229b2c87 DE |
335 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
336 | | --syscon | --sysco | --sysc | --sys | --sy) | |
337 | ac_prev=sysconfdir ;; | |
338 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
339 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
340 | sysconfdir="$ac_optarg" ;; | |
341 | ||
5436fc65 C |
342 | -target | --target | --targe | --targ | --tar | --ta | --t) |
343 | ac_prev=target ;; | |
344 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
345 | target="$ac_optarg" ;; | |
346 | ||
347 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
348 | verbose=yes ;; | |
349 | ||
350 | -version | --version | --versio | --versi | --vers) | |
fda58904 | 351 | echo "configure generated by autoconf version 2.8" |
5436fc65 C |
352 | exit 0 ;; |
353 | ||
354 | -with-* | --with-*) | |
355 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
356 | # Reject names that are not valid shell variable names. | |
357 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
358 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
359 | fi | |
360 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
361 | case "$ac_option" in | |
362 | *=*) ;; | |
363 | *) ac_optarg=yes ;; | |
364 | esac | |
365 | eval "with_${ac_package}='$ac_optarg'" ;; | |
366 | ||
367 | -without-* | --without-*) | |
368 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
369 | # Reject names that are not valid shell variable names. | |
370 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
371 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
372 | fi | |
373 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
374 | eval "with_${ac_package}=no" ;; | |
375 | ||
376 | --x) | |
377 | # Obsolete; use --with-x. | |
378 | with_x=yes ;; | |
379 | ||
380 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
381 | | --x-incl | --x-inc | --x-in | --x-i) | |
382 | ac_prev=x_includes ;; | |
383 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
384 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
385 | x_includes="$ac_optarg" ;; | |
386 | ||
387 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
388 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
389 | ac_prev=x_libraries ;; | |
390 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
391 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
392 | x_libraries="$ac_optarg" ;; | |
393 | ||
394 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
395 | ;; | |
396 | ||
229b2c87 | 397 | *) |
5436fc65 C |
398 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
399 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
400 | fi | |
401 | if test "x$nonopt" != xNONE; then | |
402 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
403 | fi | |
404 | nonopt="$ac_option" | |
405 | ;; | |
406 | ||
407 | esac | |
408 | done | |
409 | ||
410 | if test -n "$ac_prev"; then | |
411 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
412 | fi | |
413 | ||
414 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
415 | ||
416 | # File descriptor usage: | |
417 | # 0 standard input | |
418 | # 1 file creation | |
419 | # 2 errors and warnings | |
420 | # 3 some systems may open it to /dev/tty | |
421 | # 4 used on the Kubota Titan | |
422 | # 6 checking for... messages and results | |
423 | # 5 compiler messages saved in config.log | |
424 | if test "$silent" = yes; then | |
425 | exec 6>/dev/null | |
426 | else | |
427 | exec 6>&1 | |
428 | fi | |
429 | exec 5>./config.log | |
430 | ||
431 | echo "\ | |
432 | This file contains any messages produced by compilers while | |
433 | running configure, to aid debugging if configure makes a mistake. | |
434 | " 1>&5 | |
435 | ||
436 | # Strip out --no-create and --no-recursion so they do not pile up. | |
437 | # Also quote any args containing shell metacharacters. | |
438 | ac_configure_args= | |
439 | for ac_arg | |
440 | do | |
441 | case "$ac_arg" in | |
442 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
443 | | --no-cr | --no-c) ;; | |
444 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
445 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
446 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
447 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
448 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
449 | esac | |
450 | done | |
451 | ||
452 | # NLS nuisances. | |
453 | # Only set LANG and LC_ALL to C if already set. | |
454 | # These must not be set unconditionally because not all systems understand | |
455 | # e.g. LANG=C (notably SCO). | |
456 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
457 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
458 | ||
459 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
460 | rm -rf conftest* confdefs.h | |
461 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
462 | echo > confdefs.h | |
463 | ||
464 | # A filename unique to this package, relative to the directory that | |
465 | # configure is in, which we can look for to find out if srcdir is correct. | |
466 | ac_unique_file=main.c | |
467 | ||
468 | # Find the source files, if location was not specified. | |
469 | if test -z "$srcdir"; then | |
470 | ac_srcdir_defaulted=yes | |
471 | # Try the directory containing this script, then its parent. | |
472 | ac_prog=$0 | |
473 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
474 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
475 | srcdir=$ac_confdir | |
476 | if test ! -r $srcdir/$ac_unique_file; then | |
477 | srcdir=.. | |
478 | fi | |
479 | else | |
480 | ac_srcdir_defaulted=no | |
481 | fi | |
482 | if test ! -r $srcdir/$ac_unique_file; then | |
483 | if test "$ac_srcdir_defaulted" = yes; then | |
484 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
485 | else | |
486 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
487 | fi | |
488 | fi | |
489 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
490 | ||
491 | # Prefer explicitly selected file to automatically selected ones. | |
492 | if test -z "$CONFIG_SITE"; then | |
493 | if test "x$prefix" != xNONE; then | |
494 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
495 | else | |
496 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
497 | fi | |
498 | fi | |
499 | for ac_site_file in $CONFIG_SITE; do | |
500 | if test -r "$ac_site_file"; then | |
501 | echo "loading site script $ac_site_file" | |
502 | . "$ac_site_file" | |
503 | fi | |
504 | done | |
505 | ||
506 | if test -r "$cache_file"; then | |
507 | echo "loading cache $cache_file" | |
508 | . $cache_file | |
509 | else | |
510 | echo "creating cache $cache_file" | |
511 | > $cache_file | |
512 | fi | |
513 | ||
514 | ac_ext=c | |
515 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
3dedc867 FF |
516 | ac_cpp='$CPP $CPPFLAGS' |
517 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
518 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5436fc65 C |
519 | |
520 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
521 | # Stardent Vistra SVR4 grep lacks -e, says [email protected]. | |
522 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
523 | ac_n= ac_c=' | |
524 | ' ac_t=' ' | |
525 | else | |
526 | ac_n=-n ac_c= ac_t= | |
527 | fi | |
528 | else | |
529 | ac_n= ac_c='\c' ac_t= | |
530 | fi | |
531 | ||
532 | ||
533 | ||
db210d08 | 534 | |
5436fc65 C |
535 | # Extract the first word of "gcc", so it can be a program name with args. |
536 | set dummy gcc; ac_word=$2 | |
537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
538 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
540 | else | |
541 | if test -n "$CC"; then | |
542 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
543 | else | |
544 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
da3d57e3 | 545 | for ac_dir in $PATH; do |
5436fc65 C |
546 | test -z "$ac_dir" && ac_dir=. |
547 | if test -f $ac_dir/$ac_word; then | |
548 | ac_cv_prog_CC="gcc" | |
549 | break | |
550 | fi | |
551 | done | |
552 | IFS="$ac_save_ifs" | |
5436fc65 C |
553 | fi |
554 | fi | |
555 | CC="$ac_cv_prog_CC" | |
556 | if test -n "$CC"; then | |
557 | echo "$ac_t""$CC" 1>&6 | |
558 | else | |
559 | echo "$ac_t""no" 1>&6 | |
560 | fi | |
561 | ||
3dedc867 FF |
562 | if test -z "$CC"; then |
563 | # Extract the first word of "cc", so it can be a program name with args. | |
564 | set dummy cc; ac_word=$2 | |
565 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
566 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
568 | else | |
569 | if test -n "$CC"; then | |
570 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
571 | else | |
572 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
573 | ac_prog_rejected=no | |
574 | for ac_dir in $PATH; do | |
575 | test -z "$ac_dir" && ac_dir=. | |
576 | if test -f $ac_dir/$ac_word; then | |
577 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
578 | ac_prog_rejected=yes | |
579 | continue | |
580 | fi | |
581 | ac_cv_prog_CC="cc" | |
582 | break | |
583 | fi | |
584 | done | |
585 | IFS="$ac_save_ifs" | |
586 | if test $ac_prog_rejected = yes; then | |
587 | # We found a bogon in the path, so make sure we never use it. | |
588 | set dummy $ac_cv_prog_CC | |
589 | shift | |
590 | if test $# -gt 0; then | |
591 | # We chose a different compiler from the bogus one. | |
592 | # However, it has the same basename, so the bogon will be chosen | |
593 | # first if we set CC to just the basename; use the full file name. | |
594 | shift | |
595 | set dummy "$ac_dir/$ac_word" "$@" | |
596 | shift | |
597 | ac_cv_prog_CC="$@" | |
598 | fi | |
599 | fi | |
600 | fi | |
601 | fi | |
602 | CC="$ac_cv_prog_CC" | |
603 | if test -n "$CC"; then | |
604 | echo "$ac_t""$CC" 1>&6 | |
605 | else | |
606 | echo "$ac_t""no" 1>&6 | |
607 | fi | |
608 | ||
609 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
610 | fi | |
5436fc65 C |
611 | |
612 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
613 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
615 | else | |
616 | cat > conftest.c <<EOF | |
617 | #ifdef __GNUC__ | |
618 | yes; | |
619 | #endif | |
620 | EOF | |
db210d08 | 621 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
5436fc65 C |
622 | ac_cv_prog_gcc=yes |
623 | else | |
624 | ac_cv_prog_gcc=no | |
625 | fi | |
626 | fi | |
229b2c87 | 627 | |
5436fc65 C |
628 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
629 | if test $ac_cv_prog_gcc = yes; then | |
630 | GCC=yes | |
631 | if test "${CFLAGS+set}" != set; then | |
632 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
633 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then | |
634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
635 | else | |
636 | echo 'void f(){}' > conftest.c | |
637 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
638 | ac_cv_prog_gcc_g=yes | |
639 | else | |
640 | ac_cv_prog_gcc_g=no | |
641 | fi | |
642 | rm -f conftest* | |
643 | ||
644 | fi | |
229b2c87 DE |
645 | |
646 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 | |
5436fc65 C |
647 | if test $ac_cv_prog_gcc_g = yes; then |
648 | CFLAGS="-g -O" | |
649 | else | |
650 | CFLAGS="-O" | |
651 | fi | |
652 | fi | |
653 | else | |
654 | GCC= | |
655 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
656 | fi | |
657 | ||
658 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
659 | # On Suns, sometimes $CPP names a directory. | |
660 | if test -n "$CPP" && test -d "$CPP"; then | |
661 | CPP= | |
662 | fi | |
663 | if test -z "$CPP"; then | |
664 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
666 | else | |
667 | # This must be in double quotes, not single quotes, because CPP may get | |
668 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
669 | CPP="${CC-cc} -E" | |
670 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
671 | # not just through cpp. | |
672 | cat > conftest.$ac_ext <<EOF | |
db210d08 | 673 | #line 674 "configure" |
5436fc65 C |
674 | #include "confdefs.h" |
675 | #include <assert.h> | |
676 | Syntax Error | |
677 | EOF | |
3dedc867 | 678 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
db210d08 | 679 | { (eval echo configure:680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5436fc65 C |
680 | ac_err=`grep -v '^ *+' conftest.out` |
681 | if test -z "$ac_err"; then | |
682 | : | |
683 | else | |
684 | echo "$ac_err" >&5 | |
685 | rm -rf conftest* | |
686 | CPP="${CC-cc} -E -traditional-cpp" | |
687 | cat > conftest.$ac_ext <<EOF | |
db210d08 | 688 | #line 689 "configure" |
5436fc65 C |
689 | #include "confdefs.h" |
690 | #include <assert.h> | |
691 | Syntax Error | |
692 | EOF | |
3dedc867 | 693 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
db210d08 | 694 | { (eval echo configure:695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5436fc65 C |
695 | ac_err=`grep -v '^ *+' conftest.out` |
696 | if test -z "$ac_err"; then | |
697 | : | |
698 | else | |
699 | echo "$ac_err" >&5 | |
700 | rm -rf conftest* | |
701 | CPP=/lib/cpp | |
702 | fi | |
703 | rm -f conftest* | |
704 | fi | |
705 | rm -f conftest* | |
706 | ac_cv_prog_CPP="$CPP" | |
707 | fi | |
dedcc91d SC |
708 | CPP="$ac_cv_prog_CPP" |
709 | else | |
710 | ac_cv_prog_CPP="$CPP" | |
5436fc65 | 711 | fi |
5436fc65 C |
712 | echo "$ac_t""$CPP" 1>&6 |
713 | ||
714 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
715 | cat > conftest.$ac_ext <<EOF | |
db210d08 | 716 | #line 717 "configure" |
5436fc65 C |
717 | #include "confdefs.h" |
718 | #ifdef _AIX | |
719 | yes | |
720 | #endif | |
721 | ||
722 | EOF | |
723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
724 | egrep "yes" >/dev/null 2>&1; then | |
725 | rm -rf conftest* | |
726 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
727 | #define _ALL_SOURCE 1 | |
728 | EOF | |
729 | ||
730 | else | |
731 | rm -rf conftest* | |
732 | echo "$ac_t""no" 1>&6 | |
733 | fi | |
734 | rm -f conftest* | |
735 | ||
736 | ||
737 | ac_safe=`echo "minix/config.h" | tr './\055' '___'` | |
738 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | |
739 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
741 | else | |
742 | cat > conftest.$ac_ext <<EOF | |
db210d08 | 743 | #line 744 "configure" |
5436fc65 C |
744 | #include "confdefs.h" |
745 | #include <minix/config.h> | |
746 | EOF | |
3dedc867 | 747 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
db210d08 | 748 | { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5436fc65 C |
749 | ac_err=`grep -v '^ *+' conftest.out` |
750 | if test -z "$ac_err"; then | |
751 | rm -rf conftest* | |
752 | eval "ac_cv_header_$ac_safe=yes" | |
753 | else | |
754 | echo "$ac_err" >&5 | |
755 | rm -rf conftest* | |
756 | eval "ac_cv_header_$ac_safe=no" | |
757 | fi | |
758 | rm -f conftest* | |
759 | fi | |
760 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
761 | echo "$ac_t""yes" 1>&6 | |
762 | MINIX=yes | |
763 | else | |
764 | echo "$ac_t""no" 1>&6 | |
765 | MINIX= | |
766 | fi | |
767 | ||
768 | if test "$MINIX" = yes; then | |
769 | cat >> confdefs.h <<\EOF | |
770 | #define _POSIX_SOURCE 1 | |
771 | EOF | |
772 | ||
773 | cat >> confdefs.h <<\EOF | |
774 | #define _POSIX_1_SOURCE 2 | |
775 | EOF | |
776 | ||
777 | cat >> confdefs.h <<\EOF | |
778 | #define _MINIX 1 | |
779 | EOF | |
780 | ||
781 | fi | |
782 | ||
783 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
784 | if test -d /etc/conf/kconfig.d && | |
785 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
786 | then | |
787 | echo "$ac_t""yes" 1>&6 | |
788 | ISC=yes # If later tests want to check for ISC. | |
789 | cat >> confdefs.h <<\EOF | |
790 | #define _POSIX_SOURCE 1 | |
791 | EOF | |
792 | ||
793 | if test "$GCC" = yes; then | |
794 | CC="$CC -posix" | |
795 | else | |
796 | CC="$CC -Xp" | |
797 | fi | |
798 | else | |
799 | echo "$ac_t""no" 1>&6 | |
800 | ISC= | |
801 | fi | |
802 | ||
803 | ||
804 | ac_aux_dir= | |
805 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
806 | if test -f $ac_dir/install-sh; then | |
807 | ac_aux_dir=$ac_dir | |
808 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
809 | break | |
810 | elif test -f $ac_dir/install.sh; then | |
811 | ac_aux_dir=$ac_dir | |
812 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
813 | break | |
814 | fi | |
815 | done | |
816 | if test -z "$ac_aux_dir"; then | |
817 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
818 | fi | |
819 | ac_config_guess=$ac_aux_dir/config.guess | |
820 | ac_config_sub=$ac_aux_dir/config.sub | |
821 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
822 | ||
823 | # Find a good install program. We prefer a C program (faster), | |
824 | # so one script is as good as another. But avoid the broken or | |
825 | # incompatible versions: | |
826 | # SysV /etc/install, /usr/sbin/install | |
827 | # SunOS /usr/etc/install | |
828 | # IRIX /sbin/install | |
829 | # AIX /bin/install | |
830 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
831 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
832 | # ./install, which can be erroneously created by make from ./install.sh. | |
833 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
834 | if test -z "$INSTALL"; then | |
835 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
837 | else | |
838 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
839 | for ac_dir in $PATH; do | |
840 | # Account for people who put trailing slashes in PATH elements. | |
841 | case "$ac_dir/" in | |
842 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
843 | *) | |
844 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
845 | for ac_prog in ginstall installbsd scoinst install; do | |
846 | if test -f $ac_dir/$ac_prog; then | |
847 | if test $ac_prog = install && | |
848 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
849 | # AIX install. It has an incompatible calling convention. | |
850 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
851 | : | |
852 | else | |
853 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
854 | break 2 | |
855 | fi | |
856 | fi | |
857 | done | |
858 | ;; | |
859 | esac | |
860 | done | |
861 | IFS="$ac_save_ifs" | |
229b2c87 | 862 | |
5436fc65 | 863 | fi |
229b2c87 DE |
864 | if test "${ac_cv_path_install+set}" = set; then |
865 | INSTALL="$ac_cv_path_install" | |
866 | else | |
867 | # As a last resort, use the slow shell script. We don't cache a | |
868 | # path for INSTALL within a source directory, because that will | |
869 | # break other packages using the cache if that directory is | |
870 | # removed, or if the path is relative. | |
871 | INSTALL="$ac_install_sh" | |
872 | fi | |
5436fc65 C |
873 | fi |
874 | echo "$ac_t""$INSTALL" 1>&6 | |
875 | ||
876 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
877 | # It thinks the first close brace ends the variable substitution. | |
878 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
879 | ||
880 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
881 | ||
d8efbc66 FF |
882 | |
883 | # Make sure we can run config.sub. | |
884 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
885 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
886 | fi | |
887 | ||
888 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
889 | ||
890 | host_alias=$host | |
891 | case "$host_alias" in | |
892 | NONE) | |
893 | case $nonopt in | |
894 | NONE) | |
895 | if host_alias=`$ac_config_guess`; then : | |
896 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
897 | fi ;; | |
898 | *) host_alias=$nonopt ;; | |
899 | esac ;; | |
900 | esac | |
901 | ||
902 | host=`$ac_config_sub $host_alias` | |
903 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
904 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
905 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
906 | echo "$ac_t""$host" 1>&6 | |
907 | ||
908 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
909 | ||
910 | build_alias=$build | |
911 | case "$build_alias" in | |
912 | NONE) | |
913 | case $nonopt in | |
914 | NONE) build_alias=$host_alias ;; | |
915 | *) build_alias=$nonopt ;; | |
916 | esac ;; | |
917 | esac | |
918 | ||
919 | build=`$ac_config_sub $build_alias` | |
920 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
921 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
922 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
923 | echo "$ac_t""$build" 1>&6 | |
924 | ||
925 | if test $host != $build; then | |
926 | ac_tool_prefix=${host_alias}- | |
927 | else | |
928 | ac_tool_prefix= | |
929 | fi | |
930 | ||
931 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
932 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
933 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
934 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
936 | else | |
937 | if test -n "$AR"; then | |
938 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
939 | else | |
940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
941 | for ac_dir in $PATH; do | |
942 | test -z "$ac_dir" && ac_dir=. | |
943 | if test -f $ac_dir/$ac_word; then | |
944 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
945 | break | |
946 | fi | |
947 | done | |
948 | IFS="$ac_save_ifs" | |
949 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
950 | fi | |
951 | fi | |
952 | AR="$ac_cv_prog_AR" | |
953 | if test -n "$AR"; then | |
954 | echo "$ac_t""$AR" 1>&6 | |
955 | else | |
956 | echo "$ac_t""no" 1>&6 | |
957 | fi | |
958 | ||
959 | ||
960 | ||
961 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
962 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
963 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
964 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
966 | else | |
967 | if test -n "$RANLIB"; then | |
968 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
969 | else | |
970 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
971 | for ac_dir in $PATH; do | |
972 | test -z "$ac_dir" && ac_dir=. | |
973 | if test -f $ac_dir/$ac_word; then | |
974 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
975 | break | |
976 | fi | |
977 | done | |
978 | IFS="$ac_save_ifs" | |
979 | fi | |
980 | fi | |
981 | RANLIB="$ac_cv_prog_RANLIB" | |
982 | if test -n "$RANLIB"; then | |
983 | echo "$ac_t""$RANLIB" 1>&6 | |
984 | else | |
985 | echo "$ac_t""no" 1>&6 | |
986 | fi | |
987 | ||
988 | ||
989 | if test -z "$ac_cv_prog_RANLIB"; then | |
990 | if test -n "$ac_tool_prefix"; then | |
991 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5436fc65 C |
992 | set dummy ranlib; ac_word=$2 |
993 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
994 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
996 | else | |
997 | if test -n "$RANLIB"; then | |
998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
999 | else | |
1000 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
da3d57e3 | 1001 | for ac_dir in $PATH; do |
5436fc65 C |
1002 | test -z "$ac_dir" && ac_dir=. |
1003 | if test -f $ac_dir/$ac_word; then | |
1004 | ac_cv_prog_RANLIB="ranlib" | |
1005 | break | |
1006 | fi | |
1007 | done | |
1008 | IFS="$ac_save_ifs" | |
1009 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1010 | fi | |
1011 | fi | |
1012 | RANLIB="$ac_cv_prog_RANLIB" | |
1013 | if test -n "$RANLIB"; then | |
1014 | echo "$ac_t""$RANLIB" 1>&6 | |
1015 | else | |
1016 | echo "$ac_t""no" 1>&6 | |
1017 | fi | |
1018 | ||
d8efbc66 FF |
1019 | else |
1020 | RANLIB=":" | |
1021 | fi | |
1022 | fi | |
1023 | ||
204c8825 FF |
1024 | for ac_prog in 'bison -y' byacc |
1025 | do | |
1026 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1027 | set dummy $ac_prog; ac_word=$2 | |
1028 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1029 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
1030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1031 | else | |
1032 | if test -n "$YACC"; then | |
1033 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1034 | else | |
1035 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1036 | for ac_dir in $PATH; do | |
1037 | test -z "$ac_dir" && ac_dir=. | |
1038 | if test -f $ac_dir/$ac_word; then | |
1039 | ac_cv_prog_YACC="$ac_prog" | |
1040 | break | |
1041 | fi | |
1042 | done | |
1043 | IFS="$ac_save_ifs" | |
1044 | fi | |
1045 | fi | |
1046 | YACC="$ac_cv_prog_YACC" | |
1047 | if test -n "$YACC"; then | |
1048 | echo "$ac_t""$YACC" 1>&6 | |
1049 | else | |
1050 | echo "$ac_t""no" 1>&6 | |
1051 | fi | |
1052 | ||
1053 | test -n "$YACC" && break | |
1054 | done | |
1055 | test -n "$YACC" || YACC="yacc" | |
1056 | ||
d8efbc66 FF |
1057 | for ac_prog in mawk gawk nawk awk |
1058 | do | |
1059 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1060 | set dummy $ac_prog; ac_word=$2 | |
1061 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1062 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then | |
1063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1064 | else | |
1065 | if test -n "$AWK"; then | |
1066 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1067 | else | |
1068 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1069 | for ac_dir in $PATH; do | |
1070 | test -z "$ac_dir" && ac_dir=. | |
1071 | if test -f $ac_dir/$ac_word; then | |
1072 | ac_cv_prog_AWK="$ac_prog" | |
1073 | break | |
1074 | fi | |
1075 | done | |
1076 | IFS="$ac_save_ifs" | |
1077 | fi | |
1078 | fi | |
1079 | AWK="$ac_cv_prog_AWK" | |
1080 | if test -n "$AWK"; then | |
1081 | echo "$ac_t""$AWK" 1>&6 | |
1082 | else | |
1083 | echo "$ac_t""no" 1>&6 | |
1084 | fi | |
1085 | ||
1086 | test -n "$AWK" && break | |
1087 | done | |
1088 | ||
5436fc65 C |
1089 | |
1090 | ac_aux_dir= | |
1091 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
1092 | if test -f $ac_dir/install-sh; then | |
1093 | ac_aux_dir=$ac_dir | |
1094 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1095 | break | |
1096 | elif test -f $ac_dir/install.sh; then | |
1097 | ac_aux_dir=$ac_dir | |
1098 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1099 | break | |
1100 | fi | |
1101 | done | |
1102 | if test -z "$ac_aux_dir"; then | |
1103 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; } | |
1104 | fi | |
1105 | ac_config_guess=$ac_aux_dir/config.guess | |
1106 | ac_config_sub=$ac_aux_dir/config.sub | |
1107 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1108 | ||
1109 | ||
1110 | # Do some error checking and defaulting for the host and target type. | |
1111 | # The inputs are: | |
1112 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
1113 | # | |
1114 | # The rules are: | |
1115 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
229b2c87 | 1116 | # same time. |
5436fc65 C |
1117 | # 2. Host defaults to nonopt. |
1118 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1119 | # as determined by config.guess. | |
1120 | # 4. Target and build default to nonopt. | |
1121 | # 5. If nonopt is not specified, then target and build default to host. | |
1122 | ||
1123 | # The aliases save the names the user supplied, while $host etc. | |
1124 | # will get canonicalized. | |
1125 | case $host---$target---$nonopt in | |
1126 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1127 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1128 | esac | |
1129 | ||
1130 | ||
1131 | # Make sure we can run config.sub. | |
1132 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1133 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1134 | fi | |
1135 | ||
1136 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1137 | ||
1138 | host_alias=$host | |
1139 | case "$host_alias" in | |
1140 | NONE) | |
1141 | case $nonopt in | |
1142 | NONE) | |
1143 | if host_alias=`$ac_config_guess`; then : | |
1144 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1145 | fi ;; | |
1146 | *) host_alias=$nonopt ;; | |
1147 | esac ;; | |
1148 | esac | |
1149 | ||
1150 | host=`$ac_config_sub $host_alias` | |
1151 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
1152 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
1153 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
1154 | echo "$ac_t""$host" 1>&6 | |
1155 | ||
1156 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1157 | ||
1158 | target_alias=$target | |
1159 | case "$target_alias" in | |
1160 | NONE) | |
1161 | case $nonopt in | |
1162 | NONE) target_alias=$host_alias ;; | |
1163 | *) target_alias=$nonopt ;; | |
1164 | esac ;; | |
1165 | esac | |
1166 | ||
1167 | target=`$ac_config_sub $target_alias` | |
1168 | target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
1169 | target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
1170 | target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
1171 | echo "$ac_t""$target" 1>&6 | |
1172 | ||
1173 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1174 | ||
1175 | build_alias=$build | |
1176 | case "$build_alias" in | |
1177 | NONE) | |
1178 | case $nonopt in | |
1179 | NONE) build_alias=$host_alias ;; | |
1180 | *) build_alias=$nonopt ;; | |
1181 | esac ;; | |
1182 | esac | |
1183 | ||
1184 | build=`$ac_config_sub $build_alias` | |
1185 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
1186 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
1187 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
1188 | echo "$ac_t""$build" 1>&6 | |
1189 | ||
1190 | test "$host_alias" != "$target_alias" && | |
1191 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1192 | NONENONEs,x,x, && | |
1193 | program_prefix=${target_alias}- | |
1194 | ||
1195 | if test "$program_transform_name" = s,x,x,; then | |
1196 | program_transform_name= | |
1197 | else | |
229b2c87 DE |
1198 | # Double any \ or $. echo might interpret backslashes. |
1199 | cat <<\EOF_SED > conftestsed | |
1200 | s,\\,\\\\,g; s,\$,$$,g | |
1201 | EOF_SED | |
5436fc65 C |
1202 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
1203 | rm -f conftestsed | |
1204 | fi | |
1205 | test "$program_prefix" != NONE && | |
1206 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
1207 | # Use a double $ so make ignores it. | |
1208 | test "$program_suffix" != NONE && | |
1209 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
1210 | ||
1211 | # sed with no file args requires a program. | |
1212 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
1213 | ||
1214 | ||
2b576293 C |
1215 | # If we cannot run a trivial program, we must be cross compiling. |
1216 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 | |
1217 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then | |
1218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1219 | else | |
1220 | if test "$cross_compiling" = yes; then | |
1221 | ac_cv_c_cross=yes | |
1222 | else | |
1223 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1224 | #line 1225 "configure" |
2b576293 C |
1225 | #include "confdefs.h" |
1226 | main(){return(0);} | |
1227 | EOF | |
d8efbc66 | 1228 | { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
2b576293 C |
1229 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1230 | ac_cv_c_cross=no | |
1231 | else | |
1232 | ac_cv_c_cross=yes | |
1233 | fi | |
1234 | fi | |
1235 | rm -fr conftest* | |
1236 | fi | |
229b2c87 | 1237 | |
3d78f532 | 1238 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
229b2c87 | 1239 | cross_compiling=$ac_cv_c_cross |
2b576293 C |
1240 | |
1241 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
1242 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
1243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1244 | else | |
1245 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1246 | #line 1247 "configure" |
2b576293 C |
1247 | #include "confdefs.h" |
1248 | #include <stdlib.h> | |
1249 | #include <stdarg.h> | |
1250 | #include <string.h> | |
1251 | #include <float.h> | |
1252 | EOF | |
3dedc867 | 1253 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d8efbc66 | 1254 | { (eval echo configure:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2b576293 C |
1255 | ac_err=`grep -v '^ *+' conftest.out` |
1256 | if test -z "$ac_err"; then | |
1257 | rm -rf conftest* | |
1258 | ac_cv_header_stdc=yes | |
1259 | else | |
1260 | echo "$ac_err" >&5 | |
1261 | rm -rf conftest* | |
1262 | ac_cv_header_stdc=no | |
1263 | fi | |
1264 | rm -f conftest* | |
1265 | ||
1266 | if test $ac_cv_header_stdc = yes; then | |
1267 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1268 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1269 | #line 1270 "configure" |
2b576293 C |
1270 | #include "confdefs.h" |
1271 | #include <string.h> | |
1272 | EOF | |
1273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1274 | egrep "memchr" >/dev/null 2>&1; then | |
1275 | : | |
1276 | else | |
1277 | rm -rf conftest* | |
1278 | ac_cv_header_stdc=no | |
1279 | fi | |
1280 | rm -f conftest* | |
1281 | ||
1282 | fi | |
1283 | ||
1284 | if test $ac_cv_header_stdc = yes; then | |
1285 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1286 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1287 | #line 1288 "configure" |
2b576293 C |
1288 | #include "confdefs.h" |
1289 | #include <stdlib.h> | |
1290 | EOF | |
1291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1292 | egrep "free" >/dev/null 2>&1; then | |
1293 | : | |
1294 | else | |
1295 | rm -rf conftest* | |
1296 | ac_cv_header_stdc=no | |
1297 | fi | |
1298 | rm -f conftest* | |
1299 | ||
1300 | fi | |
1301 | ||
1302 | if test $ac_cv_header_stdc = yes; then | |
1303 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1304 | if test "$cross_compiling" = yes; then | |
229b2c87 | 1305 | : |
2b576293 C |
1306 | else |
1307 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1308 | #line 1309 "configure" |
2b576293 C |
1309 | #include "confdefs.h" |
1310 | #include <ctype.h> | |
1311 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1312 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1313 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1314 | int main () { int i; for (i = 0; i < 256; i++) | |
1315 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1316 | exit (0); } | |
1317 | ||
1318 | EOF | |
d8efbc66 | 1319 | { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
2b576293 C |
1320 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1321 | : | |
1322 | else | |
1323 | ac_cv_header_stdc=no | |
1324 | fi | |
1325 | fi | |
1326 | rm -fr conftest* | |
1327 | fi | |
1328 | fi | |
229b2c87 | 1329 | |
2b576293 C |
1330 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
1331 | if test $ac_cv_header_stdc = yes; then | |
1332 | cat >> confdefs.h <<\EOF | |
1333 | #define STDC_HEADERS 1 | |
1334 | EOF | |
1335 | ||
1336 | fi | |
1337 | ||
d8efbc66 | 1338 | for ac_hdr in limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h sys/procfs.h link.h endian.h |
1a494973 C |
1339 | do |
1340 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` | |
1341 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1342 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1344 | else | |
1345 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1346 | #line 1347 "configure" |
1a494973 C |
1347 | #include "confdefs.h" |
1348 | #include <$ac_hdr> | |
1349 | EOF | |
3dedc867 | 1350 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d8efbc66 | 1351 | { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1a494973 C |
1352 | ac_err=`grep -v '^ *+' conftest.out` |
1353 | if test -z "$ac_err"; then | |
1354 | rm -rf conftest* | |
1355 | eval "ac_cv_header_$ac_safe=yes" | |
1356 | else | |
1357 | echo "$ac_err" >&5 | |
1358 | rm -rf conftest* | |
1359 | eval "ac_cv_header_$ac_safe=no" | |
1360 | fi | |
1361 | rm -f conftest* | |
1362 | fi | |
1363 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1364 | echo "$ac_t""yes" 1>&6 | |
229b2c87 | 1365 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
1a494973 C |
1366 | cat >> confdefs.h <<EOF |
1367 | #define $ac_tr_hdr 1 | |
1368 | EOF | |
1369 | ||
1370 | else | |
1371 | echo "$ac_t""no" 1>&6 | |
1372 | fi | |
1373 | done | |
1374 | ||
2b576293 C |
1375 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
1376 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then | |
1377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1378 | else | |
1379 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1380 | #line 1381 "configure" |
2b576293 C |
1381 | #include "confdefs.h" |
1382 | #include <sys/types.h> | |
1383 | #include <sys/stat.h> | |
1384 | ||
1385 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
1386 | # if S_ISBLK (S_IFDIR) | |
1387 | You lose. | |
1388 | # endif | |
1389 | #endif | |
1390 | ||
1391 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
1392 | # if S_ISBLK (S_IFCHR) | |
1393 | You lose. | |
1394 | # endif | |
1395 | #endif | |
1396 | ||
1397 | #if defined(S_ISLNK) && defined(S_IFREG) | |
1398 | # if S_ISLNK (S_IFREG) | |
1399 | You lose. | |
1400 | # endif | |
1401 | #endif | |
1402 | ||
1403 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
1404 | # if S_ISSOCK (S_IFREG) | |
1405 | You lose. | |
1406 | # endif | |
1407 | #endif | |
1408 | ||
1409 | EOF | |
1410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1411 | egrep "You lose" >/dev/null 2>&1; then | |
1412 | rm -rf conftest* | |
1413 | ac_cv_header_stat_broken=yes | |
1414 | else | |
1415 | rm -rf conftest* | |
1416 | ac_cv_header_stat_broken=no | |
1417 | fi | |
1418 | rm -f conftest* | |
1419 | ||
1420 | fi | |
229b2c87 | 1421 | |
2b576293 C |
1422 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
1423 | if test $ac_cv_header_stat_broken = yes; then | |
1424 | cat >> confdefs.h <<\EOF | |
1425 | #define STAT_MACROS_BROKEN 1 | |
1426 | EOF | |
1427 | ||
1428 | fi | |
1429 | ||
1430 | ||
38d715a4 | 1431 | for ac_func in setpgid sbrk |
72ae15f6 FF |
1432 | do |
1433 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1434 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1436 | else | |
1437 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1438 | #line 1439 "configure" |
72ae15f6 FF |
1439 | #include "confdefs.h" |
1440 | /* System header to define __stub macros and hopefully few prototypes, | |
1441 | which can conflict with char $ac_func(); below. */ | |
1442 | #include <assert.h> | |
1443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1444 | char $ac_func(); | |
1445 | ||
1446 | int main() { return 0; } | |
1447 | int t() { | |
1448 | ||
1449 | /* The GNU C library defines this for functions which it implements | |
1450 | to always fail with ENOSYS. Some functions are actually named | |
1451 | something starting with __ and the normal name is an alias. */ | |
1452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1453 | choke me | |
1454 | #else | |
1455 | $ac_func(); | |
1456 | #endif | |
1457 | ||
1458 | ; return 0; } | |
1459 | EOF | |
d8efbc66 | 1460 | if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
72ae15f6 FF |
1461 | rm -rf conftest* |
1462 | eval "ac_cv_func_$ac_func=yes" | |
1463 | else | |
1464 | rm -rf conftest* | |
1465 | eval "ac_cv_func_$ac_func=no" | |
1466 | fi | |
1467 | rm -f conftest* | |
1468 | ||
1469 | fi | |
1470 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1471 | echo "$ac_t""yes" 1>&6 | |
1472 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1473 | cat >> confdefs.h <<EOF | |
1474 | #define $ac_tr_func 1 | |
1475 | EOF | |
1476 | ||
1477 | else | |
1478 | echo "$ac_t""no" 1>&6 | |
1479 | fi | |
1480 | done | |
1481 | ||
1482 | ||
4708ac65 | 1483 | echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6 |
07b77f5c | 1484 | if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then |
4708ac65 FF |
1485 | echo $ac_n "(cached) $ac_c" 1>&6 |
1486 | else | |
1487 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1488 | #line 1489 "configure" |
4708ac65 FF |
1489 | #include "confdefs.h" |
1490 | #include <sys/procfs.h> | |
1491 | int main() { return 0; } | |
1492 | int t() { | |
1493 | gregset_t *gregsetp = 0 | |
1494 | ; return 0; } | |
1495 | EOF | |
d8efbc66 | 1496 | if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
4708ac65 | 1497 | rm -rf conftest* |
07b77f5c | 1498 | gdb_cv_have_gregset_t=yes |
4708ac65 FF |
1499 | else |
1500 | rm -rf conftest* | |
07b77f5c | 1501 | gdb_cv_have_gregset_t=no |
4708ac65 FF |
1502 | fi |
1503 | rm -f conftest* | |
1504 | ||
1505 | fi | |
1506 | ||
07b77f5c FF |
1507 | echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6 |
1508 | if test $gdb_cv_have_gregset_t = yes; then | |
4708ac65 FF |
1509 | cat >> confdefs.h <<\EOF |
1510 | #define HAVE_GREGSET_T 1 | |
1511 | EOF | |
1512 | ||
1513 | fi | |
1514 | ||
1515 | echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6 | |
07b77f5c | 1516 | if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then |
4708ac65 FF |
1517 | echo $ac_n "(cached) $ac_c" 1>&6 |
1518 | else | |
1519 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1520 | #line 1521 "configure" |
4708ac65 FF |
1521 | #include "confdefs.h" |
1522 | #include <sys/procfs.h> | |
1523 | int main() { return 0; } | |
1524 | int t() { | |
1525 | fpregset_t *fpregsetp = 0 | |
1526 | ; return 0; } | |
1527 | EOF | |
d8efbc66 | 1528 | if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
4708ac65 | 1529 | rm -rf conftest* |
07b77f5c | 1530 | gdb_cv_have_fpregset_t=yes |
4708ac65 FF |
1531 | else |
1532 | rm -rf conftest* | |
07b77f5c | 1533 | gdb_cv_have_fpregset_t=no |
4708ac65 FF |
1534 | fi |
1535 | rm -f conftest* | |
1536 | ||
1537 | fi | |
1538 | ||
07b77f5c FF |
1539 | echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6 |
1540 | if test $gdb_cv_have_fpregset_t = yes; then | |
4708ac65 FF |
1541 | cat >> confdefs.h <<\EOF |
1542 | #define HAVE_FPREGSET_T 1 | |
1543 | EOF | |
1544 | ||
1545 | fi | |
1546 | ||
aa220473 | 1547 | |
07b77f5c | 1548 | echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6 |
aa220473 SG |
1549 | if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then |
1550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1551 | else | |
1552 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1553 | #line 1554 "configure" |
aa220473 SG |
1554 | #include "confdefs.h" |
1555 | ||
1556 | int main() { return 0; } | |
1557 | int t() { | |
1558 | long double foo; | |
1559 | ; return 0; } | |
1560 | EOF | |
d8efbc66 | 1561 | if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
aa220473 SG |
1562 | rm -rf conftest* |
1563 | ac_cv_c_long_double=yes | |
1564 | else | |
1565 | rm -rf conftest* | |
1566 | ac_cv_c_long_double=no | |
1567 | fi | |
1568 | rm -f conftest* | |
1569 | ||
1570 | fi | |
1571 | ||
1572 | echo "$ac_t""$ac_cv_c_long_double" 1>&6 | |
1573 | if test $ac_cv_c_long_double = yes; then | |
1574 | cat >> confdefs.h <<\EOF | |
1575 | #define HAVE_LONG_DOUBLE 1 | |
1576 | EOF | |
1577 | ||
1578 | fi | |
1579 | ||
07b77f5c FF |
1580 | |
1581 | echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6 | |
1582 | if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then | |
1583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1584 | else | |
1585 | if test "$cross_compiling" = yes; then | |
1586 | gdb_cv_printf_has_long_double=no | |
1587 | else | |
1588 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1589 | #line 1590 "configure" |
07b77f5c FF |
1590 | #include "confdefs.h" |
1591 | ||
1592 | int main () { | |
1593 | char buf[16]; | |
1594 | long double f = 3.141592653; | |
1595 | sprintf (buf, "%Lg", f); | |
1596 | return (strncmp ("3.14159", buf, 7)); | |
1597 | } | |
1598 | EOF | |
d8efbc66 | 1599 | { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
07b77f5c FF |
1600 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1601 | gdb_cv_printf_has_long_double=yes | |
1602 | else | |
1603 | gdb_cv_printf_has_long_double=no | |
1604 | fi | |
1605 | fi | |
1606 | rm -fr conftest* | |
1607 | fi | |
1608 | ||
1609 | if test $gdb_cv_printf_has_long_double = yes; then | |
1610 | cat >> confdefs.h <<\EOF | |
1611 | #define PRINTF_HAS_LONG_DOUBLE 1 | |
1612 | EOF | |
1613 | ||
1614 | fi | |
1615 | echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6 | |
1616 | ||
229b2c87 DE |
1617 | for ac_func in valloc getpagesize |
1618 | do | |
1619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1620 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1622 | else | |
1623 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1624 | #line 1625 "configure" |
229b2c87 DE |
1625 | #include "confdefs.h" |
1626 | /* System header to define __stub macros and hopefully few prototypes, | |
1627 | which can conflict with char $ac_func(); below. */ | |
1628 | #include <assert.h> | |
1629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1630 | char $ac_func(); | |
1631 | ||
1632 | int main() { return 0; } | |
1633 | int t() { | |
1634 | ||
1635 | /* The GNU C library defines this for functions which it implements | |
1636 | to always fail with ENOSYS. Some functions are actually named | |
1637 | something starting with __ and the normal name is an alias. */ | |
1638 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1639 | choke me | |
1640 | #else | |
1641 | $ac_func(); | |
1642 | #endif | |
1643 | ||
1644 | ; return 0; } | |
1645 | EOF | |
d8efbc66 | 1646 | if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
229b2c87 DE |
1647 | rm -rf conftest* |
1648 | eval "ac_cv_func_$ac_func=yes" | |
1649 | else | |
1650 | rm -rf conftest* | |
1651 | eval "ac_cv_func_$ac_func=no" | |
1652 | fi | |
1653 | rm -f conftest* | |
1654 | ||
1655 | fi | |
1656 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1657 | echo "$ac_t""yes" 1>&6 | |
1658 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1659 | cat >> confdefs.h <<EOF | |
1660 | #define $ac_tr_func 1 | |
1661 | EOF | |
1662 | ||
1663 | else | |
1664 | echo "$ac_t""no" 1>&6 | |
1665 | fi | |
1666 | done | |
1667 | ||
2b576293 C |
1668 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
1669 | if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then | |
1670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1671 | else | |
1672 | if test "$cross_compiling" = yes; then | |
1673 | ac_cv_func_mmap=no | |
1674 | else | |
1675 | cat > conftest.$ac_ext <<EOF | |
d8efbc66 | 1676 | #line 1677 "configure" |
2b576293 C |
1677 | #include "confdefs.h" |
1678 | ||
1679 | /* Thanks to Mike Haertel and Jim Avera for this test. */ | |
1680 | #include <sys/types.h> | |
1681 | #include <fcntl.h> | |
1682 | #include <sys/mman.h> | |
1683 | ||
2b576293 C |
1684 | #ifndef HAVE_GETPAGESIZE |
1685 | # include <sys/param.h> | |
1686 | # ifdef EXEC_PAGESIZE | |
1687 | # define getpagesize() EXEC_PAGESIZE | |
1688 | # else | |
1689 | # ifdef NBPG | |
1690 | # define getpagesize() NBPG * CLSIZE | |
1691 | # ifndef CLSIZE | |
1692 | # define CLSIZE 1 | |
1693 | # endif | |
1694 | # else | |
1695 | # ifdef NBPC | |
1696 | # define getpagesize() NBPC | |
1697 | # else | |
1698 | # define getpagesize() PAGESIZE /* SVR4 */ | |
1699 | # endif | |
1700 | # endif | |
1701 | # endif | |
1702 | #endif | |
1703 | ||
229b2c87 | 1704 | #ifndef HAVE_VALLOC |
2b576293 C |
1705 | # define valloc malloc |
1706 | #endif | |
1707 | ||
1708 | #ifdef __cplusplus | |
1709 | extern "C" { void *valloc(unsigned), *malloc(unsigned); } | |
1710 | #else | |
1711 | char *valloc(), *malloc(); | |
1712 | #endif | |
1713 | ||
1714 | int | |
1715 | main() | |
1716 | { | |
1717 | char *buf1, *buf2, *buf3; | |
1718 | int i = getpagesize(), j; | |
229b2c87 | 1719 | int i2 = i * 2; |
2b576293 C |
1720 | int fd; |
1721 | ||
1722 | buf1 = (char *)valloc(i2); | |
1723 | buf2 = (char *)valloc(i); | |
1724 | buf3 = (char *)malloc(i2); | |
1725 | for (j = 0; j < i2; ++j) | |
1726 | *(buf1 + j) = rand(); | |
1727 | fd = open("conftestmmap", O_CREAT | O_RDWR, 0666); | |
1728 | write(fd, buf1, i2); | |
1729 | mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0); | |
1730 | for (j = 0; j < i; ++j) | |
1731 | if (*(buf1 + j) != *(buf2 + j)) | |
1732 | exit(1); | |
1733 | lseek(fd, (long)i, 0); | |
1734 | read(fd, buf2, i); /* read into mapped memory -- file should not change */ | |
1735 | /* (it does in i386 SVR4.0 - Jim Avera, [email protected]) */ | |
1736 | lseek(fd, (long)0, 0); | |
1737 | read(fd, buf3, i2); | |
1738 | for (j = 0; j < i2; ++j) | |
1739 | if (*(buf1 + j) != *(buf3 + j)) | |
1740 | exit(1); | |
1741 | exit(0); | |
1742 | } | |
1743 | ||
1744 | EOF | |
d8efbc66 | 1745 | { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
2b576293 C |
1746 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1747 | ac_cv_func_mmap=yes | |
1748 | else | |
1749 | ac_cv_func_mmap=no | |
1750 | fi | |
1751 | fi | |
1752 | rm -fr conftest* | |
1753 | fi | |
229b2c87 | 1754 | |
2b576293 C |
1755 | echo "$ac_t""$ac_cv_func_mmap" 1>&6 |
1756 | if test $ac_cv_func_mmap = yes; then | |
1757 | cat >> confdefs.h <<\EOF | |
1758 | #define HAVE_MMAP 1 | |
1759 | EOF | |
1760 | ||
1761 | fi | |
1762 | ||
5436fc65 | 1763 | |
47ef0da5 SG |
1764 | |
1765 | echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6 | |
1766 | if test -f /usr/lib/libthread_db.so.1 ; then | |
1767 | echo "$ac_t""yes" 1>&6 | |
1768 | LIBS="$LIBS /usr/lib/libthread_db.so.1" | |
1769 | THREAD_DB_OBS=sol-thread.o | |
1770 | cat >> confdefs.h <<\EOF | |
1771 | #define HAVE_THREAD_DB_LIB 1 | |
1772 | EOF | |
1773 | ||
1774 | else | |
1775 | echo "$ac_t""no" 1>&6 | |
1776 | fi | |
1777 | ||
1778 | ||
5436fc65 C |
1779 | ENABLE_CFLAGS= |
1780 | ENABLE_CLIBS= | |
1781 | ENABLE_OBS= | |
1782 | ||
1783 | # Check whether --enable-netrom or --disable-netrom was given. | |
229b2c87 DE |
1784 | if test "${enable_netrom+set}" = set; then |
1785 | enableval="$enable_netrom" | |
5436fc65 C |
1786 | case "${enableval}" in |
1787 | yes) enable_netrom=yes ;; | |
1788 | no) enable_netrom=no ;; | |
1789 | *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;; | |
1790 | esac | |
1791 | fi | |
1792 | ||
1793 | ||
1794 | if test "${enable_netrom}" = "yes"; then | |
1795 | ENABLE_OBS="${ENABLE_OBS} remote-nrom.o" | |
1796 | fi | |
1797 | ||
188c635f SG |
1798 | # start-sanitize-gm |
1799 | ENABLE_GM= | |
1800 | ||
1801 | # Check whether --enable-gm or --disable-gm was given. | |
229b2c87 DE |
1802 | if test "${enable_gm+set}" = set; then |
1803 | enableval="$enable_gm" | |
188c635f | 1804 | case "${enableval}" in |
1a57cd09 | 1805 | yes) ENABLE_OBS="${ENABLE_OBS} gmagic.o" |
188c635f SG |
1806 | ENABLE_CFLAGS=-DGENERAL_MAGIC |
1807 | ;; | |
1808 | no) ;; | |
1809 | *) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;; | |
1810 | esac | |
1811 | fi | |
1812 | ||
1813 | ||
1814 | # end-sanitize-gm | |
1815 | ||
3c0bf315 | 1816 | # Check whether --enable-sim-powerpc or --disable-sim-powerpc was given. |
229b2c87 DE |
1817 | if test "${enable_sim_powerpc+set}" = set; then |
1818 | enableval="$enable_sim_powerpc" | |
3c0bf315 MM |
1819 | case "${enableval}" in |
1820 | yes) powerpc_sim=yes ;; | |
1821 | no) powerpc_sim=no ;; | |
1822 | *) { echo "configure: error: bad value ${enableval} given for sim-powerpc option" 1>&2; exit 1; } ;; | |
1823 | esac | |
1824 | else | |
1825 | if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi | |
1826 | fi | |
1827 | ||
1828 | ||
5436fc65 C |
1829 | # start-sanitize-gdbtk |
1830 | ENABLE_GDBTK= | |
1831 | ||
1832 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
229b2c87 DE |
1833 | if test "${enable_gdbtk+set}" = set; then |
1834 | enableval="$enable_gdbtk" | |
5436fc65 | 1835 | case "${enableval}" in |
0fe1522a SG |
1836 | yes) |
1837 | case "$host" in | |
1838 | *go32*) | |
1839 | echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2 | |
1840 | enable_gdbtk=no ;; | |
1841 | *) | |
1842 | enable_gdbtk=yes ;; | |
1843 | esac ;; | |
1844 | no) | |
1845 | enable_gdbtk=no ;; | |
1846 | *) | |
1847 | { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;; | |
5436fc65 | 1848 | esac |
0fe1522a SG |
1849 | else |
1850 | ||
1851 | # Default is on for everything but go32 | |
1852 | case "$host" in | |
1853 | *go32*) | |
1854 | ;; | |
1855 | *) | |
1856 | enable_gdbtk=yes ;; | |
1857 | esac | |
1858 | ||
5436fc65 C |
1859 | fi |
1860 | ||
1861 | ||
1862 | if test "${enable_gdbtk}" = "yes"; then | |
0fe1522a | 1863 | |
a2b63bbd | 1864 | # If we find X, set shell vars x_includes and x_libraries to the |
5436fc65 C |
1865 | # paths, otherwise set no_x=yes. |
1866 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
1867 | # --without-x overrides everything else, but does not touch the cache. | |
1868 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
1869 | ||
1870 | # Check whether --with-x or --without-x was given. | |
229b2c87 DE |
1871 | if test "${with_x+set}" = set; then |
1872 | withval="$with_x" | |
5436fc65 C |
1873 | : |
1874 | fi | |
1875 | ||
3dedc867 | 1876 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5436fc65 | 1877 | if test "x$with_x" = xno; then |
3dedc867 FF |
1878 | # The user explicitly disabled X. |
1879 | have_x=disabled | |
5436fc65 C |
1880 | else |
1881 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
3dedc867 FF |
1882 | # Both variables are already set. |
1883 | have_x=yes | |
5436fc65 | 1884 | else |
3dedc867 | 1885 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
5436fc65 C |
1886 | echo $ac_n "(cached) $ac_c" 1>&6 |
1887 | else | |
1888 | # One or both of the vars are not set, and there is no cached value. | |
3dedc867 | 1889 | ac_x_includes=NO ac_x_libraries=NO |
5436fc65 C |
1890 | rm -fr conftestdir |
1891 | if mkdir conftestdir; then | |
1892 | cd conftestdir | |
1893 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
1894 | cat > Imakefile <<'EOF' | |
1895 | acfindx: | |
1896 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
1897 | EOF | |
1898 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
5436fc65 | 1899 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
229b2c87 | 1900 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
5436fc65 | 1901 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
dedcc91d SC |
1902 | for ac_extension in a so sl; do |
1903 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
1904 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
1905 | ac_im_usrlibdir=$ac_im_libdir; break | |
1906 | fi | |
1907 | done | |
5436fc65 C |
1908 | # Screen out bogus values from the imake configuration. |
1909 | case "$ac_im_incroot" in | |
1910 | /usr/include) ;; | |
1911 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
1912 | esac | |
1913 | case "$ac_im_usrlibdir" in | |
1914 | /usr/lib | /lib) ;; | |
1915 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
1916 | esac | |
1917 | fi | |
1918 | cd .. | |
1919 | rm -fr conftestdir | |
1920 | fi | |
1921 | ||
3dedc867 FF |
1922 | if test "$ac_x_includes" = NO; then |
1923 | # Guess where to find include files, by looking for this one X11 .h file. | |
1924 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
1925 | ||
1926 | # First, try using that file with no special directory specified. | |
5436fc65 | 1927 | cat > conftest.$ac_ext <<EOF |
47ef0da5 | 1928 | #line 1929 "configure" |
5436fc65 C |
1929 | #include "confdefs.h" |
1930 | #include <$x_direct_test_include> | |
1931 | EOF | |
3dedc867 | 1932 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
47ef0da5 | 1933 | { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5436fc65 C |
1934 | ac_err=`grep -v '^ *+' conftest.out` |
1935 | if test -z "$ac_err"; then | |
1936 | rm -rf conftest* | |
3dedc867 FF |
1937 | # We can compile using X headers with no special include directory. |
1938 | ac_x_includes= | |
5436fc65 C |
1939 | else |
1940 | echo "$ac_err" >&5 | |
1941 | rm -rf conftest* | |
3dedc867 FF |
1942 | # Look for the header file in a standard set of common directories. |
1943 | for ac_dir in \ | |
5436fc65 C |
1944 | /usr/X11R6/include \ |
1945 | /usr/X11R5/include \ | |
1946 | /usr/X11R4/include \ | |
1947 | \ | |
1948 | /usr/include/X11R6 \ | |
1949 | /usr/include/X11R5 \ | |
1950 | /usr/include/X11R4 \ | |
1951 | \ | |
1952 | /usr/local/X11R6/include \ | |
1953 | /usr/local/X11R5/include \ | |
1954 | /usr/local/X11R4/include \ | |
1955 | \ | |
1956 | /usr/local/include/X11R6 \ | |
1957 | /usr/local/include/X11R5 \ | |
1958 | /usr/local/include/X11R4 \ | |
1959 | \ | |
1960 | /usr/X11/include \ | |
1961 | /usr/include/X11 \ | |
1962 | /usr/local/X11/include \ | |
1963 | /usr/local/include/X11 \ | |
1964 | \ | |
1965 | /usr/X386/include \ | |
1966 | /usr/x386/include \ | |
1967 | /usr/XFree86/include/X11 \ | |
1968 | \ | |
1969 | /usr/include \ | |
1970 | /usr/local/include \ | |
1971 | /usr/unsupported/include \ | |
1972 | /usr/athena/include \ | |
1973 | /usr/local/x11r5/include \ | |
1974 | /usr/lpp/Xamples/include \ | |
1975 | \ | |
1976 | /usr/openwin/include \ | |
1977 | /usr/openwin/share/include \ | |
1978 | ; \ | |
1979 | do | |
1980 | if test -r "$ac_dir/$x_direct_test_include"; then | |
3dedc867 | 1981 | ac_x_includes=$ac_dir |
5436fc65 C |
1982 | break |
1983 | fi | |
1984 | done | |
1985 | fi | |
1986 | rm -f conftest* | |
3dedc867 | 1987 | fi # $ac_x_includes = NO |
5436fc65 | 1988 | |
3dedc867 FF |
1989 | if test "$ac_x_libraries" = NO; then |
1990 | # Check for the libraries. | |
1991 | ||
1992 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
1993 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
1994 | ||
1995 | # See if we find them without any special options. | |
1996 | # Don't add to $LIBS permanently. | |
1997 | ac_save_LIBS="$LIBS" | |
1998 | LIBS="-l$x_direct_test_library $LIBS" | |
5436fc65 | 1999 | cat > conftest.$ac_ext <<EOF |
47ef0da5 | 2000 | #line 2001 "configure" |
5436fc65 C |
2001 | #include "confdefs.h" |
2002 | ||
2003 | int main() { return 0; } | |
2004 | int t() { | |
2005 | ${x_direct_test_function}() | |
2006 | ; return 0; } | |
2007 | EOF | |
47ef0da5 | 2008 | if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
5436fc65 | 2009 | rm -rf conftest* |
3dedc867 FF |
2010 | LIBS="$ac_save_LIBS" |
2011 | # We can link X programs with no special library path. | |
2012 | ac_x_libraries= | |
5436fc65 C |
2013 | else |
2014 | rm -rf conftest* | |
2015 | LIBS="$ac_save_LIBS" | |
2016 | # First see if replacing the include by lib works. | |
2017 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
2018 | /usr/X11R6/lib \ | |
2019 | /usr/X11R5/lib \ | |
2020 | /usr/X11R4/lib \ | |
2021 | \ | |
2022 | /usr/lib/X11R6 \ | |
2023 | /usr/lib/X11R5 \ | |
2024 | /usr/lib/X11R4 \ | |
2025 | \ | |
2026 | /usr/local/X11R6/lib \ | |
2027 | /usr/local/X11R5/lib \ | |
2028 | /usr/local/X11R4/lib \ | |
2029 | \ | |
2030 | /usr/local/lib/X11R6 \ | |
2031 | /usr/local/lib/X11R5 \ | |
2032 | /usr/local/lib/X11R4 \ | |
2033 | \ | |
2034 | /usr/X11/lib \ | |
2035 | /usr/lib/X11 \ | |
2036 | /usr/local/X11/lib \ | |
2037 | /usr/local/lib/X11 \ | |
2038 | \ | |
2039 | /usr/X386/lib \ | |
2040 | /usr/x386/lib \ | |
2041 | /usr/XFree86/lib/X11 \ | |
2042 | \ | |
2043 | /usr/lib \ | |
2044 | /usr/local/lib \ | |
2045 | /usr/unsupported/lib \ | |
2046 | /usr/athena/lib \ | |
2047 | /usr/local/x11r5/lib \ | |
2048 | /usr/lpp/Xamples/lib \ | |
2049 | \ | |
2050 | /usr/openwin/lib \ | |
2051 | /usr/openwin/share/lib \ | |
2052 | ; \ | |
2053 | do | |
2054 | for ac_extension in a so sl; do | |
2055 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
3dedc867 | 2056 | ac_x_libraries=$ac_dir |
5436fc65 C |
2057 | break 2 |
2058 | fi | |
2059 | done | |
2060 | done | |
2061 | fi | |
2062 | rm -f conftest* | |
2063 | ||
3dedc867 FF |
2064 | fi # $ac_x_libraries = NO |
2065 | ||
2066 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
2067 | # Didn't find X anywhere. Cache the known absence of X. | |
2068 | ac_cv_have_x="have_x=no" | |
5436fc65 | 2069 | else |
3dedc867 FF |
2070 | # Record where we found X for the cache. |
2071 | ac_cv_have_x="have_x=yes \ | |
2072 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5436fc65 C |
2073 | fi |
2074 | fi | |
2075 | fi | |
3dedc867 | 2076 | eval "$ac_cv_have_x" |
5436fc65 C |
2077 | fi # $with_x != no |
2078 | ||
3dedc867 FF |
2079 | if test "$have_x" != yes; then |
2080 | echo "$ac_t""$have_x" 1>&6 | |
2081 | no_x=yes | |
5436fc65 | 2082 | else |
3dedc867 | 2083 | # If each of the values was on the command line, it overrides each guess. |
5436fc65 C |
2084 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
2085 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
3dedc867 FF |
2086 | # Update the cache value to reflect the command line values. |
2087 | ac_cv_have_x="have_x=yes \ | |
2088 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
5436fc65 C |
2089 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
2090 | fi | |
2091 | ||
3dedc867 | 2092 | if test "$no_x" = yes; then |
5436fc65 C |
2093 | # Not all programs may use this symbol, but it does not hurt to define it. |
2094 | X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING" | |
2095 | else | |
2096 | if test -n "$x_includes"; then | |
2097 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
2098 | fi | |
2099 | ||
2100 | # It would be nice to have a more robust check for the -R ld option than | |
2101 | # just checking for Solaris. | |
2102 | # It would also be nice to do this for all -L options, not just this one. | |
2103 | if test -n "$x_libraries"; then | |
2104 | X_LIBS="$X_LIBS -L$x_libraries" | |
2105 | if test "`(uname) 2>/dev/null`" = SunOS && | |
2106 | uname -r | grep '^5' >/dev/null; then | |
229b2c87 | 2107 | X_LIBS="$X_LIBS -R $x_libraries" |
5436fc65 C |
2108 | fi |
2109 | fi | |
2110 | ||
2111 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
2112 | ||
2113 | ac_save_LDFLAGS="$LDFLAGS" | |
2114 | LDFLAGS="$LDFLAGS -L$x_libraries" | |
2115 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
2116 | # check for ICE first), but we must link in the order -lSM -lICE or | |
2117 | # we get undefined symbols. So assume we have SM if we have ICE. | |
2118 | # These have to be linked with before -lX11, unlike the other | |
2119 | # libraries we check for below, so use a different variable. | |
2120 | # [email protected], [email protected]. | |
2121 | echo $ac_n "checking for -lICE""... $ac_c" 1>&6 | |
3dedc867 | 2122 | ac_lib_var=`echo ICE_IceConnectionNumber | tr '.-/+' '___p'` |
229b2c87 | 2123 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5436fc65 C |
2124 | echo $ac_n "(cached) $ac_c" 1>&6 |
2125 | else | |
2126 | ac_save_LIBS="$LIBS" | |
2127 | LIBS="-lICE $LIBS" | |
2128 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2129 | #line 2130 "configure" |
5436fc65 C |
2130 | #include "confdefs.h" |
2131 | ||
2132 | int main() { return 0; } | |
2133 | int t() { | |
2134 | IceConnectionNumber() | |
2135 | ; return 0; } | |
2136 | EOF | |
47ef0da5 | 2137 | if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
5436fc65 | 2138 | rm -rf conftest* |
229b2c87 | 2139 | eval "ac_cv_lib_$ac_lib_var=yes" |
5436fc65 C |
2140 | else |
2141 | rm -rf conftest* | |
229b2c87 | 2142 | eval "ac_cv_lib_$ac_lib_var=no" |
5436fc65 C |
2143 | fi |
2144 | rm -f conftest* | |
2145 | LIBS="$ac_save_LIBS" | |
2146 | ||
2147 | fi | |
229b2c87 | 2148 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5436fc65 C |
2149 | echo "$ac_t""yes" 1>&6 |
2150 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
2151 | else | |
2152 | echo "$ac_t""no" 1>&6 | |
2153 | fi | |
2154 | ||
2155 | LDFLAGS="$ac_save_LDFLAGS" | |
2156 | ||
2157 | # Check for system-dependent libraries X programs must link with. | |
2158 | ||
2159 | if test "$ISC" = yes; then | |
2160 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
2161 | else | |
2162 | # [email protected] says this is needed for Ultrix, if the X | |
2163 | # libraries were built with DECnet support. And [email protected] says | |
2164 | # the Alpha needs dnet_stub (dnet does not exist). | |
2165 | echo $ac_n "checking for -ldnet""... $ac_c" 1>&6 | |
3dedc867 | 2166 | ac_lib_var=`echo dnet_dnet_ntoa | tr '.-/+' '___p'` |
229b2c87 | 2167 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5436fc65 C |
2168 | echo $ac_n "(cached) $ac_c" 1>&6 |
2169 | else | |
2170 | ac_save_LIBS="$LIBS" | |
2171 | LIBS="-ldnet $LIBS" | |
2172 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2173 | #line 2174 "configure" |
5436fc65 C |
2174 | #include "confdefs.h" |
2175 | ||
2176 | int main() { return 0; } | |
2177 | int t() { | |
2178 | dnet_ntoa() | |
2179 | ; return 0; } | |
2180 | EOF | |
47ef0da5 | 2181 | if { (eval echo configure:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
5436fc65 | 2182 | rm -rf conftest* |
229b2c87 | 2183 | eval "ac_cv_lib_$ac_lib_var=yes" |
5436fc65 C |
2184 | else |
2185 | rm -rf conftest* | |
229b2c87 | 2186 | eval "ac_cv_lib_$ac_lib_var=no" |
5436fc65 C |
2187 | fi |
2188 | rm -f conftest* | |
2189 | LIBS="$ac_save_LIBS" | |
2190 | ||
2191 | fi | |
229b2c87 | 2192 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5436fc65 C |
2193 | echo "$ac_t""yes" 1>&6 |
2194 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
2195 | else | |
2196 | echo "$ac_t""no" 1>&6 | |
2197 | fi | |
2198 | ||
84f737e9 | 2199 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
5436fc65 | 2200 | echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6 |
3dedc867 | 2201 | ac_lib_var=`echo dnet_stub_dnet_ntoa | tr '.-/+' '___p'` |
229b2c87 | 2202 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5436fc65 C |
2203 | echo $ac_n "(cached) $ac_c" 1>&6 |
2204 | else | |
2205 | ac_save_LIBS="$LIBS" | |
2206 | LIBS="-ldnet_stub $LIBS" | |
2207 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2208 | #line 2209 "configure" |
5436fc65 C |
2209 | #include "confdefs.h" |
2210 | ||
2211 | int main() { return 0; } | |
2212 | int t() { | |
2213 | dnet_ntoa() | |
2214 | ; return 0; } | |
2215 | EOF | |
47ef0da5 | 2216 | if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
5436fc65 | 2217 | rm -rf conftest* |
229b2c87 | 2218 | eval "ac_cv_lib_$ac_lib_var=yes" |
5436fc65 C |
2219 | else |
2220 | rm -rf conftest* | |
229b2c87 | 2221 | eval "ac_cv_lib_$ac_lib_var=no" |
5436fc65 C |
2222 | fi |
2223 | rm -f conftest* | |
2224 | LIBS="$ac_save_LIBS" | |
2225 | ||
2226 | fi | |
229b2c87 | 2227 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5436fc65 C |
2228 | echo "$ac_t""yes" 1>&6 |
2229 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
2230 | else | |
2231 | echo "$ac_t""no" 1>&6 | |
2232 | fi | |
2233 | ||
2234 | fi | |
2235 | ||
2236 | # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, | |
2237 | # to get the SysV transport functions. | |
2238 | # Not sure which flavor of 386 UNIX this is, but it seems harmless to | |
2239 | # check for it. | |
2240 | echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 | |
3dedc867 | 2241 | ac_lib_var=`echo nsl_t_accept | tr '.-/+' '___p'` |
229b2c87 | 2242 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5436fc65 C |
2243 | echo $ac_n "(cached) $ac_c" 1>&6 |
2244 | else | |
2245 | ac_save_LIBS="$LIBS" | |
2246 | LIBS="-lnsl $LIBS" | |
2247 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2248 | #line 2249 "configure" |
5436fc65 C |
2249 | #include "confdefs.h" |
2250 | ||
2251 | int main() { return 0; } | |
2252 | int t() { | |
2253 | t_accept() | |
2254 | ; return 0; } | |
2255 | EOF | |
47ef0da5 | 2256 | if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
5436fc65 | 2257 | rm -rf conftest* |
229b2c87 | 2258 | eval "ac_cv_lib_$ac_lib_var=yes" |
5436fc65 C |
2259 | else |
2260 | rm -rf conftest* | |
229b2c87 | 2261 | eval "ac_cv_lib_$ac_lib_var=no" |
5436fc65 C |
2262 | fi |
2263 | rm -f conftest* | |
2264 | LIBS="$ac_save_LIBS" | |
2265 | ||
2266 | fi | |
229b2c87 | 2267 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5436fc65 C |
2268 | echo "$ac_t""yes" 1>&6 |
2269 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
2270 | else | |
2271 | echo "$ac_t""no" 1>&6 | |
2272 | fi | |
2273 | ||
2274 | ||
2275 | # [email protected] says without -lsocket, | |
2276 | # socket/setsockopt and other routines are undefined under SCO ODT 2.0. | |
2277 | # But -lsocket is broken on IRIX, according to [email protected]. | |
2278 | if test "`(uname) 2>/dev/null`" != IRIX; then | |
2279 | echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 | |
3dedc867 | 2280 | ac_lib_var=`echo socket_socket | tr '.-/+' '___p'` |
229b2c87 | 2281 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5436fc65 C |
2282 | echo $ac_n "(cached) $ac_c" 1>&6 |
2283 | else | |
2284 | ac_save_LIBS="$LIBS" | |
2285 | LIBS="-lsocket $LIBS" | |
2286 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2287 | #line 2288 "configure" |
5436fc65 C |
2288 | #include "confdefs.h" |
2289 | ||
2290 | int main() { return 0; } | |
2291 | int t() { | |
2292 | socket() | |
2293 | ; return 0; } | |
2294 | EOF | |
47ef0da5 | 2295 | if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
5436fc65 | 2296 | rm -rf conftest* |
229b2c87 | 2297 | eval "ac_cv_lib_$ac_lib_var=yes" |
5436fc65 C |
2298 | else |
2299 | rm -rf conftest* | |
229b2c87 | 2300 | eval "ac_cv_lib_$ac_lib_var=no" |
5436fc65 C |
2301 | fi |
2302 | rm -f conftest* | |
2303 | LIBS="$ac_save_LIBS" | |
2304 | ||
2305 | fi | |
229b2c87 | 2306 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
5436fc65 C |
2307 | echo "$ac_t""yes" 1>&6 |
2308 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket" | |
2309 | else | |
2310 | echo "$ac_t""no" 1>&6 | |
2311 | fi | |
2312 | ||
2313 | fi | |
2314 | fi | |
2315 | fi | |
2316 | ||
2317 | ||
a2b63bbd | 2318 | |
4e327047 | 2319 | |
5436fc65 | 2320 | # |
4e327047 TT |
2321 | # Ok, lets find the tcl source trees so we can use the headers |
2322 | # Warning: transition of version 9 to 10 will break this algorithm | |
2323 | # because 10 sorts before 9. We also look for just tcl. We have to | |
2324 | # be careful that we don't match stuff like tclX by accident. | |
2325 | # the alternative search directory is involked by --with-tclinclude | |
5436fc65 | 2326 | # |
4e327047 TT |
2327 | no_tcl=true |
2328 | echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6 | |
2329 | # Check whether --with-tclinclude or --without-tclinclude was given. | |
229b2c87 DE |
2330 | if test "${with_tclinclude+set}" = set; then |
2331 | withval="$with_tclinclude" | |
4e327047 TT |
2332 | with_tclinclude=${withval} |
2333 | fi | |
2334 | ||
2335 | if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then | |
2336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2337 | else | |
2338 | ||
2339 | # first check to see if --with-tclinclude was specified | |
2340 | if test x"${with_tclinclude}" != x ; then | |
2341 | if test -f ${with_tclinclude}/tclInt.h ; then | |
2342 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
5436fc65 | 2343 | else |
4e327047 TT |
2344 | { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; } |
2345 | fi | |
2346 | fi | |
2347 | # next check in private source directory | |
2348 | # | |
2349 | # since ls returns lowest version numbers first, reverse its output | |
2350 | if test x"${ac_cv_c_tclh}" = x ; then | |
2351 | for i in \ | |
2352 | ${srcdir}/../tcl \ | |
2353 | `ls -dr ${srcdir}/../tcl[0-9]* 2>/dev/null` \ | |
2354 | ${srcdir}/../../tcl \ | |
2355 | `ls -dr ${srcdir}/../../tcl[0-9]* 2>/dev/null` \ | |
2356 | ${srcdir}/../../../tcl \ | |
2357 | `ls -dr ${srcdir}/../../../tcl[0-9]* 2>/dev/null ` ; do | |
2358 | if test -f $i/tclInt.h ; then | |
2359 | ac_cv_c_tclh=`(cd $i; pwd)` | |
2360 | break | |
2361 | fi | |
2362 | # Tcl 7.5 and greater puts headers in subdirectory. | |
2363 | if test -f $i/generic/tclInt.h ; then | |
2364 | ac_cv_c_tclh=`(cd $i; pwd)`/generic | |
2365 | fi | |
2366 | done | |
2367 | fi | |
2368 | # finally check in a few common install locations | |
2369 | # | |
2370 | # since ls returns lowest version numbers first, reverse its output | |
2371 | if test x"${ac_cv_c_tclh}" = x ; then | |
2372 | for i in \ | |
2373 | `ls -dr /usr/local/src/tcl[0-9]* 2>/dev/null` \ | |
2374 | `ls -dr /usr/local/lib/tcl[0-9]* 2>/dev/null` \ | |
2375 | /usr/local/src/tcl \ | |
2376 | /usr/local/lib/tcl \ | |
2377 | ${prefix}/include ; do | |
2378 | if test -f $i/tclInt.h ; then | |
2379 | ac_cv_c_tclh=`(cd $i; pwd)` | |
2380 | break | |
2381 | fi | |
2382 | done | |
2383 | fi | |
2384 | # see if one is installed | |
2385 | if test x"${ac_cv_c_tclh}" = x ; then | |
2386 | ac_safe=`echo "tclInt.h" | tr './\055' '___'` | |
2387 | echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6 | |
5436fc65 C |
2388 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2390 | else | |
2391 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2392 | #line 2393 "configure" |
5436fc65 | 2393 | #include "confdefs.h" |
4e327047 | 2394 | #include <tclInt.h> |
5436fc65 | 2395 | EOF |
3dedc867 | 2396 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
47ef0da5 | 2397 | { (eval echo configure:2398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5436fc65 C |
2398 | ac_err=`grep -v '^ *+' conftest.out` |
2399 | if test -z "$ac_err"; then | |
2400 | rm -rf conftest* | |
2401 | eval "ac_cv_header_$ac_safe=yes" | |
2402 | else | |
2403 | echo "$ac_err" >&5 | |
2404 | rm -rf conftest* | |
2405 | eval "ac_cv_header_$ac_safe=no" | |
2406 | fi | |
2407 | rm -f conftest* | |
2408 | fi | |
2409 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2410 | echo "$ac_t""yes" 1>&6 | |
4e327047 | 2411 | ac_cv_c_tclh=installed |
5436fc65 C |
2412 | else |
2413 | echo "$ac_t""no" 1>&6 | |
4e327047 | 2414 | ac_cv_c_tclh="" |
5436fc65 C |
2415 | fi |
2416 | ||
4e327047 TT |
2417 | fi |
2418 | ||
2419 | fi | |
2420 | ||
2421 | if test x"${ac_cv_c_tclh}" = x ; then | |
2422 | TCLHDIR="# no Tcl private headers found" | |
2423 | { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; } | |
2424 | fi | |
2425 | if test x"${ac_cv_c_tclh}" != x ; then | |
2426 | no_tcl="" | |
2427 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
2428 | echo "$ac_t""is installed" 1>&6 | |
2429 | TCLHDIR="" | |
2430 | else | |
2431 | echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6 | |
2432 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. | |
2433 | TCLHDIR="-I${ac_cv_c_tclh}" | |
5436fc65 | 2434 | fi |
5436fc65 | 2435 | fi |
4e327047 TT |
2436 | |
2437 | echo $ac_n "checking Tcl version""... $ac_c" 1>&6 | |
2438 | rm -rf tclmajor tclminor | |
2439 | orig_includes="$CPPFLAGS" | |
2440 | ||
2441 | if test x"${TCLHDIR}" != x ; then | |
2442 | CPPFLAGS="$CPPFLAGS $TCLHDIR" | |
2443 | fi | |
2444 | ||
2445 | if test "$cross_compiling" = yes; then | |
2446 | { echo "configure: error: can't be cross compiled" 1>&2; exit 1; } | |
2447 | ||
2448 | else | |
2449 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2450 | #line 2451 "configure" |
4e327047 TT |
2451 | #include "confdefs.h" |
2452 | ||
2453 | #include <stdio.h> | |
2454 | #include "tcl.h" | |
2455 | main() { | |
2456 | FILE *maj = fopen("tclmajor","w"); | |
2457 | FILE *min = fopen("tclminor","w"); | |
2458 | fprintf(maj,"%d",TCL_MAJOR_VERSION); | |
2459 | fprintf(min,"%d",TCL_MINOR_VERSION); | |
2460 | fclose(maj); | |
2461 | fclose(min); | |
2462 | return 0; | |
2463 | } | |
2464 | EOF | |
47ef0da5 | 2465 | { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
4e327047 TT |
2466 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
2467 | tclmajor=`cat tclmajor` | |
2468 | tclminor=`cat tclminor` | |
2469 | tclversion=$tclmajor.$tclminor | |
2470 | echo "$ac_t""$tclversion" 1>&6 | |
2471 | rm -f tclmajor tclminor | |
2472 | ||
2473 | else | |
2474 | echo "$ac_t""can't happen" 1>&6 | |
2475 | ||
2476 | fi | |
5436fc65 | 2477 | fi |
4e327047 TT |
2478 | rm -fr conftest* |
2479 | CPPFLAGS="${orig_includes}" | |
2480 | ||
5436fc65 | 2481 | |
4e327047 TT |
2482 | |
2483 | ||
2484 | ||
5436fc65 | 2485 | # |
4e327047 | 2486 | # Ok, lets find the tcl library |
5436fc65 | 2487 | # First, look for one uninstalled. |
4e327047 | 2488 | # the alternative search directory is invoked by --with-tcllib |
5436fc65 | 2489 | # |
4e327047 TT |
2490 | |
2491 | if test $tclmajor -ge 7 -a $tclminor -ge 4 ; then | |
2492 | installedtcllibroot=tcl$tclversion | |
2493 | else | |
2494 | installedtcllibroot=tcl | |
2495 | fi | |
2496 | ||
2497 | if test x"${no_tcl}" = x ; then | |
2498 | # we reset no_tcl incase something fails here | |
2499 | no_tcl=true | |
2500 | # Check whether --with-tcllib or --without-tcllib was given. | |
229b2c87 DE |
2501 | if test "${with_tcllib+set}" = set; then |
2502 | withval="$with_tcllib" | |
4e327047 TT |
2503 | with_tcllib=${withval} |
2504 | fi | |
2505 | ||
2506 | echo $ac_n "checking for Tcl library""... $ac_c" 1>&6 | |
2507 | if eval "test \"`echo '$''{'ac_cv_c_tcllib'+set}'`\" = set"; then | |
2508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2509 | else | |
2510 | ||
2511 | # First check to see if --with-tcllib was specified. | |
2512 | # This requires checking for both the installed and uninstalled name-styles | |
2513 | # since we have no idea if it's installed or not. | |
2514 | if test x"${with_tcllib}" != x ; then | |
2515 | if test -f "${with_tcllib}/lib$installedtcllibroot.so" ; then | |
2516 | ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/lib$installedtcllibroot.so | |
2517 | elif test -f "${with_tcllib}/libtcl.so" ; then | |
2518 | ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/libtcl.so | |
2519 | # then look for a freshly built statically linked library | |
2520 | # if Makefile exists we assume its configured and libtcl will be built first. | |
2521 | elif test -f "${with_tcllib}/lib$installedtcllibroot.a" ; then | |
2522 | ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/lib$installedtcllibroot.a | |
2523 | elif test -f "${with_tcllib}/libtcl.a" ; then | |
2524 | ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/libtcl.a | |
2525 | else | |
2526 | { echo "configure: error: ${with_tcllib} directory doesn't contain libraries" 1>&2; exit 1; } | |
2527 | fi | |
5436fc65 | 2528 | fi |
4e327047 TT |
2529 | # then check for a private Tcl library |
2530 | # Since these are uninstalled, use the simple lib name root. | |
2531 | if test x"${ac_cv_c_tcllib}" = x ; then | |
2532 | for i in \ | |
2533 | ../tcl \ | |
2534 | `ls -dr ../tcl[0-9]* 2>/dev/null` \ | |
2535 | ../../tcl \ | |
2536 | `ls -dr ../../tcl[0-9]* 2>/dev/null` \ | |
2537 | ../../../tcl \ | |
2538 | `ls -dr ../../../tcl[0-9]* 2>/dev/null` ; do | |
2539 | # Tcl 7.5 and greater puts library in subdir. Look there first. | |
2540 | if test -f "$i/unix/libtcl.so" ; then | |
2541 | ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.so | |
2542 | break | |
2543 | elif test -f "$i/unix/libtcl.a" -o -f "$i/unix/Makefile"; then | |
2544 | ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.a | |
2545 | break | |
2546 | # look for a freshly built dynamically linked library | |
2547 | elif test -f "$i/libtcl.so" ; then | |
2548 | ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.so | |
2549 | break | |
2550 | ||
2551 | # then look for a freshly built statically linked library | |
2552 | # if Makefile exists we assume its configured and libtcl will be | |
2553 | # built first. | |
2554 | elif test -f "$i/libtcl.a" -o -f "$i/Makefile" ; then | |
2555 | ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.a | |
2556 | break | |
2557 | fi | |
2558 | done | |
5436fc65 | 2559 | fi |
4e327047 TT |
2560 | # check in a few common install locations |
2561 | if test x"${ac_cv_c_tcllib}" = x ; then | |
2562 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
2563 | # first look for a freshly built dynamically linked library | |
2564 | if test -f "$i/lib$installedtcllibroot.so" ; then | |
2565 | ac_cv_c_tcllib=`(cd $i; pwd)`/lib$installedtcllibroot.so | |
2566 | break | |
2567 | # then look for a freshly built statically linked library | |
2568 | # if Makefile exists we assume its configured and libtcl will be built first. | |
2569 | elif test -f "$i/lib$installedtcllibroot.a" -o -f "$i/Makefile" ; then | |
2570 | ac_cv_c_tcllib=`(cd $i; pwd)`/lib$installedtcllibroot.a | |
2571 | break | |
2572 | fi | |
2573 | done | |
5436fc65 | 2574 | fi |
4e327047 TT |
2575 | # check in a few other private locations |
2576 | if test x"${ac_cv_c_tcllib}" = x ; then | |
2577 | for i in \ | |
2578 | ${srcdir}/../tcl \ | |
2579 | `ls -dr ${srcdir}/../tcl[0-9]* 2>/dev/null` ; do | |
2580 | # Tcl 7.5 and greater puts library in subdir. Look there first. | |
2581 | if test -f "$i/unix/libtcl.so" ; then | |
2582 | ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.so | |
2583 | break | |
2584 | elif test -f "$i/unix/libtcl.a" -o -f "$i/unix/Makefile"; then | |
2585 | ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.a | |
2586 | break | |
2587 | # look for a freshly built dynamically linked library | |
2588 | elif test -f "$i/libtcl.so" ; then | |
2589 | ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.so | |
2590 | break | |
2591 | ||
2592 | # then look for a freshly built statically linked library | |
2593 | # if Makefile exists we assume its configured and libtcl will be | |
2594 | # built first. | |
2595 | elif test -f "$i/libtcl.a" -o -f "$i/Makefile" ; then | |
2596 | ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.a | |
2597 | break | |
2598 | fi | |
2599 | done | |
2600 | fi | |
2601 | ||
2602 | # see if one is conveniently installed with the compiler | |
2603 | if test x"${ac_cv_c_tcllib}" = x ; then | |
2604 | orig_libs="$LIBS" | |
2605 | LIBS="$LIBS -l$installedtcllibroot -lm" | |
2606 | if test "$cross_compiling" = yes; then | |
2607 | ac_cv_c_tclib="-l$installedtcllibroot" | |
2608 | else | |
2609 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2610 | #line 2611 "configure" |
4e327047 TT |
2611 | #include "confdefs.h" |
2612 | ||
2613 | Tcl_AppInit() | |
2614 | { exit(0); } | |
2615 | EOF | |
47ef0da5 | 2616 | { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
4e327047 TT |
2617 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
2618 | ac_cv_c_tcllib="-l$installedtcllibroot" | |
2619 | else | |
2620 | ac_cv_c_tcllib="" | |
2621 | ||
2622 | fi | |
2623 | fi | |
2624 | rm -fr conftest* | |
2625 | LIBS="${orig_libs}" | |
2626 | fi | |
2627 | ||
5436fc65 C |
2628 | fi |
2629 | ||
4e327047 TT |
2630 | if test x"${ac_cv_c_tcllib}" = x ; then |
2631 | TCLLIB="# no Tcl library found" | |
2632 | echo "configure: warning: Can't find Tcl library" 1>&2 | |
2633 | else | |
2634 | TCLLIB=${ac_cv_c_tcllib} | |
2635 | echo "$ac_t""found $TCLLIB" 1>&6 | |
2636 | no_tcl= | |
5436fc65 | 2637 | fi |
5436fc65 C |
2638 | fi |
2639 | ||
5436fc65 C |
2640 | |
2641 | ||
2642 | ||
2643 | ||
a2b63bbd | 2644 | |
4e327047 | 2645 | |
5436fc65 | 2646 | # |
4e327047 TT |
2647 | # Ok, lets find the tk source trees so we can use the headers |
2648 | # If the directory (presumably symlink) named "tk" exists, use that one | |
2649 | # in preference to any others. Same logic is used when choosing library | |
2650 | # and again with Tcl. The search order is the best place to look first, then in | |
2651 | # decreasing significance. The loop breaks if the trigger file is found. | |
2652 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
2653 | # directory. This converts the path from a relative to an absolute, so | |
2654 | # recursive cache variables for the path will work right. We check all | |
2655 | # the possible paths in one loop rather than many seperate loops to speed | |
2656 | # things up. | |
2657 | # the alternative search directory is invoked by --with-tkinclude | |
5436fc65 | 2658 | # |
4e327047 TT |
2659 | echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6 |
2660 | # Check whether --with-tkinclude or --without-tkinclude was given. | |
229b2c87 DE |
2661 | if test "${with_tkinclude+set}" = set; then |
2662 | withval="$with_tkinclude" | |
4e327047 TT |
2663 | with_tkinclude=${withval} |
2664 | fi | |
2665 | ||
2666 | no_tk=true | |
2667 | if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then | |
2668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2669 | else | |
2670 | ||
2671 | # first check to see if --with-tkinclude was specified | |
2672 | if test x"${with_tkinclude}" != x ; then | |
2673 | if test -f ${with_tkinclude}/tk.h ; then | |
2674 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
5436fc65 | 2675 | else |
4e327047 TT |
2676 | { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; } |
2677 | fi | |
2678 | fi | |
2679 | # next check in private source directory | |
2680 | # | |
2681 | # since ls returns lowest version numbers first, reverse the entire list | |
2682 | # and search for the worst fit, overwriting it with better fits as we find them | |
2683 | if test x"${ac_cv_c_tkh}" = x ; then | |
2684 | for i in \ | |
2685 | ${srcdir}/../tk \ | |
2686 | `ls -dr ${srcdir}/../tk[0-9]* 2>/dev/null` \ | |
2687 | ${srcdir}/../../tk \ | |
2688 | `ls -dr ${srcdir}/../../tk[0-9]* 2>/dev/null` \ | |
2689 | ${srcdir}/../../../tk \ | |
2690 | `ls -dr ${srcdir}/../../../tk[0-9]* 2>/dev/null ` ; do | |
2691 | if test -f $i/tk.h ; then | |
2692 | ac_cv_c_tkh=`(cd $i; pwd)` | |
2693 | break | |
2694 | fi | |
2695 | # Tk 4.1 and greater puts this in a subdir. | |
2696 | if test -f $i/generic/tk.h; then | |
2697 | ac_cv_c_tkh=`(cd $i; pwd)`/generic | |
2698 | fi | |
2699 | done | |
2700 | fi | |
2701 | # finally check in a few common install locations | |
2702 | # | |
2703 | # since ls returns lowest version numbers first, reverse the entire list | |
2704 | # and search for the worst fit, overwriting it with better fits as we find them | |
2705 | if test x"${ac_cv_c_tkh}" = x ; then | |
2706 | for i in \ | |
2707 | `ls -dr /usr/local/src/tk[0-9]* 2>/dev/null` \ | |
2708 | `ls -dr /usr/local/lib/tk[0-9]* 2>/dev/null` \ | |
2709 | /usr/local/src/tk \ | |
2710 | /usr/local/lib/tk \ | |
2711 | ${prefix}/include ; do | |
2712 | if test -f $i/tk.h ; then | |
2713 | ac_cv_c_tkh=`(cd $i; pwd)` | |
2714 | break | |
2715 | fi | |
2716 | done | |
2717 | fi | |
2718 | # see if one is installed | |
2719 | if test x"${ac_cv_c_tkh}" = x ; then | |
2720 | ac_safe=`echo "tk.h" | tr './\055' '___'` | |
2721 | echo $ac_n "checking for tk.h""... $ac_c" 1>&6 | |
5436fc65 C |
2722 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2724 | else | |
2725 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2726 | #line 2727 "configure" |
5436fc65 | 2727 | #include "confdefs.h" |
4e327047 | 2728 | #include <tk.h> |
5436fc65 | 2729 | EOF |
3dedc867 | 2730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
47ef0da5 | 2731 | { (eval echo configure:2732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5436fc65 C |
2732 | ac_err=`grep -v '^ *+' conftest.out` |
2733 | if test -z "$ac_err"; then | |
2734 | rm -rf conftest* | |
2735 | eval "ac_cv_header_$ac_safe=yes" | |
2736 | else | |
2737 | echo "$ac_err" >&5 | |
2738 | rm -rf conftest* | |
2739 | eval "ac_cv_header_$ac_safe=no" | |
2740 | fi | |
2741 | rm -f conftest* | |
2742 | fi | |
2743 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2744 | echo "$ac_t""yes" 1>&6 | |
4e327047 | 2745 | ac_cv_c_tkh=installed |
5436fc65 C |
2746 | else |
2747 | echo "$ac_t""no" 1>&6 | |
2748 | fi | |
2749 | ||
4e327047 TT |
2750 | fi |
2751 | ||
2752 | fi | |
2753 | ||
2754 | if test x"${ac_cv_c_tkh}" != x ; then | |
2755 | no_tk="" | |
2756 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
2757 | echo "$ac_t""is installed" 1>&6 | |
2758 | TKHDIR="" | |
2759 | else | |
2760 | echo "$ac_t""found in $ac_cv_c_tkh" 1>&6 | |
2761 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. | |
2762 | TKHDIR="-I${ac_cv_c_tkh}" | |
5436fc65 C |
2763 | fi |
2764 | else | |
4e327047 TT |
2765 | TKHDIR="# no Tk directory found" |
2766 | echo "configure: warning: Can't find Tk private headers" 1>&2 | |
2767 | no_tk=true | |
5436fc65 C |
2768 | fi |
2769 | ||
4e327047 TT |
2770 | # if Tk is installed, extract the major/minor version |
2771 | if test x"${no_tk}" = x ; then | |
2772 | echo $ac_n "checking Tk version""... $ac_c" 1>&6 | |
2773 | rm -rf tkmajor tkminor | |
2774 | orig_includes="$CPPFLAGS" | |
2775 | ||
2776 | if test x"${TCLHDIR}" != x ; then | |
2777 | CPPFLAGS="$CPPFLAGS $TCLHDIR" | |
2778 | fi | |
2779 | if test x"${TKHDIR}" != x ; then | |
2780 | CPPFLAGS="$CPPFLAGS $TKHDIR" | |
2781 | fi | |
2782 | if test x"${x_includes}" != x -a x"${x_includes}" != xNONE ; then | |
2783 | CPPFLAGS="$CPPFLAGS -I$x_includes" | |
2784 | fi | |
2785 | ||
2786 | if test "$cross_compiling" = yes; then | |
2787 | { echo "configure: error: can't be cross compiled" 1>&2; exit 1; } | |
2788 | ||
2789 | else | |
2790 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2791 | #line 2792 "configure" |
4e327047 TT |
2792 | #include "confdefs.h" |
2793 | ||
2794 | #include <stdio.h> | |
2795 | #include "tk.h" | |
2796 | main() { | |
2797 | FILE *maj = fopen("tkmajor","w"); | |
2798 | FILE *min = fopen("tkminor","w"); | |
2799 | fprintf(maj,"%d",TK_MAJOR_VERSION); | |
2800 | fprintf(min,"%d",TK_MINOR_VERSION); | |
2801 | fclose(maj); | |
2802 | fclose(min); | |
2803 | return 0; | |
2804 | } | |
2805 | EOF | |
47ef0da5 | 2806 | { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
4e327047 TT |
2807 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
2808 | tkmajor=`cat tkmajor` | |
2809 | tkminor=`cat tkminor` | |
2810 | tkversion=$tkmajor.$tkminor | |
2811 | echo "$ac_t""$tkversion" 1>&6 | |
2812 | rm -f tkmajor tkminor | |
2813 | ||
2814 | else | |
2815 | { echo "configure: error: | |
2816 | cannot compile a simple X program - suspect your xmkmf is | |
2817 | misconfigured and is incorrectly reporting the location of your X | |
2818 | include or libraries - report this to your system admin" 1>&2; exit 1; } | |
2819 | fi | |
2820 | fi | |
2821 | rm -fr conftest* | |
2822 | CPPFLAGS="${orig_includes}" | |
2823 | fi | |
2824 | ||
2825 | ||
2826 | ||
2827 | ||
2828 | ||
2829 | ||
5436fc65 | 2830 | # |
4e327047 TT |
2831 | # Ok, lets find the tk library |
2832 | # First, look for the latest private (uninstalled) copy | |
2833 | # Notice that the destinations in backwards priority since the tests have | |
2834 | # no break. | |
2835 | # Then we look for either .a, .so, or Makefile. A Makefile is acceptable | |
2836 | # is it indicates the target has been configured and will (probably) | |
2837 | # soon be built. This allows an entire tree of Tcl software to be | |
2838 | # configured at once and then built. | |
2839 | # the alternative search directory is invoked by --with-tklib | |
5436fc65 | 2840 | # |
4e327047 TT |
2841 | |
2842 | if test x"${no_tk}" = x ; then | |
2843 | # reset no_tk incase something fails here | |
2844 | no_tk="true" | |
2845 | ||
2846 | if test $tkmajor -ge 4 ; then | |
2847 | installedtklibroot=tk$tkversion | |
2848 | else | |
2849 | installedtkllibroot=tk | |
5436fc65 | 2850 | fi |
4e327047 TT |
2851 | |
2852 | # Check whether --with-tklib or --without-tklib was given. | |
229b2c87 DE |
2853 | if test "${with_tklib+set}" = set; then |
2854 | withval="$with_tklib" | |
4e327047 | 2855 | with_tklib=${withval} |
5436fc65 | 2856 | fi |
4e327047 TT |
2857 | |
2858 | echo $ac_n "checking for Tk library""... $ac_c" 1>&6 | |
2859 | if eval "test \"`echo '$''{'ac_cv_c_tklib'+set}'`\" = set"; then | |
2860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2861 | else | |
2862 | ||
2863 | # first check to see if --with-tklib was specified | |
2864 | # This requires checking for both the installed and uninstalled name-styles | |
2865 | # since we have no idea if it's installed or not. | |
2866 | if test x"${with_tklib}" != x ; then | |
2867 | if test -f "${with_tklib}/lib$installedtklibroot.so" ; then | |
2868 | ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/lib$installedtklibroot.so | |
2869 | no_tk="" | |
2870 | elif test -f "${with_tklib}/libtk.so" ; then | |
2871 | ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/libtk.so | |
2872 | no_tk="" | |
2873 | # then look for a freshly built statically linked library | |
2874 | # if Makefile exists we assume its configured and libtk will be built | |
2875 | elif test -f "${with_tklib}/lib$installedtklibroot.a" ; then | |
2876 | ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/lib$installedtklibroot.a | |
2877 | no_tk="" | |
2878 | elif test -f "${with_tklib}/libtk.a" ; then | |
2879 | ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/libtk.a | |
2880 | no_tk="" | |
2881 | else | |
2882 | { echo "configure: error: ${with_tklib} directory doesn't contain libraries" 1>&2; exit 1; } | |
2883 | fi | |
5436fc65 | 2884 | fi |
4e327047 TT |
2885 | # then check for a private Tk library |
2886 | # Since these are uninstalled, use the simple lib name root. | |
2887 | if test x"${ac_cv_c_tklib}" = x ; then | |
2888 | for i in \ | |
2889 | ../tk \ | |
2890 | `ls -dr ../tk[0-9]* 2>/dev/null` \ | |
2891 | ../../tk \ | |
2892 | `ls -dr ../../tk[0-9]* 2>/dev/null` \ | |
2893 | ../../../tk \ | |
2894 | `ls -dr ../../../tk[0-9]* 2>/dev/null` ; do | |
2895 | # Tk 4.1 and greater puts things in subdirs. Check these first. | |
2896 | if test -f "$i/unix/libtk.so" ; then | |
2897 | ac_cv_c_tklib=`(cd $i; pwd)`/unix/libtk.so | |
2898 | no_tk= | |
2899 | break | |
2900 | elif test -f "$i/unix/libtk.a" -o -f "$i/unix/Makefile"; then | |
2901 | ac_cv_c_tklib=`(cd $i; pwd)`/unix/libtk.a | |
2902 | no_tk= | |
2903 | break | |
2904 | # look for a freshly built dynamically linked library | |
2905 | elif test -f "$i/libtk.so" ; then | |
2906 | ac_cv_c_tklib=`(cd $i; pwd)`/libtk.so | |
2907 | no_tk= | |
2908 | break | |
2909 | # then look for a freshly built statically linked library | |
2910 | # if Makefile exists we assume its configured and libtk will be built | |
2911 | elif test -f "$i/libtk.a" -o -f "$i/Makefile" ; then | |
2912 | ac_cv_c_tklib=`(cd $i; pwd)`/libtk.a | |
2913 | no_tk="" | |
2914 | break | |
2915 | fi | |
2916 | done | |
2917 | fi | |
2918 | # finally check in a few common install locations | |
2919 | if test x"${ac_cv_c_tklib}" = x ; then | |
2920 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
2921 | # first look for a freshly built dynamically linked library | |
2922 | if test -f "$i/lib$installedtklibroot.so" ; then | |
2923 | ac_cv_c_tklib=`(cd $i; pwd)`/lib$installedtklibroot.so | |
2924 | no_tk="" | |
2925 | break | |
2926 | # then look for a freshly built statically linked library | |
2927 | # if Makefile exists, we assume it's configured and libtcl will be built | |
2928 | elif test -f "$i/lib$installedtklibroot.a" -o -f "$i/Makefile" ; then | |
2929 | ac_cv_c_tklib=`(cd $i; pwd)`/lib$installedtklibroot.a | |
2930 | no_tk="" | |
2931 | break | |
2932 | fi | |
2933 | done | |
2934 | fi | |
2935 | # check in a few other private locations | |
2936 | if test x"${ac_cv_c_tklib}" = x ; then | |
2937 | for i in \ | |
2938 | ${srcdir}/../tk \ | |
2939 | `ls -dr ${srcdir}/../tk[0-9]* 2>/dev/null` ; do | |
2940 | # Tk 4.1 and greater puts things in subdirs. Check these first. | |
2941 | if test -f "$i/unix/libtk.so" ; then | |
2942 | ac_cv_c_tklib=`(cd $i; pwd)`/unix/libtk.so | |
2943 | no_tk= | |
2944 | break | |
2945 | elif test -f "$i/unix/libtk.a" -o -f "$i/unix/Makefile"; then | |
2946 | ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtk.a | |
2947 | no_tk= | |
2948 | break | |
2949 | # look for a freshly built dynamically linked library | |
2950 | elif test -f "$i/libtk.so" ; then | |
2951 | ac_cv_c_tklib=`(cd $i; pwd)`/libtk.so | |
2952 | no_tk="" | |
2953 | break | |
2954 | # then look for a freshly built statically linked library | |
2955 | # if Makefile exists, we assume it's configured and libtcl will be built | |
2956 | elif test -f "$i/libtk.a" -o -f "$i/Makefile" ; then | |
2957 | ac_cv_c_tklib=`(cd $i; pwd)`/libtk.a | |
2958 | no_tk="" | |
2959 | break | |
2960 | fi | |
2961 | done | |
2962 | fi | |
2963 | # see if one is conveniently installed with the compiler | |
2964 | if test x"${ac_cv_c_tklib}" = x ; then | |
2965 | ||
2966 | orig_libs="$LIBS" | |
2967 | LIBS="$LIBS -l$installedtklibroot $x_libraries $ac_cv_c_tcllib -lm" | |
2968 | if test "$cross_compiling" = yes; then | |
2969 | ac_cv_c_tklib="-l$installedtklibroot" | |
2970 | else | |
2971 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 2972 | #line 2973 "configure" |
4e327047 | 2973 | #include "confdefs.h" |
5436fc65 | 2974 | |
4e327047 TT |
2975 | Tcl_AppInit() |
2976 | { exit(0); } | |
2977 | EOF | |
47ef0da5 | 2978 | { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
4e327047 TT |
2979 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
2980 | ac_cv_c_tklib="-l$installedtklibroot" | |
5436fc65 | 2981 | else |
4e327047 TT |
2982 | ac_cv_c_tklib="" |
2983 | ||
2984 | fi | |
2985 | fi | |
2986 | rm -fr conftest* | |
2987 | LIBS="${orig_libs}" | |
2988 | fi | |
2989 | ||
2990 | fi | |
2991 | ||
2992 | if test x"${ac_cv_c_tklib}" = x ; then | |
2993 | TKLIB="# no Tk library found" | |
2994 | echo "configure: warning: Can't find Tk library" 1>&2 | |
2995 | else | |
2996 | TKLIB=$ac_cv_c_tklib | |
2997 | echo "$ac_t""found $TKLIB" 1>&6 | |
2998 | no_tk= | |
2999 | fi | |
5436fc65 C |
3000 | fi |
3001 | ||
3002 | ||
3003 | ||
3004 | ||
3005 | ||
1a57cd09 TT |
3006 | # Look for dynamic linking libraries that Tcl might need. This is |
3007 | # only done for Tcl 7.5 and greater. It would be good to look for and | |
3008 | # use the "configInfo" file that Tcl generates, but for now that is | |
3009 | # beyond us. | |
3010 | if test $tclmajor -ge 7 -a $tclminor -ge 5 ; then | |
3011 | echo $ac_n "checking for -ldl""... $ac_c" 1>&6 | |
3dedc867 | 3012 | ac_lib_var=`echo dl_main | tr '.-/+' '___p'` |
229b2c87 | 3013 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1a57cd09 TT |
3014 | echo $ac_n "(cached) $ac_c" 1>&6 |
3015 | else | |
3016 | ac_save_LIBS="$LIBS" | |
3017 | LIBS="-ldl $LIBS" | |
3018 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 3019 | #line 3020 "configure" |
1a57cd09 TT |
3020 | #include "confdefs.h" |
3021 | ||
3022 | int main() { return 0; } | |
3023 | int t() { | |
3024 | main() | |
3025 | ; return 0; } | |
3026 | EOF | |
47ef0da5 | 3027 | if { (eval echo configure:3028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
1a57cd09 | 3028 | rm -rf conftest* |
229b2c87 | 3029 | eval "ac_cv_lib_$ac_lib_var=yes" |
1a57cd09 TT |
3030 | else |
3031 | rm -rf conftest* | |
229b2c87 | 3032 | eval "ac_cv_lib_$ac_lib_var=no" |
1a57cd09 TT |
3033 | fi |
3034 | rm -f conftest* | |
3035 | LIBS="$ac_save_LIBS" | |
3036 | ||
3037 | fi | |
229b2c87 | 3038 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1a57cd09 | 3039 | echo "$ac_t""yes" 1>&6 |
229b2c87 | 3040 | ac_tr_lib=HAVE_LIB`echo dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
1a57cd09 TT |
3041 | cat >> confdefs.h <<EOF |
3042 | #define $ac_tr_lib 1 | |
3043 | EOF | |
3044 | ||
3045 | LIBS="-ldl $LIBS" | |
3046 | ||
3047 | else | |
3048 | echo "$ac_t""no" 1>&6 | |
3049 | echo $ac_n "checking for -ldld""... $ac_c" 1>&6 | |
3dedc867 | 3050 | ac_lib_var=`echo dld_main | tr '.-/+' '___p'` |
229b2c87 | 3051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1a57cd09 TT |
3052 | echo $ac_n "(cached) $ac_c" 1>&6 |
3053 | else | |
3054 | ac_save_LIBS="$LIBS" | |
3055 | LIBS="-ldld $LIBS" | |
3056 | cat > conftest.$ac_ext <<EOF | |
47ef0da5 | 3057 | #line 3058 "configure" |
1a57cd09 TT |
3058 | #include "confdefs.h" |
3059 | ||
3060 | int main() { return 0; } | |
3061 | int t() { | |
3062 | main() | |
3063 | ; return 0; } | |
3064 | EOF | |
47ef0da5 | 3065 | if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
1a57cd09 | 3066 | rm -rf conftest* |
229b2c87 | 3067 | eval "ac_cv_lib_$ac_lib_var=yes" |
1a57cd09 TT |
3068 | else |
3069 | rm -rf conftest* | |
229b2c87 | 3070 | eval "ac_cv_lib_$ac_lib_var=no" |
1a57cd09 TT |
3071 | fi |
3072 | rm -f conftest* | |
3073 | LIBS="$ac_save_LIBS" | |
3074 | ||
3075 | fi | |
229b2c87 | 3076 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1a57cd09 | 3077 | echo "$ac_t""yes" 1>&6 |
229b2c87 | 3078 | ac_tr_lib=HAVE_LIB`echo dld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
1a57cd09 TT |
3079 | cat >> confdefs.h <<EOF |
3080 | #define $ac_tr_lib 1 | |
3081 | EOF | |
3082 | ||
3083 | LIBS="-ldld $LIBS" | |
3084 | ||
3085 | else | |
3086 | echo "$ac_t""no" 1>&6 | |
3087 | fi | |
3088 | ||
3089 | fi | |
3090 | ||
3091 | fi | |
3092 | ||
a2b63bbd | 3093 | ENABLE_GDBTK=1 |
66efdff9 | 3094 | |
a2b63bbd JM |
3095 | if test "x$no_x" != "xyes"; then |
3096 | if test "x$x_includes" != "x" ; | |
3097 | then | |
3098 | X_CFLAGS="-I$x_includes" | |
3099 | else | |
3100 | X_CFLAGS="" | |
3101 | fi | |
3102 | ||
3103 | if test "x$x_libraries" != "x" ; | |
3104 | then | |
3105 | X_LDFLAGS="-L$x_libraries" | |
3106 | else | |
3107 | X_LDFLAGS="" | |
3108 | fi | |
3109 | ||
3110 | case "$host" in | |
3111 | # | |
3112 | # gdb linked statically w/ Solaris iff GCC is used, otherwise dynamic | |
3113 | # | |
146ee7db | 3114 | sparc*-sun-solaris2*) |
a2b63bbd JM |
3115 | if test "x$GCC" = "xyes"; |
3116 | then | |
127841e4 | 3117 | X_LIBS="-Wl,-Bstatic -lX11 -lXext -lX11 -Wl,-Bdynamic -ldl -lw" |
a2b63bbd JM |
3118 | else |
3119 | if test "x$x_libraries" != "x" ; | |
3120 | then | |
3121 | X_LDFLAGS="$X_LDFLAGS -R$x_libraries" | |
3122 | fi | |
3123 | X_LIBS="-lX11 -lXext -lX11" | |
3124 | fi ;; | |
3125 | # | |
3126 | # gdb linked statically w/ SunOS or HPUX | |
3127 | # | |
3128 | m68k-hp-hpux*|hppa*-hp-hpux*|sparc-sun-sunos*) | |
3129 | if test "x$x_libraries" != "x" ; | |
3130 | then | |
3131 | X_LIBS="$x_libraries/libX11.a" | |
3132 | else | |
3133 | X_LIBS="/usr/lib/libX11.a" | |
3134 | fi ;; | |
3135 | # | |
3136 | # default is to link dynamically | |
3137 | # | |
3138 | *) | |
3139 | X_LIBS="-lX11" ;; | |
3140 | esac | |
3141 | else | |
3142 | X_LDLAGS="" | |
3143 | X_CFLAGS="" | |
3144 | X_LIBS="" | |
3145 | echo "configure: warning: No X based programs will be built" 1>&2 | |
3146 | fi | |
3147 | ||
3148 | TCL_LIBS='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)' | |
3149 | ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm" | |
3150 | ENABLE_OBS="${ENABLE_OBS} gdbtk.o" | |
3151 | fi | |
66efdff9 | 3152 | |
66efdff9 | 3153 | |
5436fc65 | 3154 | |
66efdff9 JM |
3155 | |
3156 | ||
5436fc65 C |
3157 | # end-sanitize-gdbtk |
3158 | ||
3159 | ||
3160 | ||
3161 | ||
3162 | ||
7c40dd08 DE |
3163 | # target_subdir is used by the testsuite to find the target libraries. |
3164 | target_subdir= | |
3165 | if test "${host}" != "${target}"; then | |
3166 | target_subdir="${target_alias}/" | |
3167 | fi | |
3168 | ||
5436fc65 C |
3169 | |
3170 | configdirs="doc testsuite" | |
3171 | ||
3172 | ||
3173 | # Map host cpu into the config cpu subdirectory name. | |
3174 | # The default is $host_cpu. | |
3175 | ||
3176 | case "${host_cpu}" in | |
3177 | ||
3178 | c[12]) gdb_host_cpu=convex ;; | |
3179 | hppa*) gdb_host_cpu=pa ;; | |
3222ff2e | 3180 | i[3456]86) gdb_host_cpu=i386 ;; |
5436fc65 C |
3181 | m68*) gdb_host_cpu=m68k ;; |
3182 | m88*) gdb_host_cpu=m88k ;; | |
3183 | np1) gdb_host_cpu=gould ;; | |
3184 | pyramid) gdb_host_cpu=pyr ;; | |
3185 | powerpc*) gdb_host_cpu=powerpc ;; | |
146ee7db | 3186 | sparc64) gdb_host_cpu=sparc ;; |
5436fc65 C |
3187 | *) gdb_host_cpu=$host_cpu ;; |
3188 | ||
3189 | esac | |
3190 | ||
3191 | # map host info into gdb names. | |
3192 | ||
3193 | case "${host}" in | |
3194 | ||
3195 | a29k-*-*) gdb_host=ultra3 ;; | |
3196 | ||
9391c997 | 3197 | alpha-*-linux*) gdb_host=alpha-linux ;; |
5436fc65 | 3198 | alpha-*-osf1*) gdb_host=alpha-osf1 ;; |
b8ea4fec PS |
3199 | alpha-*-osf2*) gdb_host=alpha-osf2 ;; |
3200 | alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;; | |
5436fc65 C |
3201 | |
3202 | arm-*-*) gdb_host=arm ;; | |
3203 | ||
3204 | c[12]-*-*) gdb_host=convex ;; | |
3205 | ||
3206 | hppa*-*-bsd*) gdb_host=hppabsd ;; | |
3207 | hppa*-*-hiux*) gdb_host=hppahpux ;; | |
3208 | hppa*-*-hpux*) gdb_host=hppahpux ;; | |
3209 | hppa*-*-osf*) gdb_host=hppaosf ;; | |
3210 | ||
3222ff2e MM |
3211 | i[3456]86-ncr-*) gdb_host=ncr3000 ;; |
3212 | i[3456]86-sequent-bsd*) gdb_host=symmetry ;; # dynix | |
3213 | i[3456]86-sequent-sysv4*) gdb_host=ptx4 ;; | |
3214 | i[3456]86-sequent-sysv*) gdb_host=ptx ;; | |
3215 | i[3456]86-*-aix*) gdb_host=i386aix ;; | |
3216 | i[3456]86-*-bsd*) gdb_host=i386bsd ;; | |
3217 | i[3456]86-*-dgux*) gdb_host=i386dgux ;; | |
3218 | i[3456]86-*-freebsd*) gdb_host=fbsd ;; | |
3219 | i[3456]86-*-netbsd*) gdb_host=nbsd ;; | |
3220 | i[3456]86-*-go32*) gdb_host=go32 ;; | |
3221 | i[3456]86-*-linux*) gdb_host=linux ;; | |
3222 | i[3456]86-*-lynxos*) gdb_host=i386lynx ;; | |
3223 | i[3456]86-*-mach3*) gdb_host=i386m3 ;; | |
3224 | i[3456]86-*-mach*) gdb_host=i386mach ;; | |
d8efbc66 | 3225 | i[3456]86-*-gnu*) gdb_host=i386gnu ;; |
3222ff2e | 3226 | i[3456]86-*-osf1mk*) gdb_host=osf1mk ;; |
125c17af | 3227 | i[3456]86-*-sco3.2v5*) gdb_host=i386sco5 ;; |
3222ff2e MM |
3228 | i[3456]86-*-sco3.2v4*) gdb_host=i386sco4 ;; |
3229 | i[3456]86-*-sco*) gdb_host=i386sco ;; | |
3230 | i[3456]86-*-solaris*) gdb_host=i386sol2 ;; | |
3231 | i[3456]86-*-sunos*) gdb_host=sun386 ;; | |
3232 | i[3456]86-*-sysv3.2*) gdb_host=i386v32 ;; | |
3233 | i[3456]86-*-sysv32*) gdb_host=i386v32 ;; | |
3234 | i[3456]86-*-sysv4*) gdb_host=i386v4 ;; | |
3235 | i[3456]86-*-unixware) gdb_host=i386v4 ;; | |
3236 | i[3456]86-*-sysv*) gdb_host=i386v ;; | |
3237 | i[3456]86-*-isc*) gdb_host=i386v32 ;; | |
3238 | i[3456]86-*-os9k) gdb_host=i386os9k ;; | |
3d78f532 | 3239 | i[3456]86-*-cygwin32) gdb_host=cygwin32 ;; |
5436fc65 C |
3240 | m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;; |
3241 | m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;; | |
3242 | m68030-sony-*) gdb_host=news1000 ;; | |
3243 | ||
3244 | m68*-altos-*) gdb_host=altos ;; | |
3245 | m68*-apollo*-sysv*) gdb_host=apollo68v ;; | |
3246 | m68*-apollo*-bsd*) gdb_host=apollo68b ;; | |
3247 | m68*-att-*) gdb_host=3b1 ;; | |
3248 | m68*-bull*-sysv*) gdb_host=dpx2 ;; | |
3249 | m68*-hp-bsd*) gdb_host=hp300bsd ;; | |
3250 | m68*-hp-hpux*) gdb_host=hp300hpux ;; | |
3251 | m68*-isi-*) gdb_host=isi ;; | |
3252 | m68*-*-lynxos*) gdb_host=m68klynx ;; | |
b7f3b6d5 | 3253 | m68*-*-netbsd*) gdb_host=nbsd ;; |
5436fc65 C |
3254 | m68*-*-sysv4*) gdb_host=m68kv4 ;; |
3255 | m68*-motorola-*) gdb_host=delta68 ;; | |
3256 | m68*-sony-*) gdb_host=news ;; | |
3257 | m68*-sun-sunos3*) gdb_host=sun3os3 ;; | |
3258 | m68*-sun-sunos4*) gdb_host=sun3os4 ;; | |
3259 | m68*-sun-*) gdb_host=sun3os4 ;; | |
3260 | ||
3261 | m88*-harris-cxux*) gdb_host=cxux ;; | |
3262 | m88*-motorola-sysv4*) gdb_host=delta88v4 ;; | |
3263 | m88*-motorola-sysv*) gdb_host=delta88 ;; | |
3264 | m88*-*-mach3*) gdb_host=mach3 ;; | |
3265 | m88*-*-*) gdb_host=m88k ;; | |
3266 | ||
3267 | mips-dec-mach3*) gdb_host=mach3 ;; | |
3268 | mips-dec-*) gdb_host=decstation ;; | |
3269 | mips-little-*) gdb_host=littlemips ;; | |
3270 | mips-sgi-irix3*) gdb_host=irix3 ;; | |
3271 | mips-sgi-irix4*) gdb_host=irix4 ;; | |
3272 | mips-sgi-irix5*) gdb_host=irix5 ;; | |
3273 | mips-sony-*) gdb_host=news-mips ;; | |
3274 | mips-*-mach3*) gdb_host=mach3 ;; | |
3275 | mips-*-sysv4*) gdb_host=mipsv4 ;; | |
3276 | mips-*-sysv*) gdb_host=riscos ;; | |
3277 | mips-*-riscos*) gdb_host=riscos ;; | |
3278 | ||
3279 | none-*-*) gdb_host=none ;; | |
3280 | ||
3281 | np1-*-*) gdb_host=np1 ;; | |
3282 | ||
3283 | ns32k-*-mach3*) gdb_host=mach3 ;; | |
3284 | ns32k-*-netbsd*) gdb_host=nbsd ;; | |
3285 | ns32k-umax-*) gdb_host=umax ;; | |
3286 | ns32k-utek-sysv*) gdb_host=merlin ;; | |
3287 | ||
fbc3f191 | 3288 | powerpc-*-aix*) gdb_host=aix ;; |
3d78f532 | 3289 | powerpcle-*-cygwin32) gdb_host=cygwin32 ;; |
fe8d28cf | 3290 | powerpcle-*-solaris*) gdb_host=solaris ;; |
5436fc65 C |
3291 | pn-*-*) gdb_host=pn ;; |
3292 | ||
3293 | pyramid-*-*) gdb_host=pyramid ;; | |
3294 | ||
3295 | romp-*-*) gdb_host=rtbsd ;; | |
3296 | ||
3297 | rs6000-*-lynxos*) gdb_host=rs6000lynx ;; | |
a1956677 | 3298 | rs6000-*-aix4*) gdb_host=aix4 ;; |
5436fc65 C |
3299 | rs6000-*-*) gdb_host=rs6000 ;; |
3300 | ||
3301 | sparc-*-lynxos*) gdb_host=sparclynx ;; | |
3302 | sparc-*-netbsd*) gdb_host=nbsd ;; | |
3303 | sparc-*-solaris2*) gdb_host=sun4sol2 ;; | |
3304 | sparc-*-sunos4*) gdb_host=sun4os4 ;; | |
3305 | sparc-*-sunos5*) gdb_host=sun4sol2 ;; | |
3306 | sparc-*-*) gdb_host=sun4os4 ;; | |
146ee7db | 3307 | sparc64-*-*) gdb_host=sun4sol2 ;; |
5436fc65 C |
3308 | |
3309 | tahoe-*-*) gdb_host=tahoe ;; | |
3310 | ||
3311 | vax-*-bsd*) gdb_host=vaxbsd ;; | |
3312 | vax-*-ultrix2*) gdb_host=vaxult2 ;; | |
3313 | vax-*-ultrix*) gdb_host=vaxult ;; | |
3314 | ||
3315 | w65-*-*) gdb_host=w65 ;; | |
3316 | ||
3317 | esac | |
3318 | ||
3319 | ||
3320 | # Map target cpu into the config cpu subdirectory name. | |
3321 | # The default is $target_cpu. | |
3322 | ||
3323 | case "${target_cpu}" in | |
3324 | ||
3325 | alpha) gdb_target_cpu=alpha ;; | |
3326 | c[12]) gdb_target_cpu=convex ;; | |
3327 | hppa*) gdb_target_cpu=pa ;; | |
3222ff2e | 3328 | i[3456]86) gdb_target_cpu=i386 ;; |
5436fc65 C |
3329 | m68*) gdb_target_cpu=m68k ;; |
3330 | m88*) gdb_target_cpu=m88k ;; | |
3331 | mips*) gdb_target_cpu=mips ;; | |
3332 | np1) gdb_target_cpu=gould ;; | |
3333 | powerpc*) gdb_target_cpu=powerpc ;; | |
3334 | pn) gdb_target_cpu=gould ;; | |
3335 | pyramid) gdb_target_cpu=pyr ;; | |
5436fc65 C |
3336 | sparc*) gdb_target_cpu=sparc ;; |
3337 | *) gdb_target_cpu=$target_cpu ;; | |
3338 | ||
3339 | esac | |
3340 | ||
3341 | # map target info into gdb names. | |
3342 | ||
3343 | case "${target}" in | |
3344 | ||
3345 | a29k-*-aout*) gdb_target=a29k ;; | |
3346 | a29k-*-coff*) gdb_target=a29k ;; | |
3347 | a29k-*-elf*) gdb_target=a29k ;; | |
3348 | a29k-*-ebmon*) gdb_target=a29k ;; | |
3349 | a29k-*-kern*) gdb_target=a29k-kern ;; | |
3350 | a29k-*-none*) gdb_target=a29k ;; | |
3351 | a29k-*-sym1*) gdb_target=ultra3 ;; | |
3352 | a29k-*-udi*) gdb_target=a29k-udi ;; | |
3353 | a29k-*-vxworks*) gdb_target=vx29k ;; | |
3354 | ||
9391c997 | 3355 | alpha-*-linux*) gdb_target=alpha-linux ;; |
5436fc65 C |
3356 | alpha-*-osf*) gdb_target=alpha-osf1 ;; |
3357 | ||
3358 | # start-sanitize-arc | |
3359 | arc-*-*) gdb_target=arc ;; | |
3360 | # end-sanitize-arc | |
3361 | ||
3362 | arm-*-*) gdb_target=arm ;; | |
3363 | ||
3364 | c1-*-*) gdb_target=convex ;; | |
3365 | c2-*-*) gdb_target=convex ;; | |
3366 | ||
fb506180 SS |
3367 | h8300-*-*) gdb_target=h8300 ;; |
3368 | h8500-*-*) gdb_target=h8500 ;; | |
5436fc65 C |
3369 | |
3370 | sh-*-*) gdb_target=sh ;; | |
3371 | ||
3372 | # start-sanitize-r16 | |
3373 | r16-*-*) gdb_target=r16 ;; | |
3374 | # end-sanitize-r16 | |
3375 | ||
3376 | hppa*-*-bsd*) gdb_target=hppabsd ;; | |
3377 | hppa*-*-pro*) gdb_target=hppapro ;; | |
3378 | hppa*-*-hpux*) gdb_target=hppahpux ;; | |
3379 | hppa*-*-hiux*) gdb_target=hppahpux ;; | |
3380 | hppa*-*-osf*) gdb_target=hppaosf ;; | |
3381 | ||
3222ff2e MM |
3382 | i[3456]86-sequent-bsd*) gdb_target=symmetry ;; |
3383 | i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;; | |
3384 | i[3456]86-sequent-sysv*) gdb_target=ptx ;; | |
3385 | i[3456]86-ncr-*) gdb_target=ncr3000 ;; | |
3386 | i[3456]86-*-aout*) gdb_target=i386aout ;; | |
3387 | i[3456]86-*-coff*) gdb_target=i386v ;; | |
3388 | i[3456]86-*-elf*) gdb_target=i386v ;; | |
3389 | i[3456]86-*-aix*) gdb_target=i386aix ;; | |
3390 | i[3456]86-*-bsd*) gdb_target=i386bsd ;; | |
3391 | i[3456]86-*-freebsd*) gdb_target=fbsd ;; | |
3392 | i[3456]86-*-netbsd*) gdb_target=nbsd ;; | |
3393 | i[3456]86-*-os9k) gdb_target=i386os9k ;; | |
3394 | i[3456]86-*-go32*) gdb_target=i386aout ;; | |
3395 | i[3456]86-*-lynxos*) gdb_target=i386lynx | |
5436fc65 | 3396 | configdirs="${configdirs} gdbserver" ;; |
3222ff2e MM |
3397 | i[3456]86-*-solaris*) gdb_target=i386sol2 ;; |
3398 | i[3456]86-*-sunos*) gdb_target=sun386 ;; | |
3399 | i[3456]86-*-sysv4*) gdb_target=i386v4 ;; | |
3400 | i[3456]86-*-sco*) gdb_target=i386v ;; | |
3401 | i[3456]86-*-sysv*) gdb_target=i386v ;; | |
3dedc867 FF |
3402 | i[3456]86-*-linux*) gdb_target=linux |
3403 | configdirs="${configdirs} gdbserver" ;; | |
3222ff2e MM |
3404 | i[3456]86-*-isc*) gdb_target=i386v ;; |
3405 | i[3456]86-*-mach3*) gdb_target=i386m3 ;; | |
3406 | i[3456]86-*-mach*) gdb_target=i386mach ;; | |
d8efbc66 | 3407 | i[3456]86-*-gnu*) gdb_target=i386gnu ;; |
3222ff2e | 3408 | i[3456]86-*-netware*) gdb_target=i386nw |
5436fc65 | 3409 | configdirs="${configdirs} nlm" ;; |
3222ff2e | 3410 | i[3456]86-*-osf1mk*) gdb_target=i386mk ;; |
3d78f532 | 3411 | i[3456]86-*-cygwin32) gdb_target=cygwin32 ;; |
5436fc65 | 3412 | i960-*-bout*) gdb_target=vxworks960 ;; |
2e665cd3 DP |
3413 | i960-nindy-coff*) gdb_target=nindy960 ;; |
3414 | i960-*-coff*) gdb_target=mon960 ;; | |
3415 | i960-nindy-elf*) gdb_target=nindy960 ;; | |
3416 | i960-*-elf*) gdb_target=mon960 ;; | |
5436fc65 C |
3417 | |
3418 | i960-*-nindy*) gdb_target=nindy960 ;; | |
3419 | i960-*-vxworks*) gdb_target=vxworks960 ;; | |
3420 | ||
3421 | m68000-*-sunos3*) gdb_target=sun2os3 ;; | |
3422 | m68000-*-sunos4*) gdb_target=sun2os4 ;; | |
3423 | ||
3424 | m68*-apollo*-bsd*) gdb_target=apollo68b ;; | |
3425 | m68*-bull-sysv*) gdb_target=dpx2 ;; | |
3426 | m68*-hp-bsd*) gdb_target=hp300bsd ;; | |
3427 | m68*-hp-hpux*) gdb_target=hp300hpux ;; | |
3428 | m68*-altos-*) gdb_target=altos ;; | |
3429 | m68*-att-*) gdb_target=3b1 ;; | |
3430 | m68*-cisco*-*) gdb_target=cisco ;; | |
3431 | m68*-ericsson-*) gdb_target=es1800 ;; | |
3432 | m68*-isi-*) gdb_target=isi ;; | |
3433 | m68*-motorola-*) gdb_target=delta68 ;; | |
3434 | m68*-netx-*) gdb_target=vxworks68 ;; | |
3435 | m68*-sony-*) gdb_target=news ;; | |
3436 | m68*-tandem-*) gdb_target=st2000 ;; | |
3437 | m68*-rom68k-*) gdb_target=monitor ;; | |
3438 | m68*-*bug-*) gdb_target=monitor ;; | |
3439 | m68*-monitor-*) gdb_target=monitor ;; | |
949e2bbf | 3440 | m68*-est-*) gdb_target=monitor ;; |
5436fc65 C |
3441 | m68*-*-aout*) gdb_target=monitor ;; |
3442 | m68*-*-coff*) gdb_target=monitor ;; | |
3443 | m68*-*-elf*) gdb_target=monitor ;; | |
3444 | m68*-*-lynxos*) gdb_target=m68klynx | |
3445 | configdirs="${configdirs} gdbserver" ;; | |
b7f3b6d5 | 3446 | m68*-*-netbsd*) gdb_target=nbsd ;; |
5436fc65 C |
3447 | m68*-*-os68k*) gdb_target=os68k ;; |
3448 | m68*-*-sunos3*) gdb_target=sun3os3 ;; | |
3449 | m68*-*-sunos4*) gdb_target=sun3os4 ;; | |
3450 | m68*-*-sysv4*) gdb_target=m68kv4 ;; | |
3451 | m68*-*-vxworks*) gdb_target=vxworks68 ;; | |
3452 | ||
3453 | m88*-harris-cxux*) gdb_target=cxux ;; | |
3454 | m88*-motorola-sysv4*) gdb_target=delta88v4 ;; | |
3455 | m88*-*-mach3*) gdb_target=mach3 ;; | |
3456 | m88*-motorola-*) gdb_target=delta88 ;; | |
3457 | m88*-*-*) gdb_target=m88k ;; | |
3458 | ||
3459 | mips64*-big-*) gdb_target=bigmips64 ;; | |
3460 | mips*-big-*) gdb_target=bigmips ;; | |
3461 | mips*-dec-mach3*) gdb_target=mach3 ;; | |
3462 | mips*-dec-*) gdb_target=decstation ;; | |
7bb5e831 RS |
3463 | mips64*el-*-ecoff*) gdb_target=embedl64 ;; |
3464 | mips64*-*-ecoff*) gdb_target=embed64 ;; | |
0e3a4b1e JSC |
3465 | mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;; |
3466 | mips64*vr4300*-*-elf*) gdb_target=vr4300 ;; | |
7bb5e831 RS |
3467 | mips64*el-*-elf*) gdb_target=embedl64 ;; |
3468 | mips64*-*-elf*) gdb_target=embed64 ;; | |
3469 | mips*el-*-ecoff*) gdb_target=embedl ;; | |
3470 | mips*-*-ecoff*) gdb_target=embed ;; | |
cd10c7e3 | 3471 | # start-sanitize-gm |
7bb5e831 | 3472 | mips*-*-magic*) gdb_target=embed ;; |
cd10c7e3 | 3473 | # end-sanitize-gm |
7bb5e831 RS |
3474 | mips*el-*-elf*) gdb_target=embedl ;; |
3475 | mips*-*-elf*) gdb_target=embed ;; | |
5436fc65 C |
3476 | mips*-little-*) gdb_target=littlemips ;; |
3477 | mips*-sgi-irix5*) gdb_target=irix5 ;; | |
3478 | mips*-sgi-*) gdb_target=irix3 ;; | |
3479 | mips*-sony-*) gdb_target=bigmips ;; | |
3480 | mips*-*-mach3*) gdb_target=mach3 ;; | |
3481 | mips*-*-sysv4*) gdb_target=mipsv4 ;; | |
3482 | mips*-*-sysv*) gdb_target=bigmips ;; | |
3483 | mips*-*-riscos*) gdb_target=bigmips ;; | |
3dedc867 | 3484 | mips*-*-vxworks*) gdb_target=vxmips ;; |
5436fc65 C |
3485 | |
3486 | none-*-*) gdb_target=none ;; | |
3487 | ||
3488 | np1-*-*) gdb_target=np1 ;; | |
3489 | ||
3490 | ns32k-*-mach3*) gdb_target=mach3 ;; | |
3491 | ns32k-*-netbsd*) gdb_target=nbsd ;; | |
3492 | ns32k-utek-sysv*) gdb_target=merlin ;; | |
3493 | ns32k-utek-*) gdb_target=umax ;; | |
3494 | ||
3495 | pn-*-*) gdb_target=pn ;; | |
c148ab3c | 3496 | powerpc-*-macos*) gdb_target=macos ;; |
5436fc65 C |
3497 | powerpc-*-netware*) gdb_target=ppc-nw |
3498 | configdirs="${configdirs} nlm" ;; | |
3499 | ||
65eaea27 | 3500 | powerpc-*-aix4*) gdb_target=aix4 ;; |
fbc3f191 | 3501 | powerpc-*-aix*) gdb_target=aix ;; |
3d78f532 | 3502 | powerpcle-*-cygwin32) gdb_target=cygwin32 ;; |
fe8d28cf | 3503 | powerpcle-*-solaris*) gdb_target=solaris ;; |
3c0bf315 MM |
3504 | powerpc-*-eabi*) if test x"$powerpc_sim" = x"yes"; then |
3505 | gdb_target=ppc-sim | |
3506 | else | |
3507 | gdb_target=ppc-eabi | |
3508 | fi ;; | |
3509 | powerpcle-*-eabi*) if test x"$powerpc_sim" = x"yes"; then | |
3510 | gdb_target=ppcle-sim | |
3511 | else | |
3512 | gdb_target=ppcle-eabi | |
3513 | fi ;; | |
5436fc65 C |
3514 | |
3515 | pyramid-*-*) gdb_target=pyramid ;; | |
3516 | ||
3517 | rs6000-*-lynxos*) gdb_target=rs6000lynx ;; | |
65eaea27 | 3518 | rs6000-*-aix4*) gdb_target=aix4 ;; |
5436fc65 C |
3519 | rs6000-*-*) gdb_target=rs6000 ;; |
3520 | ||
3521 | sparc-*-aout*) gdb_target=sparc-em ;; | |
3522 | sparc-*-coff*) gdb_target=sparc-em ;; | |
3523 | sparc-*-elf*) gdb_target=sparc-em ;; | |
3524 | sparc-*-lynxos*) gdb_target=sparclynx | |
3525 | configdirs="${configdirs} gdbserver" ;; | |
3526 | sparc-*-netbsd*) gdb_target=nbsd ;; | |
3527 | sparc-*-solaris2*) gdb_target=sun4sol2 ;; | |
3528 | sparc-*-sunos4*) gdb_target=sun4os4 ;; | |
3529 | sparc-*-sunos5*) gdb_target=sun4sol2 ;; | |
3530 | sparc-*-vxworks*) gdb_target=vxsparc ;; | |
3531 | sparc-*-*) gdb_target=sun4os4 ;; | |
229b2c87 DE |
3532 | # Use sparc-em for sparclet for now. |
3533 | sparclet-*-*) gdb_target=sparc-em ;; | |
5436fc65 | 3534 | sparclite*-*-*) gdb_target=sparclite ;; |
078aeca4 DE |
3535 | # It's not clear what the right solution for "v8plus" systems is yet. |
3536 | # For now, stick with sparc-sun-solaris2 since that's what config.guess | |
3537 | # should return. Work is still needed to get gdb to print the 64 bit | |
3538 | # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been | |
3539 | # deleted though presumably it should be eventually. | |
3540 | #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; | |
5436fc65 C |
3541 | sparc64-*-*) gdb_target=sp64 ;; |
3542 | ||
3543 | tahoe-*-*) gdb_target=tahoe ;; | |
3544 | ||
3545 | vax-*-*) gdb_target=vax ;; | |
3546 | ||
3547 | w65-*-*) gdb_target=w65 ;; | |
3548 | ||
fb506180 | 3549 | z8k-*-coff*) gdb_target=z8k ;; |
5436fc65 C |
3550 | |
3551 | esac | |
3552 | ||
3553 | ||
5f107900 | 3554 | frags= |
5436fc65 C |
3555 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
3556 | if test ! -f ${host_makefile_frag}; then | |
3557 | { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; } | |
3558 | fi | |
5f107900 | 3559 | frags="$frags $host_makefile_frag" |
5436fc65 C |
3560 | |
3561 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
3562 | if test ! -f ${target_makefile_frag}; then | |
3563 | { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; } | |
3564 | fi | |
5f107900 | 3565 | frags="$frags $target_makefile_frag" |
5436fc65 C |
3566 | |
3567 | ||
3568 | ||
3569 | ||
3570 | ||
094fd4ae C |
3571 | hostfile=`sed -n ' |
3572 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
3573 | ' ${host_makefile_frag}` | |
5436fc65 | 3574 | |
094fd4ae C |
3575 | targetfile=`sed -n ' |
3576 | s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
3577 | ' ${target_makefile_frag}` | |
5436fc65 C |
3578 | |
3579 | # these really aren't orthogonal true/false values of the same condition, | |
3580 | # but shells are slow enough that I like to reuse the test conditions | |
3581 | # whenever possible | |
3582 | if test "${target}" = "${host}"; then | |
094fd4ae C |
3583 | nativefile=`sed -n ' |
3584 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
3585 | ' ${host_makefile_frag}` | |
5436fc65 C |
3586 | else |
3587 | # GDBserver is only useful in a "native" enviroment | |
3588 | configdirs=`echo $configdirs | sed 's/gdbserver//'` | |
3589 | fi | |
3590 | ||
094fd4ae | 3591 | |
5436fc65 C |
3592 | # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile |
3593 | # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the | |
3594 | # corresponding links. But we have to remove the xm.h files and tm.h | |
3595 | # files anyway, e.g. when switching from "configure host" to | |
3596 | # "configure none". | |
3597 | ||
3598 | files= | |
3599 | links= | |
3600 | rm -f xm.h | |
3601 | if test "${hostfile}" != ""; then | |
3602 | files="${files} config/${gdb_host_cpu}/${hostfile}" | |
3603 | links="${links} xm.h" | |
3604 | fi | |
3605 | rm -f tm.h | |
3606 | if test "${targetfile}" != ""; then | |
3607 | files="${files} config/${gdb_target_cpu}/${targetfile}" | |
3608 | links="${links} tm.h" | |
3609 | fi | |
3610 | rm -f nm.h | |
3611 | if test "${nativefile}" != ""; then | |
3612 | files="${files} config/${gdb_host_cpu}/${nativefile}" | |
3613 | links="${links} nm.h" | |
3614 | else | |
3615 | # A cross-only configuration. | |
3616 | files="${files} config/nm-empty.h" | |
3617 | links="${links} nm.h" | |
3618 | fi | |
3619 | # start-sanitize-gdbtk | |
3620 | ||
3621 | # Make it possible to use the GUI without doing a full install | |
3622 | if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then | |
3623 | files="${files} gdbtk.tcl" | |
3624 | links="${links} gdbtk.tcl" | |
3625 | fi | |
3626 | # end-sanitize-gdbtk | |
3627 | ||
3628 | ||
3629 | ||
3630 | subdirs="$configdirs" | |
3631 | ||
3632 | trap '' 1 2 15 | |
3633 | cat > confcache <<\EOF | |
3634 | # This file is a shell script that caches the results of configure | |
3635 | # tests run on this system so they can be shared between configure | |
3636 | # scripts and configure runs. It is not useful on other systems. | |
3637 | # If it contains results you don't want to keep, you may remove or edit it. | |
3638 | # | |
3639 | # By default, configure uses ./config.cache as the cache file, | |
3640 | # creating it if it does not exist already. You can give configure | |
3641 | # the --cache-file=FILE option to use a different cache file; that is | |
3642 | # what configure does when it calls configure scripts in | |
3643 | # subdirectories, so they share the cache. | |
3644 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
3645 | # config.status only pays attention to the cache file if you give it the | |
3646 | # --recheck option to rerun configure. | |
3647 | # | |
3648 | EOF | |
3649 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3650 | # and sets the high bit in the cache file unless we assign to the vars. | |
3651 | (set) 2>&1 | | |
3652 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ | |
3653 | >> confcache | |
3654 | if cmp -s $cache_file confcache; then | |
3655 | : | |
3656 | else | |
3657 | if test -w $cache_file; then | |
3658 | echo "updating cache $cache_file" | |
3659 | cat confcache > $cache_file | |
3660 | else | |
3661 | echo "not updating unwritable cache $cache_file" | |
3662 | fi | |
3663 | fi | |
3664 | rm -f confcache | |
3665 | ||
3666 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
3667 | ||
3668 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3669 | # Let make expand exec_prefix. | |
3670 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3671 | ||
3672 | # Any assignment to VPATH causes Sun make to only execute | |
3673 | # the first set of double-colon rules, so remove it if not needed. | |
3674 | # If there is a colon in the path, we need to keep it. | |
3675 | if test "x$srcdir" = x.; then | |
3676 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
3677 | fi | |
3678 | ||
3679 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
3680 | ||
db210d08 | 3681 | DEFS=-DHAVE_CONFIG_H |
5436fc65 C |
3682 | |
3683 | # Without the "./", some shells look in PATH for config.status. | |
3684 | : ${CONFIG_STATUS=./config.status} | |
3685 | ||
3686 | echo creating $CONFIG_STATUS | |
3687 | rm -f $CONFIG_STATUS | |
3688 | cat > $CONFIG_STATUS <<EOF | |
3689 | #! /bin/sh | |
3690 | # Generated automatically by configure. | |
3691 | # Run this file to recreate the current configuration. | |
3692 | # This directory was configured as follows, | |
3693 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
3694 | # | |
3695 | # $0 $ac_configure_args | |
3696 | # | |
3697 | # Compiler output produced by configure, useful for debugging | |
3698 | # configure, is in ./config.log if it exists. | |
3699 | ||
3700 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
3701 | for ac_option | |
3702 | do | |
3703 | case "\$ac_option" in | |
3704 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3705 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
3706 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
3707 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
fda58904 | 3708 | echo "$CONFIG_STATUS generated by autoconf version 2.8" |
5436fc65 C |
3709 | exit 0 ;; |
3710 | -help | --help | --hel | --he | --h) | |
3711 | echo "\$ac_cs_usage"; exit 0 ;; | |
3712 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
3713 | esac | |
3714 | done | |
3715 | ||
3716 | ac_given_srcdir=$srcdir | |
3717 | ac_given_INSTALL="$INSTALL" | |
3718 | ||
18ea4416 | 3719 | trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
229b2c87 DE |
3720 | EOF |
3721 | cat >> $CONFIG_STATUS <<EOF | |
5436fc65 | 3722 | |
229b2c87 DE |
3723 | # Protect against being on the right side of a sed subst in config.status. |
3724 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
3725 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
5436fc65 C |
3726 | $ac_vpsub |
3727 | $extrasub | |
3728 | s%@CFLAGS@%$CFLAGS%g | |
3729 | s%@CPPFLAGS@%$CPPFLAGS%g | |
3730 | s%@CXXFLAGS@%$CXXFLAGS%g | |
3731 | s%@DEFS@%$DEFS%g | |
3732 | s%@LDFLAGS@%$LDFLAGS%g | |
3733 | s%@LIBS@%$LIBS%g | |
3734 | s%@exec_prefix@%$exec_prefix%g | |
3735 | s%@prefix@%$prefix%g | |
3736 | s%@program_transform_name@%$program_transform_name%g | |
229b2c87 DE |
3737 | s%@bindir@%$bindir%g |
3738 | s%@sbindir@%$sbindir%g | |
3739 | s%@libexecdir@%$libexecdir%g | |
3740 | s%@datadir@%$datadir%g | |
3741 | s%@sysconfdir@%$sysconfdir%g | |
3742 | s%@sharedstatedir@%$sharedstatedir%g | |
3743 | s%@localstatedir@%$localstatedir%g | |
3744 | s%@libdir@%$libdir%g | |
3745 | s%@includedir@%$includedir%g | |
3746 | s%@oldincludedir@%$oldincludedir%g | |
3747 | s%@infodir@%$infodir%g | |
3748 | s%@mandir@%$mandir%g | |
5436fc65 C |
3749 | s%@CC@%$CC%g |
3750 | s%@CPP@%$CPP%g | |
3751 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
3752 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
5436fc65 C |
3753 | s%@host@%$host%g |
3754 | s%@host_alias@%$host_alias%g | |
3755 | s%@host_cpu@%$host_cpu%g | |
3756 | s%@host_vendor@%$host_vendor%g | |
3757 | s%@host_os@%$host_os%g | |
5436fc65 C |
3758 | s%@build@%$build%g |
3759 | s%@build_alias@%$build_alias%g | |
3760 | s%@build_cpu@%$build_cpu%g | |
3761 | s%@build_vendor@%$build_vendor%g | |
3762 | s%@build_os@%$build_os%g | |
d8efbc66 FF |
3763 | s%@AR@%$AR%g |
3764 | s%@RANLIB@%$RANLIB%g | |
3765 | s%@YACC@%$YACC%g | |
3766 | s%@AWK@%$AWK%g | |
3767 | s%@target@%$target%g | |
3768 | s%@target_alias@%$target_alias%g | |
3769 | s%@target_cpu@%$target_cpu%g | |
3770 | s%@target_vendor@%$target_vendor%g | |
3771 | s%@target_os@%$target_os%g | |
47ef0da5 | 3772 | s%@THREAD_DB_OBS@%$THREAD_DB_OBS%g |
5436fc65 C |
3773 | s%@X_CFLAGS@%$X_CFLAGS%g |
3774 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
3775 | s%@X_LIBS@%$X_LIBS%g | |
3776 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
5436fc65 C |
3777 | s%@TCLHDIR@%$TCLHDIR%g |
3778 | s%@TCLLIB@%$TCLLIB%g | |
4e327047 TT |
3779 | s%@TKHDIR@%$TKHDIR%g |
3780 | s%@TKLIB@%$TKLIB%g | |
5436fc65 | 3781 | s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g |
a2b63bbd | 3782 | s%@X_LDFLAGS@%$X_LDFLAGS%g |
5436fc65 C |
3783 | s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g |
3784 | s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g | |
3785 | s%@ENABLE_OBS@%$ENABLE_OBS%g | |
7c40dd08 | 3786 | s%@target_subdir@%$target_subdir%g |
5436fc65 C |
3787 | /@host_makefile_frag@/r $host_makefile_frag |
3788 | s%@host_makefile_frag@%%g | |
3789 | /@target_makefile_frag@/r $target_makefile_frag | |
3790 | s%@target_makefile_frag@%%g | |
5f107900 | 3791 | s%@frags@%$frags%g |
5436fc65 C |
3792 | s%@subdirs@%$subdirs%g |
3793 | ||
3794 | CEOF | |
3795 | EOF | |
3796 | cat >> $CONFIG_STATUS <<EOF | |
3797 | ||
3798 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
3799 | EOF | |
3800 | cat >> $CONFIG_STATUS <<\EOF | |
3801 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
3802 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
3803 | case "$ac_file" in | |
3804 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
3805 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3806 | *) ac_file_in="${ac_file}.in" ;; | |
3807 | esac | |
3808 | ||
3809 | # Adjust relative srcdir, etc. for subdirectories. | |
3810 | ||
3811 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3812 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3813 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3814 | # The file is in a subdirectory. | |
3815 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3816 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3817 | # A "../" for each directory in $ac_dir_suffix. | |
3818 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3819 | else | |
3820 | ac_dir_suffix= ac_dots= | |
3821 | fi | |
3822 | ||
3823 | case "$ac_given_srcdir" in | |
3824 | .) srcdir=. | |
3825 | if test -z "$ac_dots"; then top_srcdir=. | |
3826 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3827 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3828 | *) # Relative path. | |
3829 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3830 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3831 | esac | |
3832 | ||
3833 | case "$ac_given_INSTALL" in | |
3834 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3835 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3836 | esac | |
3837 | echo creating "$ac_file" | |
3838 | rm -f "$ac_file" | |
3839 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3840 | case "$ac_file" in | |
3841 | *Makefile*) ac_comsub="1i\\ | |
3842 | # $configure_input" ;; | |
3843 | *) ac_comsub= ;; | |
3844 | esac | |
3845 | sed -e "$ac_comsub | |
3846 | s%@configure_input@%$configure_input%g | |
3847 | s%@srcdir@%$srcdir%g | |
3848 | s%@top_srcdir@%$top_srcdir%g | |
3849 | s%@INSTALL@%$INSTALL%g | |
3850 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | |
3851 | fi; done | |
3852 | rm -f conftest.subs | |
3853 | ||
db210d08 FF |
3854 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
3855 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3856 | # | |
3857 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3858 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3859 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
3860 | ac_dC='\3' | |
3861 | ac_dD='%g' | |
3862 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
3863 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3864 | ac_uB='\([ ]\)%\1#\2define\3' | |
3865 | ac_uC=' ' | |
3866 | ac_uD='\4%g' | |
3867 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3868 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3869 | ac_eB='$%\1#\2define\3' | |
3870 | ac_eC=' ' | |
3871 | ac_eD='%g' | |
3872 | ||
18ea4416 | 3873 | CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"} |
db210d08 FF |
3874 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
3875 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
3876 | case "$ac_file" in | |
3877 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
3878 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3879 | *) ac_file_in="${ac_file}.in" ;; | |
3880 | esac | |
3881 | ||
3882 | echo creating $ac_file | |
3883 | ||
3884 | rm -f conftest.frag conftest.in conftest.out | |
3885 | cp $ac_given_srcdir/$ac_file_in conftest.in | |
3886 | ||
3887 | EOF | |
3888 | ||
3889 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
3890 | # the proper values into config.h.in to produce config.h. And first: | |
3891 | # Protect against being on the right side of a sed subst in config.status. | |
3892 | # Protect against being in an unquoted here document in config.status. | |
3893 | rm -f conftest.vals | |
3894 | cat > conftest.hdr <<\EOF | |
3895 | s/[\\&%]/\\&/g | |
3896 | s%[\\$`]%\\&%g | |
fda58904 | 3897 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
db210d08 FF |
3898 | s%ac_d%ac_u%gp |
3899 | s%ac_u%ac_e%gp | |
3900 | EOF | |
3901 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
3902 | rm -f conftest.hdr | |
3903 | ||
3904 | # This sed command replaces #undef with comments. This is necessary, for | |
3905 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3906 | # on some systems where configure will not decide to define it. | |
3907 | cat >> conftest.vals <<\EOF | |
3908 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
3909 | EOF | |
3910 | ||
3911 | # Break up conftest.vals because some shells have a limit on | |
3912 | # the size of here documents, and old seds have small limits too. | |
3913 | # Maximum number of lines to put in a single here document. | |
3914 | ac_max_here_lines=12 | |
3915 | ||
3916 | rm -f conftest.tail | |
3917 | while : | |
3918 | do | |
3919 | ac_lines=`grep -c . conftest.vals` | |
3920 | # grep -c gives empty output for an empty file on some AIX systems. | |
3921 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
3922 | # Write a limited-size here document to conftest.frag. | |
3923 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
3924 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
3925 | echo 'CEOF | |
3926 | sed -f conftest.frag conftest.in > conftest.out | |
3927 | rm -f conftest.in | |
3928 | mv conftest.out conftest.in | |
3929 | ' >> $CONFIG_STATUS | |
3930 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
3931 | rm -f conftest.vals | |
3932 | mv conftest.tail conftest.vals | |
3933 | done | |
3934 | rm -f conftest.vals | |
3935 | ||
3936 | cat >> $CONFIG_STATUS <<\EOF | |
3937 | rm -f conftest.frag conftest.h | |
3938 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
3939 | cat conftest.in >> conftest.h | |
3940 | rm -f conftest.in | |
3941 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
3942 | echo "$ac_file is unchanged" | |
3943 | rm -f conftest.h | |
3944 | else | |
3945 | rm -f $ac_file | |
3946 | mv conftest.h $ac_file | |
3947 | fi | |
3948 | fi; done | |
3949 | ||
5436fc65 C |
3950 | EOF |
3951 | ||
3952 | cat >> $CONFIG_STATUS <<EOF | |
3953 | ac_sources="$files" | |
3954 | ac_dests="$links" | |
3955 | EOF | |
3956 | ||
3957 | cat >> $CONFIG_STATUS <<\EOF | |
3958 | srcdir=$ac_given_srcdir | |
3959 | while test -n "$ac_sources"; do | |
3960 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
3961 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
3962 | ||
3963 | echo "linking $srcdir/$ac_source to $ac_dest" | |
3964 | ||
3965 | if test ! -r $srcdir/$ac_source; then | |
3966 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
3967 | fi | |
3968 | rm -f $ac_dest | |
3969 | ||
3970 | # Make relative symlinks. | |
3971 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3972 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
3973 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
3974 | # The dest file is in a subdirectory. | |
3975 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
3976 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
3977 | # A "../" for each directory in $ac_dest_dir_suffix. | |
3978 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
3979 | else | |
3980 | ac_dest_dir_suffix= ac_dots= | |
3981 | fi | |
3982 | ||
3983 | case "$srcdir" in | |
3984 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
3985 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
3986 | esac | |
3987 | ||
3988 | # Make a symlink if possible; otherwise try a hard link. | |
3989 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
3990 | ln $srcdir/$ac_source $ac_dest; then : | |
3991 | else | |
3992 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
3993 | fi | |
3994 | done | |
0a5a1821 C |
3995 | EOF |
3996 | cat >> $CONFIG_STATUS <<EOF | |
5436fc65 | 3997 | |
0a5a1821 C |
3998 | gdb_host_cpu=$gdb_host_cpu |
3999 | gdb_target_cpu=$gdb_target_cpu | |
4000 | nativefile=$nativefile | |
4001 | ||
4002 | EOF | |
4003 | cat >> $CONFIG_STATUS <<\EOF | |
5436fc65 C |
4004 | |
4005 | if test "${nativefile}" = ""; then | |
4006 | sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \ | |
4007 | < Makefile > Makefile.tem | |
4008 | mv -f Makefile.tem Makefile | |
4009 | fi | |
4010 | ||
4011 | sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, | |
4012 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, | |
4013 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
4014 | mv -f Makefile.tmp Makefile | |
4015 | ||
4016 | case ${srcdir} in | |
4017 | .) | |
4018 | ;; | |
4019 | *) | |
4020 | grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \ | |
4021 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
4022 | esac | |
4023 | ||
31520669 | 4024 | case x$CONFIG_HEADERS in |
18ea4416 | 4025 | xconfig.h:config.in) |
31520669 FF |
4026 | echo > stamp-h ;; |
4027 | esac | |
4028 | ||
5436fc65 C |
4029 | exit 0 |
4030 | EOF | |
4031 | chmod +x $CONFIG_STATUS | |
4032 | rm -fr confdefs* $ac_clean_files | |
4033 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
4034 | ||
4035 | if test "$no_recursion" != yes; then | |
4036 | ||
4037 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
4038 | ac_sub_configure_args= | |
4039 | ac_prev= | |
4040 | for ac_arg in $ac_configure_args; do | |
4041 | if test -n "$ac_prev"; then | |
4042 | ac_prev= | |
4043 | continue | |
4044 | fi | |
4045 | case "$ac_arg" in | |
4046 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
4047 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
4048 | ac_prev=cache_file ;; | |
4049 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
4050 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
4051 | ;; | |
4052 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
4053 | ac_prev=srcdir ;; | |
4054 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
4055 | ;; | |
4056 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
4057 | esac | |
4058 | done | |
4059 | ||
4060 | for ac_config_dir in $configdirs; do | |
4061 | ||
4062 | # Do not complain, so a configure script can configure whichever | |
4063 | # parts of a large source tree are present. | |
4064 | if test ! -d $srcdir/$ac_config_dir; then | |
4065 | continue | |
4066 | fi | |
4067 | ||
4068 | echo configuring in $ac_config_dir | |
4069 | ||
4070 | case "$srcdir" in | |
4071 | .) ;; | |
4072 | *) | |
4073 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
4074 | else | |
4075 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
4076 | fi | |
4077 | ;; | |
4078 | esac | |
4079 | ||
4080 | ac_popdir=`pwd` | |
4081 | cd $ac_config_dir | |
4082 | ||
4083 | case "$srcdir" in | |
4084 | .) # No --srcdir option. We are building in place. | |
4085 | ac_sub_srcdir=$srcdir ;; | |
4086 | /*) # Absolute path. | |
4087 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
4088 | *) # Relative path. | |
4089 | ac_sub_srcdir=../$srcdir/$ac_config_dir ;; | |
4090 | esac | |
4091 | ||
4092 | # Check for guested configure; otherwise get Cygnus style configure. | |
4093 | if test -f $ac_sub_srcdir/configure; then | |
4094 | ac_sub_configure=$ac_sub_srcdir/configure | |
4095 | elif test -f $ac_sub_srcdir/configure.in; then | |
4096 | ac_sub_configure=$ac_configure | |
4097 | else | |
4098 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
4099 | ac_sub_configure= | |
4100 | fi | |
4101 | ||
4102 | # The recursion is here. | |
4103 | if test -n "$ac_sub_configure"; then | |
4104 | ||
4105 | # Make the cache file name correct relative to the subdirectory. | |
4106 | # A "../" for each directory in /$ac_config_dir. | |
4107 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
4108 | case "$cache_file" in | |
4109 | /*) ac_sub_cache_file=$cache_file ;; | |
4110 | *) # Relative path. | |
4111 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
4112 | esac | |
4113 | case "$ac_given_INSTALL" in | |
4114 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
4115 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
4116 | esac | |
4117 | ||
4118 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
4119 | # The eval makes quoting arguments work. | |
4120 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
4121 | then : | |
4122 | else | |
4123 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
4124 | fi | |
4125 | fi | |
4126 | ||
4127 | cd $ac_popdir | |
4128 | done | |
4129 | fi | |
4130 | ||
5e711e7f PS |
4131 | |
4132 | exit 0 | |
b7f3b6d5 | 4133 |