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