* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
[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.13
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 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 --disable-nls do not use Native Language Support"
19 ac_help="$ac_help
20 --with-included-gettext use the GNU gettext library included here"
21 ac_help="$ac_help
22 --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
23 ac_help="$ac_help
24 --disable-gdbcli disable command-line interface (CLI)"
25 ac_help="$ac_help
26 --disable-gdbmi disable machine-interface (MI)"
27 ac_help="$ac_help
28 --enable-tui enable full-screen terminal user interface (TUI)"
29 ac_help="$ac_help
30 --enable-gdbtk enable gdbtk graphical user interface (GUI)"
31 ac_help="$ac_help
32 --with-libunwind Use libunwind frame unwinding support"
33 ac_help="$ac_help
34 --enable-profiling enable profiling of GDB"
35 ac_help="$ac_help
36 --without-included-regex don't use included regex; this is the default
37 on systems with version 2 of the GNU C library
38 (use with caution on other system)"
39 ac_help="$ac_help
40 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
41 ac_help="$ac_help
42 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
43 ac_help="$ac_help
44 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
45 ac_help="$ac_help
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
47 ac_help="$ac_help
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
49 ac_help="$ac_help
50 --with-tclinclude=DIR Directory where tcl private headers are"
51 ac_help="$ac_help
52 --with-tkinclude=DIR Directory where tk private headers are"
53 ac_help="$ac_help
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
55 ac_help="$ac_help
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
57 ac_help="$ac_help
58 --with-x use the X Window System"
59 ac_help="$ac_help
60 --enable-sim Link gdb with simulator"
61 ac_help="$ac_help
62 --enable-multi-ice build the multi-ice-gdb-server"
63 ac_help="$ac_help
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
65
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 sitefile=
83 srcdir=
84 target=NONE
85 verbose=
86 x_includes=NONE
87 x_libraries=NONE
88 bindir='${exec_prefix}/bin'
89 sbindir='${exec_prefix}/sbin'
90 libexecdir='${exec_prefix}/libexec'
91 datadir='${prefix}/share'
92 sysconfdir='${prefix}/etc'
93 sharedstatedir='${prefix}/com'
94 localstatedir='${prefix}/var'
95 libdir='${exec_prefix}/lib'
96 includedir='${prefix}/include'
97 oldincludedir='/usr/include'
98 infodir='${prefix}/info'
99 mandir='${prefix}/man'
100
101 # Initialize some other variables.
102 subdirs=
103 MFLAGS= MAKEFLAGS=
104 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 ac_max_here_lines=12
107
108 ac_prev=
109 for ac_option
110 do
111
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
115 ac_prev=
116 continue
117 fi
118
119 case "$ac_option" in
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 *) ac_optarg= ;;
122 esac
123
124 # Accept the important Cygnus configure options, so we can diagnose typos.
125
126 case "$ac_option" in
127
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 ac_prev=bindir ;;
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
132
133 -build | --build | --buil | --bui | --bu)
134 ac_prev=build ;;
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
137
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
144
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 ac_prev=datadir ;;
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 | --da=*)
149 datadir="$ac_optarg" ;;
150
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 fi
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
159
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 fi
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 case "$ac_option" in
168 *=*) ;;
169 *) ac_optarg=yes ;;
170 esac
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
172
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
181
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
184 with_gas=yes ;;
185
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
189 cat << EOF
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
192 Configuration:
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
201 [$ac_default_prefix]
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 [same as prefix]
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
208 [PREFIX/share]
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 [PREFIX/com]
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
223 EOF
224 cat << EOF
225 Host type:
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
236 EOF
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
239 fi
240 exit 0 ;;
241
242 -host | --host | --hos | --ho)
243 ac_prev=host ;;
244 -host=* | --host=* | --hos=* | --ho=*)
245 host="$ac_optarg" ;;
246
247 -includedir | --includedir | --includedi | --included | --include \
248 | --includ | --inclu | --incl | --inc)
249 ac_prev=includedir ;;
250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251 | --includ=* | --inclu=* | --incl=* | --inc=*)
252 includedir="$ac_optarg" ;;
253
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 ac_prev=infodir ;;
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
258
259 -libdir | --libdir | --libdi | --libd)
260 ac_prev=libdir ;;
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
263
264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265 | --libexe | --libex | --libe)
266 ac_prev=libexecdir ;;
267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268 | --libexe=* | --libex=* | --libe=*)
269 libexecdir="$ac_optarg" ;;
270
271 -localstatedir | --localstatedir | --localstatedi | --localstated \
272 | --localstate | --localstat | --localsta | --localst \
273 | --locals | --local | --loca | --loc | --lo)
274 ac_prev=localstatedir ;;
275 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278 localstatedir="$ac_optarg" ;;
279
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 ac_prev=mandir ;;
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
284
285 -nfp | --nfp | --nf)
286 # Obsolete; use --without-fp.
287 with_fp=no ;;
288
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 | --no-cr | --no-c)
291 no_create=yes ;;
292
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295 no_recursion=yes ;;
296
297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299 | --oldin | --oldi | --old | --ol | --o)
300 ac_prev=oldincludedir ;;
301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304 oldincludedir="$ac_optarg" ;;
305
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 ac_prev=prefix ;;
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
310
311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
312 | --program-pre | --program-pr | --program-p)
313 ac_prev=program_prefix ;;
314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316 program_prefix="$ac_optarg" ;;
317
318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 | --program-suf | --program-su | --program-s)
320 ac_prev=program_suffix ;;
321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323 program_suffix="$ac_optarg" ;;
324
325 -program-transform-name | --program-transform-name \
326 | --program-transform-nam | --program-transform-na \
327 | --program-transform-n | --program-transform- \
328 | --program-transform | --program-transfor \
329 | --program-transfo | --program-transf \
330 | --program-trans | --program-tran \
331 | --progr-tra | --program-tr | --program-t)
332 ac_prev=program_transform_name ;;
333 -program-transform-name=* | --program-transform-name=* \
334 | --program-transform-nam=* | --program-transform-na=* \
335 | --program-transform-n=* | --program-transform-=* \
336 | --program-transform=* | --program-transfor=* \
337 | --program-transfo=* | --program-transf=* \
338 | --program-trans=* | --program-tran=* \
339 | --progr-tra=* | --program-tr=* | --program-t=*)
340 program_transform_name="$ac_optarg" ;;
341
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
344 silent=yes ;;
345
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 ac_prev=sbindir ;;
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 | --sbi=* | --sb=*)
350 sbindir="$ac_optarg" ;;
351
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
355 | --sha | --sh)
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 | --sha=* | --sh=*)
361 sharedstatedir="$ac_optarg" ;;
362
363 -site | --site | --sit)
364 ac_prev=site ;;
365 -site=* | --site=* | --sit=*)
366 site="$ac_optarg" ;;
367
368 -site-file | --site-file | --site-fil | --site-fi | --site-f)
369 ac_prev=sitefile ;;
370 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
371 sitefile="$ac_optarg" ;;
372
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
377
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
384
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
389
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
392
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
395 exit 0 ;;
396
397 -with-* | --with-*)
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 fi
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "with_${ac_package}='$ac_optarg'" ;;
409
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 fi
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
418
419 --x)
420 # Obsolete; use --with-x.
421 with_x=yes ;;
422
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
429
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
436
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438 ;;
439
440 *)
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 fi
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 fi
447 nonopt="$ac_option"
448 ;;
449
450 esac
451 done
452
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 fi
456
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468 exec 6>/dev/null
469 else
470 exec 6>&1
471 fi
472 exec 5>./config.log
473
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
478
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
483 do
484 case "$ac_arg" in
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 esac
493 done
494
495 # NLS nuisances.
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
509
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=main.c
513
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
518 ac_prog=$0
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 srcdir=$ac_confdir
522 if test ! -r $srcdir/$ac_unique_file; then
523 srcdir=..
524 fi
525 else
526 ac_srcdir_defaulted=no
527 fi
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 else
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 fi
534 fi
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE; then
541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542 else
543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 fi
545 fi
546 else
547 CONFIG_SITE="$sitefile"
548 fi
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
553 fi
554 done
555
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559 else
560 echo "creating cache $cache_file"
561 > $cache_file
562 fi
563
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
570
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577 ' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
580 fi
581 else
582 ac_n= ac_c='\c' ac_t=
583 fi
584
585
586
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE=$enableval
593 else
594 USE_MAINTAINER_MODE=no
595 fi
596
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
598
599
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE=
602 MAINTAINER_MODE_FALSE='#'
603 else
604 MAINTAINER_MODE_TRUE='#'
605 MAINTAINER_MODE_FALSE=
606 fi
607 MAINT=$MAINTAINER_MODE_TRUE
608
609
610
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc; ac_word=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
617 else
618 if test -n "$CC"; then
619 ac_cv_prog_CC="$CC" # Let the user override the test.
620 else
621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
622 ac_dummy="$PATH"
623 for ac_dir in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
626 ac_cv_prog_CC="gcc"
627 break
628 fi
629 done
630 IFS="$ac_save_ifs"
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 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc; ac_word=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
647 else
648 if test -n "$CC"; then
649 ac_cv_prog_CC="$CC" # Let the user override the test.
650 else
651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
652 ac_prog_rejected=no
653 ac_dummy="$PATH"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
658 ac_prog_rejected=yes
659 continue
660 fi
661 ac_cv_prog_CC="cc"
662 break
663 fi
664 done
665 IFS="$ac_save_ifs"
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy $ac_cv_prog_CC
669 shift
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
674 shift
675 set dummy "$ac_dir/$ac_word" "$@"
676 shift
677 ac_cv_prog_CC="$@"
678 fi
679 fi
680 fi
681 fi
682 CC="$ac_cv_prog_CC"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
685 else
686 echo "$ac_t""no" 1>&6
687 fi
688
689 if test -z "$CC"; then
690 case "`uname -s`" in
691 *win32* | *WIN32*)
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
698 else
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
701 else
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
703 ac_dummy="$PATH"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 ac_cv_prog_CC="cl"
708 break
709 fi
710 done
711 IFS="$ac_save_ifs"
712 fi
713 fi
714 CC="$ac_cv_prog_CC"
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
717 else
718 echo "$ac_t""no" 1>&6
719 fi
720 ;;
721 esac
722 fi
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
724 fi
725
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
728
729 ac_ext=c
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp='$CPP $CPPFLAGS'
732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling=$ac_cv_prog_cc_cross
735
736 cat > conftest.$ac_ext << EOF
737
738 #line 739 "configure"
739 #include "confdefs.h"
740
741 main(){return(0);}
742 EOF
743 if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
744 ac_cv_prog_cc_works=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (./conftest; exit) 2>/dev/null; then
747 ac_cv_prog_cc_cross=no
748 else
749 ac_cv_prog_cc_cross=yes
750 fi
751 else
752 echo "configure: failed program was:" >&5
753 cat conftest.$ac_ext >&5
754 ac_cv_prog_cc_works=no
755 fi
756 rm -fr conftest*
757 ac_ext=c
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp='$CPP $CPPFLAGS'
760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling=$ac_cv_prog_cc_cross
763
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
767 fi
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling=$ac_cv_prog_cc_cross
772
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777 else
778 cat > conftest.c <<EOF
779 #ifdef __GNUC__
780 yes;
781 #endif
782 EOF
783 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784 ac_cv_prog_gcc=yes
785 else
786 ac_cv_prog_gcc=no
787 fi
788 fi
789
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
791
792 if test $ac_cv_prog_gcc = yes; then
793 GCC=yes
794 else
795 GCC=
796 fi
797
798 ac_test_CFLAGS="${CFLAGS+set}"
799 ac_save_CFLAGS="$CFLAGS"
800 CFLAGS=
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
805 else
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
808 ac_cv_prog_cc_g=yes
809 else
810 ac_cv_prog_cc_g=no
811 fi
812 rm -f conftest*
813
814 fi
815
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
821 CFLAGS="-g -O2"
822 else
823 CFLAGS="-g"
824 fi
825 else
826 if test "$GCC" = yes; then
827 CFLAGS="-O2"
828 else
829 CFLAGS=
830 fi
831 fi
832
833 cat >> confdefs.h <<\EOF
834 #define _GNU_SOURCE 1
835 EOF
836
837
838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
839 echo "configure:840: checking how to run the C preprocessor" >&5
840 # On Suns, sometimes $CPP names a directory.
841 if test -n "$CPP" && test -d "$CPP"; then
842 CPP=
843 fi
844 if test -z "$CPP"; then
845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
847 else
848 # This must be in double quotes, not single quotes, because CPP may get
849 # substituted into the Makefile and "${CC-cc}" will confuse make.
850 CPP="${CC-cc} -E"
851 # On the NeXT, cc -E runs the code through the compiler's parser,
852 # not just through cpp.
853 cat > conftest.$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
856 #include <assert.h>
857 Syntax Error
858 EOF
859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
863 :
864 else
865 echo "$ac_err" >&5
866 echo "configure: failed program was:" >&5
867 cat conftest.$ac_ext >&5
868 rm -rf conftest*
869 CPP="${CC-cc} -E -traditional-cpp"
870 cat > conftest.$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
873 #include <assert.h>
874 Syntax Error
875 EOF
876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
880 :
881 else
882 echo "$ac_err" >&5
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
885 rm -rf conftest*
886 CPP="${CC-cc} -nologo -E"
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
890 #include <assert.h>
891 Syntax Error
892 EOF
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
897 :
898 else
899 echo "$ac_err" >&5
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
902 rm -rf conftest*
903 CPP=/lib/cpp
904 fi
905 rm -f conftest*
906 fi
907 rm -f conftest*
908 fi
909 rm -f conftest*
910 ac_cv_prog_CPP="$CPP"
911 fi
912 CPP="$ac_cv_prog_CPP"
913 else
914 ac_cv_prog_CPP="$CPP"
915 fi
916 echo "$ac_t""$CPP" 1>&6
917
918 echo $ac_n "checking for AIX""... $ac_c" 1>&6
919 echo "configure:920: checking for AIX" >&5
920 cat > conftest.$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
923 #ifdef _AIX
924 yes
925 #endif
926
927 EOF
928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
929 egrep "yes" >/dev/null 2>&1; then
930 rm -rf conftest*
931 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
932 #define _ALL_SOURCE 1
933 EOF
934
935 else
936 rm -rf conftest*
937 echo "$ac_t""no" 1>&6
938 fi
939 rm -f conftest*
940
941
942 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943 echo "configure:944: checking for POSIXized ISC" >&5
944 if test -d /etc/conf/kconfig.d &&
945 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
946 then
947 echo "$ac_t""yes" 1>&6
948 ISC=yes # If later tests want to check for ISC.
949 cat >> confdefs.h <<\EOF
950 #define _POSIX_SOURCE 1
951 EOF
952
953 if test "$GCC" = yes; then
954 CC="$CC -posix"
955 else
956 CC="$CC -Xp"
957 fi
958 else
959 echo "$ac_t""no" 1>&6
960 ISC=
961 fi
962
963
964
965
966 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
967 echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
968 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970 else
971 am_cv_prog_cc_stdc=no
972 ac_save_CC="$CC"
973 # Don't try gcc -ansi; that turns off useful extensions and
974 # breaks some systems' header files.
975 # AIX -qlanglvl=ansi
976 # Ultrix and OSF/1 -std1
977 # HP-UX 10.20 and later -Ae
978 # HP-UX older versions -Aa -D_HPUX_SOURCE
979 # SVR4 -Xc -D__EXTENSIONS__
980 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
981 do
982 CC="$ac_save_CC $ac_arg"
983 cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986 #include <stdarg.h>
987 #include <stdio.h>
988 #include <sys/types.h>
989 #include <sys/stat.h>
990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
991 struct buf { int x; };
992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
993 static char *e (p, i)
994 char **p;
995 int i;
996 {
997 return p[i];
998 }
999 static char *f (char * (*g) (char **, int), char **p, ...)
1000 {
1001 char *s;
1002 va_list v;
1003 va_start (v,p);
1004 s = g (p, va_arg (v,int));
1005 va_end (v);
1006 return s;
1007 }
1008 int test (int i, double x);
1009 struct s1 {int (*f) (int a);};
1010 struct s2 {int (*f) (double a);};
1011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1012 int argc;
1013 char **argv;
1014
1015 int main() {
1016
1017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1018
1019 ; return 0; }
1020 EOF
1021 if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1022 rm -rf conftest*
1023 am_cv_prog_cc_stdc="$ac_arg"; break
1024 else
1025 echo "configure: failed program was:" >&5
1026 cat conftest.$ac_ext >&5
1027 fi
1028 rm -f conftest*
1029 done
1030 CC="$ac_save_CC"
1031
1032 fi
1033
1034 if test -z "$am_cv_prog_cc_stdc"; then
1035 echo "$ac_t""none needed" 1>&6
1036 else
1037 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1038 fi
1039 case "x$am_cv_prog_cc_stdc" in
1040 x|xno) ;;
1041 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1042 esac
1043
1044
1045 ac_aux_dir=
1046 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1047 if test -f $ac_dir/install-sh; then
1048 ac_aux_dir=$ac_dir
1049 ac_install_sh="$ac_aux_dir/install-sh -c"
1050 break
1051 elif test -f $ac_dir/install.sh; then
1052 ac_aux_dir=$ac_dir
1053 ac_install_sh="$ac_aux_dir/install.sh -c"
1054 break
1055 fi
1056 done
1057 if test -z "$ac_aux_dir"; then
1058 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1059 fi
1060 ac_config_guess=$ac_aux_dir/config.guess
1061 ac_config_sub=$ac_aux_dir/config.sub
1062 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1063
1064
1065 # Do some error checking and defaulting for the host and target type.
1066 # The inputs are:
1067 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1068 #
1069 # The rules are:
1070 # 1. You are not allowed to specify --host, --target, and nonopt at the
1071 # same time.
1072 # 2. Host defaults to nonopt.
1073 # 3. If nonopt is not specified, then host defaults to the current host,
1074 # as determined by config.guess.
1075 # 4. Target and build default to nonopt.
1076 # 5. If nonopt is not specified, then target and build default to host.
1077
1078 # The aliases save the names the user supplied, while $host etc.
1079 # will get canonicalized.
1080 case $host---$target---$nonopt in
1081 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1082 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1083 esac
1084
1085
1086 # Make sure we can run config.sub.
1087 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1088 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1089 fi
1090
1091 echo $ac_n "checking host system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking host system type" >&5
1093
1094 host_alias=$host
1095 case "$host_alias" in
1096 NONE)
1097 case $nonopt in
1098 NONE)
1099 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1100 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1101 fi ;;
1102 *) host_alias=$nonopt ;;
1103 esac ;;
1104 esac
1105
1106 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1107 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$host" 1>&6
1111
1112 echo $ac_n "checking target system type""... $ac_c" 1>&6
1113 echo "configure:1114: checking target system type" >&5
1114
1115 target_alias=$target
1116 case "$target_alias" in
1117 NONE)
1118 case $nonopt in
1119 NONE) target_alias=$host_alias ;;
1120 *) target_alias=$nonopt ;;
1121 esac ;;
1122 esac
1123
1124 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1125 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128 echo "$ac_t""$target" 1>&6
1129
1130 echo $ac_n "checking build system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking build system type" >&5
1132
1133 build_alias=$build
1134 case "$build_alias" in
1135 NONE)
1136 case $nonopt in
1137 NONE) build_alias=$host_alias ;;
1138 *) build_alias=$nonopt ;;
1139 esac ;;
1140 esac
1141
1142 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1143 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1144 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1145 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 echo "$ac_t""$build" 1>&6
1147
1148 test "$host_alias" != "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1150 NONENONEs,x,x, &&
1151 program_prefix=${target_alias}-
1152
1153
1154 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1155 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1156 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1157 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1158 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1159 # 2.5x.
1160 if test $host != $build; then
1161 ac_tool_prefix=${host_alias}-
1162 else
1163 ac_tool_prefix=
1164 fi
1165
1166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1175 else
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1177 ac_dummy="$PATH"
1178 for ac_dir in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1182 break
1183 fi
1184 done
1185 IFS="$ac_save_ifs"
1186 fi
1187 fi
1188 RANLIB="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1191 else
1192 echo "$ac_t""no" 1>&6
1193 fi
1194
1195
1196 if test -z "$ac_cv_prog_RANLIB"; then
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1207 else
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 ac_dummy="$PATH"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB="ranlib"
1214 break
1215 fi
1216 done
1217 IFS="$ac_save_ifs"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1219 fi
1220 fi
1221 RANLIB="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1224 else
1225 echo "$ac_t""no" 1>&6
1226 fi
1227
1228 else
1229 RANLIB=":"
1230 fi
1231 fi
1232
1233
1234 ALL_LINGUAS=
1235 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
1237 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1240 else
1241 cat > conftestmake <<\EOF
1242 all:
1243 @echo 'ac_maketemp="${MAKE}"'
1244 EOF
1245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1246 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1247 if test -n "$ac_maketemp"; then
1248 eval ac_cv_prog_make_${ac_make}_set=yes
1249 else
1250 eval ac_cv_prog_make_${ac_make}_set=no
1251 fi
1252 rm -f conftestmake
1253 fi
1254 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1256 SET_MAKE=
1257 else
1258 echo "$ac_t""no" 1>&6
1259 SET_MAKE="MAKE=${MAKE-make}"
1260 fi
1261
1262 # Extract the first word of "ranlib", so it can be a program name with args.
1263 set dummy ranlib; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1271 else
1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1273 ac_dummy="$PATH"
1274 for ac_dir in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_RANLIB="ranlib"
1278 break
1279 fi
1280 done
1281 IFS="$ac_save_ifs"
1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1283 fi
1284 fi
1285 RANLIB="$ac_cv_prog_RANLIB"
1286 if test -n "$RANLIB"; then
1287 echo "$ac_t""$RANLIB" 1>&6
1288 else
1289 echo "$ac_t""no" 1>&6
1290 fi
1291
1292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1293 echo "configure:1294: checking for ANSI C header files" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1296 else
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1300 #include <stdlib.h>
1301 #include <stdarg.h>
1302 #include <string.h>
1303 #include <float.h>
1304 EOF
1305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1309 rm -rf conftest*
1310 ac_cv_header_stdc=yes
1311 else
1312 echo "$ac_err" >&5
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1315 rm -rf conftest*
1316 ac_cv_header_stdc=no
1317 fi
1318 rm -f conftest*
1319
1320 if test $ac_cv_header_stdc = yes; then
1321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 #include <string.h>
1326 EOF
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "memchr" >/dev/null 2>&1; then
1329 :
1330 else
1331 rm -rf conftest*
1332 ac_cv_header_stdc=no
1333 fi
1334 rm -f conftest*
1335
1336 fi
1337
1338 if test $ac_cv_header_stdc = yes; then
1339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 #include <stdlib.h>
1344 EOF
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "free" >/dev/null 2>&1; then
1347 :
1348 else
1349 rm -rf conftest*
1350 ac_cv_header_stdc=no
1351 fi
1352 rm -f conftest*
1353
1354 fi
1355
1356 if test $ac_cv_header_stdc = yes; then
1357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1358 if test "$cross_compiling" = yes; then
1359 :
1360 else
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1364 #include <ctype.h>
1365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1368 int main () { int i; for (i = 0; i < 256; i++)
1369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1370 exit (0); }
1371
1372 EOF
1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1374 then
1375 :
1376 else
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1379 rm -fr conftest*
1380 ac_cv_header_stdc=no
1381 fi
1382 rm -fr conftest*
1383 fi
1384
1385 fi
1386 fi
1387
1388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1389 if test $ac_cv_header_stdc = yes; then
1390 cat >> confdefs.h <<\EOF
1391 #define STDC_HEADERS 1
1392 EOF
1393
1394 fi
1395
1396 echo $ac_n "checking for working const""... $ac_c" 1>&6
1397 echo "configure:1398: checking for working const" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1400 else
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404
1405 int main() {
1406
1407 /* Ultrix mips cc rejects this. */
1408 typedef int charset[2]; const charset x;
1409 /* SunOS 4.1.1 cc rejects this. */
1410 char const *const *ccp;
1411 char **p;
1412 /* NEC SVR4.0.2 mips cc rejects this. */
1413 struct point {int x, y;};
1414 static struct point const zero = {0,0};
1415 /* AIX XL C 1.02.0.0 rejects this.
1416 It does not let you subtract one const X* pointer from another in an arm
1417 of an if-expression whose if-part is not a constant expression */
1418 const char *g = "string";
1419 ccp = &g + (g ? g-g : 0);
1420 /* HPUX 7.0 cc rejects these. */
1421 ++ccp;
1422 p = (char**) ccp;
1423 ccp = (char const *const *) p;
1424 { /* SCO 3.2v4 cc rejects this. */
1425 char *t;
1426 char const *s = 0 ? (char *) 0 : (char const *) 0;
1427
1428 *t++ = 0;
1429 }
1430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1431 int x[] = {25, 17};
1432 const int *foo = &x[0];
1433 ++foo;
1434 }
1435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1436 typedef const int *iptr;
1437 iptr p = 0;
1438 ++p;
1439 }
1440 { /* AIX XL C 1.02.0.0 rejects this saying
1441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1442 struct s { int j; const int *ap[3]; };
1443 struct s *b; b->j = 5;
1444 }
1445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1446 const int foo = 10;
1447 }
1448
1449 ; return 0; }
1450 EOF
1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1452 rm -rf conftest*
1453 ac_cv_c_const=yes
1454 else
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1457 rm -rf conftest*
1458 ac_cv_c_const=no
1459 fi
1460 rm -f conftest*
1461 fi
1462
1463 echo "$ac_t""$ac_cv_c_const" 1>&6
1464 if test $ac_cv_c_const = no; then
1465 cat >> confdefs.h <<\EOF
1466 #define const
1467 EOF
1468
1469 fi
1470
1471 echo $ac_n "checking for inline""... $ac_c" 1>&6
1472 echo "configure:1473: checking for inline" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1475 else
1476 ac_cv_c_inline=no
1477 for ac_kw in inline __inline__ __inline; do
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481
1482 int main() {
1483 } $ac_kw foo() {
1484 ; return 0; }
1485 EOF
1486 if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1487 rm -rf conftest*
1488 ac_cv_c_inline=$ac_kw; break
1489 else
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 fi
1493 rm -f conftest*
1494 done
1495
1496 fi
1497
1498 echo "$ac_t""$ac_cv_c_inline" 1>&6
1499 case "$ac_cv_c_inline" in
1500 inline | yes) ;;
1501 no) cat >> confdefs.h <<\EOF
1502 #define inline
1503 EOF
1504 ;;
1505 *) cat >> confdefs.h <<EOF
1506 #define inline $ac_cv_c_inline
1507 EOF
1508 ;;
1509 esac
1510
1511 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1512 echo "configure:1513: checking for off_t" >&5
1513 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1520 #if STDC_HEADERS
1521 #include <stdlib.h>
1522 #include <stddef.h>
1523 #endif
1524 EOF
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1527 rm -rf conftest*
1528 ac_cv_type_off_t=yes
1529 else
1530 rm -rf conftest*
1531 ac_cv_type_off_t=no
1532 fi
1533 rm -f conftest*
1534
1535 fi
1536 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1537 if test $ac_cv_type_off_t = no; then
1538 cat >> confdefs.h <<\EOF
1539 #define off_t long
1540 EOF
1541
1542 fi
1543
1544 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1545 echo "configure:1546: checking for size_t" >&5
1546 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1548 else
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <sys/types.h>
1553 #if STDC_HEADERS
1554 #include <stdlib.h>
1555 #include <stddef.h>
1556 #endif
1557 EOF
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1560 rm -rf conftest*
1561 ac_cv_type_size_t=yes
1562 else
1563 rm -rf conftest*
1564 ac_cv_type_size_t=no
1565 fi
1566 rm -f conftest*
1567
1568 fi
1569 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1570 if test $ac_cv_type_size_t = no; then
1571 cat >> confdefs.h <<\EOF
1572 #define size_t unsigned
1573 EOF
1574
1575 fi
1576
1577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1578 # for constant arguments. Useless!
1579 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1580 echo "configure:1581: checking for working alloca.h" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1583 else
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 #include <alloca.h>
1588 int main() {
1589 char *p = alloca(2 * sizeof(int));
1590 ; return 0; }
1591 EOF
1592 if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1593 rm -rf conftest*
1594 ac_cv_header_alloca_h=yes
1595 else
1596 echo "configure: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1598 rm -rf conftest*
1599 ac_cv_header_alloca_h=no
1600 fi
1601 rm -f conftest*
1602 fi
1603
1604 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1605 if test $ac_cv_header_alloca_h = yes; then
1606 cat >> confdefs.h <<\EOF
1607 #define HAVE_ALLOCA_H 1
1608 EOF
1609
1610 fi
1611
1612 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1613 echo "configure:1614: checking for alloca" >&5
1614 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620
1621 #ifdef __GNUC__
1622 # define alloca __builtin_alloca
1623 #else
1624 # ifdef _MSC_VER
1625 # include <malloc.h>
1626 # define alloca _alloca
1627 # else
1628 # if HAVE_ALLOCA_H
1629 # include <alloca.h>
1630 # else
1631 # ifdef _AIX
1632 #pragma alloca
1633 # else
1634 # ifndef alloca /* predefined by HP cc +Olibcalls */
1635 char *alloca ();
1636 # endif
1637 # endif
1638 # endif
1639 # endif
1640 #endif
1641
1642 int main() {
1643 char *p = (char *) alloca(1);
1644 ; return 0; }
1645 EOF
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1647 rm -rf conftest*
1648 ac_cv_func_alloca_works=yes
1649 else
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1652 rm -rf conftest*
1653 ac_cv_func_alloca_works=no
1654 fi
1655 rm -f conftest*
1656 fi
1657
1658 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1659 if test $ac_cv_func_alloca_works = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define HAVE_ALLOCA 1
1662 EOF
1663
1664 fi
1665
1666 if test $ac_cv_func_alloca_works = no; then
1667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1668 # that cause trouble. Some versions do not even contain alloca or
1669 # contain a buggy version. If you still want to use their alloca,
1670 # use ar to extract alloca.o from them instead of compiling alloca.c.
1671 ALLOCA=alloca.${ac_objext}
1672 cat >> confdefs.h <<\EOF
1673 #define C_ALLOCA 1
1674 EOF
1675
1676
1677 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether alloca needs Cray hooks" >&5
1679 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681 else
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #if defined(CRAY) && ! defined(CRAY2)
1686 webecray
1687 #else
1688 wenotbecray
1689 #endif
1690
1691 EOF
1692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1693 egrep "webecray" >/dev/null 2>&1; then
1694 rm -rf conftest*
1695 ac_cv_os_cray=yes
1696 else
1697 rm -rf conftest*
1698 ac_cv_os_cray=no
1699 fi
1700 rm -f conftest*
1701
1702 fi
1703
1704 echo "$ac_t""$ac_cv_os_cray" 1>&6
1705 if test $ac_cv_os_cray = yes; then
1706 for ac_func in _getb67 GETB67 getb67; do
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1717 #include <assert.h>
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1721 char $ac_func();
1722
1723 int main() {
1724
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1729 choke me
1730 #else
1731 $ac_func();
1732 #endif
1733
1734 ; return 0; }
1735 EOF
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1737 rm -rf conftest*
1738 eval "ac_cv_func_$ac_func=yes"
1739 else
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1742 rm -rf conftest*
1743 eval "ac_cv_func_$ac_func=no"
1744 fi
1745 rm -f conftest*
1746 fi
1747
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h <<EOF
1751 #define CRAY_STACKSEG_END $ac_func
1752 EOF
1753
1754 break
1755 else
1756 echo "$ac_t""no" 1>&6
1757 fi
1758
1759 done
1760 fi
1761
1762 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1763 echo "configure:1764: checking stack direction for C alloca" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767 if test "$cross_compiling" = yes; then
1768 ac_cv_c_stack_direction=0
1769 else
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 find_stack_direction ()
1774 {
1775 static char *addr = 0;
1776 auto char dummy;
1777 if (addr == 0)
1778 {
1779 addr = &dummy;
1780 return find_stack_direction ();
1781 }
1782 else
1783 return (&dummy > addr) ? 1 : -1;
1784 }
1785 main ()
1786 {
1787 exit (find_stack_direction() < 0);
1788 }
1789 EOF
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1791 then
1792 ac_cv_c_stack_direction=1
1793 else
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 rm -fr conftest*
1797 ac_cv_c_stack_direction=-1
1798 fi
1799 rm -fr conftest*
1800 fi
1801
1802 fi
1803
1804 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1805 cat >> confdefs.h <<EOF
1806 #define STACK_DIRECTION $ac_cv_c_stack_direction
1807 EOF
1808
1809 fi
1810
1811 for ac_hdr in unistd.h
1812 do
1813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 #include <$ac_hdr>
1823 EOF
1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1828 rm -rf conftest*
1829 eval "ac_cv_header_$ac_safe=yes"
1830 else
1831 echo "$ac_err" >&5
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1834 rm -rf conftest*
1835 eval "ac_cv_header_$ac_safe=no"
1836 fi
1837 rm -f conftest*
1838 fi
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_hdr 1
1844 EOF
1845
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849 done
1850
1851 for ac_func in getpagesize
1852 do
1853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_func" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $ac_func(); below. */
1863 #include <assert.h>
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1867 char $ac_func();
1868
1869 int main() {
1870
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1875 choke me
1876 #else
1877 $ac_func();
1878 #endif
1879
1880 ; return 0; }
1881 EOF
1882 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1883 rm -rf conftest*
1884 eval "ac_cv_func_$ac_func=yes"
1885 else
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 rm -rf conftest*
1889 eval "ac_cv_func_$ac_func=no"
1890 fi
1891 rm -f conftest*
1892 fi
1893
1894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1897 cat >> confdefs.h <<EOF
1898 #define $ac_tr_func 1
1899 EOF
1900
1901 else
1902 echo "$ac_t""no" 1>&6
1903 fi
1904 done
1905
1906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1907 echo "configure:1908: checking for working mmap" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1910 else
1911 if test "$cross_compiling" = yes; then
1912 ac_cv_func_mmap_fixed_mapped=no
1913 else
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917
1918 /* Thanks to Mike Haertel and Jim Avera for this test.
1919 Here is a matrix of mmap possibilities:
1920 mmap private not fixed
1921 mmap private fixed at somewhere currently unmapped
1922 mmap private fixed at somewhere already mapped
1923 mmap shared not fixed
1924 mmap shared fixed at somewhere currently unmapped
1925 mmap shared fixed at somewhere already mapped
1926 For private mappings, we should verify that changes cannot be read()
1927 back from the file, nor mmap's back from the file at a different
1928 address. (There have been systems where private was not correctly
1929 implemented like the infamous i386 svr4.0, and systems where the
1930 VM page cache was not coherent with the filesystem buffer cache
1931 like early versions of FreeBSD and possibly contemporary NetBSD.)
1932 For shared mappings, we should conversely verify that changes get
1933 propogated back to all the places they're supposed to be.
1934
1935 Grep wants private fixed already mapped.
1936 The main things grep needs to know about mmap are:
1937 * does it exist and is it safe to write into the mmap'd area
1938 * how to use it (BSD variants) */
1939 #include <sys/types.h>
1940 #include <fcntl.h>
1941 #include <sys/mman.h>
1942
1943 /* This mess was copied from the GNU getpagesize.h. */
1944 #ifndef HAVE_GETPAGESIZE
1945 # ifdef HAVE_UNISTD_H
1946 # include <unistd.h>
1947 # endif
1948
1949 /* Assume that all systems that can run configure have sys/param.h. */
1950 # ifndef HAVE_SYS_PARAM_H
1951 # define HAVE_SYS_PARAM_H 1
1952 # endif
1953
1954 # ifdef _SC_PAGESIZE
1955 # define getpagesize() sysconf(_SC_PAGESIZE)
1956 # else /* no _SC_PAGESIZE */
1957 # ifdef HAVE_SYS_PARAM_H
1958 # include <sys/param.h>
1959 # ifdef EXEC_PAGESIZE
1960 # define getpagesize() EXEC_PAGESIZE
1961 # else /* no EXEC_PAGESIZE */
1962 # ifdef NBPG
1963 # define getpagesize() NBPG * CLSIZE
1964 # ifndef CLSIZE
1965 # define CLSIZE 1
1966 # endif /* no CLSIZE */
1967 # else /* no NBPG */
1968 # ifdef NBPC
1969 # define getpagesize() NBPC
1970 # else /* no NBPC */
1971 # ifdef PAGESIZE
1972 # define getpagesize() PAGESIZE
1973 # endif /* PAGESIZE */
1974 # endif /* no NBPC */
1975 # endif /* no NBPG */
1976 # endif /* no EXEC_PAGESIZE */
1977 # else /* no HAVE_SYS_PARAM_H */
1978 # define getpagesize() 8192 /* punt totally */
1979 # endif /* no HAVE_SYS_PARAM_H */
1980 # endif /* no _SC_PAGESIZE */
1981
1982 #endif /* no HAVE_GETPAGESIZE */
1983
1984 #ifdef __cplusplus
1985 extern "C" { void *malloc(unsigned); }
1986 #else
1987 char *malloc();
1988 #endif
1989
1990 int
1991 main()
1992 {
1993 char *data, *data2, *data3;
1994 int i, pagesize;
1995 int fd;
1996
1997 pagesize = getpagesize();
1998
1999 /*
2000 * First, make a file with some known garbage in it.
2001 */
2002 data = malloc(pagesize);
2003 if (!data)
2004 exit(1);
2005 for (i = 0; i < pagesize; ++i)
2006 *(data + i) = rand();
2007 umask(0);
2008 fd = creat("conftestmmap", 0600);
2009 if (fd < 0)
2010 exit(1);
2011 if (write(fd, data, pagesize) != pagesize)
2012 exit(1);
2013 close(fd);
2014
2015 /*
2016 * Next, try to mmap the file at a fixed address which
2017 * already has something else allocated at it. If we can,
2018 * also make sure that we see the same garbage.
2019 */
2020 fd = open("conftestmmap", O_RDWR);
2021 if (fd < 0)
2022 exit(1);
2023 data2 = malloc(2 * pagesize);
2024 if (!data2)
2025 exit(1);
2026 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2027 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2029 exit(1);
2030 for (i = 0; i < pagesize; ++i)
2031 if (*(data + i) != *(data2 + i))
2032 exit(1);
2033
2034 /*
2035 * Finally, make sure that changes to the mapped area
2036 * do not percolate back to the file as seen by read().
2037 * (This is a bug on some variants of i386 svr4.0.)
2038 */
2039 for (i = 0; i < pagesize; ++i)
2040 *(data2 + i) = *(data2 + i) + 1;
2041 data3 = malloc(pagesize);
2042 if (!data3)
2043 exit(1);
2044 if (read(fd, data3, pagesize) != pagesize)
2045 exit(1);
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data3 + i))
2048 exit(1);
2049 close(fd);
2050 unlink("conftestmmap");
2051 exit(0);
2052 }
2053
2054 EOF
2055 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2056 then
2057 ac_cv_func_mmap_fixed_mapped=yes
2058 else
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -fr conftest*
2062 ac_cv_func_mmap_fixed_mapped=no
2063 fi
2064 rm -fr conftest*
2065 fi
2066
2067 fi
2068
2069 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2070 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2071 cat >> confdefs.h <<\EOF
2072 #define HAVE_MMAP 1
2073 EOF
2074
2075 fi
2076
2077
2078 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2079 unistd.h values.h sys/param.h
2080 do
2081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 #include <$ac_hdr>
2091 EOF
2092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2096 rm -rf conftest*
2097 eval "ac_cv_header_$ac_safe=yes"
2098 else
2099 echo "$ac_err" >&5
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 rm -rf conftest*
2103 eval "ac_cv_header_$ac_safe=no"
2104 fi
2105 rm -f conftest*
2106 fi
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h <<EOF
2111 #define $ac_tr_hdr 1
2112 EOF
2113
2114 else
2115 echo "$ac_t""no" 1>&6
2116 fi
2117 done
2118
2119 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2120 __argz_count __argz_stringify __argz_next
2121 do
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2132 #include <assert.h>
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2136 char $ac_func();
2137
2138 int main() {
2139
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2144 choke me
2145 #else
2146 $ac_func();
2147 #endif
2148
2149 ; return 0; }
2150 EOF
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2152 rm -rf conftest*
2153 eval "ac_cv_func_$ac_func=yes"
2154 else
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 rm -rf conftest*
2158 eval "ac_cv_func_$ac_func=no"
2159 fi
2160 rm -f conftest*
2161 fi
2162
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h <<EOF
2167 #define $ac_tr_func 1
2168 EOF
2169
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173 done
2174
2175
2176 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2177 for ac_func in stpcpy
2178 do
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2189 #include <assert.h>
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char $ac_func();
2194
2195 int main() {
2196
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2201 choke me
2202 #else
2203 $ac_func();
2204 #endif
2205
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 eval "ac_cv_func_$ac_func=yes"
2211 else
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2214 rm -rf conftest*
2215 eval "ac_cv_func_$ac_func=no"
2216 fi
2217 rm -f conftest*
2218 fi
2219
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h <<EOF
2224 #define $ac_tr_func 1
2225 EOF
2226
2227 else
2228 echo "$ac_t""no" 1>&6
2229 fi
2230 done
2231
2232 fi
2233 if test "${ac_cv_func_stpcpy}" = "yes"; then
2234 cat >> confdefs.h <<\EOF
2235 #define HAVE_STPCPY 1
2236 EOF
2237
2238 fi
2239
2240 if test $ac_cv_header_locale_h = yes; then
2241 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2242 echo "configure:2243: checking for LC_MESSAGES" >&5
2243 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2245 else
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249 #include <locale.h>
2250 int main() {
2251 return LC_MESSAGES
2252 ; return 0; }
2253 EOF
2254 if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2255 rm -rf conftest*
2256 am_cv_val_LC_MESSAGES=yes
2257 else
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2260 rm -rf conftest*
2261 am_cv_val_LC_MESSAGES=no
2262 fi
2263 rm -f conftest*
2264 fi
2265
2266 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2267 if test $am_cv_val_LC_MESSAGES = yes; then
2268 cat >> confdefs.h <<\EOF
2269 #define HAVE_LC_MESSAGES 1
2270 EOF
2271
2272 fi
2273 fi
2274 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether NLS is requested" >&5
2276 # Check whether --enable-nls or --disable-nls was given.
2277 if test "${enable_nls+set}" = set; then
2278 enableval="$enable_nls"
2279 USE_NLS=$enableval
2280 else
2281 USE_NLS=yes
2282 fi
2283
2284 echo "$ac_t""$USE_NLS" 1>&6
2285
2286
2287 USE_INCLUDED_LIBINTL=no
2288
2289 if test "$USE_NLS" = "yes"; then
2290 cat >> confdefs.h <<\EOF
2291 #define ENABLE_NLS 1
2292 EOF
2293
2294 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether included gettext is requested" >&5
2296 # Check whether --with-included-gettext or --without-included-gettext was given.
2297 if test "${with_included_gettext+set}" = set; then
2298 withval="$with_included_gettext"
2299 nls_cv_force_use_gnu_gettext=$withval
2300 else
2301 nls_cv_force_use_gnu_gettext=no
2302 fi
2303
2304 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2305
2306 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2307 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2308 nls_cv_header_intl=
2309 nls_cv_header_libgt=
2310 CATOBJEXT=NONE
2311
2312 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for libintl.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <libintl.h>
2322 EOF
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2327 rm -rf conftest*
2328 eval "ac_cv_header_$ac_safe=yes"
2329 else
2330 echo "$ac_err" >&5
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2333 rm -rf conftest*
2334 eval "ac_cv_header_$ac_safe=no"
2335 fi
2336 rm -f conftest*
2337 fi
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for gettext in libc" >&5
2342 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2344 else
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <libintl.h>
2349 int main() {
2350 return (int) gettext ("")
2351 ; return 0; }
2352 EOF
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2354 rm -rf conftest*
2355 gt_cv_func_gettext_libc=yes
2356 else
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 rm -rf conftest*
2360 gt_cv_func_gettext_libc=no
2361 fi
2362 rm -f conftest*
2363 fi
2364
2365 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2366
2367 if test "$gt_cv_func_gettext_libc" != "yes"; then
2368 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for bindtextdomain in -lintl" >&5
2370 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 ac_save_LIBS="$LIBS"
2375 LIBS="-lintl $LIBS"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char bindtextdomain();
2383
2384 int main() {
2385 bindtextdomain()
2386 ; return 0; }
2387 EOF
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 rm -rf conftest*
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2391 else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 eval "ac_cv_lib_$ac_lib_var=no"
2396 fi
2397 rm -f conftest*
2398 LIBS="$ac_save_LIBS"
2399
2400 fi
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2404 echo "configure:2405: checking for gettext in libintl" >&5
2405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2407 else
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411
2412 int main() {
2413 return (int) gettext ("")
2414 ; return 0; }
2415 EOF
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2417 rm -rf conftest*
2418 gt_cv_func_gettext_libintl=yes
2419 else
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 rm -rf conftest*
2423 gt_cv_func_gettext_libintl=no
2424 fi
2425 rm -f conftest*
2426 fi
2427
2428 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2429 else
2430 echo "$ac_t""no" 1>&6
2431 fi
2432
2433 fi
2434
2435 if test "$gt_cv_func_gettext_libc" = "yes" \
2436 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2437 cat >> confdefs.h <<\EOF
2438 #define HAVE_GETTEXT 1
2439 EOF
2440
2441 # Extract the first word of "msgfmt", so it can be a program name with args.
2442 set dummy msgfmt; ac_word=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2448 case "$MSGFMT" in
2449 /*)
2450 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2451 ;;
2452 *)
2453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2454 for ac_dir in $PATH; do
2455 test -z "$ac_dir" && ac_dir=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2458 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2459 break
2460 fi
2461 fi
2462 done
2463 IFS="$ac_save_ifs"
2464 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2465 ;;
2466 esac
2467 fi
2468 MSGFMT="$ac_cv_path_MSGFMT"
2469 if test -n "$MSGFMT"; then
2470 echo "$ac_t""$MSGFMT" 1>&6
2471 else
2472 echo "$ac_t""no" 1>&6
2473 fi
2474 if test "$MSGFMT" != "no"; then
2475 for ac_func in dcgettext
2476 do
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char $ac_func(); below. */
2487 #include <assert.h>
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2491 char $ac_func();
2492
2493 int main() {
2494
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2499 choke me
2500 #else
2501 $ac_func();
2502 #endif
2503
2504 ; return 0; }
2505 EOF
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 rm -rf conftest*
2508 eval "ac_cv_func_$ac_func=yes"
2509 else
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -rf conftest*
2513 eval "ac_cv_func_$ac_func=no"
2514 fi
2515 rm -f conftest*
2516 fi
2517
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521 cat >> confdefs.h <<EOF
2522 #define $ac_tr_func 1
2523 EOF
2524
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528 done
2529
2530 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2531 set dummy gmsgfmt; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2536 else
2537 case "$GMSGFMT" in
2538 /*)
2539 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2540 ;;
2541 ?:/*)
2542 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2543 ;;
2544 *)
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2546 ac_dummy="$PATH"
2547 for ac_dir in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2551 break
2552 fi
2553 done
2554 IFS="$ac_save_ifs"
2555 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2556 ;;
2557 esac
2558 fi
2559 GMSGFMT="$ac_cv_path_GMSGFMT"
2560 if test -n "$GMSGFMT"; then
2561 echo "$ac_t""$GMSGFMT" 1>&6
2562 else
2563 echo "$ac_t""no" 1>&6
2564 fi
2565
2566 # Extract the first word of "xgettext", so it can be a program name with args.
2567 set dummy xgettext; ac_word=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573 case "$XGETTEXT" in
2574 /*)
2575 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2576 ;;
2577 *)
2578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2579 for ac_dir in $PATH; do
2580 test -z "$ac_dir" && ac_dir=.
2581 if test -f $ac_dir/$ac_word; then
2582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2583 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2584 break
2585 fi
2586 fi
2587 done
2588 IFS="$ac_save_ifs"
2589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2590 ;;
2591 esac
2592 fi
2593 XGETTEXT="$ac_cv_path_XGETTEXT"
2594 if test -n "$XGETTEXT"; then
2595 echo "$ac_t""$XGETTEXT" 1>&6
2596 else
2597 echo "$ac_t""no" 1>&6
2598 fi
2599
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603
2604 int main() {
2605 extern int _nl_msg_cat_cntr;
2606 return _nl_msg_cat_cntr
2607 ; return 0; }
2608 EOF
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2610 rm -rf conftest*
2611 CATOBJEXT=.gmo
2612 DATADIRNAME=share
2613 else
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2616 rm -rf conftest*
2617 CATOBJEXT=.mo
2618 DATADIRNAME=lib
2619 fi
2620 rm -f conftest*
2621 INSTOBJEXT=.mo
2622 fi
2623 fi
2624
2625 else
2626 echo "$ac_t""no" 1>&6
2627 fi
2628
2629
2630
2631 if test "$CATOBJEXT" = "NONE"; then
2632 nls_cv_use_gnu_gettext=yes
2633 fi
2634 fi
2635
2636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2637 INTLOBJS="\$(GETTOBJS)"
2638 # Extract the first word of "msgfmt", so it can be a program name with args.
2639 set dummy msgfmt; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2644 else
2645 case "$MSGFMT" in
2646 /*)
2647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2648 ;;
2649 *)
2650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2651 for ac_dir in $PATH; do
2652 test -z "$ac_dir" && ac_dir=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2655 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2656 break
2657 fi
2658 fi
2659 done
2660 IFS="$ac_save_ifs"
2661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2662 ;;
2663 esac
2664 fi
2665 MSGFMT="$ac_cv_path_MSGFMT"
2666 if test -n "$MSGFMT"; then
2667 echo "$ac_t""$MSGFMT" 1>&6
2668 else
2669 echo "$ac_t""no" 1>&6
2670 fi
2671
2672 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2673 set dummy gmsgfmt; ac_word=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2678 else
2679 case "$GMSGFMT" in
2680 /*)
2681 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2682 ;;
2683 ?:/*)
2684 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2685 ;;
2686 *)
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2688 ac_dummy="$PATH"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2693 break
2694 fi
2695 done
2696 IFS="$ac_save_ifs"
2697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2698 ;;
2699 esac
2700 fi
2701 GMSGFMT="$ac_cv_path_GMSGFMT"
2702 if test -n "$GMSGFMT"; then
2703 echo "$ac_t""$GMSGFMT" 1>&6
2704 else
2705 echo "$ac_t""no" 1>&6
2706 fi
2707
2708 # Extract the first word of "xgettext", so it can be a program name with args.
2709 set dummy xgettext; ac_word=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2714 else
2715 case "$XGETTEXT" in
2716 /*)
2717 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2718 ;;
2719 *)
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2721 for ac_dir in $PATH; do
2722 test -z "$ac_dir" && ac_dir=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2725 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2726 break
2727 fi
2728 fi
2729 done
2730 IFS="$ac_save_ifs"
2731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2732 ;;
2733 esac
2734 fi
2735 XGETTEXT="$ac_cv_path_XGETTEXT"
2736 if test -n "$XGETTEXT"; then
2737 echo "$ac_t""$XGETTEXT" 1>&6
2738 else
2739 echo "$ac_t""no" 1>&6
2740 fi
2741
2742
2743 USE_INCLUDED_LIBINTL=yes
2744 CATOBJEXT=.gmo
2745 INSTOBJEXT=.mo
2746 DATADIRNAME=share
2747 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2748 INTLLIBS=$INTLDEPS
2749 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2750 nls_cv_header_intl=libintl.h
2751 nls_cv_header_libgt=libgettext.h
2752 fi
2753
2754 if test "$XGETTEXT" != ":"; then
2755 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2756 : ;
2757 else
2758 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2759 XGETTEXT=":"
2760 fi
2761 fi
2762
2763 # We need to process the po/ directory.
2764 POSUB=po
2765 else
2766 DATADIRNAME=share
2767 nls_cv_header_intl=libintl.h
2768 nls_cv_header_libgt=libgettext.h
2769 fi
2770
2771 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2772 # because some of the sources are only built for this goal.
2773 if test "$PACKAGE" = gettext; then
2774 USE_NLS=yes
2775 USE_INCLUDED_LIBINTL=yes
2776 fi
2777
2778 for lang in $ALL_LINGUAS; do
2779 GMOFILES="$GMOFILES $lang.gmo"
2780 POFILES="$POFILES $lang.po"
2781 done
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796 if test "x$CATOBJEXT" != "x"; then
2797 if test "x$ALL_LINGUAS" = "x"; then
2798 LINGUAS=
2799 else
2800 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for catalogs to be installed" >&5
2802 NEW_LINGUAS=
2803 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2804 case "$ALL_LINGUAS" in
2805 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2806 esac
2807 done
2808 LINGUAS=$NEW_LINGUAS
2809 echo "$ac_t""$LINGUAS" 1>&6
2810 fi
2811
2812 if test -n "$LINGUAS"; then
2813 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2814 fi
2815 fi
2816
2817 if test $ac_cv_header_locale_h = yes; then
2818 INCLUDE_LOCALE_H="#include <locale.h>"
2819 else
2820 INCLUDE_LOCALE_H="\
2821 /* The system does not provide the header <locale.h>. Take care yourself. */"
2822 fi
2823
2824
2825 if test -f $srcdir/po2tbl.sed.in; then
2826 if test "$CATOBJEXT" = ".cat"; then
2827 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for linux/version.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <linux/version.h>
2837 EOF
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2842 rm -rf conftest*
2843 eval "ac_cv_header_$ac_safe=yes"
2844 else
2845 echo "$ac_err" >&5
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 rm -rf conftest*
2849 eval "ac_cv_header_$ac_safe=no"
2850 fi
2851 rm -f conftest*
2852 fi
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 msgformat=linux
2856 else
2857 echo "$ac_t""no" 1>&6
2858 msgformat=xopen
2859 fi
2860
2861
2862 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2863 fi
2864 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2865 $srcdir/po2tbl.sed.in > po2tbl.sed
2866 fi
2867
2868 if test "$PACKAGE" = "gettext"; then
2869 GT_NO="#NO#"
2870 GT_YES=
2871 else
2872 GT_NO=
2873 GT_YES="#YES#"
2874 fi
2875
2876
2877
2878 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2879
2880
2881 l=
2882
2883
2884 if test -f $srcdir/po/POTFILES.in; then
2885 test -d po || mkdir po
2886 if test "x$srcdir" != "x."; then
2887 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2888 posrcprefix="$srcdir/"
2889 else
2890 posrcprefix="../$srcdir/"
2891 fi
2892 else
2893 posrcprefix="../"
2894 fi
2895 rm -f po/POTFILES
2896 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2897 < $srcdir/po/POTFILES.in > po/POTFILES
2898 fi
2899
2900 cat >> confdefs.h <<\EOF
2901 #define PACKAGE "gdb"
2902 EOF
2903
2904
2905 debugdir=${libdir}/debug
2906
2907 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2908 if test "${with_separate_debug_dir+set}" = set; then
2909 withval="$with_separate_debug_dir"
2910 debugdir="${withval}"
2911 fi
2912
2913
2914
2915 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2917 ac_define_dir=`eval echo $debugdir`
2918 ac_define_dir=`eval echo $ac_define_dir`
2919 cat >> confdefs.h <<EOF
2920 #define DEBUGDIR "$ac_define_dir"
2921 EOF
2922
2923
2924 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2925
2926
2927 CONFIG_OBS=
2928 CONFIG_DEPS=
2929 CONFIG_SRCS=
2930 ENABLE_CFLAGS=
2931 CONFIG_ALL=
2932 CONFIG_CLEAN=
2933 CONFIG_INSTALL=
2934 CONFIG_UNINSTALL=
2935
2936 subdirs="doc testsuite"
2937
2938 configdirs=
2939
2940 . $srcdir/configure.host
2941
2942 . $srcdir/configure.tgt
2943
2944 # Fetch the default architecture and default target vector from BFD.
2945 targ=$target; . $srcdir/../bfd/config.bfd
2946
2947 # We only want the first architecture, so strip off the others if
2948 # there is more than one.
2949 targ_archs=`echo $targ_archs | sed 's/ .*//'`
2950
2951 if test "x$targ_archs" != x; then
2952 cat >> confdefs.h <<EOF
2953 #define DEFAULT_BFD_ARCH $targ_archs
2954 EOF
2955
2956 fi
2957 if test "x$targ_defvec" != x; then
2958 cat >> confdefs.h <<EOF
2959 #define DEFAULT_BFD_VEC $targ_defvec
2960 EOF
2961
2962 fi
2963
2964 if test "$program_transform_name" = s,x,x,; then
2965 program_transform_name=
2966 else
2967 # Double any \ or $. echo might interpret backslashes.
2968 cat <<\EOF_SED > conftestsed
2969 s,\\,\\\\,g; s,\$,$$,g
2970 EOF_SED
2971 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2972 rm -f conftestsed
2973 fi
2974 test "$program_prefix" != NONE &&
2975 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE &&
2978 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2979
2980 # sed with no file args requires a program.
2981 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2982
2983
2984 # The CLI cannot be disabled yet, but may be in the future.
2985
2986 # Enable CLI.
2987 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2988 if test "${enable_gdbcli+set}" = set; then
2989 enableval="$enable_gdbcli"
2990 case $enableval in
2991 yes)
2992 ;;
2993 no)
2994 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2995 *)
2996 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
2997 esac
2998 else
2999 enable_gdbcli=yes
3000 fi
3001
3002 if test x"$enable_gdbcli" = xyes; then
3003 if test -d $srcdir/cli; then
3004 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3005 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3006 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3007 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3008 fi
3009 fi
3010
3011 # Enable MI.
3012 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3013 if test "${enable_gdbmi+set}" = set; then
3014 enableval="$enable_gdbmi"
3015 case $enableval in
3016 yes | no)
3017 ;;
3018 *)
3019 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3020 esac
3021 else
3022 enable_gdbmi=yes
3023 fi
3024
3025 if test x"$enable_gdbmi" = xyes; then
3026 if test -d $srcdir/mi; then
3027 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3028 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3029 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3030 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3031 fi
3032 fi
3033
3034 # Enable TUI.
3035 # Check whether --enable-tui or --disable-tui was given.
3036 if test "${enable_tui+set}" = set; then
3037 enableval="$enable_tui"
3038 case $enableval in
3039 yes | no)
3040 ;;
3041 *)
3042 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3043 esac
3044 else
3045 enable_tui=yes
3046 fi
3047
3048 if test x"$enable_tui" = xyes; then
3049 if test -d $srcdir/tui; then
3050 if test "$ac_cv_search_initscr" != no -a "$ac_cv_search_wborder" != no; then
3051 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3052 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3053 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3054 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3055 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3056 CONFIG_ALL="${CONFIG_ALL} all-tui"
3057 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
3058 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
3059 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
3060 fi
3061 fi
3062 fi
3063
3064 # Enable gdbtk.
3065 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3066 if test "${enable_gdbtk+set}" = set; then
3067 enableval="$enable_gdbtk"
3068 case $enableval in
3069 yes | no)
3070 ;;
3071 *)
3072 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3073 esac
3074 else
3075 if test -d $srcdir/gdbtk; then
3076 enable_gdbtk=yes
3077 else
3078 enable_gdbtk=no
3079 fi
3080 fi
3081
3082 # We unconditionally disable gdbtk tests on selected platforms.
3083 case $host_os in
3084 go32* | windows*)
3085 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3086 enable_gdbtk=no ;;
3087 esac
3088
3089 # Libunwind support.
3090 # Check whether --with-libunwind or --without-libunwind was given.
3091 if test "${with_libunwind+set}" = set; then
3092 withval="$with_libunwind"
3093 case "${withval}" in
3094 yes) enable_libunwind=yes ;;
3095 no) enable_libunwind=no ;;
3096 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3097 esac
3098 else
3099
3100 for ac_hdr in libunwind.h
3101 do
3102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_hdr" >&5
3105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3107 else
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <$ac_hdr>
3112 EOF
3113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3114 { (eval echo configure:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3116 if test -z "$ac_err"; then
3117 rm -rf conftest*
3118 eval "ac_cv_header_$ac_safe=yes"
3119 else
3120 echo "$ac_err" >&5
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 rm -rf conftest*
3124 eval "ac_cv_header_$ac_safe=no"
3125 fi
3126 rm -f conftest*
3127 fi
3128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3131 cat >> confdefs.h <<EOF
3132 #define $ac_tr_hdr 1
3133 EOF
3134
3135 else
3136 echo "$ac_t""no" 1>&6
3137 fi
3138 done
3139
3140 for ac_hdr in libunwind-ia64.h
3141 do
3142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_hdr" >&5
3145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3147 else
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <$ac_hdr>
3152 EOF
3153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3154 { (eval echo configure:3155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3156 if test -z "$ac_err"; then
3157 rm -rf conftest*
3158 eval "ac_cv_header_$ac_safe=yes"
3159 else
3160 echo "$ac_err" >&5
3161 echo "configure: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 rm -rf conftest*
3164 eval "ac_cv_header_$ac_safe=no"
3165 fi
3166 rm -f conftest*
3167 fi
3168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
3170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3171 cat >> confdefs.h <<EOF
3172 #define $ac_tr_hdr 1
3173 EOF
3174
3175 else
3176 echo "$ac_t""no" 1>&6
3177 fi
3178 done
3179
3180 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3181 enable_libunwind=yes;
3182 fi
3183
3184 fi
3185
3186
3187 if test x"$enable_libunwind" = xyes; then
3188 for ac_hdr in libunwind.h
3189 do
3190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_hdr" >&5
3193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3195 else
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <$ac_hdr>
3200 EOF
3201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3202 { (eval echo configure:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3204 if test -z "$ac_err"; then
3205 rm -rf conftest*
3206 eval "ac_cv_header_$ac_safe=yes"
3207 else
3208 echo "$ac_err" >&5
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3211 rm -rf conftest*
3212 eval "ac_cv_header_$ac_safe=no"
3213 fi
3214 rm -f conftest*
3215 fi
3216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3219 cat >> confdefs.h <<EOF
3220 #define $ac_tr_hdr 1
3221 EOF
3222
3223 else
3224 echo "$ac_t""no" 1>&6
3225 fi
3226 done
3227
3228 for ac_hdr in libunwind-ia64.h
3229 do
3230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_hdr" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3235 else
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <$ac_hdr>
3240 EOF
3241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244 if test -z "$ac_err"; then
3245 rm -rf conftest*
3246 eval "ac_cv_header_$ac_safe=yes"
3247 else
3248 echo "$ac_err" >&5
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3251 rm -rf conftest*
3252 eval "ac_cv_header_$ac_safe=no"
3253 fi
3254 rm -f conftest*
3255 fi
3256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3259 cat >> confdefs.h <<EOF
3260 #define $ac_tr_hdr 1
3261 EOF
3262
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266 done
3267
3268 cat >> confdefs.h <<\EOF
3269 #define HAVE_LIBUNWIND 1
3270 EOF
3271
3272 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
3273 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
3274 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
3275 fi
3276
3277 # Profiling support.
3278 # Check whether --enable-profiling or --disable-profiling was given.
3279 if test "${enable_profiling+set}" = set; then
3280 enableval="$enable_profiling"
3281 case $enableval in
3282 yes | no)
3283 ;;
3284 *)
3285 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3286 esac
3287 else
3288 enable_profiling=no
3289 fi
3290
3291
3292 for ac_func in monstartup _mcleanup
3293 do
3294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3295 echo "configure:3296: checking for $ac_func" >&5
3296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298 else
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 /* System header to define __stub macros and hopefully few prototypes,
3303 which can conflict with char $ac_func(); below. */
3304 #include <assert.h>
3305 /* Override any gcc2 internal prototype to avoid an error. */
3306 /* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3308 char $ac_func();
3309
3310 int main() {
3311
3312 /* The GNU C library defines this for functions which it implements
3313 to always fail with ENOSYS. Some functions are actually named
3314 something starting with __ and the normal name is an alias. */
3315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3316 choke me
3317 #else
3318 $ac_func();
3319 #endif
3320
3321 ; return 0; }
3322 EOF
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 rm -rf conftest*
3325 eval "ac_cv_func_$ac_func=yes"
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329 rm -rf conftest*
3330 eval "ac_cv_func_$ac_func=no"
3331 fi
3332 rm -f conftest*
3333 fi
3334
3335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3338 cat >> confdefs.h <<EOF
3339 #define $ac_tr_func 1
3340 EOF
3341
3342 else
3343 echo "$ac_t""no" 1>&6
3344 fi
3345 done
3346
3347 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3348 echo "configure:3349: checking for _etext" >&5
3349 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351 else
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <stdlib.h>
3356 extern char _etext;
3357
3358 int main() {
3359 free (&_etext);
3360 ; return 0; }
3361 EOF
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3363 rm -rf conftest*
3364 ac_cv_var__etext=yes
3365 else
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 rm -rf conftest*
3369 ac_cv_var__etext=no
3370 fi
3371 rm -f conftest*
3372 fi
3373
3374 echo "$ac_t""$ac_cv_var__etext" 1>&6
3375 if test $ac_cv_var__etext = yes; then
3376 cat >> confdefs.h <<\EOF
3377 #define HAVE__ETEXT 1
3378 EOF
3379
3380 fi
3381 if test "$enable_profiling" = yes ; then
3382 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
3383 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3384 fi
3385 PROFILE_CFLAGS=-pg
3386 OLD_CFLAGS="$CFLAGS"
3387 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
3388
3389 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3390 echo "configure:3391: checking whether $CC supports -pg" >&5
3391 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3393 else
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397
3398 int main() {
3399 int x;
3400 ; return 0; }
3401 EOF
3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3403 rm -rf conftest*
3404 ac_cv_cc_supports_pg=yes
3405 else
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 rm -rf conftest*
3409 ac_cv_cc_supports_pg=no
3410 fi
3411 rm -f conftest*
3412 fi
3413
3414 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3415
3416 if test $ac_cv_cc_supports_pg = no; then
3417 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3418 fi
3419
3420 CFLAGS="$OLD_CFLAGS"
3421 fi
3422
3423 # --------------------- #
3424 # Checks for programs. #
3425 # --------------------- #
3426
3427 for ac_prog in mawk gawk nawk awk
3428 do
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_word" >&5
3433 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3435 else
3436 if test -n "$AWK"; then
3437 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3438 else
3439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3440 ac_dummy="$PATH"
3441 for ac_dir in $ac_dummy; do
3442 test -z "$ac_dir" && ac_dir=.
3443 if test -f $ac_dir/$ac_word; then
3444 ac_cv_prog_AWK="$ac_prog"
3445 break
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
3449 fi
3450 fi
3451 AWK="$ac_cv_prog_AWK"
3452 if test -n "$AWK"; then
3453 echo "$ac_t""$AWK" 1>&6
3454 else
3455 echo "$ac_t""no" 1>&6
3456 fi
3457
3458 test -n "$AWK" && break
3459 done
3460
3461 # Find a good install program. We prefer a C program (faster),
3462 # so one script is as good as another. But avoid the broken or
3463 # incompatible versions:
3464 # SysV /etc/install, /usr/sbin/install
3465 # SunOS /usr/etc/install
3466 # IRIX /sbin/install
3467 # AIX /bin/install
3468 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3469 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3470 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3471 # ./install, which can be erroneously created by make from ./install.sh.
3472 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3473 echo "configure:3474: checking for a BSD compatible install" >&5
3474 if test -z "$INSTALL"; then
3475 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3477 else
3478 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3479 for ac_dir in $PATH; do
3480 # Account for people who put trailing slashes in PATH elements.
3481 case "$ac_dir/" in
3482 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3483 *)
3484 # OSF1 and SCO ODT 3.0 have their own names for install.
3485 # Don't use installbsd from OSF since it installs stuff as root
3486 # by default.
3487 for ac_prog in ginstall scoinst install; do
3488 if test -f $ac_dir/$ac_prog; then
3489 if test $ac_prog = install &&
3490 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3491 # AIX install. It has an incompatible calling convention.
3492 :
3493 else
3494 ac_cv_path_install="$ac_dir/$ac_prog -c"
3495 break 2
3496 fi
3497 fi
3498 done
3499 ;;
3500 esac
3501 done
3502 IFS="$ac_save_IFS"
3503
3504 fi
3505 if test "${ac_cv_path_install+set}" = set; then
3506 INSTALL="$ac_cv_path_install"
3507 else
3508 # As a last resort, use the slow shell script. We don't cache a
3509 # path for INSTALL within a source directory, because that will
3510 # break other packages using the cache if that directory is
3511 # removed, or if the path is relative.
3512 INSTALL="$ac_install_sh"
3513 fi
3514 fi
3515 echo "$ac_t""$INSTALL" 1>&6
3516
3517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3518 # It thinks the first close brace ends the variable substitution.
3519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3520
3521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3522
3523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3524
3525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3526 echo "configure:3527: checking whether ln -s works" >&5
3527 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3529 else
3530 rm -f conftestdata
3531 if ln -s X conftestdata 2>/dev/null
3532 then
3533 rm -f conftestdata
3534 ac_cv_prog_LN_S="ln -s"
3535 else
3536 ac_cv_prog_LN_S=ln
3537 fi
3538 fi
3539 LN_S="$ac_cv_prog_LN_S"
3540 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3541 echo "$ac_t""yes" 1>&6
3542 else
3543 echo "$ac_t""no" 1>&6
3544 fi
3545
3546 # Extract the first word of "ranlib", so it can be a program name with args.
3547 set dummy ranlib; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553 if test -n "$RANLIB"; then
3554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3555 else
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_prog_RANLIB="ranlib"
3562 break
3563 fi
3564 done
3565 IFS="$ac_save_ifs"
3566 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3567 fi
3568 fi
3569 RANLIB="$ac_cv_prog_RANLIB"
3570 if test -n "$RANLIB"; then
3571 echo "$ac_t""$RANLIB" 1>&6
3572 else
3573 echo "$ac_t""no" 1>&6
3574 fi
3575
3576 for ac_prog in 'bison -y' byacc
3577 do
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy $ac_prog; ac_word=$2
3580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3581 echo "configure:3582: checking for $ac_word" >&5
3582 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3584 else
3585 if test -n "$YACC"; then
3586 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3587 else
3588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3589 ac_dummy="$PATH"
3590 for ac_dir in $ac_dummy; do
3591 test -z "$ac_dir" && ac_dir=.
3592 if test -f $ac_dir/$ac_word; then
3593 ac_cv_prog_YACC="$ac_prog"
3594 break
3595 fi
3596 done
3597 IFS="$ac_save_ifs"
3598 fi
3599 fi
3600 YACC="$ac_cv_prog_YACC"
3601 if test -n "$YACC"; then
3602 echo "$ac_t""$YACC" 1>&6
3603 else
3604 echo "$ac_t""no" 1>&6
3605 fi
3606
3607 test -n "$YACC" && break
3608 done
3609 test -n "$YACC" || YACC="yacc"
3610
3611
3612 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3613 set dummy ${ac_tool_prefix}ar; ac_word=$2
3614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_word" >&5
3616 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3618 else
3619 if test -n "$AR"; then
3620 ac_cv_prog_AR="$AR" # Let the user override the test.
3621 else
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3623 ac_dummy="$PATH"
3624 for ac_dir in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f $ac_dir/$ac_word; then
3627 ac_cv_prog_AR="${ac_tool_prefix}ar"
3628 break
3629 fi
3630 done
3631 IFS="$ac_save_ifs"
3632 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3633 fi
3634 fi
3635 AR="$ac_cv_prog_AR"
3636 if test -n "$AR"; then
3637 echo "$ac_t""$AR" 1>&6
3638 else
3639 echo "$ac_t""no" 1>&6
3640 fi
3641
3642
3643
3644 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3647 echo "configure:3648: checking for $ac_word" >&5
3648 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3650 else
3651 if test -n "$DLLTOOL"; then
3652 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3653 else
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3655 ac_dummy="$PATH"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3660 break
3661 fi
3662 done
3663 IFS="$ac_save_ifs"
3664 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
3665 fi
3666 fi
3667 DLLTOOL="$ac_cv_prog_DLLTOOL"
3668 if test -n "$DLLTOOL"; then
3669 echo "$ac_t""$DLLTOOL" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 fi
3673
3674
3675
3676 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}windres; ac_word=$2
3678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3679 echo "configure:3680: checking for $ac_word" >&5
3680 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3682 else
3683 if test -n "$WINDRES"; then
3684 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3685 else
3686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3687 ac_dummy="$PATH"
3688 for ac_dir in $ac_dummy; do
3689 test -z "$ac_dir" && ac_dir=.
3690 if test -f $ac_dir/$ac_word; then
3691 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3692 break
3693 fi
3694 done
3695 IFS="$ac_save_ifs"
3696 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
3697 fi
3698 fi
3699 WINDRES="$ac_cv_prog_WINDRES"
3700 if test -n "$WINDRES"; then
3701 echo "$ac_t""$WINDRES" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707
3708
3709 # Needed for GNU/Hurd.
3710 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}mig; ac_word=$2
3712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3713 echo "configure:3714: checking for $ac_word" >&5
3714 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3716 else
3717 if test -n "$MIG"; then
3718 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3719 else
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/$ac_word; then
3725 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3726 break
3727 fi
3728 done
3729 IFS="$ac_save_ifs"
3730 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
3731 fi
3732 fi
3733 MIG="$ac_cv_prog_MIG"
3734 if test -n "$MIG"; then
3735 echo "$ac_t""$MIG" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
3741
3742
3743 # ---------------------- #
3744 # Checks for libraries. #
3745 # ---------------------- #
3746
3747 # We might need to link with -lm; most simulators need it.
3748 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3749 echo "configure:3750: checking for main in -lm" >&5
3750 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3753 else
3754 ac_save_LIBS="$LIBS"
3755 LIBS="-lm $LIBS"
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759
3760 int main() {
3761 main()
3762 ; return 0; }
3763 EOF
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3765 rm -rf conftest*
3766 eval "ac_cv_lib_$ac_lib_var=yes"
3767 else
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 rm -rf conftest*
3771 eval "ac_cv_lib_$ac_lib_var=no"
3772 fi
3773 rm -f conftest*
3774 LIBS="$ac_save_LIBS"
3775
3776 fi
3777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_lib 1
3783 EOF
3784
3785 LIBS="-lm $LIBS"
3786
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791
3792 # We need to link with -lw to get `wctype' on Solaris before Solaris
3793 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3794 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3795 # is known to have this problem). Therefore we avoid libw if we can.
3796 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3797 echo "configure:3798: checking for wctype" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3800 else
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char wctype(); below. */
3806 #include <assert.h>
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3810 char wctype();
3811
3812 int main() {
3813
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_wctype) || defined (__stub___wctype)
3818 choke me
3819 #else
3820 wctype();
3821 #endif
3822
3823 ; return 0; }
3824 EOF
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 rm -rf conftest*
3827 eval "ac_cv_func_wctype=yes"
3828 else
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 rm -rf conftest*
3832 eval "ac_cv_func_wctype=no"
3833 fi
3834 rm -f conftest*
3835 fi
3836
3837 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 :
3840 else
3841 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3843 echo "configure:3844: checking for wctype in -lw" >&5
3844 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3847 else
3848 ac_save_LIBS="$LIBS"
3849 LIBS="-lw $LIBS"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3856 char wctype();
3857
3858 int main() {
3859 wctype()
3860 ; return 0; }
3861 EOF
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 rm -rf conftest*
3864 eval "ac_cv_lib_$ac_lib_var=yes"
3865 else
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3868 rm -rf conftest*
3869 eval "ac_cv_lib_$ac_lib_var=no"
3870 fi
3871 rm -f conftest*
3872 LIBS="$ac_save_LIBS"
3873
3874 fi
3875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3879 cat >> confdefs.h <<EOF
3880 #define $ac_tr_lib 1
3881 EOF
3882
3883 LIBS="-lw $LIBS"
3884
3885 else
3886 echo "$ac_t""no" 1>&6
3887 fi
3888
3889 fi
3890
3891
3892 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3893
3894 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3895 echo "configure:3896: checking for library containing gethostbyname" >&5
3896 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3898 else
3899 ac_func_search_save_LIBS="$LIBS"
3900 ac_cv_search_gethostbyname="no"
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3907 char gethostbyname();
3908
3909 int main() {
3910 gethostbyname()
3911 ; return 0; }
3912 EOF
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3914 rm -rf conftest*
3915 ac_cv_search_gethostbyname="none required"
3916 else
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3919 fi
3920 rm -f conftest*
3921 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
3922 LIBS="-l$i $ac_func_search_save_LIBS"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3929 char gethostbyname();
3930
3931 int main() {
3932 gethostbyname()
3933 ; return 0; }
3934 EOF
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936 rm -rf conftest*
3937 ac_cv_search_gethostbyname="-l$i"
3938 break
3939 else
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 fi
3943 rm -f conftest*
3944 done
3945 LIBS="$ac_func_search_save_LIBS"
3946 fi
3947
3948 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3949 if test "$ac_cv_search_gethostbyname" != "no"; then
3950 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
3951
3952 else :
3953
3954 fi
3955
3956 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3957
3958 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3959 echo "configure:3960: checking for library containing socketpair" >&5
3960 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3962 else
3963 ac_func_search_save_LIBS="$LIBS"
3964 ac_cv_search_socketpair="no"
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3971 char socketpair();
3972
3973 int main() {
3974 socketpair()
3975 ; return 0; }
3976 EOF
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 rm -rf conftest*
3979 ac_cv_search_socketpair="none required"
3980 else
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3983 fi
3984 rm -f conftest*
3985 test "$ac_cv_search_socketpair" = "no" && for i in socket; do
3986 LIBS="-l$i $ac_func_search_save_LIBS"
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3993 char socketpair();
3994
3995 int main() {
3996 socketpair()
3997 ; return 0; }
3998 EOF
3999 if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 rm -rf conftest*
4001 ac_cv_search_socketpair="-l$i"
4002 break
4003 else
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 fi
4007 rm -f conftest*
4008 done
4009 LIBS="$ac_func_search_save_LIBS"
4010 fi
4011
4012 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4013 if test "$ac_cv_search_socketpair" != "no"; then
4014 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
4015
4016 else :
4017
4018 fi
4019
4020 # Since GDB uses Readline, we need termcap functionality, so we need
4021 # to find a library that provides that. When GDB is configured with
4022 # the TUI, we need full curses functionality.
4023
4024 case $host_os in
4025 cygwin*)
4026 if test -d $srcdir/libtermcap; then
4027 LIBS="../libtermcap/libtermcap.a $LIBS"
4028 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
4029 fi ;;
4030 go32* | *djgpp*)
4031 ac_cv_search_tgetent="none required"
4032 ;;
4033 aix*)
4034 # Readline prefers curses over termcap on AIX.
4035 # ??? Why?
4036
4037 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4038 echo "configure:4039: checking for library containing tgetent" >&5
4039 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4041 else
4042 ac_func_search_save_LIBS="$LIBS"
4043 ac_cv_search_tgetent="no"
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4050 char tgetent();
4051
4052 int main() {
4053 tgetent()
4054 ; return 0; }
4055 EOF
4056 if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4057 rm -rf conftest*
4058 ac_cv_search_tgetent="none required"
4059 else
4060 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4062 fi
4063 rm -f conftest*
4064 test "$ac_cv_search_tgetent" = "no" && for i in tinfo ncurses curses termcap; do
4065 LIBS="-l$i $ac_func_search_save_LIBS"
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4072 char tgetent();
4073
4074 int main() {
4075 tgetent()
4076 ; return 0; }
4077 EOF
4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 rm -rf conftest*
4080 ac_cv_search_tgetent="-l$i"
4081 break
4082 else
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4085 fi
4086 rm -f conftest*
4087 done
4088 LIBS="$ac_func_search_save_LIBS"
4089 fi
4090
4091 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4092 if test "$ac_cv_search_tgetent" != "no"; then
4093 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
4094
4095 else :
4096
4097 fi
4098 ;;
4099 esac
4100
4101 # Note: We used to check for libtermlib and libterminfo too, but
4102 # Readline doesn't, so I think we're safe with leaving them out.
4103
4104 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4105 echo "configure:4106: checking for library containing tgetent" >&5
4106 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4108 else
4109 ac_func_search_save_LIBS="$LIBS"
4110 ac_cv_search_tgetent="no"
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 /* Override any gcc2 internal prototype to avoid an error. */
4115 /* We use char because int might match the return type of a gcc2
4116 builtin and then its argument prototype would still apply. */
4117 char tgetent();
4118
4119 int main() {
4120 tgetent()
4121 ; return 0; }
4122 EOF
4123 if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4124 rm -rf conftest*
4125 ac_cv_search_tgetent="none required"
4126 else
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4129 fi
4130 rm -f conftest*
4131 test "$ac_cv_search_tgetent" = "no" && for i in termcap tinfo ncurses Hcurses curses; do
4132 LIBS="-l$i $ac_func_search_save_LIBS"
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4139 char tgetent();
4140
4141 int main() {
4142 tgetent()
4143 ; return 0; }
4144 EOF
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 rm -rf conftest*
4147 ac_cv_search_tgetent="-l$i"
4148 break
4149 else
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 fi
4153 rm -f conftest*
4154 done
4155 LIBS="$ac_func_search_save_LIBS"
4156 fi
4157
4158 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4159 if test "$ac_cv_search_tgetent" != "no"; then
4160 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
4161
4162 else :
4163
4164 fi
4165
4166 if test "$ac_cv_search_tgetent" = no; then
4167 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4168 fi
4169
4170 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4171 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4172 # Makefile fragments. That's why we need to have `Hcurses' before
4173 # `curses'. I don't see why we should use HP curses if a more
4174 # standard curses is available, except that according to HP's
4175 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4176 # HP-UX 10.10 and 10.20.
4177
4178 # FIXME: ncurses does not work on native alphaev68-dec-osf5.1,
4179 # and probably other platforms. AC_SEARCH_LIBS finds the library
4180 # in a place such as /usr/local/lib/libncurses.a, but does not
4181 # do anything to look for the matching include files.
4182 # -- chastain 2004-05-01
4183
4184
4185 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4186 echo "configure:4187: checking for library containing initscr" >&5
4187 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4189 else
4190 ac_func_search_save_LIBS="$LIBS"
4191 ac_cv_search_initscr="no"
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 /* Override any gcc2 internal prototype to avoid an error. */
4196 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4198 char initscr();
4199
4200 int main() {
4201 initscr()
4202 ; return 0; }
4203 EOF
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4205 rm -rf conftest*
4206 ac_cv_search_initscr="none required"
4207 else
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4210 fi
4211 rm -f conftest*
4212 test "$ac_cv_search_initscr" = "no" && for i in ncurses Hcurses curses pdcurses; do
4213 LIBS="-l$i $ac_func_search_save_LIBS"
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220 char initscr();
4221
4222 int main() {
4223 initscr()
4224 ; return 0; }
4225 EOF
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4227 rm -rf conftest*
4228 ac_cv_search_initscr="-l$i"
4229 break
4230 else
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 fi
4234 rm -f conftest*
4235 done
4236 LIBS="$ac_func_search_save_LIBS"
4237 fi
4238
4239 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4240 if test "$ac_cv_search_initscr" != "no"; then
4241 test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS"
4242
4243 else :
4244 echo "configure: warning: no curses library found" 1>&2
4245 fi
4246
4247 # Check whether the wborder function is provided by the curses
4248 # library detected above. In certain implementations such as
4249 # the HP/UX Hcurses for instance, this function is provided by an
4250 # additional library. So if we did not find this function inside
4251 # the curses library, try some alternate libraries we know might
4252 # provide it.
4253
4254 echo $ac_n "checking for library containing wborder""... $ac_c" 1>&6
4255 echo "configure:4256: checking for library containing wborder" >&5
4256 if eval "test \"`echo '$''{'ac_cv_search_wborder'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4258 else
4259 ac_func_search_save_LIBS="$LIBS"
4260 ac_cv_search_wborder="no"
4261 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4267 char wborder();
4268
4269 int main() {
4270 wborder()
4271 ; return 0; }
4272 EOF
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4274 rm -rf conftest*
4275 ac_cv_search_wborder="none required"
4276 else
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 fi
4280 rm -f conftest*
4281 test "$ac_cv_search_wborder" = "no" && for i in cur_colr; do
4282 LIBS="-l$i $ac_func_search_save_LIBS"
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4289 char wborder();
4290
4291 int main() {
4292 wborder()
4293 ; return 0; }
4294 EOF
4295 if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4296 rm -rf conftest*
4297 ac_cv_search_wborder="-l$i"
4298 break
4299 else
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 fi
4303 rm -f conftest*
4304 done
4305 LIBS="$ac_func_search_save_LIBS"
4306 fi
4307
4308 echo "$ac_t""$ac_cv_search_wborder" 1>&6
4309 if test "$ac_cv_search_wborder" != "no"; then
4310 test "$ac_cv_search_wborder" = "none required" || LIBS="$ac_cv_search_wborder $LIBS"
4311
4312 else :
4313 echo "configure: warning: wborder function not found, tui will be disabled" 1>&2
4314 fi
4315
4316 # ------------------------- #
4317 # Checks for header files. #
4318 # ------------------------- #
4319
4320 ac_header_dirent=no
4321 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4322 do
4323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4324 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4325 echo "configure:4326: checking for $ac_hdr that defines DIR" >&5
4326 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4328 else
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <sys/types.h>
4333 #include <$ac_hdr>
4334 int main() {
4335 DIR *dirp = 0;
4336 ; return 0; }
4337 EOF
4338 if { (eval echo configure:4339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4339 rm -rf conftest*
4340 eval "ac_cv_header_dirent_$ac_safe=yes"
4341 else
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 rm -rf conftest*
4345 eval "ac_cv_header_dirent_$ac_safe=no"
4346 fi
4347 rm -f conftest*
4348 fi
4349 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4352 cat >> confdefs.h <<EOF
4353 #define $ac_tr_hdr 1
4354 EOF
4355 ac_header_dirent=$ac_hdr; break
4356 else
4357 echo "$ac_t""no" 1>&6
4358 fi
4359 done
4360 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4361 if test $ac_header_dirent = dirent.h; then
4362 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4363 echo "configure:4364: checking for opendir in -ldir" >&5
4364 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4367 else
4368 ac_save_LIBS="$LIBS"
4369 LIBS="-ldir $LIBS"
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char opendir();
4377
4378 int main() {
4379 opendir()
4380 ; return 0; }
4381 EOF
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4383 rm -rf conftest*
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4385 else
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 rm -rf conftest*
4389 eval "ac_cv_lib_$ac_lib_var=no"
4390 fi
4391 rm -f conftest*
4392 LIBS="$ac_save_LIBS"
4393
4394 fi
4395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 LIBS="$LIBS -ldir"
4398 else
4399 echo "$ac_t""no" 1>&6
4400 fi
4401
4402 else
4403 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4404 echo "configure:4405: checking for opendir in -lx" >&5
4405 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4408 else
4409 ac_save_LIBS="$LIBS"
4410 LIBS="-lx $LIBS"
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4417 char opendir();
4418
4419 int main() {
4420 opendir()
4421 ; return 0; }
4422 EOF
4423 if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4424 rm -rf conftest*
4425 eval "ac_cv_lib_$ac_lib_var=yes"
4426 else
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 rm -rf conftest*
4430 eval "ac_cv_lib_$ac_lib_var=no"
4431 fi
4432 rm -f conftest*
4433 LIBS="$ac_save_LIBS"
4434
4435 fi
4436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 LIBS="$LIBS -lx"
4439 else
4440 echo "$ac_t""no" 1>&6
4441 fi
4442
4443 fi
4444
4445 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4446 echo "configure:4447: checking whether stat file-mode macros are broken" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 #include <sys/types.h>
4454 #include <sys/stat.h>
4455
4456 #if defined(S_ISBLK) && defined(S_IFDIR)
4457 # if S_ISBLK (S_IFDIR)
4458 You lose.
4459 # endif
4460 #endif
4461
4462 #if defined(S_ISBLK) && defined(S_IFCHR)
4463 # if S_ISBLK (S_IFCHR)
4464 You lose.
4465 # endif
4466 #endif
4467
4468 #if defined(S_ISLNK) && defined(S_IFREG)
4469 # if S_ISLNK (S_IFREG)
4470 You lose.
4471 # endif
4472 #endif
4473
4474 #if defined(S_ISSOCK) && defined(S_IFREG)
4475 # if S_ISSOCK (S_IFREG)
4476 You lose.
4477 # endif
4478 #endif
4479
4480 EOF
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 egrep "You lose" >/dev/null 2>&1; then
4483 rm -rf conftest*
4484 ac_cv_header_stat_broken=yes
4485 else
4486 rm -rf conftest*
4487 ac_cv_header_stat_broken=no
4488 fi
4489 rm -f conftest*
4490
4491 fi
4492
4493 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4494 if test $ac_cv_header_stat_broken = yes; then
4495 cat >> confdefs.h <<\EOF
4496 #define STAT_MACROS_BROKEN 1
4497 EOF
4498
4499 fi
4500
4501 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4502 echo "configure:4503: checking for ANSI C header files" >&5
4503 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4505 else
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509 #include <stdlib.h>
4510 #include <stdarg.h>
4511 #include <string.h>
4512 #include <float.h>
4513 EOF
4514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4515 { (eval echo configure:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4517 if test -z "$ac_err"; then
4518 rm -rf conftest*
4519 ac_cv_header_stdc=yes
4520 else
4521 echo "$ac_err" >&5
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 rm -rf conftest*
4525 ac_cv_header_stdc=no
4526 fi
4527 rm -f conftest*
4528
4529 if test $ac_cv_header_stdc = yes; then
4530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 #include <string.h>
4535 EOF
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 egrep "memchr" >/dev/null 2>&1; then
4538 :
4539 else
4540 rm -rf conftest*
4541 ac_cv_header_stdc=no
4542 fi
4543 rm -f conftest*
4544
4545 fi
4546
4547 if test $ac_cv_header_stdc = yes; then
4548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4552 #include <stdlib.h>
4553 EOF
4554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555 egrep "free" >/dev/null 2>&1; then
4556 :
4557 else
4558 rm -rf conftest*
4559 ac_cv_header_stdc=no
4560 fi
4561 rm -f conftest*
4562
4563 fi
4564
4565 if test $ac_cv_header_stdc = yes; then
4566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4567 if test "$cross_compiling" = yes; then
4568 :
4569 else
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <ctype.h>
4574 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4577 int main () { int i; for (i = 0; i < 256; i++)
4578 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4579 exit (0); }
4580
4581 EOF
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4583 then
4584 :
4585 else
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 rm -fr conftest*
4589 ac_cv_header_stdc=no
4590 fi
4591 rm -fr conftest*
4592 fi
4593
4594 fi
4595 fi
4596
4597 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4598 if test $ac_cv_header_stdc = yes; then
4599 cat >> confdefs.h <<\EOF
4600 #define STDC_HEADERS 1
4601 EOF
4602
4603 fi
4604
4605 for ac_hdr in link.h
4606 do
4607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_hdr" >&5
4610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 #include <$ac_hdr>
4617 EOF
4618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4619 { (eval echo configure:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4621 if test -z "$ac_err"; then
4622 rm -rf conftest*
4623 eval "ac_cv_header_$ac_safe=yes"
4624 else
4625 echo "$ac_err" >&5
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4628 rm -rf conftest*
4629 eval "ac_cv_header_$ac_safe=no"
4630 fi
4631 rm -f conftest*
4632 fi
4633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4636 cat >> confdefs.h <<EOF
4637 #define $ac_tr_hdr 1
4638 EOF
4639
4640 else
4641 echo "$ac_t""no" 1>&6
4642 fi
4643 done
4644
4645 for ac_hdr in machine/reg.h
4646 do
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <$ac_hdr>
4657 EOF
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4662 rm -rf conftest*
4663 eval "ac_cv_header_$ac_safe=yes"
4664 else
4665 echo "$ac_err" >&5
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4668 rm -rf conftest*
4669 eval "ac_cv_header_$ac_safe=no"
4670 fi
4671 rm -f conftest*
4672 fi
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676 cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4678 EOF
4679
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683 done
4684
4685 for ac_hdr in nlist.h
4686 do
4687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4689 echo "configure:4690: checking for $ac_hdr" >&5
4690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4692 else
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 #include <$ac_hdr>
4697 EOF
4698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699 { (eval echo configure:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701 if test -z "$ac_err"; then
4702 rm -rf conftest*
4703 eval "ac_cv_header_$ac_safe=yes"
4704 else
4705 echo "$ac_err" >&5
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 rm -rf conftest*
4709 eval "ac_cv_header_$ac_safe=no"
4710 fi
4711 rm -f conftest*
4712 fi
4713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714 echo "$ac_t""yes" 1>&6
4715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4716 cat >> confdefs.h <<EOF
4717 #define $ac_tr_hdr 1
4718 EOF
4719
4720 else
4721 echo "$ac_t""no" 1>&6
4722 fi
4723 done
4724
4725 for ac_hdr in poll.h sys/poll.h
4726 do
4727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_hdr" >&5
4730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4732 else
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 #include <$ac_hdr>
4737 EOF
4738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4739 { (eval echo configure:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4741 if test -z "$ac_err"; then
4742 rm -rf conftest*
4743 eval "ac_cv_header_$ac_safe=yes"
4744 else
4745 echo "$ac_err" >&5
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 rm -rf conftest*
4749 eval "ac_cv_header_$ac_safe=no"
4750 fi
4751 rm -f conftest*
4752 fi
4753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4756 cat >> confdefs.h <<EOF
4757 #define $ac_tr_hdr 1
4758 EOF
4759
4760 else
4761 echo "$ac_t""no" 1>&6
4762 fi
4763 done
4764
4765 for ac_hdr in proc_service.h thread_db.h gnu/libc-version.h
4766 do
4767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_hdr" >&5
4770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4772 else
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 #include <$ac_hdr>
4777 EOF
4778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4781 if test -z "$ac_err"; then
4782 rm -rf conftest*
4783 eval "ac_cv_header_$ac_safe=yes"
4784 else
4785 echo "$ac_err" >&5
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788 rm -rf conftest*
4789 eval "ac_cv_header_$ac_safe=no"
4790 fi
4791 rm -f conftest*
4792 fi
4793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_hdr 1
4798 EOF
4799
4800 else
4801 echo "$ac_t""no" 1>&6
4802 fi
4803 done
4804
4805 for ac_hdr in stddef.h
4806 do
4807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4809 echo "configure:4810: checking for $ac_hdr" >&5
4810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4812 else
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 #include <$ac_hdr>
4817 EOF
4818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4819 { (eval echo configure:4820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4821 if test -z "$ac_err"; then
4822 rm -rf conftest*
4823 eval "ac_cv_header_$ac_safe=yes"
4824 else
4825 echo "$ac_err" >&5
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4828 rm -rf conftest*
4829 eval "ac_cv_header_$ac_safe=no"
4830 fi
4831 rm -f conftest*
4832 fi
4833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4834 echo "$ac_t""yes" 1>&6
4835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4836 cat >> confdefs.h <<EOF
4837 #define $ac_tr_hdr 1
4838 EOF
4839
4840 else
4841 echo "$ac_t""no" 1>&6
4842 fi
4843 done
4844
4845 for ac_hdr in stdlib.h
4846 do
4847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4849 echo "configure:4850: checking for $ac_hdr" >&5
4850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852 else
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 #include <$ac_hdr>
4857 EOF
4858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4859 { (eval echo configure:4860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4861 if test -z "$ac_err"; then
4862 rm -rf conftest*
4863 eval "ac_cv_header_$ac_safe=yes"
4864 else
4865 echo "$ac_err" >&5
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4868 rm -rf conftest*
4869 eval "ac_cv_header_$ac_safe=no"
4870 fi
4871 rm -f conftest*
4872 fi
4873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4876 cat >> confdefs.h <<EOF
4877 #define $ac_tr_hdr 1
4878 EOF
4879
4880 else
4881 echo "$ac_t""no" 1>&6
4882 fi
4883 done
4884
4885 for ac_hdr in stdint.h
4886 do
4887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4889 echo "configure:4890: checking for $ac_hdr" >&5
4890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4892 else
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <$ac_hdr>
4897 EOF
4898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4899 { (eval echo configure:4900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4901 if test -z "$ac_err"; then
4902 rm -rf conftest*
4903 eval "ac_cv_header_$ac_safe=yes"
4904 else
4905 echo "$ac_err" >&5
4906 echo "configure: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 rm -rf conftest*
4909 eval "ac_cv_header_$ac_safe=no"
4910 fi
4911 rm -f conftest*
4912 fi
4913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4916 cat >> confdefs.h <<EOF
4917 #define $ac_tr_hdr 1
4918 EOF
4919
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923 done
4924
4925 for ac_hdr in string.h memory.h strings.h
4926 do
4927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4929 echo "configure:4930: checking for $ac_hdr" >&5
4930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4932 else
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 #include <$ac_hdr>
4937 EOF
4938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4939 { (eval echo configure:4940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4941 if test -z "$ac_err"; then
4942 rm -rf conftest*
4943 eval "ac_cv_header_$ac_safe=yes"
4944 else
4945 echo "$ac_err" >&5
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 rm -rf conftest*
4949 eval "ac_cv_header_$ac_safe=no"
4950 fi
4951 rm -f conftest*
4952 fi
4953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4954 echo "$ac_t""yes" 1>&6
4955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4956 cat >> confdefs.h <<EOF
4957 #define $ac_tr_hdr 1
4958 EOF
4959
4960 else
4961 echo "$ac_t""no" 1>&6
4962 fi
4963 done
4964
4965 for ac_hdr in sys/fault.h
4966 do
4967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4969 echo "configure:4970: checking for $ac_hdr" >&5
4970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4972 else
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976 #include <$ac_hdr>
4977 EOF
4978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4979 { (eval echo configure:4980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4981 if test -z "$ac_err"; then
4982 rm -rf conftest*
4983 eval "ac_cv_header_$ac_safe=yes"
4984 else
4985 echo "$ac_err" >&5
4986 echo "configure: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4988 rm -rf conftest*
4989 eval "ac_cv_header_$ac_safe=no"
4990 fi
4991 rm -f conftest*
4992 fi
4993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4996 cat >> confdefs.h <<EOF
4997 #define $ac_tr_hdr 1
4998 EOF
4999
5000 else
5001 echo "$ac_t""no" 1>&6
5002 fi
5003 done
5004
5005 for ac_hdr in sys/file.h
5006 do
5007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5009 echo "configure:5010: checking for $ac_hdr" >&5
5010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5012 else
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5016 #include <$ac_hdr>
5017 EOF
5018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5019 { (eval echo configure:5020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5021 if test -z "$ac_err"; then
5022 rm -rf conftest*
5023 eval "ac_cv_header_$ac_safe=yes"
5024 else
5025 echo "$ac_err" >&5
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5028 rm -rf conftest*
5029 eval "ac_cv_header_$ac_safe=no"
5030 fi
5031 rm -f conftest*
5032 fi
5033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5036 cat >> confdefs.h <<EOF
5037 #define $ac_tr_hdr 1
5038 EOF
5039
5040 else
5041 echo "$ac_t""no" 1>&6
5042 fi
5043 done
5044
5045 for ac_hdr in sys/filio.h
5046 do
5047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5049 echo "configure:5050: checking for $ac_hdr" >&5
5050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5052 else
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 #include <$ac_hdr>
5057 EOF
5058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5059 { (eval echo configure:5060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5061 if test -z "$ac_err"; then
5062 rm -rf conftest*
5063 eval "ac_cv_header_$ac_safe=yes"
5064 else
5065 echo "$ac_err" >&5
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 eval "ac_cv_header_$ac_safe=no"
5070 fi
5071 rm -f conftest*
5072 fi
5073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5076 cat >> confdefs.h <<EOF
5077 #define $ac_tr_hdr 1
5078 EOF
5079
5080 else
5081 echo "$ac_t""no" 1>&6
5082 fi
5083 done
5084
5085 for ac_hdr in sys/ioctl.h
5086 do
5087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5089 echo "configure:5090: checking for $ac_hdr" >&5
5090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5092 else
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 #include <$ac_hdr>
5097 EOF
5098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5099 { (eval echo configure:5100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5101 if test -z "$ac_err"; then
5102 rm -rf conftest*
5103 eval "ac_cv_header_$ac_safe=yes"
5104 else
5105 echo "$ac_err" >&5
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5108 rm -rf conftest*
5109 eval "ac_cv_header_$ac_safe=no"
5110 fi
5111 rm -f conftest*
5112 fi
5113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5114 echo "$ac_t""yes" 1>&6
5115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5116 cat >> confdefs.h <<EOF
5117 #define $ac_tr_hdr 1
5118 EOF
5119
5120 else
5121 echo "$ac_t""no" 1>&6
5122 fi
5123 done
5124
5125 for ac_hdr in sys/param.h
5126 do
5127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5129 echo "configure:5130: checking for $ac_hdr" >&5
5130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5132 else
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 #include <$ac_hdr>
5137 EOF
5138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5139 { (eval echo configure:5140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5141 if test -z "$ac_err"; then
5142 rm -rf conftest*
5143 eval "ac_cv_header_$ac_safe=yes"
5144 else
5145 echo "$ac_err" >&5
5146 echo "configure: failed program was:" >&5
5147 cat conftest.$ac_ext >&5
5148 rm -rf conftest*
5149 eval "ac_cv_header_$ac_safe=no"
5150 fi
5151 rm -f conftest*
5152 fi
5153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5156 cat >> confdefs.h <<EOF
5157 #define $ac_tr_hdr 1
5158 EOF
5159
5160 else
5161 echo "$ac_t""no" 1>&6
5162 fi
5163 done
5164
5165 for ac_hdr in sys/proc.h
5166 do
5167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5169 echo "configure:5170: checking for $ac_hdr" >&5
5170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5172 else
5173 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5176 #include <$ac_hdr>
5177 EOF
5178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5179 { (eval echo configure:5180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5181 if test -z "$ac_err"; then
5182 rm -rf conftest*
5183 eval "ac_cv_header_$ac_safe=yes"
5184 else
5185 echo "$ac_err" >&5
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5188 rm -rf conftest*
5189 eval "ac_cv_header_$ac_safe=no"
5190 fi
5191 rm -f conftest*
5192 fi
5193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5194 echo "$ac_t""yes" 1>&6
5195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5196 cat >> confdefs.h <<EOF
5197 #define $ac_tr_hdr 1
5198 EOF
5199
5200 else
5201 echo "$ac_t""no" 1>&6
5202 fi
5203 done
5204
5205 for ac_hdr in sys/procfs.h
5206 do
5207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_hdr" >&5
5210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5212 else
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 #include <$ac_hdr>
5217 EOF
5218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5219 { (eval echo configure:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5221 if test -z "$ac_err"; then
5222 rm -rf conftest*
5223 eval "ac_cv_header_$ac_safe=yes"
5224 else
5225 echo "$ac_err" >&5
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5228 rm -rf conftest*
5229 eval "ac_cv_header_$ac_safe=no"
5230 fi
5231 rm -f conftest*
5232 fi
5233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5236 cat >> confdefs.h <<EOF
5237 #define $ac_tr_hdr 1
5238 EOF
5239
5240 else
5241 echo "$ac_t""no" 1>&6
5242 fi
5243 done
5244
5245 for ac_hdr in sys/ptrace.h ptrace.h
5246 do
5247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5249 echo "configure:5250: checking for $ac_hdr" >&5
5250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5252 else
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 #include <$ac_hdr>
5257 EOF
5258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5259 { (eval echo configure:5260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5261 if test -z "$ac_err"; then
5262 rm -rf conftest*
5263 eval "ac_cv_header_$ac_safe=yes"
5264 else
5265 echo "$ac_err" >&5
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 rm -rf conftest*
5269 eval "ac_cv_header_$ac_safe=no"
5270 fi
5271 rm -f conftest*
5272 fi
5273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5276 cat >> confdefs.h <<EOF
5277 #define $ac_tr_hdr 1
5278 EOF
5279
5280 else
5281 echo "$ac_t""no" 1>&6
5282 fi
5283 done
5284
5285 for ac_hdr in sys/reg.h sys/debugreg.h
5286 do
5287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_hdr" >&5
5290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 #include <$ac_hdr>
5297 EOF
5298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5299 { (eval echo configure:5300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5301 if test -z "$ac_err"; then
5302 rm -rf conftest*
5303 eval "ac_cv_header_$ac_safe=yes"
5304 else
5305 echo "$ac_err" >&5
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5308 rm -rf conftest*
5309 eval "ac_cv_header_$ac_safe=no"
5310 fi
5311 rm -f conftest*
5312 fi
5313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5314 echo "$ac_t""yes" 1>&6
5315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5316 cat >> confdefs.h <<EOF
5317 #define $ac_tr_hdr 1
5318 EOF
5319
5320 else
5321 echo "$ac_t""no" 1>&6
5322 fi
5323 done
5324
5325 for ac_hdr in sys/select.h
5326 do
5327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_hdr" >&5
5330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5332 else
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5336 #include <$ac_hdr>
5337 EOF
5338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5339 { (eval echo configure:5340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5341 if test -z "$ac_err"; then
5342 rm -rf conftest*
5343 eval "ac_cv_header_$ac_safe=yes"
5344 else
5345 echo "$ac_err" >&5
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 rm -rf conftest*
5349 eval "ac_cv_header_$ac_safe=no"
5350 fi
5351 rm -f conftest*
5352 fi
5353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5356 cat >> confdefs.h <<EOF
5357 #define $ac_tr_hdr 1
5358 EOF
5359
5360 else
5361 echo "$ac_t""no" 1>&6
5362 fi
5363 done
5364
5365 for ac_hdr in sys/syscall.h
5366 do
5367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5369 echo "configure:5370: checking for $ac_hdr" >&5
5370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5372 else
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 #include <$ac_hdr>
5377 EOF
5378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5379 { (eval echo configure:5380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5381 if test -z "$ac_err"; then
5382 rm -rf conftest*
5383 eval "ac_cv_header_$ac_safe=yes"
5384 else
5385 echo "$ac_err" >&5
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 rm -rf conftest*
5389 eval "ac_cv_header_$ac_safe=no"
5390 fi
5391 rm -f conftest*
5392 fi
5393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5396 cat >> confdefs.h <<EOF
5397 #define $ac_tr_hdr 1
5398 EOF
5399
5400 else
5401 echo "$ac_t""no" 1>&6
5402 fi
5403 done
5404
5405 for ac_hdr in sys/user.h
5406 do
5407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5409 echo "configure:5410: checking for $ac_hdr" >&5
5410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5412 else
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5416 #include <$ac_hdr>
5417 EOF
5418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5419 { (eval echo configure:5420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5421 if test -z "$ac_err"; then
5422 rm -rf conftest*
5423 eval "ac_cv_header_$ac_safe=yes"
5424 else
5425 echo "$ac_err" >&5
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 rm -rf conftest*
5429 eval "ac_cv_header_$ac_safe=no"
5430 fi
5431 rm -f conftest*
5432 fi
5433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5436 cat >> confdefs.h <<EOF
5437 #define $ac_tr_hdr 1
5438 EOF
5439
5440 else
5441 echo "$ac_t""no" 1>&6
5442 fi
5443 done
5444
5445 for ac_hdr in sys/wait.h wait.h
5446 do
5447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5449 echo "configure:5450: checking for $ac_hdr" >&5
5450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5452 else
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5456 #include <$ac_hdr>
5457 EOF
5458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5459 { (eval echo configure:5460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5461 if test -z "$ac_err"; then
5462 rm -rf conftest*
5463 eval "ac_cv_header_$ac_safe=yes"
5464 else
5465 echo "$ac_err" >&5
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -rf conftest*
5469 eval "ac_cv_header_$ac_safe=no"
5470 fi
5471 rm -f conftest*
5472 fi
5473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5474 echo "$ac_t""yes" 1>&6
5475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5476 cat >> confdefs.h <<EOF
5477 #define $ac_tr_hdr 1
5478 EOF
5479
5480 else
5481 echo "$ac_t""no" 1>&6
5482 fi
5483 done
5484
5485 for ac_hdr in termios.h termio.h sgtty.h
5486 do
5487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_hdr" >&5
5490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5492 else
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 #include <$ac_hdr>
5497 EOF
5498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5499 { (eval echo configure:5500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5501 if test -z "$ac_err"; then
5502 rm -rf conftest*
5503 eval "ac_cv_header_$ac_safe=yes"
5504 else
5505 echo "$ac_err" >&5
5506 echo "configure: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 rm -rf conftest*
5509 eval "ac_cv_header_$ac_safe=no"
5510 fi
5511 rm -f conftest*
5512 fi
5513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5514 echo "$ac_t""yes" 1>&6
5515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5516 cat >> confdefs.h <<EOF
5517 #define $ac_tr_hdr 1
5518 EOF
5519
5520 else
5521 echo "$ac_t""no" 1>&6
5522 fi
5523 done
5524
5525 for ac_hdr in unistd.h
5526 do
5527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5529 echo "configure:5530: checking for $ac_hdr" >&5
5530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5531 echo $ac_n "(cached) $ac_c" 1>&6
5532 else
5533 cat > conftest.$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5536 #include <$ac_hdr>
5537 EOF
5538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5539 { (eval echo configure:5540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5541 if test -z "$ac_err"; then
5542 rm -rf conftest*
5543 eval "ac_cv_header_$ac_safe=yes"
5544 else
5545 echo "$ac_err" >&5
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 rm -rf conftest*
5549 eval "ac_cv_header_$ac_safe=no"
5550 fi
5551 rm -f conftest*
5552 fi
5553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5554 echo "$ac_t""yes" 1>&6
5555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5556 cat >> confdefs.h <<EOF
5557 #define $ac_tr_hdr 1
5558 EOF
5559
5560 else
5561 echo "$ac_t""no" 1>&6
5562 fi
5563 done
5564
5565
5566 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5567 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5568 # think that we don't have <curses.h> if we're using GCC.
5569 case $host_os in
5570 solaris2.[78])
5571 if test "$GCC" = yes; then
5572 cat >> confdefs.h <<\EOF
5573 #define _MSE_INT_H 1
5574 EOF
5575
5576 fi ;;
5577 esac
5578 for ac_hdr in curses.h ncurses.h term.h
5579 do
5580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_hdr" >&5
5583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 #include <$ac_hdr>
5590 EOF
5591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5592 { (eval echo configure:5593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5594 if test -z "$ac_err"; then
5595 rm -rf conftest*
5596 eval "ac_cv_header_$ac_safe=yes"
5597 else
5598 echo "$ac_err" >&5
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5601 rm -rf conftest*
5602 eval "ac_cv_header_$ac_safe=no"
5603 fi
5604 rm -f conftest*
5605 fi
5606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5609 cat >> confdefs.h <<EOF
5610 #define $ac_tr_hdr 1
5611 EOF
5612
5613 else
5614 echo "$ac_t""no" 1>&6
5615 fi
5616 done
5617
5618
5619 # FIXME: kettenis/20030102: In most cases we include these
5620 # unconditionally, so what's the point in checking these?
5621 for ac_hdr in ctype.h time.h
5622 do
5623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5625 echo "configure:5626: checking for $ac_hdr" >&5
5626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5628 else
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5632 #include <$ac_hdr>
5633 EOF
5634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5635 { (eval echo configure:5636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5637 if test -z "$ac_err"; then
5638 rm -rf conftest*
5639 eval "ac_cv_header_$ac_safe=yes"
5640 else
5641 echo "$ac_err" >&5
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5644 rm -rf conftest*
5645 eval "ac_cv_header_$ac_safe=no"
5646 fi
5647 rm -f conftest*
5648 fi
5649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5650 echo "$ac_t""yes" 1>&6
5651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5652 cat >> confdefs.h <<EOF
5653 #define $ac_tr_hdr 1
5654 EOF
5655
5656 else
5657 echo "$ac_t""no" 1>&6
5658 fi
5659 done
5660
5661
5662 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5663 echo "configure:5664: checking for member st_blocks in struct stat" >&5
5664 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5666 else
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 #include <sys/types.h>
5671 #include <sys/stat.h>
5672 int main() {
5673 struct stat st; (void) st.st_blocks;
5674 ; return 0; }
5675 EOF
5676 if { (eval echo configure:5677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5677 rm -rf conftest*
5678 gdb_cv_have_struct_stat_with_st_blocks_member=yes
5679 else
5680 echo "configure: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5682 rm -rf conftest*
5683 gdb_cv_have_struct_stat_with_st_blocks_member=no
5684 fi
5685 rm -f conftest*
5686 fi
5687
5688 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5689 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5690 cat >> confdefs.h <<\EOF
5691 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5692 EOF
5693
5694 fi
5695 # ------------------------- #
5696 # Checks for declarations. #
5697 # ------------------------- #
5698
5699 for ac_func in getopt
5700 do
5701 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5702 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5703 echo "configure:5704: checking whether $ac_func is declared" >&5
5704 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 #undef $ac_tr_decl
5711 #define $ac_tr_decl 1
5712
5713
5714 int main() {
5715 #ifndef $ac_func
5716 char *(*pfn) = (char *(*)) $ac_func ;
5717 #endif
5718 ; return 0; }
5719 EOF
5720 if { (eval echo configure:5721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5721 rm -rf conftest*
5722 eval "gcc_cv_have_decl_$ac_func=yes"
5723 else
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5726 rm -rf conftest*
5727 eval "gcc_cv_have_decl_$ac_func=no"
5728 fi
5729 rm -f conftest*
5730 fi
5731
5732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
5734 #define $ac_tr_decl 1
5735 EOF
5736
5737 else
5738 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
5739 #define $ac_tr_decl 0
5740 EOF
5741
5742 fi
5743
5744 done
5745 if test x = y ; then
5746 cat >> confdefs.h <<\EOF
5747 #define HAVE_DECL_GETOPT 1
5748 EOF
5749 fi
5750
5751
5752 # ------------------ #
5753 # Checks for types. #
5754 # ------------------ #
5755
5756 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5757 echo "configure:5758: checking return type of signal handlers" >&5
5758 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5760 else
5761 cat > conftest.$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 #include <sys/types.h>
5765 #include <signal.h>
5766 #ifdef signal
5767 #undef signal
5768 #endif
5769 #ifdef __cplusplus
5770 extern "C" void (*signal (int, void (*)(int)))(int);
5771 #else
5772 void (*signal ()) ();
5773 #endif
5774
5775 int main() {
5776 int i;
5777 ; return 0; }
5778 EOF
5779 if { (eval echo configure:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5780 rm -rf conftest*
5781 ac_cv_type_signal=void
5782 else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -rf conftest*
5786 ac_cv_type_signal=int
5787 fi
5788 rm -f conftest*
5789 fi
5790
5791 echo "$ac_t""$ac_cv_type_signal" 1>&6
5792 cat >> confdefs.h <<EOF
5793 #define RETSIGTYPE $ac_cv_type_signal
5794 EOF
5795
5796
5797
5798 # ------------------------------------- #
5799 # Checks for compiler characteristics. #
5800 # ------------------------------------- #
5801
5802 echo $ac_n "checking for working const""... $ac_c" 1>&6
5803 echo "configure:5804: checking for working const" >&5
5804 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5806 else
5807 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
5810
5811 int main() {
5812
5813 /* Ultrix mips cc rejects this. */
5814 typedef int charset[2]; const charset x;
5815 /* SunOS 4.1.1 cc rejects this. */
5816 char const *const *ccp;
5817 char **p;
5818 /* NEC SVR4.0.2 mips cc rejects this. */
5819 struct point {int x, y;};
5820 static struct point const zero = {0,0};
5821 /* AIX XL C 1.02.0.0 rejects this.
5822 It does not let you subtract one const X* pointer from another in an arm
5823 of an if-expression whose if-part is not a constant expression */
5824 const char *g = "string";
5825 ccp = &g + (g ? g-g : 0);
5826 /* HPUX 7.0 cc rejects these. */
5827 ++ccp;
5828 p = (char**) ccp;
5829 ccp = (char const *const *) p;
5830 { /* SCO 3.2v4 cc rejects this. */
5831 char *t;
5832 char const *s = 0 ? (char *) 0 : (char const *) 0;
5833
5834 *t++ = 0;
5835 }
5836 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5837 int x[] = {25, 17};
5838 const int *foo = &x[0];
5839 ++foo;
5840 }
5841 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5842 typedef const int *iptr;
5843 iptr p = 0;
5844 ++p;
5845 }
5846 { /* AIX XL C 1.02.0.0 rejects this saying
5847 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5848 struct s { int j; const int *ap[3]; };
5849 struct s *b; b->j = 5;
5850 }
5851 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5852 const int foo = 10;
5853 }
5854
5855 ; return 0; }
5856 EOF
5857 if { (eval echo configure:5858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5858 rm -rf conftest*
5859 ac_cv_c_const=yes
5860 else
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5863 rm -rf conftest*
5864 ac_cv_c_const=no
5865 fi
5866 rm -f conftest*
5867 fi
5868
5869 echo "$ac_t""$ac_cv_c_const" 1>&6
5870 if test $ac_cv_c_const = no; then
5871 cat >> confdefs.h <<\EOF
5872 #define const
5873 EOF
5874
5875 fi
5876
5877 echo $ac_n "checking for inline""... $ac_c" 1>&6
5878 echo "configure:5879: checking for inline" >&5
5879 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5880 echo $ac_n "(cached) $ac_c" 1>&6
5881 else
5882 ac_cv_c_inline=no
5883 for ac_kw in inline __inline__ __inline; do
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887
5888 int main() {
5889 } $ac_kw foo() {
5890 ; return 0; }
5891 EOF
5892 if { (eval echo configure:5893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5893 rm -rf conftest*
5894 ac_cv_c_inline=$ac_kw; break
5895 else
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 fi
5899 rm -f conftest*
5900 done
5901
5902 fi
5903
5904 echo "$ac_t""$ac_cv_c_inline" 1>&6
5905 case "$ac_cv_c_inline" in
5906 inline | yes) ;;
5907 no) cat >> confdefs.h <<\EOF
5908 #define inline
5909 EOF
5910 ;;
5911 *) cat >> confdefs.h <<EOF
5912 #define inline $ac_cv_c_inline
5913 EOF
5914 ;;
5915 esac
5916
5917
5918 # ------------------------------ #
5919 # Checks for library functions. #
5920 # ------------------------------ #
5921
5922 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5923 # for constant arguments. Useless!
5924 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5925 echo "configure:5926: checking for working alloca.h" >&5
5926 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5928 else
5929 cat > conftest.$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5932 #include <alloca.h>
5933 int main() {
5934 char *p = alloca(2 * sizeof(int));
5935 ; return 0; }
5936 EOF
5937 if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5938 rm -rf conftest*
5939 ac_cv_header_alloca_h=yes
5940 else
5941 echo "configure: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5943 rm -rf conftest*
5944 ac_cv_header_alloca_h=no
5945 fi
5946 rm -f conftest*
5947 fi
5948
5949 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5950 if test $ac_cv_header_alloca_h = yes; then
5951 cat >> confdefs.h <<\EOF
5952 #define HAVE_ALLOCA_H 1
5953 EOF
5954
5955 fi
5956
5957 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5958 echo "configure:5959: checking for alloca" >&5
5959 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5961 else
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5965
5966 #ifdef __GNUC__
5967 # define alloca __builtin_alloca
5968 #else
5969 # ifdef _MSC_VER
5970 # include <malloc.h>
5971 # define alloca _alloca
5972 # else
5973 # if HAVE_ALLOCA_H
5974 # include <alloca.h>
5975 # else
5976 # ifdef _AIX
5977 #pragma alloca
5978 # else
5979 # ifndef alloca /* predefined by HP cc +Olibcalls */
5980 char *alloca ();
5981 # endif
5982 # endif
5983 # endif
5984 # endif
5985 #endif
5986
5987 int main() {
5988 char *p = (char *) alloca(1);
5989 ; return 0; }
5990 EOF
5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992 rm -rf conftest*
5993 ac_cv_func_alloca_works=yes
5994 else
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5997 rm -rf conftest*
5998 ac_cv_func_alloca_works=no
5999 fi
6000 rm -f conftest*
6001 fi
6002
6003 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6004 if test $ac_cv_func_alloca_works = yes; then
6005 cat >> confdefs.h <<\EOF
6006 #define HAVE_ALLOCA 1
6007 EOF
6008
6009 fi
6010
6011 if test $ac_cv_func_alloca_works = no; then
6012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6013 # that cause trouble. Some versions do not even contain alloca or
6014 # contain a buggy version. If you still want to use their alloca,
6015 # use ar to extract alloca.o from them instead of compiling alloca.c.
6016 ALLOCA=alloca.${ac_objext}
6017 cat >> confdefs.h <<\EOF
6018 #define C_ALLOCA 1
6019 EOF
6020
6021
6022 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6023 echo "configure:6024: checking whether alloca needs Cray hooks" >&5
6024 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6026 else
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #if defined(CRAY) && ! defined(CRAY2)
6031 webecray
6032 #else
6033 wenotbecray
6034 #endif
6035
6036 EOF
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 egrep "webecray" >/dev/null 2>&1; then
6039 rm -rf conftest*
6040 ac_cv_os_cray=yes
6041 else
6042 rm -rf conftest*
6043 ac_cv_os_cray=no
6044 fi
6045 rm -f conftest*
6046
6047 fi
6048
6049 echo "$ac_t""$ac_cv_os_cray" 1>&6
6050 if test $ac_cv_os_cray = yes; then
6051 for ac_func in _getb67 GETB67 getb67; do
6052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_func" >&5
6054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6056 else
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char $ac_func(); below. */
6062 #include <assert.h>
6063 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6066 char $ac_func();
6067
6068 int main() {
6069
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074 choke me
6075 #else
6076 $ac_func();
6077 #endif
6078
6079 ; return 0; }
6080 EOF
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6082 rm -rf conftest*
6083 eval "ac_cv_func_$ac_func=yes"
6084 else
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6087 rm -rf conftest*
6088 eval "ac_cv_func_$ac_func=no"
6089 fi
6090 rm -f conftest*
6091 fi
6092
6093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6095 cat >> confdefs.h <<EOF
6096 #define CRAY_STACKSEG_END $ac_func
6097 EOF
6098
6099 break
6100 else
6101 echo "$ac_t""no" 1>&6
6102 fi
6103
6104 done
6105 fi
6106
6107 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6108 echo "configure:6109: checking stack direction for C alloca" >&5
6109 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6111 else
6112 if test "$cross_compiling" = yes; then
6113 ac_cv_c_stack_direction=0
6114 else
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 find_stack_direction ()
6119 {
6120 static char *addr = 0;
6121 auto char dummy;
6122 if (addr == 0)
6123 {
6124 addr = &dummy;
6125 return find_stack_direction ();
6126 }
6127 else
6128 return (&dummy > addr) ? 1 : -1;
6129 }
6130 main ()
6131 {
6132 exit (find_stack_direction() < 0);
6133 }
6134 EOF
6135 if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6136 then
6137 ac_cv_c_stack_direction=1
6138 else
6139 echo "configure: failed program was:" >&5
6140 cat conftest.$ac_ext >&5
6141 rm -fr conftest*
6142 ac_cv_c_stack_direction=-1
6143 fi
6144 rm -fr conftest*
6145 fi
6146
6147 fi
6148
6149 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6150 cat >> confdefs.h <<EOF
6151 #define STACK_DIRECTION $ac_cv_c_stack_direction
6152 EOF
6153
6154 fi
6155
6156 for ac_hdr in unistd.h
6157 do
6158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6160 echo "configure:6161: checking for $ac_hdr" >&5
6161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6
6163 else
6164 cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6167 #include <$ac_hdr>
6168 EOF
6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6172 if test -z "$ac_err"; then
6173 rm -rf conftest*
6174 eval "ac_cv_header_$ac_safe=yes"
6175 else
6176 echo "$ac_err" >&5
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 rm -rf conftest*
6180 eval "ac_cv_header_$ac_safe=no"
6181 fi
6182 rm -f conftest*
6183 fi
6184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6185 echo "$ac_t""yes" 1>&6
6186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6187 cat >> confdefs.h <<EOF
6188 #define $ac_tr_hdr 1
6189 EOF
6190
6191 else
6192 echo "$ac_t""no" 1>&6
6193 fi
6194 done
6195
6196 for ac_func in getpagesize
6197 do
6198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6199 echo "configure:6200: checking for $ac_func" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202 else
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char $ac_func(); below. */
6208 #include <assert.h>
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6212 char $ac_func();
6213
6214 int main() {
6215
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6220 choke me
6221 #else
6222 $ac_func();
6223 #endif
6224
6225 ; return 0; }
6226 EOF
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 rm -rf conftest*
6229 eval "ac_cv_func_$ac_func=yes"
6230 else
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 rm -rf conftest*
6234 eval "ac_cv_func_$ac_func=no"
6235 fi
6236 rm -f conftest*
6237 fi
6238
6239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6242 cat >> confdefs.h <<EOF
6243 #define $ac_tr_func 1
6244 EOF
6245
6246 else
6247 echo "$ac_t""no" 1>&6
6248 fi
6249 done
6250
6251 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6252 echo "configure:6253: checking for working mmap" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6255 else
6256 if test "$cross_compiling" = yes; then
6257 ac_cv_func_mmap_fixed_mapped=no
6258 else
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262
6263 /* Thanks to Mike Haertel and Jim Avera for this test.
6264 Here is a matrix of mmap possibilities:
6265 mmap private not fixed
6266 mmap private fixed at somewhere currently unmapped
6267 mmap private fixed at somewhere already mapped
6268 mmap shared not fixed
6269 mmap shared fixed at somewhere currently unmapped
6270 mmap shared fixed at somewhere already mapped
6271 For private mappings, we should verify that changes cannot be read()
6272 back from the file, nor mmap's back from the file at a different
6273 address. (There have been systems where private was not correctly
6274 implemented like the infamous i386 svr4.0, and systems where the
6275 VM page cache was not coherent with the filesystem buffer cache
6276 like early versions of FreeBSD and possibly contemporary NetBSD.)
6277 For shared mappings, we should conversely verify that changes get
6278 propogated back to all the places they're supposed to be.
6279
6280 Grep wants private fixed already mapped.
6281 The main things grep needs to know about mmap are:
6282 * does it exist and is it safe to write into the mmap'd area
6283 * how to use it (BSD variants) */
6284 #include <sys/types.h>
6285 #include <fcntl.h>
6286 #include <sys/mman.h>
6287
6288 /* This mess was copied from the GNU getpagesize.h. */
6289 #ifndef HAVE_GETPAGESIZE
6290 # ifdef HAVE_UNISTD_H
6291 # include <unistd.h>
6292 # endif
6293
6294 /* Assume that all systems that can run configure have sys/param.h. */
6295 # ifndef HAVE_SYS_PARAM_H
6296 # define HAVE_SYS_PARAM_H 1
6297 # endif
6298
6299 # ifdef _SC_PAGESIZE
6300 # define getpagesize() sysconf(_SC_PAGESIZE)
6301 # else /* no _SC_PAGESIZE */
6302 # ifdef HAVE_SYS_PARAM_H
6303 # include <sys/param.h>
6304 # ifdef EXEC_PAGESIZE
6305 # define getpagesize() EXEC_PAGESIZE
6306 # else /* no EXEC_PAGESIZE */
6307 # ifdef NBPG
6308 # define getpagesize() NBPG * CLSIZE
6309 # ifndef CLSIZE
6310 # define CLSIZE 1
6311 # endif /* no CLSIZE */
6312 # else /* no NBPG */
6313 # ifdef NBPC
6314 # define getpagesize() NBPC
6315 # else /* no NBPC */
6316 # ifdef PAGESIZE
6317 # define getpagesize() PAGESIZE
6318 # endif /* PAGESIZE */
6319 # endif /* no NBPC */
6320 # endif /* no NBPG */
6321 # endif /* no EXEC_PAGESIZE */
6322 # else /* no HAVE_SYS_PARAM_H */
6323 # define getpagesize() 8192 /* punt totally */
6324 # endif /* no HAVE_SYS_PARAM_H */
6325 # endif /* no _SC_PAGESIZE */
6326
6327 #endif /* no HAVE_GETPAGESIZE */
6328
6329 #ifdef __cplusplus
6330 extern "C" { void *malloc(unsigned); }
6331 #else
6332 char *malloc();
6333 #endif
6334
6335 int
6336 main()
6337 {
6338 char *data, *data2, *data3;
6339 int i, pagesize;
6340 int fd;
6341
6342 pagesize = getpagesize();
6343
6344 /*
6345 * First, make a file with some known garbage in it.
6346 */
6347 data = malloc(pagesize);
6348 if (!data)
6349 exit(1);
6350 for (i = 0; i < pagesize; ++i)
6351 *(data + i) = rand();
6352 umask(0);
6353 fd = creat("conftestmmap", 0600);
6354 if (fd < 0)
6355 exit(1);
6356 if (write(fd, data, pagesize) != pagesize)
6357 exit(1);
6358 close(fd);
6359
6360 /*
6361 * Next, try to mmap the file at a fixed address which
6362 * already has something else allocated at it. If we can,
6363 * also make sure that we see the same garbage.
6364 */
6365 fd = open("conftestmmap", O_RDWR);
6366 if (fd < 0)
6367 exit(1);
6368 data2 = malloc(2 * pagesize);
6369 if (!data2)
6370 exit(1);
6371 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6372 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6373 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6374 exit(1);
6375 for (i = 0; i < pagesize; ++i)
6376 if (*(data + i) != *(data2 + i))
6377 exit(1);
6378
6379 /*
6380 * Finally, make sure that changes to the mapped area
6381 * do not percolate back to the file as seen by read().
6382 * (This is a bug on some variants of i386 svr4.0.)
6383 */
6384 for (i = 0; i < pagesize; ++i)
6385 *(data2 + i) = *(data2 + i) + 1;
6386 data3 = malloc(pagesize);
6387 if (!data3)
6388 exit(1);
6389 if (read(fd, data3, pagesize) != pagesize)
6390 exit(1);
6391 for (i = 0; i < pagesize; ++i)
6392 if (*(data + i) != *(data3 + i))
6393 exit(1);
6394 close(fd);
6395 unlink("conftestmmap");
6396 exit(0);
6397 }
6398
6399 EOF
6400 if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6401 then
6402 ac_cv_func_mmap_fixed_mapped=yes
6403 else
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6406 rm -fr conftest*
6407 ac_cv_func_mmap_fixed_mapped=no
6408 fi
6409 rm -fr conftest*
6410 fi
6411
6412 fi
6413
6414 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6415 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6416 cat >> confdefs.h <<\EOF
6417 #define HAVE_MMAP 1
6418 EOF
6419
6420 fi
6421
6422 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6423 echo "configure:6424: checking for pid_t" >&5
6424 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6426 else
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 #include <sys/types.h>
6431 #if STDC_HEADERS
6432 #include <stdlib.h>
6433 #include <stddef.h>
6434 #endif
6435 EOF
6436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6437 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6438 rm -rf conftest*
6439 ac_cv_type_pid_t=yes
6440 else
6441 rm -rf conftest*
6442 ac_cv_type_pid_t=no
6443 fi
6444 rm -f conftest*
6445
6446 fi
6447 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6448 if test $ac_cv_type_pid_t = no; then
6449 cat >> confdefs.h <<\EOF
6450 #define pid_t int
6451 EOF
6452
6453 fi
6454
6455 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6456 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6457 echo "configure:6458: checking for vfork.h" >&5
6458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6460 else
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 #include <vfork.h>
6465 EOF
6466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6467 { (eval echo configure:6468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6469 if test -z "$ac_err"; then
6470 rm -rf conftest*
6471 eval "ac_cv_header_$ac_safe=yes"
6472 else
6473 echo "$ac_err" >&5
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6476 rm -rf conftest*
6477 eval "ac_cv_header_$ac_safe=no"
6478 fi
6479 rm -f conftest*
6480 fi
6481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 cat >> confdefs.h <<\EOF
6484 #define HAVE_VFORK_H 1
6485 EOF
6486
6487 else
6488 echo "$ac_t""no" 1>&6
6489 fi
6490
6491 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6492 echo "configure:6493: checking for working vfork" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6495 else
6496 if test "$cross_compiling" = yes; then
6497 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6498 echo "configure:6499: checking for vfork" >&5
6499 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6501 else
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char vfork(); below. */
6507 #include <assert.h>
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511 char vfork();
6512
6513 int main() {
6514
6515 /* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518 #if defined (__stub_vfork) || defined (__stub___vfork)
6519 choke me
6520 #else
6521 vfork();
6522 #endif
6523
6524 ; return 0; }
6525 EOF
6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 rm -rf conftest*
6528 eval "ac_cv_func_vfork=yes"
6529 else
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6532 rm -rf conftest*
6533 eval "ac_cv_func_vfork=no"
6534 fi
6535 rm -f conftest*
6536 fi
6537
6538 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 :
6541 else
6542 echo "$ac_t""no" 1>&6
6543 fi
6544
6545 ac_cv_func_vfork_works=$ac_cv_func_vfork
6546 else
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 /* Thanks to Paul Eggert for this test. */
6551 #include <stdio.h>
6552 #include <sys/types.h>
6553 #include <sys/stat.h>
6554 #ifdef HAVE_UNISTD_H
6555 #include <unistd.h>
6556 #endif
6557 #ifdef HAVE_VFORK_H
6558 #include <vfork.h>
6559 #endif
6560 /* On some sparc systems, changes by the child to local and incoming
6561 argument registers are propagated back to the parent.
6562 The compiler is told about this with #include <vfork.h>,
6563 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6564 Test for this by using a static variable whose address
6565 is put into a register that is clobbered by the vfork. */
6566 static
6567 #ifdef __cplusplus
6568 sparc_address_test (int arg)
6569 #else
6570 sparc_address_test (arg) int arg;
6571 #endif
6572 {
6573 static pid_t child;
6574 if (!child) {
6575 child = vfork ();
6576 if (child < 0) {
6577 perror ("vfork");
6578 _exit(2);
6579 }
6580 if (!child) {
6581 arg = getpid();
6582 write(-1, "", 0);
6583 _exit (arg);
6584 }
6585 }
6586 }
6587 main() {
6588 pid_t parent = getpid ();
6589 pid_t child;
6590
6591 sparc_address_test ();
6592
6593 child = vfork ();
6594
6595 if (child == 0) {
6596 /* Here is another test for sparc vfork register problems.
6597 This test uses lots of local variables, at least
6598 as many local variables as main has allocated so far
6599 including compiler temporaries. 4 locals are enough for
6600 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6601 A buggy compiler should reuse the register of parent
6602 for one of the local variables, since it will think that
6603 parent can't possibly be used any more in this routine.
6604 Assigning to the local variable will thus munge parent
6605 in the parent process. */
6606 pid_t
6607 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6608 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6609 /* Convince the compiler that p..p7 are live; otherwise, it might
6610 use the same hardware register for all 8 local variables. */
6611 if (p != p1 || p != p2 || p != p3 || p != p4
6612 || p != p5 || p != p6 || p != p7)
6613 _exit(1);
6614
6615 /* On some systems (e.g. IRIX 3.3),
6616 vfork doesn't separate parent from child file descriptors.
6617 If the child closes a descriptor before it execs or exits,
6618 this munges the parent's descriptor as well.
6619 Test for this by closing stdout in the child. */
6620 _exit(close(fileno(stdout)) != 0);
6621 } else {
6622 int status;
6623 struct stat st;
6624
6625 while (wait(&status) != child)
6626 ;
6627 exit(
6628 /* Was there some problem with vforking? */
6629 child < 0
6630
6631 /* Did the child fail? (This shouldn't happen.) */
6632 || status
6633
6634 /* Did the vfork/compiler bug occur? */
6635 || parent != getpid()
6636
6637 /* Did the file descriptor bug occur? */
6638 || fstat(fileno(stdout), &st) != 0
6639 );
6640 }
6641 }
6642 EOF
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6644 then
6645 ac_cv_func_vfork_works=yes
6646 else
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 rm -fr conftest*
6650 ac_cv_func_vfork_works=no
6651 fi
6652 rm -fr conftest*
6653 fi
6654
6655 fi
6656
6657 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6658 if test $ac_cv_func_vfork_works = no; then
6659 cat >> confdefs.h <<\EOF
6660 #define vfork fork
6661 EOF
6662
6663 fi
6664
6665 for ac_func in canonicalize_file_name realpath
6666 do
6667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_func" >&5
6669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6671 else
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func(); below. */
6677 #include <assert.h>
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6681 char $ac_func();
6682
6683 int main() {
6684
6685 /* The GNU C library defines this for functions which it implements
6686 to always fail with ENOSYS. Some functions are actually named
6687 something starting with __ and the normal name is an alias. */
6688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6689 choke me
6690 #else
6691 $ac_func();
6692 #endif
6693
6694 ; return 0; }
6695 EOF
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6697 rm -rf conftest*
6698 eval "ac_cv_func_$ac_func=yes"
6699 else
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 rm -rf conftest*
6703 eval "ac_cv_func_$ac_func=no"
6704 fi
6705 rm -f conftest*
6706 fi
6707
6708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6711 cat >> confdefs.h <<EOF
6712 #define $ac_tr_func 1
6713 EOF
6714
6715 else
6716 echo "$ac_t""no" 1>&6
6717 fi
6718 done
6719
6720 for ac_func in poll
6721 do
6722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6723 echo "configure:6724: checking for $ac_func" >&5
6724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6726 else
6727 cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6730 /* System header to define __stub macros and hopefully few prototypes,
6731 which can conflict with char $ac_func(); below. */
6732 #include <assert.h>
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 /* We use char because int might match the return type of a gcc2
6735 builtin and then its argument prototype would still apply. */
6736 char $ac_func();
6737
6738 int main() {
6739
6740 /* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 choke me
6745 #else
6746 $ac_func();
6747 #endif
6748
6749 ; return 0; }
6750 EOF
6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6752 rm -rf conftest*
6753 eval "ac_cv_func_$ac_func=yes"
6754 else
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 rm -rf conftest*
6758 eval "ac_cv_func_$ac_func=no"
6759 fi
6760 rm -f conftest*
6761 fi
6762
6763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6764 echo "$ac_t""yes" 1>&6
6765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6766 cat >> confdefs.h <<EOF
6767 #define $ac_tr_func 1
6768 EOF
6769
6770 else
6771 echo "$ac_t""no" 1>&6
6772 fi
6773 done
6774
6775 for ac_func in pread64
6776 do
6777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6778 echo "configure:6779: checking for $ac_func" >&5
6779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6781 else
6782 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 /* System header to define __stub macros and hopefully few prototypes,
6786 which can conflict with char $ac_func(); below. */
6787 #include <assert.h>
6788 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6791 char $ac_func();
6792
6793 int main() {
6794
6795 /* The GNU C library defines this for functions which it implements
6796 to always fail with ENOSYS. Some functions are actually named
6797 something starting with __ and the normal name is an alias. */
6798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6799 choke me
6800 #else
6801 $ac_func();
6802 #endif
6803
6804 ; return 0; }
6805 EOF
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6807 rm -rf conftest*
6808 eval "ac_cv_func_$ac_func=yes"
6809 else
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6812 rm -rf conftest*
6813 eval "ac_cv_func_$ac_func=no"
6814 fi
6815 rm -f conftest*
6816 fi
6817
6818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6821 cat >> confdefs.h <<EOF
6822 #define $ac_tr_func 1
6823 EOF
6824
6825 else
6826 echo "$ac_t""no" 1>&6
6827 fi
6828 done
6829
6830 for ac_func in sbrk
6831 do
6832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_func" >&5
6834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6836 else
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6840 /* System header to define __stub macros and hopefully few prototypes,
6841 which can conflict with char $ac_func(); below. */
6842 #include <assert.h>
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6846 char $ac_func();
6847
6848 int main() {
6849
6850 /* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
6853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854 choke me
6855 #else
6856 $ac_func();
6857 #endif
6858
6859 ; return 0; }
6860 EOF
6861 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6862 rm -rf conftest*
6863 eval "ac_cv_func_$ac_func=yes"
6864 else
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6867 rm -rf conftest*
6868 eval "ac_cv_func_$ac_func=no"
6869 fi
6870 rm -f conftest*
6871 fi
6872
6873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6876 cat >> confdefs.h <<EOF
6877 #define $ac_tr_func 1
6878 EOF
6879
6880 else
6881 echo "$ac_t""no" 1>&6
6882 fi
6883 done
6884
6885 for ac_func in setpgid setpgrp
6886 do
6887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6888 echo "configure:6889: checking for $ac_func" >&5
6889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6891 else
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 /* System header to define __stub macros and hopefully few prototypes,
6896 which can conflict with char $ac_func(); below. */
6897 #include <assert.h>
6898 /* Override any gcc2 internal prototype to avoid an error. */
6899 /* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6901 char $ac_func();
6902
6903 int main() {
6904
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6909 choke me
6910 #else
6911 $ac_func();
6912 #endif
6913
6914 ; return 0; }
6915 EOF
6916 if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6917 rm -rf conftest*
6918 eval "ac_cv_func_$ac_func=yes"
6919 else
6920 echo "configure: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6922 rm -rf conftest*
6923 eval "ac_cv_func_$ac_func=no"
6924 fi
6925 rm -f conftest*
6926 fi
6927
6928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6931 cat >> confdefs.h <<EOF
6932 #define $ac_tr_func 1
6933 EOF
6934
6935 else
6936 echo "$ac_t""no" 1>&6
6937 fi
6938 done
6939
6940 for ac_func in sigaction sigprocmask sigsetmask
6941 do
6942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6943 echo "configure:6944: checking for $ac_func" >&5
6944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6946 else
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950 /* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char $ac_func(); below. */
6952 #include <assert.h>
6953 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6956 char $ac_func();
6957
6958 int main() {
6959
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6964 choke me
6965 #else
6966 $ac_func();
6967 #endif
6968
6969 ; return 0; }
6970 EOF
6971 if { (eval echo configure:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6972 rm -rf conftest*
6973 eval "ac_cv_func_$ac_func=yes"
6974 else
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6977 rm -rf conftest*
6978 eval "ac_cv_func_$ac_func=no"
6979 fi
6980 rm -f conftest*
6981 fi
6982
6983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6986 cat >> confdefs.h <<EOF
6987 #define $ac_tr_func 1
6988 EOF
6989
6990 else
6991 echo "$ac_t""no" 1>&6
6992 fi
6993 done
6994
6995 for ac_func in socketpair
6996 do
6997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6998 echo "configure:6999: checking for $ac_func" >&5
6999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7000 echo $ac_n "(cached) $ac_c" 1>&6
7001 else
7002 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure"
7004 #include "confdefs.h"
7005 /* System header to define __stub macros and hopefully few prototypes,
7006 which can conflict with char $ac_func(); below. */
7007 #include <assert.h>
7008 /* Override any gcc2 internal prototype to avoid an error. */
7009 /* We use char because int might match the return type of a gcc2
7010 builtin and then its argument prototype would still apply. */
7011 char $ac_func();
7012
7013 int main() {
7014
7015 /* The GNU C library defines this for functions which it implements
7016 to always fail with ENOSYS. Some functions are actually named
7017 something starting with __ and the normal name is an alias. */
7018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7019 choke me
7020 #else
7021 $ac_func();
7022 #endif
7023
7024 ; return 0; }
7025 EOF
7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7027 rm -rf conftest*
7028 eval "ac_cv_func_$ac_func=yes"
7029 else
7030 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7032 rm -rf conftest*
7033 eval "ac_cv_func_$ac_func=no"
7034 fi
7035 rm -f conftest*
7036 fi
7037
7038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7041 cat >> confdefs.h <<EOF
7042 #define $ac_tr_func 1
7043 EOF
7044
7045 else
7046 echo "$ac_t""no" 1>&6
7047 fi
7048 done
7049
7050 for ac_func in syscall
7051 do
7052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7053 echo "configure:7054: checking for $ac_func" >&5
7054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7056 else
7057 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7060 /* System header to define __stub macros and hopefully few prototypes,
7061 which can conflict with char $ac_func(); below. */
7062 #include <assert.h>
7063 /* Override any gcc2 internal prototype to avoid an error. */
7064 /* We use char because int might match the return type of a gcc2
7065 builtin and then its argument prototype would still apply. */
7066 char $ac_func();
7067
7068 int main() {
7069
7070 /* The GNU C library defines this for functions which it implements
7071 to always fail with ENOSYS. Some functions are actually named
7072 something starting with __ and the normal name is an alias. */
7073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7074 choke me
7075 #else
7076 $ac_func();
7077 #endif
7078
7079 ; return 0; }
7080 EOF
7081 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7082 rm -rf conftest*
7083 eval "ac_cv_func_$ac_func=yes"
7084 else
7085 echo "configure: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 rm -rf conftest*
7088 eval "ac_cv_func_$ac_func=no"
7089 fi
7090 rm -f conftest*
7091 fi
7092
7093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7094 echo "$ac_t""yes" 1>&6
7095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7096 cat >> confdefs.h <<EOF
7097 #define $ac_tr_func 1
7098 EOF
7099
7100 else
7101 echo "$ac_t""no" 1>&6
7102 fi
7103 done
7104
7105
7106 if test "$cross_compiling" = no; then
7107 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7108 echo "configure:7109: checking whether setpgrp takes no argument" >&5
7109 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7111 else
7112 if test "$cross_compiling" = yes; then
7113 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7114 else
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7118
7119 #ifdef HAVE_UNISTD_H
7120 #include <unistd.h>
7121 #endif
7122
7123 /*
7124 * If this system has a BSD-style setpgrp, which takes arguments, exit
7125 * successfully.
7126 */
7127 main()
7128 {
7129 if (setpgrp(1,1) == -1)
7130 exit(0);
7131 else
7132 exit(1);
7133 }
7134
7135 EOF
7136 if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7137 then
7138 ac_cv_func_setpgrp_void=no
7139 else
7140 echo "configure: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7142 rm -fr conftest*
7143 ac_cv_func_setpgrp_void=yes
7144 fi
7145 rm -fr conftest*
7146 fi
7147
7148
7149 fi
7150
7151 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7152 if test $ac_cv_func_setpgrp_void = yes; then
7153 cat >> confdefs.h <<\EOF
7154 #define SETPGRP_VOID 1
7155 EOF
7156
7157 fi
7158
7159 else
7160 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7161 echo "configure:7162: checking whether setpgrp takes no argument" >&5
7162 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7164 else
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7168
7169 #include <unistd.h>
7170
7171 int main() {
7172
7173 if (setpgrp(1,1) == -1)
7174 exit (0);
7175 else
7176 exit (1);
7177
7178 ; return 0; }
7179 EOF
7180 if { (eval echo configure:7181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7181 rm -rf conftest*
7182 ac_cv_func_setpgrp_void=no
7183 else
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 rm -rf conftest*
7187 ac_cv_func_setpgrp_void=yes
7188 fi
7189 rm -f conftest*
7190 fi
7191
7192 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7193 if test $ac_cv_func_setpgrp_void = yes; then
7194 cat >> confdefs.h <<\EOF
7195 #define SETPGRP_VOID 1
7196 EOF
7197
7198 fi
7199 fi
7200
7201 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7202 # since sigsetjmp might only be defined as a macro.
7203 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7204 echo "configure:7205: checking for sigsetjmp" >&5
7205 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6
7207 else
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211
7212 #include <setjmp.h>
7213
7214 int main() {
7215 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7216 ; return 0; }
7217 EOF
7218 if { (eval echo configure:7219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7219 rm -rf conftest*
7220 gdb_cv_func_sigsetjmp=yes
7221 else
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7224 rm -rf conftest*
7225 gdb_cv_func_sigsetjmp=no
7226 fi
7227 rm -f conftest*
7228 fi
7229
7230 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7231 if test $gdb_cv_func_sigsetjmp = yes; then
7232 cat >> confdefs.h <<\EOF
7233 #define HAVE_SIGSETJMP 1
7234 EOF
7235
7236 fi
7237
7238 # Assume we'll default to using the included libiberty regex.
7239 gdb_use_included_regex=yes
7240
7241 # However, if the system regex is GNU regex, then default to *not*
7242 # using the included regex.
7243 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7244 echo "configure:7245: checking for GNU regex" >&5
7245 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7247 else
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 #include <gnu-versions.h>
7252 int main() {
7253 #define REGEX_INTERFACE_VERSION 1
7254 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7255 # error "Version mismatch"
7256 #endif
7257 ; return 0; }
7258 EOF
7259 if { (eval echo configure:7260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7260 rm -rf conftest*
7261 gdb_cv_have_gnu_regex=yes
7262 else
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 rm -rf conftest*
7266 gdb_cv_have_gnu_regex=no
7267 fi
7268 rm -f conftest*
7269 fi
7270
7271 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7272 if test $gdb_cv_have_gnu_regex = yes; then
7273 gdb_use_included_regex=no
7274 fi
7275
7276 # Check whether --with-included-regex or --without-included-regex was given.
7277 if test "${with_included_regex+set}" = set; then
7278 withval="$with_included_regex"
7279 gdb_with_regex=$withval
7280 else
7281 gdb_with_regex=$gdb_use_included_regex
7282 fi
7283
7284 if test "$gdb_with_regex" = yes; then
7285 cat >> confdefs.h <<\EOF
7286 #define USE_INCLUDED_REGEX 1
7287 EOF
7288
7289 fi
7290
7291 # See if <machine/reg.h> degines `struct reg'.
7292 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7293 echo "configure:7294: checking for struct reg in machine/reg.h" >&5
7294 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7296 else
7297 cat > conftest.$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7300 #include <sys/types.h>
7301 #include <machine/reg.h>
7302 int main() {
7303 struct reg r;
7304 ; return 0; }
7305 EOF
7306 if { (eval echo configure:7307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7307 rm -rf conftest*
7308 gdb_cv_struct_reg=yes
7309 else
7310 echo "configure: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7312 rm -rf conftest*
7313 gdb_cv_struct_reg=no
7314 fi
7315 rm -f conftest*
7316 fi
7317
7318 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7319 if test $gdb_cv_struct_reg = yes; then
7320 cat >> confdefs.h <<\EOF
7321 #define HAVE_STRUCT_REG 1
7322 EOF
7323
7324 fi
7325
7326 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7327 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7328 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7329 echo "configure:7330: checking for r_fs in struct reg" >&5
7330 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7332 else
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 #include <machine/reg.h>
7337 int main() {
7338 struct reg r; r.r_fs;
7339 ; return 0; }
7340 EOF
7341 if { (eval echo configure:7342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7342 rm -rf conftest*
7343 gdb_cv_struct_reg_r_fs=yes
7344 else
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 rm -rf conftest*
7348 gdb_cv_struct_reg_r_fs=no
7349 fi
7350 rm -f conftest*
7351 fi
7352
7353 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7354 if test $gdb_cv_struct_reg_r_fs = yes; then
7355 cat >> confdefs.h <<\EOF
7356 #define HAVE_STRUCT_REG_R_FS 1
7357 EOF
7358
7359 fi
7360 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7361 echo "configure:7362: checking for r_gs in struct reg" >&5
7362 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7364 else
7365 cat > conftest.$ac_ext <<EOF
7366 #line 7367 "configure"
7367 #include "confdefs.h"
7368 #include <machine/reg.h>
7369 int main() {
7370 struct reg r; r.r_gs;
7371 ; return 0; }
7372 EOF
7373 if { (eval echo configure:7374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7374 rm -rf conftest*
7375 gdb_cv_struct_reg_r_gs=yes
7376 else
7377 echo "configure: failed program was:" >&5
7378 cat conftest.$ac_ext >&5
7379 rm -rf conftest*
7380 gdb_cv_struct_reg_r_gs=no
7381 fi
7382 rm -f conftest*
7383 fi
7384
7385 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7386 if test $gdb_cv_struct_reg_r_gs = yes; then
7387 cat >> confdefs.h <<\EOF
7388 #define HAVE_STRUCT_REG_R_GS 1
7389 EOF
7390
7391 fi
7392
7393 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7394 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7395 echo "configure:7396: checking for PTRACE_GETREGS" >&5
7396 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7398 else
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 #include <sys/ptrace.h>
7403 int main() {
7404 PTRACE_GETREGS;
7405 ; return 0; }
7406 EOF
7407 if { (eval echo configure:7408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7408 rm -rf conftest*
7409 gdb_cv_have_ptrace_getregs=yes
7410 else
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 rm -rf conftest*
7414 gdb_cv_have_ptrace_getregs=no
7415 fi
7416 rm -f conftest*
7417 fi
7418
7419 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7420 if test $gdb_cv_have_ptrace_getregs = yes; then
7421 cat >> confdefs.h <<\EOF
7422 #define HAVE_PTRACE_GETREGS 1
7423 EOF
7424
7425 fi
7426
7427 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7428 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7429 echo "configure:7430: checking for PTRACE_GETFPXREGS" >&5
7430 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7432 else
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 #include <sys/ptrace.h>
7437 int main() {
7438 PTRACE_GETFPXREGS;
7439 ; return 0; }
7440 EOF
7441 if { (eval echo configure:7442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7442 rm -rf conftest*
7443 gdb_cv_have_ptrace_getfpxregs=yes
7444 else
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7447 rm -rf conftest*
7448 gdb_cv_have_ptrace_getfpxregs=no
7449 fi
7450 rm -f conftest*
7451 fi
7452
7453 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7454 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7455 cat >> confdefs.h <<\EOF
7456 #define HAVE_PTRACE_GETFPXREGS 1
7457 EOF
7458
7459 fi
7460
7461 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7462 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7463 echo "configure:7464: checking for PT_GETDBREGS" >&5
7464 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7466 else
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 #include <sys/types.h>
7471 #include <sys/ptrace.h>
7472 int main() {
7473 PT_GETDBREGS;
7474 ; return 0; }
7475 EOF
7476 if { (eval echo configure:7477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7477 rm -rf conftest*
7478 gdb_cv_have_pt_getdbregs=yes
7479 else
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7482 rm -rf conftest*
7483 gdb_cv_have_pt_getdbregs=no
7484 fi
7485 rm -f conftest*
7486 fi
7487
7488 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7489 if test $gdb_cv_have_pt_getdbregs = yes; then
7490 cat >> confdefs.h <<\EOF
7491 #define HAVE_PT_GETDBREGS 1
7492 EOF
7493
7494 fi
7495
7496 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7497 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7498 echo "configure:7499: checking for PT_GETXMMREGS" >&5
7499 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7501 else
7502 cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 #include <sys/types.h>
7506 #include <sys/ptrace.h>
7507 int main() {
7508 PT_GETXMMREGS;
7509 ; return 0; }
7510 EOF
7511 if { (eval echo configure:7512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7512 rm -rf conftest*
7513 gdb_cv_have_pt_getxmmregs=yes
7514 else
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 rm -rf conftest*
7518 gdb_cv_have_pt_getxmmregs=no
7519 fi
7520 rm -f conftest*
7521 fi
7522
7523 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7524 if test $gdb_cv_have_pt_getxmmregs = yes; then
7525 cat >> confdefs.h <<\EOF
7526 #define HAVE_PT_GETXMMREGS 1
7527 EOF
7528
7529 fi
7530
7531 # See if stdint.h provides the uintptr_t type.
7532 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7533 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7534 echo "configure:7535: checking for uintptr_t in stdint.h" >&5
7535 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7536 echo $ac_n "(cached) $ac_c" 1>&6
7537 else
7538 cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541 #include <stdint.h>
7542 int main() {
7543 uintptr_t foo = 0;
7544 ; return 0; }
7545 EOF
7546 if { (eval echo configure:7547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7547 rm -rf conftest*
7548 gdb_cv_have_uintptr_t=yes
7549 else
7550 echo "configure: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7552 rm -rf conftest*
7553 gdb_cv_have_uintptr_t=no
7554 fi
7555 rm -f conftest*
7556 fi
7557
7558 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7559 if test $gdb_cv_have_uintptr_t = yes; then
7560 cat >> confdefs.h <<\EOF
7561 #define HAVE_UINTPTR_T 1
7562 EOF
7563
7564 fi
7565
7566 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7567 echo "configure:7568: checking whether malloc must be declared" >&5
7568 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7570 else
7571 cat > conftest.$ac_ext <<EOF
7572 #line 7573 "configure"
7573 #include "confdefs.h"
7574
7575 #include <stdio.h>
7576 #ifdef HAVE_STRING_H
7577 #include <string.h>
7578 #else
7579 #ifdef HAVE_STRINGS_H
7580 #include <strings.h>
7581 #endif
7582 #endif
7583 #ifdef HAVE_STDLIB_H
7584 #include <stdlib.h>
7585 #endif
7586 #ifdef HAVE_UNISTD_H
7587 #include <unistd.h>
7588 #endif
7589 int main() {
7590 char *(*pfn) = (char *(*)) malloc
7591 ; return 0; }
7592 EOF
7593 if { (eval echo configure:7594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7594 rm -rf conftest*
7595 bfd_cv_decl_needed_malloc=no
7596 else
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 bfd_cv_decl_needed_malloc=yes
7601 fi
7602 rm -f conftest*
7603 fi
7604
7605 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7606 if test $bfd_cv_decl_needed_malloc = yes; then
7607 cat >> confdefs.h <<\EOF
7608 #define NEED_DECLARATION_MALLOC 1
7609 EOF
7610
7611 fi
7612
7613 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7614 echo "configure:7615: checking whether realloc must be declared" >&5
7615 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7617 else
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621
7622 #include <stdio.h>
7623 #ifdef HAVE_STRING_H
7624 #include <string.h>
7625 #else
7626 #ifdef HAVE_STRINGS_H
7627 #include <strings.h>
7628 #endif
7629 #endif
7630 #ifdef HAVE_STDLIB_H
7631 #include <stdlib.h>
7632 #endif
7633 #ifdef HAVE_UNISTD_H
7634 #include <unistd.h>
7635 #endif
7636 int main() {
7637 char *(*pfn) = (char *(*)) realloc
7638 ; return 0; }
7639 EOF
7640 if { (eval echo configure:7641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7641 rm -rf conftest*
7642 bfd_cv_decl_needed_realloc=no
7643 else
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7646 rm -rf conftest*
7647 bfd_cv_decl_needed_realloc=yes
7648 fi
7649 rm -f conftest*
7650 fi
7651
7652 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7653 if test $bfd_cv_decl_needed_realloc = yes; then
7654 cat >> confdefs.h <<\EOF
7655 #define NEED_DECLARATION_REALLOC 1
7656 EOF
7657
7658 fi
7659
7660 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7661 echo "configure:7662: checking whether free must be declared" >&5
7662 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7664 else
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668
7669 #include <stdio.h>
7670 #ifdef HAVE_STRING_H
7671 #include <string.h>
7672 #else
7673 #ifdef HAVE_STRINGS_H
7674 #include <strings.h>
7675 #endif
7676 #endif
7677 #ifdef HAVE_STDLIB_H
7678 #include <stdlib.h>
7679 #endif
7680 #ifdef HAVE_UNISTD_H
7681 #include <unistd.h>
7682 #endif
7683 int main() {
7684 char *(*pfn) = (char *(*)) free
7685 ; return 0; }
7686 EOF
7687 if { (eval echo configure:7688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7688 rm -rf conftest*
7689 bfd_cv_decl_needed_free=no
7690 else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 bfd_cv_decl_needed_free=yes
7695 fi
7696 rm -f conftest*
7697 fi
7698
7699 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7700 if test $bfd_cv_decl_needed_free = yes; then
7701 cat >> confdefs.h <<\EOF
7702 #define NEED_DECLARATION_FREE 1
7703 EOF
7704
7705 fi
7706
7707 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7708 echo "configure:7709: checking whether strerror must be declared" >&5
7709 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715
7716 #include <stdio.h>
7717 #ifdef HAVE_STRING_H
7718 #include <string.h>
7719 #else
7720 #ifdef HAVE_STRINGS_H
7721 #include <strings.h>
7722 #endif
7723 #endif
7724 #ifdef HAVE_STDLIB_H
7725 #include <stdlib.h>
7726 #endif
7727 #ifdef HAVE_UNISTD_H
7728 #include <unistd.h>
7729 #endif
7730 int main() {
7731 char *(*pfn) = (char *(*)) strerror
7732 ; return 0; }
7733 EOF
7734 if { (eval echo configure:7735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7735 rm -rf conftest*
7736 bfd_cv_decl_needed_strerror=no
7737 else
7738 echo "configure: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 rm -rf conftest*
7741 bfd_cv_decl_needed_strerror=yes
7742 fi
7743 rm -f conftest*
7744 fi
7745
7746 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7747 if test $bfd_cv_decl_needed_strerror = yes; then
7748 cat >> confdefs.h <<\EOF
7749 #define NEED_DECLARATION_STRERROR 1
7750 EOF
7751
7752 fi
7753
7754 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7755 echo "configure:7756: checking whether strdup must be declared" >&5
7756 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7758 else
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762
7763 #include <stdio.h>
7764 #ifdef HAVE_STRING_H
7765 #include <string.h>
7766 #else
7767 #ifdef HAVE_STRINGS_H
7768 #include <strings.h>
7769 #endif
7770 #endif
7771 #ifdef HAVE_STDLIB_H
7772 #include <stdlib.h>
7773 #endif
7774 #ifdef HAVE_UNISTD_H
7775 #include <unistd.h>
7776 #endif
7777 int main() {
7778 char *(*pfn) = (char *(*)) strdup
7779 ; return 0; }
7780 EOF
7781 if { (eval echo configure:7782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7782 rm -rf conftest*
7783 bfd_cv_decl_needed_strdup=no
7784 else
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 rm -rf conftest*
7788 bfd_cv_decl_needed_strdup=yes
7789 fi
7790 rm -f conftest*
7791 fi
7792
7793 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7794 if test $bfd_cv_decl_needed_strdup = yes; then
7795 cat >> confdefs.h <<\EOF
7796 #define NEED_DECLARATION_STRDUP 1
7797 EOF
7798
7799 fi
7800
7801 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7802 echo "configure:7803: checking whether strstr must be declared" >&5
7803 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7805 else
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809
7810 #include <stdio.h>
7811 #ifdef HAVE_STRING_H
7812 #include <string.h>
7813 #else
7814 #ifdef HAVE_STRINGS_H
7815 #include <strings.h>
7816 #endif
7817 #endif
7818 #ifdef HAVE_STDLIB_H
7819 #include <stdlib.h>
7820 #endif
7821 #ifdef HAVE_UNISTD_H
7822 #include <unistd.h>
7823 #endif
7824 int main() {
7825 char *(*pfn) = (char *(*)) strstr
7826 ; return 0; }
7827 EOF
7828 if { (eval echo configure:7829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7829 rm -rf conftest*
7830 bfd_cv_decl_needed_strstr=no
7831 else
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 rm -rf conftest*
7835 bfd_cv_decl_needed_strstr=yes
7836 fi
7837 rm -f conftest*
7838 fi
7839
7840 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7841 if test $bfd_cv_decl_needed_strstr = yes; then
7842 cat >> confdefs.h <<\EOF
7843 #define NEED_DECLARATION_STRSTR 1
7844 EOF
7845
7846 fi
7847
7848 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7849 echo "configure:7850: checking whether canonicalize_file_name must be declared" >&5
7850 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7852 else
7853 cat > conftest.$ac_ext <<EOF
7854 #line 7855 "configure"
7855 #include "confdefs.h"
7856
7857 #include <stdio.h>
7858 #ifdef HAVE_STRING_H
7859 #include <string.h>
7860 #else
7861 #ifdef HAVE_STRINGS_H
7862 #include <strings.h>
7863 #endif
7864 #endif
7865 #ifdef HAVE_STDLIB_H
7866 #include <stdlib.h>
7867 #endif
7868 #ifdef HAVE_UNISTD_H
7869 #include <unistd.h>
7870 #endif
7871 int main() {
7872 char *(*pfn) = (char *(*)) canonicalize_file_name
7873 ; return 0; }
7874 EOF
7875 if { (eval echo configure:7876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7876 rm -rf conftest*
7877 bfd_cv_decl_needed_canonicalize_file_name=no
7878 else
7879 echo "configure: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7881 rm -rf conftest*
7882 bfd_cv_decl_needed_canonicalize_file_name=yes
7883 fi
7884 rm -f conftest*
7885 fi
7886
7887 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7888 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7889 cat >> confdefs.h <<\EOF
7890 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7891 EOF
7892
7893 fi
7894
7895
7896 # The following save_state_t checkery is only necessary for HPUX
7897 # versions earlier than 10.20. When those fade from memory, this
7898 # could be expunged. --jsm 1999-03-22
7899
7900 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7901 echo "configure:7902: checking for HPUX save_state structure" >&5
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 #include <machine/save_state.h>
7906 EOF
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908 egrep "save_state_t" >/dev/null 2>&1; then
7909 rm -rf conftest*
7910 gdb_cv_hpux_savestate=yes
7911 else
7912 rm -rf conftest*
7913 gdb_cv_hpux_savestate=no
7914 fi
7915 rm -f conftest*
7916
7917 cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7920 #include <machine/save_state.h>
7921 EOF
7922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7923 egrep "ss_wide" >/dev/null 2>&1; then
7924 rm -rf conftest*
7925 gdb_cv_hpux_sswide=yes
7926 else
7927 rm -rf conftest*
7928 gdb_cv_hpux_sswide=no
7929 fi
7930 rm -f conftest*
7931
7932 if test $gdb_cv_hpux_savestate = yes
7933 then
7934 cat >> confdefs.h <<\EOF
7935 #define HAVE_STRUCT_SAVE_STATE_T 1
7936 EOF
7937
7938 fi
7939 if test $gdb_cv_hpux_sswide = yes
7940 then
7941 cat >> confdefs.h <<\EOF
7942 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7943 EOF
7944
7945 fi
7946 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7947
7948
7949 # If we are configured native on GNU/Linux, work around problems with
7950 # sys/procfs.h
7951 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7952
7953 if test "${target}" = "${host}"; then
7954 case "${host}" in
7955 i[3456]86-*-linux*)
7956 cat >> confdefs.h <<\EOF
7957 #define START_INFERIOR_TRAPS_EXPECTED 2
7958 EOF
7959
7960 cat >> confdefs.h <<\EOF
7961 #define sys_quotactl 1
7962 EOF
7963
7964 ;;
7965 ia64-*-aix*)
7966 cat >> confdefs.h <<\EOF
7967 #define NEW_PROC_API 1
7968 EOF
7969
7970 ;;
7971 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
7972 cat >> confdefs.h <<\EOF
7973 #define NEW_PROC_API 1
7974 EOF
7975
7976 ;;
7977 *-*-solaris2.[6789])
7978 cat >> confdefs.h <<\EOF
7979 #define NEW_PROC_API 1
7980 EOF
7981
7982 ;;
7983 mips-sgi-irix5*)
7984 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
7985 cat >> confdefs.h <<\EOF
7986 #define _KMEMUSER 1
7987 EOF
7988
7989 ;;
7990 esac
7991 fi
7992
7993 if test "$ac_cv_header_sys_procfs_h" = yes; then
7994 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7995 echo "configure:7996: checking for pstatus_t in sys/procfs.h" >&5
7996 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7997 echo $ac_n "(cached) $ac_c" 1>&6
7998 else
7999 cat > conftest.$ac_ext <<EOF
8000 #line 8001 "configure"
8001 #include "confdefs.h"
8002
8003 #define _SYSCALL32
8004 #include <sys/procfs.h>
8005 int main() {
8006 pstatus_t avar
8007 ; return 0; }
8008 EOF
8009 if { (eval echo configure:8010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8010 rm -rf conftest*
8011 bfd_cv_have_sys_procfs_type_pstatus_t=yes
8012 else
8013 echo "configure: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8015 rm -rf conftest*
8016 bfd_cv_have_sys_procfs_type_pstatus_t=no
8017
8018 fi
8019 rm -f conftest*
8020 fi
8021
8022 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
8023 cat >> confdefs.h <<\EOF
8024 #define HAVE_PSTATUS_T 1
8025 EOF
8026
8027 fi
8028 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
8029
8030 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
8031 echo "configure:8032: checking for prrun_t in sys/procfs.h" >&5
8032 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8034 else
8035 cat > conftest.$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8038
8039 #define _SYSCALL32
8040 #include <sys/procfs.h>
8041 int main() {
8042 prrun_t avar
8043 ; return 0; }
8044 EOF
8045 if { (eval echo configure:8046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8046 rm -rf conftest*
8047 bfd_cv_have_sys_procfs_type_prrun_t=yes
8048 else
8049 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8051 rm -rf conftest*
8052 bfd_cv_have_sys_procfs_type_prrun_t=no
8053
8054 fi
8055 rm -f conftest*
8056 fi
8057
8058 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
8059 cat >> confdefs.h <<\EOF
8060 #define HAVE_PRRUN_T 1
8061 EOF
8062
8063 fi
8064 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
8065
8066 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
8067 echo "configure:8068: checking for gregset_t in sys/procfs.h" >&5
8068 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
8069 echo $ac_n "(cached) $ac_c" 1>&6
8070 else
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8074
8075 #define _SYSCALL32
8076 #include <sys/procfs.h>
8077 int main() {
8078 gregset_t avar
8079 ; return 0; }
8080 EOF
8081 if { (eval echo configure:8082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8082 rm -rf conftest*
8083 bfd_cv_have_sys_procfs_type_gregset_t=yes
8084 else
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8087 rm -rf conftest*
8088 bfd_cv_have_sys_procfs_type_gregset_t=no
8089
8090 fi
8091 rm -f conftest*
8092 fi
8093
8094 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8095 cat >> confdefs.h <<\EOF
8096 #define HAVE_GREGSET_T 1
8097 EOF
8098
8099 fi
8100 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8101
8102 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8103 echo "configure:8104: checking for fpregset_t in sys/procfs.h" >&5
8104 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8106 else
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110
8111 #define _SYSCALL32
8112 #include <sys/procfs.h>
8113 int main() {
8114 fpregset_t avar
8115 ; return 0; }
8116 EOF
8117 if { (eval echo configure:8118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8118 rm -rf conftest*
8119 bfd_cv_have_sys_procfs_type_fpregset_t=yes
8120 else
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 rm -rf conftest*
8124 bfd_cv_have_sys_procfs_type_fpregset_t=no
8125
8126 fi
8127 rm -f conftest*
8128 fi
8129
8130 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8131 cat >> confdefs.h <<\EOF
8132 #define HAVE_FPREGSET_T 1
8133 EOF
8134
8135 fi
8136 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8137
8138 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8139 echo "configure:8140: checking for prgregset_t in sys/procfs.h" >&5
8140 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8142 else
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146
8147 #define _SYSCALL32
8148 #include <sys/procfs.h>
8149 int main() {
8150 prgregset_t avar
8151 ; return 0; }
8152 EOF
8153 if { (eval echo configure:8154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8154 rm -rf conftest*
8155 bfd_cv_have_sys_procfs_type_prgregset_t=yes
8156 else
8157 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8159 rm -rf conftest*
8160 bfd_cv_have_sys_procfs_type_prgregset_t=no
8161
8162 fi
8163 rm -f conftest*
8164 fi
8165
8166 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8167 cat >> confdefs.h <<\EOF
8168 #define HAVE_PRGREGSET_T 1
8169 EOF
8170
8171 fi
8172 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8173
8174 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8175 echo "configure:8176: checking for prfpregset_t in sys/procfs.h" >&5
8176 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8178 else
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182
8183 #define _SYSCALL32
8184 #include <sys/procfs.h>
8185 int main() {
8186 prfpregset_t avar
8187 ; return 0; }
8188 EOF
8189 if { (eval echo configure:8190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8190 rm -rf conftest*
8191 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
8192 else
8193 echo "configure: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8195 rm -rf conftest*
8196 bfd_cv_have_sys_procfs_type_prfpregset_t=no
8197
8198 fi
8199 rm -f conftest*
8200 fi
8201
8202 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8203 cat >> confdefs.h <<\EOF
8204 #define HAVE_PRFPREGSET_T 1
8205 EOF
8206
8207 fi
8208 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8209
8210 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8211 echo "configure:8212: checking for prgregset32_t in sys/procfs.h" >&5
8212 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8214 else
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218
8219 #define _SYSCALL32
8220 #include <sys/procfs.h>
8221 int main() {
8222 prgregset32_t avar
8223 ; return 0; }
8224 EOF
8225 if { (eval echo configure:8226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8226 rm -rf conftest*
8227 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
8228 else
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8231 rm -rf conftest*
8232 bfd_cv_have_sys_procfs_type_prgregset32_t=no
8233
8234 fi
8235 rm -f conftest*
8236 fi
8237
8238 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8239 cat >> confdefs.h <<\EOF
8240 #define HAVE_PRGREGSET32_T 1
8241 EOF
8242
8243 fi
8244 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8245
8246 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8247 echo "configure:8248: checking for prfpregset32_t in sys/procfs.h" >&5
8248 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250 else
8251 cat > conftest.$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8254
8255 #define _SYSCALL32
8256 #include <sys/procfs.h>
8257 int main() {
8258 prfpregset32_t avar
8259 ; return 0; }
8260 EOF
8261 if { (eval echo configure:8262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8262 rm -rf conftest*
8263 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
8264 else
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8267 rm -rf conftest*
8268 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
8269
8270 fi
8271 rm -f conftest*
8272 fi
8273
8274 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8275 cat >> confdefs.h <<\EOF
8276 #define HAVE_PRFPREGSET32_T 1
8277 EOF
8278
8279 fi
8280 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8281
8282 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8283 echo "configure:8284: checking for lwpid_t in sys/procfs.h" >&5
8284 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8286 else
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290
8291 #define _SYSCALL32
8292 #include <sys/procfs.h>
8293 int main() {
8294 lwpid_t avar
8295 ; return 0; }
8296 EOF
8297 if { (eval echo configure:8298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8298 rm -rf conftest*
8299 bfd_cv_have_sys_procfs_type_lwpid_t=yes
8300 else
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8303 rm -rf conftest*
8304 bfd_cv_have_sys_procfs_type_lwpid_t=no
8305
8306 fi
8307 rm -f conftest*
8308 fi
8309
8310 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8311 cat >> confdefs.h <<\EOF
8312 #define HAVE_LWPID_T 1
8313 EOF
8314
8315 fi
8316 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8317
8318 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8319 echo "configure:8320: checking for psaddr_t in sys/procfs.h" >&5
8320 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8322 else
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326
8327 #define _SYSCALL32
8328 #include <sys/procfs.h>
8329 int main() {
8330 psaddr_t avar
8331 ; return 0; }
8332 EOF
8333 if { (eval echo configure:8334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8334 rm -rf conftest*
8335 bfd_cv_have_sys_procfs_type_psaddr_t=yes
8336 else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 rm -rf conftest*
8340 bfd_cv_have_sys_procfs_type_psaddr_t=no
8341
8342 fi
8343 rm -f conftest*
8344 fi
8345
8346 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8347 cat >> confdefs.h <<\EOF
8348 #define HAVE_PSADDR_T 1
8349 EOF
8350
8351 fi
8352 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8353
8354 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8355 echo "configure:8356: checking for prsysent_t in sys/procfs.h" >&5
8356 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8358 else
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8362
8363 #define _SYSCALL32
8364 #include <sys/procfs.h>
8365 int main() {
8366 prsysent_t avar
8367 ; return 0; }
8368 EOF
8369 if { (eval echo configure:8370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8370 rm -rf conftest*
8371 bfd_cv_have_sys_procfs_type_prsysent_t=yes
8372 else
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 rm -rf conftest*
8376 bfd_cv_have_sys_procfs_type_prsysent_t=no
8377
8378 fi
8379 rm -f conftest*
8380 fi
8381
8382 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8383 cat >> confdefs.h <<\EOF
8384 #define HAVE_PRSYSENT_T 1
8385 EOF
8386
8387 fi
8388 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8389
8390 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8391 echo "configure:8392: checking for pr_sigset_t in sys/procfs.h" >&5
8392 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8394 else
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398
8399 #define _SYSCALL32
8400 #include <sys/procfs.h>
8401 int main() {
8402 pr_sigset_t avar
8403 ; return 0; }
8404 EOF
8405 if { (eval echo configure:8406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8406 rm -rf conftest*
8407 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
8408 else
8409 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 rm -rf conftest*
8412 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
8413
8414 fi
8415 rm -f conftest*
8416 fi
8417
8418 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8419 cat >> confdefs.h <<\EOF
8420 #define HAVE_PR_SIGSET_T 1
8421 EOF
8422
8423 fi
8424 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8425
8426 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8427 echo "configure:8428: checking for pr_sigaction64_t in sys/procfs.h" >&5
8428 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8430 else
8431 cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8434
8435 #define _SYSCALL32
8436 #include <sys/procfs.h>
8437 int main() {
8438 pr_sigaction64_t avar
8439 ; return 0; }
8440 EOF
8441 if { (eval echo configure:8442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8442 rm -rf conftest*
8443 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
8444 else
8445 echo "configure: failed program was:" >&5
8446 cat conftest.$ac_ext >&5
8447 rm -rf conftest*
8448 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
8449
8450 fi
8451 rm -f conftest*
8452 fi
8453
8454 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8455 cat >> confdefs.h <<\EOF
8456 #define HAVE_PR_SIGACTION64_T 1
8457 EOF
8458
8459 fi
8460 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8461
8462 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8463 echo "configure:8464: checking for pr_siginfo64_t in sys/procfs.h" >&5
8464 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
8466 else
8467 cat > conftest.$ac_ext <<EOF
8468 #line 8469 "configure"
8469 #include "confdefs.h"
8470
8471 #define _SYSCALL32
8472 #include <sys/procfs.h>
8473 int main() {
8474 pr_siginfo64_t avar
8475 ; return 0; }
8476 EOF
8477 if { (eval echo configure:8478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8478 rm -rf conftest*
8479 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
8480 else
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8483 rm -rf conftest*
8484 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
8485
8486 fi
8487 rm -f conftest*
8488 fi
8489
8490 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8491 cat >> confdefs.h <<\EOF
8492 #define HAVE_PR_SIGINFO64_T 1
8493 EOF
8494
8495 fi
8496 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8497
8498
8499
8500
8501
8502 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8503 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8504 echo "configure:8505: checking whether prfpregset_t type is broken" >&5
8505 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
8507 else
8508 if test "$cross_compiling" = yes; then
8509 gdb_cv_prfpregset_t_broken=yes
8510 else
8511 cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure"
8513 #include "confdefs.h"
8514 #include <sys/procfs.h>
8515 int main ()
8516 {
8517 if (sizeof (prfpregset_t) == sizeof (void *))
8518 return 1;
8519 return 0;
8520 }
8521 EOF
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8523 then
8524 gdb_cv_prfpregset_t_broken=no
8525 else
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8528 rm -fr conftest*
8529 gdb_cv_prfpregset_t_broken=yes
8530 fi
8531 rm -fr conftest*
8532 fi
8533
8534 fi
8535
8536 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8537 if test $gdb_cv_prfpregset_t_broken = yes; then
8538 cat >> confdefs.h <<\EOF
8539 #define PRFPREGSET_T_BROKEN 1
8540 EOF
8541
8542 fi
8543 fi
8544
8545
8546 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8547 echo "configure:8548: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8548 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8550 else
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 #include <unistd.h>
8555 #include <sys/types.h>
8556 #include <sys/procfs.h>
8557
8558 int main() {
8559
8560 int dummy;;
8561 dummy = ioctl(0, PIOCSET, &dummy);
8562
8563 ; return 0; }
8564 EOF
8565 if { (eval echo configure:8566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8566 rm -rf conftest*
8567 gdb_cv_have_procfs_piocset=yes
8568 else
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 rm -rf conftest*
8572 gdb_cv_have_procfs_piocset=no
8573 fi
8574 rm -f conftest*
8575 fi
8576
8577 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8578 if test $gdb_cv_have_procfs_piocset = yes; then
8579 cat >> confdefs.h <<\EOF
8580 #define HAVE_PROCFS_PIOCSET 1
8581 EOF
8582
8583 fi
8584 fi
8585
8586 if test ${host} = ${target} ; then
8587
8588 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8589 echo "configure:8590: checking for member l_addr in struct link_map" >&5
8590 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8592 else
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 #include <link.h>
8597 int main() {
8598 struct link_map lm; (void) lm.l_addr;
8599 ; return 0; }
8600 EOF
8601 if { (eval echo configure:8602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8602 rm -rf conftest*
8603 gdb_cv_have_struct_link_map_with_l_members=yes
8604 else
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -rf conftest*
8608 gdb_cv_have_struct_link_map_with_l_members=no
8609 fi
8610 rm -f conftest*
8611 fi
8612
8613 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8614 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8615 cat >> confdefs.h <<\EOF
8616 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8617 EOF
8618
8619 fi
8620
8621
8622 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8623 echo "configure:8624: checking for member lm_addr in struct link_map" >&5
8624 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8626 else
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 #include <sys/types.h>
8631 #include <link.h>
8632 int main() {
8633 struct link_map lm; (void) lm.lm_addr;
8634 ; return 0; }
8635 EOF
8636 if { (eval echo configure:8637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8637 rm -rf conftest*
8638 gdb_cv_have_struct_link_map_with_lm_members=yes
8639 else
8640 echo "configure: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8642 rm -rf conftest*
8643 gdb_cv_have_struct_link_map_with_lm_members=no
8644 fi
8645 rm -f conftest*
8646 fi
8647
8648 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8649 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8650 cat >> confdefs.h <<\EOF
8651 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8652 EOF
8653
8654 fi
8655
8656
8657 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8658 echo "configure:8659: checking for member som_addr in struct so_map" >&5
8659 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 #include <sys/types.h>
8666 #ifdef HAVE_NLIST_H
8667 #include <nlist.h>
8668 #endif
8669 #include <link.h>
8670 int main() {
8671 struct so_map lm; (void) lm.som_addr;
8672 ; return 0; }
8673 EOF
8674 if { (eval echo configure:8675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8675 rm -rf conftest*
8676 gdb_cv_have_struct_so_map_with_som_members=yes
8677 else
8678 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8680 rm -rf conftest*
8681 gdb_cv_have_struct_so_map_with_som_members=no
8682 fi
8683 rm -f conftest*
8684 fi
8685
8686 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8687 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8688 cat >> confdefs.h <<\EOF
8689 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8690 EOF
8691
8692 fi
8693
8694
8695 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8696 echo "configure:8697: checking for struct link_map32 in sys/link.h" >&5
8697 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703 #define _SYSCALL32
8704 #include <sys/link.h>
8705 int main() {
8706 struct link_map32 l;
8707 ; return 0; }
8708 EOF
8709 if { (eval echo configure:8710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8710 rm -rf conftest*
8711 gdb_cv_have_struct_link_map32=yes
8712 else
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 rm -rf conftest*
8716 gdb_cv_have_struct_link_map32=no
8717 fi
8718 rm -f conftest*
8719 fi
8720
8721 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8722 if test $gdb_cv_have_struct_link_map32 = yes; then
8723 cat >> confdefs.h <<\EOF
8724 #define HAVE_STRUCT_LINK_MAP32 1
8725 EOF
8726
8727 cat >> confdefs.h <<\EOF
8728 #define _SYSCALL32 1
8729 EOF
8730
8731 fi
8732 fi
8733
8734
8735 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8736 echo "configure:8737: checking for long long support in compiler" >&5
8737 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743
8744 int main() {
8745
8746 extern long long foo;
8747 switch (foo & 2) { case 0: return 1; }
8748
8749 ; return 0; }
8750 EOF
8751 if { (eval echo configure:8752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8752 rm -rf conftest*
8753 gdb_cv_c_long_long=yes
8754 else
8755 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8757 rm -rf conftest*
8758 gdb_cv_c_long_long=no
8759 fi
8760 rm -f conftest*
8761 fi
8762
8763 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8764 if test $gdb_cv_c_long_long = yes; then
8765 cat >> confdefs.h <<\EOF
8766 #define CC_HAS_LONG_LONG 1
8767 EOF
8768
8769 fi
8770
8771
8772 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8773 echo "configure:8774: checking for long long support in printf" >&5
8774 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8775 echo $ac_n "(cached) $ac_c" 1>&6
8776 else
8777 if test "$cross_compiling" = yes; then
8778 gdb_cv_printf_has_long_long=no
8779 else
8780 cat > conftest.$ac_ext <<EOF
8781 #line 8782 "configure"
8782 #include "confdefs.h"
8783
8784 int main () {
8785 char buf[32];
8786 long long l = 0;
8787 l = (l << 16) + 0x0123;
8788 l = (l << 16) + 0x4567;
8789 l = (l << 16) + 0x89ab;
8790 l = (l << 16) + 0xcdef;
8791 sprintf (buf, "0x%016llx", l);
8792 return (strcmp ("0x0123456789abcdef", buf));
8793 }
8794 EOF
8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8796 then
8797 gdb_cv_printf_has_long_long=yes
8798 else
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 rm -fr conftest*
8802 gdb_cv_printf_has_long_long=no
8803 fi
8804 rm -fr conftest*
8805 fi
8806
8807 fi
8808
8809 if test $gdb_cv_printf_has_long_long = yes; then
8810 cat >> confdefs.h <<\EOF
8811 #define PRINTF_HAS_LONG_LONG 1
8812 EOF
8813
8814 fi
8815 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8816
8817
8818 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8819 echo "configure:8820: checking for long double support in compiler" >&5
8820 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822 else
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8826
8827 int main() {
8828 long double foo;
8829 ; return 0; }
8830 EOF
8831 if { (eval echo configure:8832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8832 rm -rf conftest*
8833 ac_cv_c_long_double=yes
8834 else
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8837 rm -rf conftest*
8838 ac_cv_c_long_double=no
8839 fi
8840 rm -f conftest*
8841 fi
8842
8843 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8844 if test $ac_cv_c_long_double = yes; then
8845 cat >> confdefs.h <<\EOF
8846 #define HAVE_LONG_DOUBLE 1
8847 EOF
8848
8849 fi
8850
8851
8852 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8853 echo "configure:8854: checking for long double support in printf" >&5
8854 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8855 echo $ac_n "(cached) $ac_c" 1>&6
8856 else
8857 if test "$cross_compiling" = yes; then
8858 gdb_cv_printf_has_long_double=no
8859 else
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8863
8864 int main () {
8865 char buf[16];
8866 long double f = 3.141592653;
8867 sprintf (buf, "%Lg", f);
8868 return (strncmp ("3.14159", buf, 7));
8869 }
8870 EOF
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8872 then
8873 gdb_cv_printf_has_long_double=yes
8874 else
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8877 rm -fr conftest*
8878 gdb_cv_printf_has_long_double=no
8879 fi
8880 rm -fr conftest*
8881 fi
8882
8883 fi
8884
8885 if test $gdb_cv_printf_has_long_double = yes; then
8886 cat >> confdefs.h <<\EOF
8887 #define PRINTF_HAS_LONG_DOUBLE 1
8888 EOF
8889
8890 fi
8891 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8892
8893
8894 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8895 echo "configure:8896: checking for long double support in scanf" >&5
8896 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8898 else
8899 if test "$cross_compiling" = yes; then
8900 gdb_cv_scanf_has_long_double=no
8901 else
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8905
8906 int main () {
8907 char *buf = "3.141592653";
8908 long double f = 0;
8909 sscanf (buf, "%Lg", &f);
8910 return !(f > 3.14159 && f < 3.14160);
8911 }
8912 EOF
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8914 then
8915 gdb_cv_scanf_has_long_double=yes
8916 else
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8919 rm -fr conftest*
8920 gdb_cv_scanf_has_long_double=no
8921 fi
8922 rm -fr conftest*
8923 fi
8924
8925 fi
8926
8927 if test $gdb_cv_scanf_has_long_double = yes; then
8928 cat >> confdefs.h <<\EOF
8929 #define SCANF_HAS_LONG_DOUBLE 1
8930 EOF
8931
8932 fi
8933 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8934
8935 case ${host_os} in
8936 aix*)
8937 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8938 echo "configure:8939: checking for -bbigtoc option" >&5
8939 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8941 else
8942
8943 SAVE_LDFLAGS=$LDFLAGS
8944
8945 case $GCC in
8946 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8947 *) gdb_cv_bigtoc=-bbigtoc ;;
8948 esac
8949
8950 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954
8955 int main() {
8956 int i;
8957 ; return 0; }
8958 EOF
8959 if { (eval echo configure:8960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8960 :
8961 else
8962 echo "configure: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8964 rm -rf conftest*
8965 gdb_cv_bigtoc=
8966 fi
8967 rm -f conftest*
8968
8969 fi
8970
8971 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8972 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8973 ;;
8974 esac
8975
8976
8977
8978 if test ${build} = ${host} -a ${host} = ${target} ; then
8979 case ${host_os} in
8980 hpux*)
8981 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8982 echo "configure:8983: checking for HPUX/OSF thread support" >&5
8983 if test -f /usr/include/dce/cma_config.h ; then
8984 if test "$GCC" = "yes" ; then
8985 echo "$ac_t""yes" 1>&6
8986 cat >> confdefs.h <<\EOF
8987 #define HAVE_HPUX_THREAD_SUPPORT 1
8988 EOF
8989
8990 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
8991 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
8992 else
8993 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8994 fi
8995 else
8996 echo "$ac_t""no" 1>&6
8997 fi
8998 ;;
8999 solaris*)
9000 # See if thread_db library is around for Solaris thread debugging.
9001 # Note that we must explicitly test for version 1 of the library
9002 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
9003 # the same API.
9004 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
9005 echo "configure:9006: checking for Solaris thread debugging library" >&5
9006 if test -f /usr/lib/libthread_db.so.1 ; then
9007 echo "$ac_t""yes" 1>&6
9008 cat >> confdefs.h <<\EOF
9009 #define HAVE_THREAD_DB_LIB 1
9010 EOF
9011
9012 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
9013 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
9014 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9015 echo "configure:9016: checking for dlopen in -ldl" >&5
9016 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9019 else
9020 ac_save_LIBS="$LIBS"
9021 LIBS="-ldl $LIBS"
9022 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9025 /* Override any gcc2 internal prototype to avoid an error. */
9026 /* We use char because int might match the return type of a gcc2
9027 builtin and then its argument prototype would still apply. */
9028 char dlopen();
9029
9030 int main() {
9031 dlopen()
9032 ; return 0; }
9033 EOF
9034 if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9035 rm -rf conftest*
9036 eval "ac_cv_lib_$ac_lib_var=yes"
9037 else
9038 echo "configure: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9040 rm -rf conftest*
9041 eval "ac_cv_lib_$ac_lib_var=no"
9042 fi
9043 rm -f conftest*
9044 LIBS="$ac_save_LIBS"
9045
9046 fi
9047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9048 echo "$ac_t""yes" 1>&6
9049 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9051 cat >> confdefs.h <<EOF
9052 #define $ac_tr_lib 1
9053 EOF
9054
9055 LIBS="-ldl $LIBS"
9056
9057 else
9058 echo "$ac_t""no" 1>&6
9059 fi
9060
9061 if test "$GCC" = "yes" ; then
9062 # The GNU linker requires the -export-dynamic option to make
9063 # all symbols visible in the dynamic symbol table.
9064 hold_ldflags=$LDFLAGS
9065 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
9066 echo "configure:9067: checking for the ld -export-dynamic flag" >&5
9067 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071
9072 int main() {
9073 int i;
9074 ; return 0; }
9075 EOF
9076 if { (eval echo configure:9077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9077 rm -rf conftest*
9078 found=yes
9079 else
9080 echo "configure: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9082 rm -rf conftest*
9083 found=no
9084 fi
9085 rm -f conftest*
9086 LDFLAGS=$hold_ldflags
9087 echo "$ac_t""$found" 1>&6
9088 if test $found = yes; then
9089 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9090 fi
9091 fi
9092 # Sun randomly tweaked the prototypes in <proc_service.h>
9093 # at one point.
9094 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9095 echo "configure:9096: checking if <proc_service.h> is old" >&5
9096 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9098 else
9099
9100 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure"
9102 #include "confdefs.h"
9103
9104 #include <proc_service.h>
9105 ps_err_e ps_pdwrite
9106 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9107
9108 int main() {
9109
9110 ; return 0; }
9111 EOF
9112 if { (eval echo configure:9113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9113 rm -rf conftest*
9114 gdb_cv_proc_service_is_old=no
9115 else
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9118 rm -rf conftest*
9119 gdb_cv_proc_service_is_old=yes
9120 fi
9121 rm -f conftest*
9122
9123 fi
9124
9125 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9126 if test $gdb_cv_proc_service_is_old = yes; then
9127 cat >> confdefs.h <<\EOF
9128 #define PROC_SERVICE_IS_OLD 1
9129 EOF
9130
9131 fi
9132 else
9133 echo "$ac_t""no" 1>&6
9134 fi
9135 ;;
9136 aix*)
9137 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9138 echo "configure:9139: checking for AiX thread debugging library" >&5
9139 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9141 else
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 #include <sys/pthdebug.h>
9146 int main() {
9147 #ifndef PTHDB_VERSION_3
9148 #error
9149 #endif
9150 ; return 0; }
9151 EOF
9152 if { (eval echo configure:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9153 rm -rf conftest*
9154 gdb_cv_have_aix_thread_debug=yes
9155 else
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 rm -rf conftest*
9159 gdb_cv_have_aix_thread_debug=no
9160 fi
9161 rm -f conftest*
9162 fi
9163
9164 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9165 if test $gdb_cv_have_aix_thread_debug = yes; then
9166 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
9167 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
9168 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
9169 fi
9170 ;;
9171 esac
9172
9173 fi
9174
9175 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9176 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9177 echo "configure:9178: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9178 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9179 echo $ac_n "(cached) $ac_c" 1>&6
9180 else
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184 #include <thread_db.h>
9185 int main() {
9186 int i = TD_NOTALLOC;
9187 ; return 0; }
9188 EOF
9189 if { (eval echo configure:9190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9190 rm -rf conftest*
9191 gdb_cv_thread_db_h_has_td_notalloc=yes
9192 else
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 rm -rf conftest*
9196 gdb_cv_thread_db_h_has_td_notalloc=no
9197
9198 fi
9199 rm -f conftest*
9200
9201 fi
9202
9203 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9204 fi
9205 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9206 cat >> confdefs.h <<\EOF
9207 #define THREAD_DB_HAS_TD_NOTALLOC 1
9208 EOF
9209
9210 fi
9211
9212 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9213 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9214 echo "configure:9215: checking whether <sys/syscall.h> has __NR_tkill" >&5
9215 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217 else
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221 #include <sys/syscall.h>
9222 int main() {
9223 int i = __NR_tkill;
9224 ; return 0; }
9225 EOF
9226 if { (eval echo configure:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9227 rm -rf conftest*
9228 gdb_cv_sys_syscall_h_has_tkill=yes
9229 else
9230 echo "configure: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 rm -rf conftest*
9233 gdb_cv_sys_syscall_h_has_tkill=no
9234
9235 fi
9236 rm -f conftest*
9237
9238 fi
9239
9240 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9241 fi
9242 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9243 cat >> confdefs.h <<\EOF
9244 #define HAVE_TKILL_SYSCALL 1
9245 EOF
9246
9247 fi
9248
9249
9250 # Check whether --with-sysroot or --without-sysroot was given.
9251 if test "${with_sysroot+set}" = set; then
9252 withval="$with_sysroot"
9253
9254 case ${with_sysroot} in
9255 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9256 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
9257 esac
9258
9259 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9260
9261 if test "x$exec_prefix" = xNONE; then
9262 if test "x$prefix" = xNONE; then
9263 test_prefix=/usr/local
9264 else
9265 test_prefix=$prefix
9266 fi
9267 else
9268 test_prefix=$exec_prefix
9269 fi
9270 case ${TARGET_SYSTEM_ROOT} in
9271 "${test_prefix}"|"${test_prefix}/"*|\
9272 '${exec_prefix}'|'${exec_prefix}/'*)
9273 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9274 TARGET_SYSTEM_ROOT_DEFINE="$t"
9275 ;;
9276 esac
9277
9278 else
9279
9280 TARGET_SYSTEM_ROOT=
9281 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
9282
9283 fi
9284
9285
9286
9287
9288 # NOTE: Don't add -Wall or -Wunused, they both include
9289 # -Wunused-parameter which reports bogus warnings.
9290 # NOTE: If you add to this list, remember to update
9291 # gdb/doc/gdbint.texinfo.
9292 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9293 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9294 -Wunused-label -Wunused-function"
9295 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9296 # -Wunused-function -Wunused-variable -Wunused-value
9297 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9298 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9299 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9300 # -Woverloaded-virtual -Winline -Werror"
9301 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9302 if test "${enable_build_warnings+set}" = set; then
9303 enableval="$enable_build_warnings"
9304 case "${enableval}" in
9305 yes) ;;
9306 no) build_warnings="-w";;
9307 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9308 build_warnings="${build_warnings} ${t}";;
9309 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9310 build_warnings="${t} ${build_warnings}";;
9311 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9312 esac
9313 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9314 echo "Setting compiler warning flags = $build_warnings" 6>&1
9315 fi
9316 fi
9317 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9318 if test "${enable_gdb_build_warnings+set}" = set; then
9319 enableval="$enable_gdb_build_warnings"
9320 case "${enableval}" in
9321 yes) ;;
9322 no) build_warnings="-w";;
9323 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9324 build_warnings="${build_warnings} ${t}";;
9325 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9326 build_warnings="${t} ${build_warnings}";;
9327 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9328 esac
9329 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9330 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9331 fi
9332 fi
9333 WARN_CFLAGS=""
9334 WERROR_CFLAGS=""
9335 if test "x${build_warnings}" != x -a "x$GCC" = xyes
9336 then
9337 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9338 echo "configure:9339: checking compiler warning flags" >&5
9339 # Separate out the -Werror flag as some files just cannot be
9340 # compiled with it enabled.
9341 for w in ${build_warnings}; do
9342 case $w in
9343 -Werr*) WERROR_CFLAGS=-Werror ;;
9344 *) # Check that GCC accepts it
9345 saved_CFLAGS="$CFLAGS"
9346 CFLAGS="$CFLAGS $w"
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9350
9351 int main() {
9352
9353 ; return 0; }
9354 EOF
9355 if { (eval echo configure:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9356 rm -rf conftest*
9357 WARN_CFLAGS="${WARN_CFLAGS} $w"
9358 else
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 fi
9362 rm -f conftest*
9363 CFLAGS="$saved_CFLAGS"
9364 esac
9365 done
9366 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9367 fi
9368
9369
9370
9371 # In the Cygwin environment, we need some additional flags.
9372 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9373 echo "configure:9374: checking for cygwin" >&5
9374 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376 else
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380
9381 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9382 lose
9383 #endif
9384 EOF
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 egrep "lose" >/dev/null 2>&1; then
9387 rm -rf conftest*
9388 gdb_cv_os_cygwin=yes
9389 else
9390 rm -rf conftest*
9391 gdb_cv_os_cygwin=no
9392 fi
9393 rm -f conftest*
9394
9395 fi
9396
9397 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9398
9399
9400 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
9401 case ${host} in
9402 *go32* ) SER_HARDWIRE=ser-go32.o ;;
9403 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
9404 esac
9405
9406
9407 # libreadline needs libuser32.a in a cygwin environment
9408 WIN32LIBS=
9409 if test x$gdb_cv_os_cygwin = xyes; then
9410 WIN32LIBS="-luser32"
9411 case "${target}" in
9412 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
9413 ;;
9414 esac
9415 fi
9416
9417
9418 LIBGUI="../libgui/src/libgui.a"
9419 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
9420
9421
9422
9423 WIN32LDAPP=
9424
9425
9426
9427 configdir="unix"
9428
9429 GDBTKLIBS=
9430 if test "${enable_gdbtk}" = "yes"; then
9431
9432 # Gdbtk must have an absolute path to srcdir in order to run
9433 # properly when not installed.
9434 here=`pwd`
9435 cd ${srcdir}
9436 GDBTK_SRC_DIR=`pwd`
9437 cd $here
9438
9439
9440 #
9441 # Ok, lets find the tcl configuration
9442 # First, look for one uninstalled.
9443 # the alternative search directory is invoked by --with-tclconfig
9444 #
9445
9446 if test x"${no_tcl}" = x ; then
9447 # we reset no_tcl in case something fails here
9448 no_tcl=true
9449 # Check whether --with-tclconfig or --without-tclconfig was given.
9450 if test "${with_tclconfig+set}" = set; then
9451 withval="$with_tclconfig"
9452 with_tclconfig=${withval}
9453 fi
9454
9455 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9456 echo "configure:9457: checking for Tcl configuration" >&5
9457 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9459 else
9460
9461
9462 # First check to see if --with-tclconfig was specified.
9463 if test x"${with_tclconfig}" != x ; then
9464 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9465 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
9466 else
9467 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9468 fi
9469 fi
9470
9471 # then check for a private Tcl installation
9472 if test x"${ac_cv_c_tclconfig}" = x ; then
9473 for i in \
9474 ../tcl \
9475 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9476 ../../tcl \
9477 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9478 ../../../tcl \
9479 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9480 if test -f "$i/${configdir}/tclConfig.sh" ; then
9481 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
9482 break
9483 fi
9484 done
9485 fi
9486 # check in a few common install locations
9487 if test x"${ac_cv_c_tclconfig}" = x ; then
9488 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9489 if test -f "$i/tclConfig.sh" ; then
9490 ac_cv_c_tclconfig=`(cd $i; pwd)`
9491 break
9492 fi
9493 done
9494 fi
9495 # check in a few other private locations
9496 if test x"${ac_cv_c_tclconfig}" = x ; then
9497 for i in \
9498 ${srcdir}/../tcl \
9499 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9500 if test -f "$i/${configdir}/tclConfig.sh" ; then
9501 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
9502 break
9503 fi
9504 done
9505 fi
9506
9507 fi
9508
9509 if test x"${ac_cv_c_tclconfig}" = x ; then
9510 TCLCONFIG="# no Tcl configs found"
9511 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9512 else
9513 no_tcl=
9514 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
9515 echo "$ac_t""found $TCLCONFIG" 1>&6
9516 fi
9517 fi
9518
9519 if test -z "${no_tcl}"; then
9520
9521 . $TCLCONFIG
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549 #
9550 # Ok, lets find the tk configuration
9551 # First, look for one uninstalled.
9552 # the alternative search directory is invoked by --with-tkconfig
9553 #
9554
9555 if test x"${no_tk}" = x ; then
9556 # we reset no_tk in case something fails here
9557 no_tk=true
9558 # Check whether --with-tkconfig or --without-tkconfig was given.
9559 if test "${with_tkconfig+set}" = set; then
9560 withval="$with_tkconfig"
9561 with_tkconfig=${withval}
9562 fi
9563
9564 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9565 echo "configure:9566: checking for Tk configuration" >&5
9566 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9567 echo $ac_n "(cached) $ac_c" 1>&6
9568 else
9569
9570
9571 # First check to see if --with-tkconfig was specified.
9572 if test x"${with_tkconfig}" != x ; then
9573 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9574 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
9575 else
9576 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9577 fi
9578 fi
9579
9580 # then check for a private Tk library
9581 if test x"${ac_cv_c_tkconfig}" = x ; then
9582 for i in \
9583 ../tk \
9584 `ls -dr ../tk[4-9]* 2>/dev/null` \
9585 ../../tk \
9586 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9587 ../../../tk \
9588 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9589 if test -f "$i/${configdir}/tkConfig.sh" ; then
9590 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
9591 break
9592 fi
9593 done
9594 fi
9595 # check in a few common install locations
9596 if test x"${ac_cv_c_tkconfig}" = x ; then
9597 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9598 if test -f "$i/tkConfig.sh" ; then
9599 ac_cv_c_tkconfig=`(cd $i; pwd)`
9600 break
9601 fi
9602 done
9603 fi
9604 # check in a few other private locations
9605 if test x"${ac_cv_c_tkconfig}" = x ; then
9606 for i in \
9607 ${srcdir}/../tk \
9608 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9609 if test -f "$i/${configdir}/tkConfig.sh" ; then
9610 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
9611 break
9612 fi
9613 done
9614 fi
9615
9616 fi
9617
9618 if test x"${ac_cv_c_tkconfig}" = x ; then
9619 TKCONFIG="# no Tk configs found"
9620 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9621 else
9622 no_tk=
9623 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
9624 echo "$ac_t""found $TKCONFIG" 1>&6
9625 fi
9626 fi
9627
9628
9629
9630 # now look for Tcl library stuff
9631
9632 case "${host}" in
9633 *-*-cygwin*)
9634 tcldir=../tcl/win/
9635 ;;
9636 *)
9637 tcldir=../tcl/unix/
9638 ;;
9639 esac
9640
9641 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
9642
9643 # If $no_tk is nonempty, then we can't do Tk, and there is no
9644 # point to doing Tcl.
9645 if test -z "${no_tk}"; then
9646
9647 if test -f "$TKCONFIG" ; then
9648 . $TKCONFIG
9649 fi
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664 #
9665 # Ok, lets find the tcl source trees so we can use the headers
9666 # Warning: transition of version 9 to 10 will break this algorithm
9667 # because 10 sorts before 9. We also look for just tcl. We have to
9668 # be careful that we don't match stuff like tclX by accident.
9669 # the alternative search directory is involked by --with-tclinclude
9670 #
9671
9672 no_tcl=true
9673 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9674 echo "configure:9675: checking for Tcl private headers. dir=${configdir}" >&5
9675 # Check whether --with-tclinclude or --without-tclinclude was given.
9676 if test "${with_tclinclude+set}" = set; then
9677 withval="$with_tclinclude"
9678 with_tclinclude=${withval}
9679 fi
9680
9681 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9682 echo $ac_n "(cached) $ac_c" 1>&6
9683 else
9684
9685 # first check to see if --with-tclinclude was specified
9686 if test x"${with_tclinclude}" != x ; then
9687 if test -f ${with_tclinclude}/tclInt.h ; then
9688 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
9689 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
9690 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
9691 else
9692 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9693 fi
9694 fi
9695
9696 # next check if it came with Tcl configuration file
9697 if test x"${ac_cv_c_tclconfig}" = x ; then
9698 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
9699 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
9700 fi
9701 fi
9702
9703 # next check in private source directory
9704 #
9705 # since ls returns lowest version numbers first, reverse its output
9706 if test x"${ac_cv_c_tclh}" = x ; then
9707 for i in \
9708 ${srcdir}/../tcl \
9709 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9710 ${srcdir}/../../tcl \
9711 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9712 ${srcdir}/../../../tcl \
9713 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9714 if test -f $i/generic/tclInt.h ; then
9715 ac_cv_c_tclh=`(cd $i/generic; pwd)`
9716 break
9717 fi
9718 done
9719 fi
9720 # finally check in a few common install locations
9721 #
9722 # since ls returns lowest version numbers first, reverse its output
9723 if test x"${ac_cv_c_tclh}" = x ; then
9724 for i in \
9725 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9726 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9727 /usr/local/src/tcl \
9728 /usr/local/lib/tcl \
9729 ${prefix}/include ; do
9730 if test -f $i/generic/tclInt.h ; then
9731 ac_cv_c_tclh=`(cd $i/generic; pwd)`
9732 break
9733 fi
9734 done
9735 fi
9736 # see if one is installed
9737 if test x"${ac_cv_c_tclh}" = x ; then
9738 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9739 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9740 echo "configure:9741: checking for tclInt.h" >&5
9741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9742 echo $ac_n "(cached) $ac_c" 1>&6
9743 else
9744 cat > conftest.$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9747 #include <tclInt.h>
9748 EOF
9749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9750 { (eval echo configure:9751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9752 if test -z "$ac_err"; then
9753 rm -rf conftest*
9754 eval "ac_cv_header_$ac_safe=yes"
9755 else
9756 echo "$ac_err" >&5
9757 echo "configure: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 rm -rf conftest*
9760 eval "ac_cv_header_$ac_safe=no"
9761 fi
9762 rm -f conftest*
9763 fi
9764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9765 echo "$ac_t""yes" 1>&6
9766 ac_cv_c_tclh=installed
9767 else
9768 echo "$ac_t""no" 1>&6
9769 ac_cv_c_tclh=""
9770 fi
9771
9772 fi
9773
9774 fi
9775
9776 if test x"${ac_cv_c_tclh}" = x ; then
9777 TCLHDIR="# no Tcl private headers found"
9778 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9779 fi
9780 if test x"${ac_cv_c_tclh}" != x ; then
9781 no_tcl=""
9782 if test x"${ac_cv_c_tclh}" = x"installed" ; then
9783 echo "$ac_t""is installed" 1>&6
9784 TCLHDIR=""
9785 else
9786 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9787 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9788 TCLHDIR="-I${ac_cv_c_tclh}"
9789 fi
9790 fi
9791
9792
9793
9794
9795 #
9796 # Ok, lets find the tk source trees so we can use the headers
9797 # If the directory (presumably symlink) named "tk" exists, use that one
9798 # in preference to any others. Same logic is used when choosing library
9799 # and again with Tcl. The search order is the best place to look first, then in
9800 # decreasing significance. The loop breaks if the trigger file is found.
9801 # Note the gross little conversion here of srcdir by cd'ing to the found
9802 # directory. This converts the path from a relative to an absolute, so
9803 # recursive cache variables for the path will work right. We check all
9804 # the possible paths in one loop rather than many seperate loops to speed
9805 # things up.
9806 # the alternative search directory is involked by --with-tkinclude
9807 #
9808 no_tk=true
9809 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9810 echo "configure:9811: checking for Tk private headers" >&5
9811 # Check whether --with-tkinclude or --without-tkinclude was given.
9812 if test "${with_tkinclude+set}" = set; then
9813 withval="$with_tkinclude"
9814 with_tkinclude=${withval}
9815 fi
9816
9817 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9818 echo $ac_n "(cached) $ac_c" 1>&6
9819 else
9820
9821 # first check to see if --with-tkinclude was specified
9822 if test x"${with_tkinclude}" != x ; then
9823 if test -f ${with_tkinclude}/tk.h ; then
9824 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
9825 elif test -f ${with_tkinclude}/generic/tk.h ; then
9826 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
9827 else
9828 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9829 fi
9830 fi
9831
9832 # next check if it came with Tk configuration file
9833 if test x"${ac_cv_c_tkconfig}" = x ; then
9834 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
9835 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
9836 fi
9837 fi
9838
9839 # next check in private source directory
9840 #
9841 # since ls returns lowest version numbers first, reverse its output
9842 if test x"${ac_cv_c_tkh}" = x ; then
9843 for i in \
9844 ${srcdir}/../tk \
9845 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9846 ${srcdir}/../../tk \
9847 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9848 ${srcdir}/../../../tk \
9849 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9850 if test -f $i/generic/tk.h ; then
9851 ac_cv_c_tkh=`(cd $i/generic; pwd)`
9852 break
9853 fi
9854 done
9855 fi
9856 # finally check in a few common install locations
9857 #
9858 # since ls returns lowest version numbers first, reverse its output
9859 if test x"${ac_cv_c_tkh}" = x ; then
9860 for i in \
9861 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9862 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9863 /usr/local/src/tk \
9864 /usr/local/lib/tk \
9865 ${prefix}/include ; do
9866 if test -f $i/generic/tk.h ; then
9867 ac_cv_c_tkh=`(cd $i/generic; pwd)`
9868 break
9869 fi
9870 done
9871 fi
9872 # see if one is installed
9873 if test x"${ac_cv_c_tkh}" = x ; then
9874 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
9875 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9876 echo "configure:9877: checking for tk.h" >&5
9877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9878 echo $ac_n "(cached) $ac_c" 1>&6
9879 else
9880 cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9883 #include <tk.h>
9884 EOF
9885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9886 { (eval echo configure:9887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9888 if test -z "$ac_err"; then
9889 rm -rf conftest*
9890 eval "ac_cv_header_$ac_safe=yes"
9891 else
9892 echo "$ac_err" >&5
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -rf conftest*
9896 eval "ac_cv_header_$ac_safe=no"
9897 fi
9898 rm -f conftest*
9899 fi
9900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9901 echo "$ac_t""yes" 1>&6
9902 ac_cv_c_tkh=installed
9903 else
9904 echo "$ac_t""no" 1>&6
9905 ac_cv_c_tkh=""
9906 fi
9907
9908 fi
9909
9910 fi
9911
9912 if test x"${ac_cv_c_tkh}" != x ; then
9913 no_tk=""
9914 if test x"${ac_cv_c_tkh}" = x"installed" ; then
9915 echo "$ac_t""is installed" 1>&6
9916 TKHDIR=""
9917 else
9918 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9919 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9920 TKHDIR="-I${ac_cv_c_tkh}"
9921 fi
9922 else
9923 TKHDIR="# no Tk directory found"
9924 echo "configure: warning: Can't find Tk private headers" 1>&2
9925 no_tk=true
9926 fi
9927
9928
9929
9930
9931 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9932 echo "configure:9933: checking for Itcl private headers. srcdir=${srcdir}" >&5
9933 if test x"${ac_cv_c_itclh}" = x ; then
9934 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
9935 if test -f $i/generic/itcl.h ; then
9936 ac_cv_c_itclh=`(cd $i/generic; pwd)`
9937 break
9938 fi
9939 done
9940 fi
9941 if test x"${ac_cv_c_itclh}" = x ; then
9942 ITCLHDIR="# no Itcl private headers found"
9943 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9944 fi
9945 if test x"${ac_cv_c_itclh}" != x ; then
9946 ITCLHDIR="-I${ac_cv_c_itclh}"
9947 fi
9948 # should always be here
9949 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9950
9951 #AC_SUBST(ITCLLIB)
9952
9953
9954 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9955 echo "configure:9956: checking for Itk private headers. srcdir=${srcdir}" >&5
9956 if test x"${ac_cv_c_itkh}" = x ; then
9957 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
9958 if test -f $i/generic/itk.h ; then
9959 ac_cv_c_itkh=`(cd $i/generic; pwd)`
9960 break
9961 fi
9962 done
9963 fi
9964 if test x"${ac_cv_c_itkh}" = x ; then
9965 ITKHDIR="# no Itk private headers found"
9966 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9967 fi
9968 if test x"${ac_cv_c_itkh}" != x ; then
9969 ITKHDIR="-I${ac_cv_c_itkh}"
9970 fi
9971 # should always be here
9972 # ITKLIB="../itcl/itk/unix/libitk.a"
9973
9974 #AC_SUBST(ITKLIB)
9975
9976
9977
9978 # now look for Tk library stuff
9979
9980 case "${host}" in
9981 *-*-cygwin*)
9982 tkdir=../tk/win/
9983 ;;
9984 *)
9985 tkdir=../tk/unix/
9986 ;;
9987 esac
9988
9989 TK_DEPS="${tkdir}${TK_LIB_FILE}"
9990
9991 # now look for Itcl library stuff
9992
9993
9994 #
9995 # Ok, lets find the itcl configuration
9996 # First, look for one uninstalled.
9997 # the alternative search directory is invoked by --with-itclconfig
9998 #
9999
10000 if test x"${no_itcl}" = x ; then
10001 # we reset no_itcl in case something fails here
10002 no_itcl=true
10003 # Check whether --with-itclconfig or --without-itclconfig was given.
10004 if test "${with_itclconfig+set}" = set; then
10005 withval="$with_itclconfig"
10006 with_itclconfig=${withval}
10007 fi
10008
10009 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
10010 echo "configure:10011: checking for Itcl configuration" >&5
10011 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
10012 echo $ac_n "(cached) $ac_c" 1>&6
10013 else
10014
10015
10016 # First check to see if --with-itclconfig was specified.
10017 if test x"${with_itclconfig}" != x ; then
10018 if test -f "${with_itclconfig}/itclConfig.sh" ; then
10019 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
10020 else
10021 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
10022 fi
10023 fi
10024
10025 # then check for a private Itcl library
10026 if test x"${ac_cv_c_itclconfig}" = x ; then
10027 for i in \
10028 ../itcl/itcl \
10029 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
10030 ../../itcl \
10031 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
10032 ../../../itcl \
10033 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
10034 if test -f "$i/itclConfig.sh" ; then
10035 ac_cv_c_itclconfig=`(cd $i; pwd)`
10036 break
10037 fi
10038 done
10039 fi
10040 # check in a few common install locations
10041 if test x"${ac_cv_c_itclconfig}" = x ; then
10042 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10043 if test -f "$i/itclConfig.sh" ; then
10044 ac_cv_c_itclconfig=`(cd $i; pwd)`
10045 break
10046 fi
10047 done
10048 fi
10049 # check in a few other private locations
10050 if test x"${ac_cv_c_itclconfig}" = x ; then
10051 for i in \
10052 ${srcdir}/../itcl/itcl \
10053 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
10054 if test -f "$i/itclConfig.sh" ; then
10055 ac_cv_c_itclconfig=`(cd $i; pwd)`
10056 break
10057 fi
10058 done
10059 fi
10060
10061 fi
10062
10063 if test x"${ac_cv_c_itclconfig}" = x ; then
10064 ITCLCONFIG="# no Itcl configs found"
10065 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
10066 else
10067 no_itcl=
10068 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
10069 echo "$ac_t""found $ITCLCONFIG" 1>&6
10070 fi
10071 fi
10072
10073 if test -z "${no_itcl}"; then
10074
10075 if test -f "$ITCLCONFIG" ; then
10076 . $ITCLCONFIG
10077 fi
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
10091 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
10092 fi
10093
10094
10095 # now look for Itk library stuff
10096
10097 #
10098 # Ok, lets find the itk configuration
10099 # First, look for one uninstalled.
10100 # the alternative search directory is invoked by --with-itkconfig
10101 #
10102
10103 if test x"${no_itk}" = x ; then
10104 # we reset no_itk in case something fails here
10105 no_itk=true
10106 # Check whether --with-itkconfig or --without-itkconfig was given.
10107 if test "${with_itkconfig+set}" = set; then
10108 withval="$with_itkconfig"
10109 with_itkconfig=${withval}
10110 fi
10111
10112 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10113 echo "configure:10114: checking for Itk configuration" >&5
10114 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10116 else
10117
10118
10119 # First check to see if --with-itkconfig was specified.
10120 if test x"${with_itkconfig}" != x ; then
10121 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10122 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
10123 else
10124 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10125 fi
10126 fi
10127
10128 # then check for a private Itk library
10129 if test x"${ac_cv_c_itkconfig}" = x ; then
10130 for i in \
10131 ../itcl/itk \
10132 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10133 ../../itk \
10134 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10135 ../../../itk \
10136 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10137 if test -f "$i/itkConfig.sh" ; then
10138 ac_cv_c_itkconfig=`(cd $i; pwd)`
10139 break
10140 fi
10141 done
10142 fi
10143 # check in a few common install locations
10144 if test x"${ac_cv_c_itkconfig}" = x ; then
10145 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10146 if test -f "$i/itkConfig.sh" ; then
10147 ac_cv_c_itkconfig=`(cd $i; pwd)`
10148 break
10149 fi
10150 done
10151 fi
10152 # check in a few other private locations
10153 if test x"${ac_cv_c_itkconfig}" = x ; then
10154 for i in \
10155 ${srcdir}/../itcl/itk \
10156 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10157 if test -f "$i/itkConfig.sh" ; then
10158 ac_cv_c_itkconfig=`(cd $i; pwd)`
10159 break
10160 fi
10161 done
10162 fi
10163
10164 fi
10165
10166 if test x"${ac_cv_c_itkconfig}" = x ; then
10167 ITKCONFIG="# no Itk configs found"
10168 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10169 else
10170 no_itk=
10171 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
10172 echo "$ac_t""found $ITKCONFIG" 1>&6
10173 fi
10174 fi
10175
10176
10177 if test -z "${no_itcl}"; then
10178
10179 if test -f "$ITKCONFIG" ; then
10180 . $ITKCONFIG
10181 fi
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194 ITKLIB="${ITK_BUILD_LIB_SPEC}"
10195 ITK_DEPS="${ITK_LIB_FULL_PATH}"
10196 fi
10197
10198 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10199 # Tcl/Tk 8.1 require -fwritable strings. I don't
10200 # know whether 8.2 will or not, but I bet it will.
10201 # I don't have to worry about 7.x since we don't support it.
10202 GDBTK_CFLAGS=""
10203 if test "$GCC" = "yes"; then
10204 if test "$TCL_VERSION" != "8.0" ; then
10205 GDBTK_CFLAGS="-fwritable-strings"
10206 fi
10207 fi
10208
10209 # Include some libraries that Tcl and Tk want.
10210 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10211 # Yes, the ordering seems wrong here. But it isn't.
10212 # TK_LIBS is the list of libraries that need to be linked
10213 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10214 # were in LIBS then any link tests after this point would
10215 # try to include things like `$(LIBGUI)', which wouldn't work.
10216 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
10217
10218 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10219 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10220 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10221 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
10222 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
10223 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
10224 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
10225
10226 if test x$gdb_cv_os_cygwin = xyes; then
10227 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10228 WIN32LDAPP="-Wl,--subsystem,console"
10229 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
10230 fi
10231 fi
10232 fi
10233
10234 configdirs="${configdirs} gdbtk"
10235 fi
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250 # If we find X, set shell vars x_includes and x_libraries to the
10251 # paths, otherwise set no_x=yes.
10252 # Uses ac_ vars as temps to allow command line to override cache and checks.
10253 # --without-x overrides everything else, but does not touch the cache.
10254 echo $ac_n "checking for X""... $ac_c" 1>&6
10255 echo "configure:10256: checking for X" >&5
10256
10257 # Check whether --with-x or --without-x was given.
10258 if test "${with_x+set}" = set; then
10259 withval="$with_x"
10260 :
10261 fi
10262
10263 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10264 if test "x$with_x" = xno; then
10265 # The user explicitly disabled X.
10266 have_x=disabled
10267 else
10268 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10269 # Both variables are already set.
10270 have_x=yes
10271 else
10272 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10275 # One or both of the vars are not set, and there is no cached value.
10276 ac_x_includes=NO ac_x_libraries=NO
10277 rm -fr conftestdir
10278 if mkdir conftestdir; then
10279 cd conftestdir
10280 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10281 cat > Imakefile <<'EOF'
10282 acfindx:
10283 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10284 EOF
10285 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10286 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10287 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10288 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10289 for ac_extension in a so sl; do
10290 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10291 test -f $ac_im_libdir/libX11.$ac_extension; then
10292 ac_im_usrlibdir=$ac_im_libdir; break
10293 fi
10294 done
10295 # Screen out bogus values from the imake configuration. They are
10296 # bogus both because they are the default anyway, and because
10297 # using them would break gcc on systems where it needs fixed includes.
10298 case "$ac_im_incroot" in
10299 /usr/include) ;;
10300 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10301 esac
10302 case "$ac_im_usrlibdir" in
10303 /usr/lib | /lib) ;;
10304 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10305 esac
10306 fi
10307 cd ..
10308 rm -fr conftestdir
10309 fi
10310
10311 if test "$ac_x_includes" = NO; then
10312 # Guess where to find include files, by looking for this one X11 .h file.
10313 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10314
10315 # First, try using that file with no special directory specified.
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 #include <$x_direct_test_include>
10320 EOF
10321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10322 { (eval echo configure:10323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10324 if test -z "$ac_err"; then
10325 rm -rf conftest*
10326 # We can compile using X headers with no special include directory.
10327 ac_x_includes=
10328 else
10329 echo "$ac_err" >&5
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10332 rm -rf conftest*
10333 # Look for the header file in a standard set of common directories.
10334 # Check X11 before X11Rn because it is often a symlink to the current release.
10335 for ac_dir in \
10336 /usr/X11/include \
10337 /usr/X11R6/include \
10338 /usr/X11R5/include \
10339 /usr/X11R4/include \
10340 \
10341 /usr/include/X11 \
10342 /usr/include/X11R6 \
10343 /usr/include/X11R5 \
10344 /usr/include/X11R4 \
10345 \
10346 /usr/local/X11/include \
10347 /usr/local/X11R6/include \
10348 /usr/local/X11R5/include \
10349 /usr/local/X11R4/include \
10350 \
10351 /usr/local/include/X11 \
10352 /usr/local/include/X11R6 \
10353 /usr/local/include/X11R5 \
10354 /usr/local/include/X11R4 \
10355 \
10356 /usr/X386/include \
10357 /usr/x386/include \
10358 /usr/XFree86/include/X11 \
10359 \
10360 /usr/include \
10361 /usr/local/include \
10362 /usr/unsupported/include \
10363 /usr/athena/include \
10364 /usr/local/x11r5/include \
10365 /usr/lpp/Xamples/include \
10366 \
10367 /usr/openwin/include \
10368 /usr/openwin/share/include \
10369 ; \
10370 do
10371 if test -r "$ac_dir/$x_direct_test_include"; then
10372 ac_x_includes=$ac_dir
10373 break
10374 fi
10375 done
10376 fi
10377 rm -f conftest*
10378 fi # $ac_x_includes = NO
10379
10380 if test "$ac_x_libraries" = NO; then
10381 # Check for the libraries.
10382
10383 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10384 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10385
10386 # See if we find them without any special options.
10387 # Don't add to $LIBS permanently.
10388 ac_save_LIBS="$LIBS"
10389 LIBS="-l$x_direct_test_library $LIBS"
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10393
10394 int main() {
10395 ${x_direct_test_function}()
10396 ; return 0; }
10397 EOF
10398 if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10399 rm -rf conftest*
10400 LIBS="$ac_save_LIBS"
10401 # We can link X programs with no special library path.
10402 ac_x_libraries=
10403 else
10404 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10406 rm -rf conftest*
10407 LIBS="$ac_save_LIBS"
10408 # First see if replacing the include by lib works.
10409 # Check X11 before X11Rn because it is often a symlink to the current release.
10410 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10411 /usr/X11/lib \
10412 /usr/X11R6/lib \
10413 /usr/X11R5/lib \
10414 /usr/X11R4/lib \
10415 \
10416 /usr/lib/X11 \
10417 /usr/lib/X11R6 \
10418 /usr/lib/X11R5 \
10419 /usr/lib/X11R4 \
10420 \
10421 /usr/local/X11/lib \
10422 /usr/local/X11R6/lib \
10423 /usr/local/X11R5/lib \
10424 /usr/local/X11R4/lib \
10425 \
10426 /usr/local/lib/X11 \
10427 /usr/local/lib/X11R6 \
10428 /usr/local/lib/X11R5 \
10429 /usr/local/lib/X11R4 \
10430 \
10431 /usr/X386/lib \
10432 /usr/x386/lib \
10433 /usr/XFree86/lib/X11 \
10434 \
10435 /usr/lib \
10436 /usr/local/lib \
10437 /usr/unsupported/lib \
10438 /usr/athena/lib \
10439 /usr/local/x11r5/lib \
10440 /usr/lpp/Xamples/lib \
10441 /lib/usr/lib/X11 \
10442 \
10443 /usr/openwin/lib \
10444 /usr/openwin/share/lib \
10445 ; \
10446 do
10447 for ac_extension in a so sl; do
10448 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10449 ac_x_libraries=$ac_dir
10450 break 2
10451 fi
10452 done
10453 done
10454 fi
10455 rm -f conftest*
10456 fi # $ac_x_libraries = NO
10457
10458 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10459 # Didn't find X anywhere. Cache the known absence of X.
10460 ac_cv_have_x="have_x=no"
10461 else
10462 # Record where we found X for the cache.
10463 ac_cv_have_x="have_x=yes \
10464 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10465 fi
10466 fi
10467 fi
10468 eval "$ac_cv_have_x"
10469 fi # $with_x != no
10470
10471 if test "$have_x" != yes; then
10472 echo "$ac_t""$have_x" 1>&6
10473 no_x=yes
10474 else
10475 # If each of the values was on the command line, it overrides each guess.
10476 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10477 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10478 # Update the cache value to reflect the command line values.
10479 ac_cv_have_x="have_x=yes \
10480 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10481 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10482 fi
10483
10484
10485
10486 # Unlike the sim directory, whether a simulator is linked is controlled by
10487 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10488 # This code just checks for a few cases where we'd like to ignore those
10489 # definitions, even when they're present in the '.mt' file. These cases
10490 # are when --disable-sim is specified, or if the simulator directory is
10491 # not part of the source tree.
10492 #
10493 # Check whether --enable-sim or --disable-sim was given.
10494 if test "${enable_sim+set}" = set; then
10495 enableval="$enable_sim"
10496 echo "enable_sim = $enable_sim";
10497 echo "enableval = ${enableval}";
10498 case "${enableval}" in
10499 yes) ignore_sim=false ;;
10500 no) ignore_sim=true ;;
10501 *) ignore_sim=false ;;
10502 esac
10503 else
10504 ignore_sim=false
10505 fi
10506
10507
10508 if test ! -d "${srcdir}/../sim"; then
10509 ignore_sim=true
10510 fi
10511
10512 if test "${ignore_sim}" = "true"; then
10513 IGNORE_SIM="SIM="
10514 IGNORE_SIM_OBS="SIM_OBS="
10515 else
10516 IGNORE_SIM=""
10517 IGNORE_SIM_OBS=""
10518 cat >> confdefs.h <<\EOF
10519 #define WITH_SIM 1
10520 EOF
10521
10522 fi
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537 # target_subdir is used by the testsuite to find the target libraries.
10538 target_subdir=
10539 if test "${host}" != "${target}"; then
10540 target_subdir="${target_alias}/"
10541 fi
10542
10543
10544 frags=
10545 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10546 if test ! -f ${host_makefile_frag}; then
10547 # When building a native debuger the .mh file containing things
10548 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10549 # since it no longer contains anything useful.
10550 if test "${target}" = "${host}"; then
10551 { echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; }
10552 else
10553 host_makefile_frag=/dev/null
10554 fi
10555 fi
10556 frags="$frags $host_makefile_frag"
10557
10558 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10559 if test ! -f ${target_makefile_frag}; then
10560 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
10561 fi
10562 frags="$frags $target_makefile_frag"
10563
10564
10565
10566
10567
10568 hostfile=`sed -n '
10569 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10570 ' ${host_makefile_frag}`
10571
10572 targetfile=`sed -n '
10573 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10574 ' ${target_makefile_frag}`
10575
10576 if test "${target}" = "${host}"; then
10577 # We pick this up from the host configuration file (.mh) because we
10578 # do not have a native configuration Makefile fragment.
10579 nativefile=`sed -n '
10580 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10581 ' ${host_makefile_frag}`
10582 fi
10583
10584
10585 if test x"${gdb_osabi}" != x ; then
10586 cat >> confdefs.h <<EOF
10587 #define GDB_OSABI_DEFAULT $gdb_osabi
10588 EOF
10589
10590 fi
10591
10592 # Enable multi-ice-gdb-server.
10593 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10594 if test "${enable_multi_ice+set}" = set; then
10595 enableval="$enable_multi_ice"
10596 case $enableval in
10597 yes | no)
10598 ;;
10599 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10600 esac
10601 fi
10602
10603 if test "x$enable_multi_ice" = xyes; then
10604 configdirs="$configdirs multi-ice"
10605 fi
10606
10607 # We only build gdbserver automatically if host and target are the same.
10608 if test "x$target" = "x$host"; then
10609 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10610 echo "configure:10611: checking whether gdbserver is supported on this host" >&5
10611 if test "x$build_gdbserver" = xyes; then
10612 configdirs="$configdirs gdbserver"
10613 echo "$ac_t""yes" 1>&6
10614 else
10615 echo "$ac_t""no" 1>&6
10616 fi
10617 fi
10618
10619 subdirs="doc testsuite $configdirs"
10620
10621
10622 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10623 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10624 # version.
10625
10626 files=
10627 links=
10628
10629 rm -f xm.h
10630 xm_h=""
10631 if test "${hostfile}" != ""; then
10632 xm_h=xm.h
10633 GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
10634 files="${files} ${GDB_XM_FILE}"
10635 links="${links} xm.h"
10636 cat >> confdefs.h <<EOF
10637 #define GDB_XM_FILE ${GDB_XM_FILE}
10638 EOF
10639
10640 fi
10641
10642
10643 rm -f tm.h
10644 tm_h=""
10645 if test "${targetfile}" != ""; then
10646 tm_h=tm.h
10647 GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
10648 files="${files} ${GDB_TM_FILE}"
10649 links="${links} tm.h"
10650 cat >> confdefs.h <<EOF
10651 #define GDB_TM_FILE ${GDB_TM_FILE}
10652 EOF
10653
10654 fi
10655
10656
10657 rm -f nm.h
10658 nm_h=""
10659 if test "${nativefile}" != ""; then
10660 nm_h=nm.h
10661 GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
10662 files="${files} ${GDB_NM_FILE}"
10663 links="${links} nm.h"
10664 cat >> confdefs.h <<EOF
10665 #define GDB_NM_FILE ${GDB_NM_FILE}
10666 EOF
10667
10668 fi
10669
10670
10671
10672
10673 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10674 echo "configure:10675: checking for Cygwin environment" >&5
10675 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10676 echo $ac_n "(cached) $ac_c" 1>&6
10677 else
10678 cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10681
10682 int main() {
10683
10684 #ifndef __CYGWIN__
10685 #define __CYGWIN__ __CYGWIN32__
10686 #endif
10687 return __CYGWIN__;
10688 ; return 0; }
10689 EOF
10690 if { (eval echo configure:10691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10691 rm -rf conftest*
10692 ac_cv_cygwin=yes
10693 else
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 rm -rf conftest*
10697 ac_cv_cygwin=no
10698 fi
10699 rm -f conftest*
10700 rm -f conftest*
10701 fi
10702
10703 echo "$ac_t""$ac_cv_cygwin" 1>&6
10704 CYGWIN=
10705 test "$ac_cv_cygwin" = yes && CYGWIN=yes
10706 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10707 echo "configure:10708: checking for mingw32 environment" >&5
10708 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10710 else
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10714
10715 int main() {
10716 return __MINGW32__;
10717 ; return 0; }
10718 EOF
10719 if { (eval echo configure:10720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10720 rm -rf conftest*
10721 ac_cv_mingw32=yes
10722 else
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10725 rm -rf conftest*
10726 ac_cv_mingw32=no
10727 fi
10728 rm -f conftest*
10729 rm -f conftest*
10730 fi
10731
10732 echo "$ac_t""$ac_cv_mingw32" 1>&6
10733 MINGW32=
10734 test "$ac_cv_mingw32" = yes && MINGW32=yes
10735
10736
10737 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10738 echo "configure:10739: checking for executable suffix" >&5
10739 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741 else
10742 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
10743 ac_cv_exeext=.exe
10744 else
10745 rm -f conftest*
10746 echo 'int main () { return 0; }' > conftest.$ac_ext
10747 ac_cv_exeext=
10748 if { (eval echo configure:10749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10749 for file in conftest.*; do
10750 case $file in
10751 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
10752 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
10753 esac
10754 done
10755 else
10756 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10757 fi
10758 rm -f conftest*
10759 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
10760 fi
10761 fi
10762
10763 EXEEXT=""
10764 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
10765 echo "$ac_t""${ac_cv_exeext}" 1>&6
10766 ac_exeext=$EXEEXT
10767
10768
10769
10770 cat >> confdefs.h <<\EOF
10771 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10772 EOF
10773
10774
10775
10776
10777 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10778 if test "${with_libiconv_prefix+set}" = set; then
10779 withval="$with_libiconv_prefix"
10780
10781 for dir in `echo "$withval" | tr : ' '`; do
10782 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10783 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
10784 done
10785
10786 fi
10787
10788
10789 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10790 echo "configure:10791: checking for iconv" >&5
10791 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10792 echo $ac_n "(cached) $ac_c" 1>&6
10793 else
10794
10795 am_cv_func_iconv="no, consider installing GNU libiconv"
10796 am_cv_lib_iconv=no
10797 cat > conftest.$ac_ext <<EOF
10798 #line 10799 "configure"
10799 #include "confdefs.h"
10800 #include <stdlib.h>
10801 #include <iconv.h>
10802 int main() {
10803 iconv_t cd = iconv_open("","");
10804 iconv(cd,NULL,NULL,NULL,NULL);
10805 iconv_close(cd);
10806 ; return 0; }
10807 EOF
10808 if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10809 rm -rf conftest*
10810 am_cv_func_iconv=yes
10811 else
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10814 fi
10815 rm -f conftest*
10816 if test "$am_cv_func_iconv" != yes; then
10817 am_save_LIBS="$LIBS"
10818 LIBS="$LIBS -liconv"
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10822 #include <stdlib.h>
10823 #include <iconv.h>
10824 int main() {
10825 iconv_t cd = iconv_open("","");
10826 iconv(cd,NULL,NULL,NULL,NULL);
10827 iconv_close(cd);
10828 ; return 0; }
10829 EOF
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10831 rm -rf conftest*
10832 am_cv_lib_iconv=yes
10833 am_cv_func_iconv=yes
10834 else
10835 echo "configure: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 fi
10838 rm -f conftest*
10839 LIBS="$am_save_LIBS"
10840 fi
10841
10842 fi
10843
10844 echo "$ac_t""$am_cv_func_iconv" 1>&6
10845 if test "$am_cv_func_iconv" = yes; then
10846 cat >> confdefs.h <<\EOF
10847 #define HAVE_ICONV 1
10848 EOF
10849
10850 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10851 echo "configure:10852: checking for iconv declaration" >&5
10852 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10854 else
10855
10856 cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859
10860 #include <stdlib.h>
10861 #include <iconv.h>
10862 extern
10863 #ifdef __cplusplus
10864 "C"
10865 #endif
10866 #if defined(__STDC__) || defined(__cplusplus)
10867 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10868 #else
10869 size_t iconv();
10870 #endif
10871
10872 int main() {
10873
10874 ; return 0; }
10875 EOF
10876 if { (eval echo configure:10877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10877 rm -rf conftest*
10878 am_cv_proto_iconv_arg1=""
10879 else
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 rm -rf conftest*
10883 am_cv_proto_iconv_arg1="const"
10884 fi
10885 rm -f conftest*
10886 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10887 fi
10888
10889 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10890 echo "$ac_t""${ac_t:-
10891 }$am_cv_proto_iconv" 1>&6
10892 cat >> confdefs.h <<EOF
10893 #define ICONV_CONST $am_cv_proto_iconv_arg1
10894 EOF
10895
10896 fi
10897 LIBICONV=
10898 if test "$am_cv_lib_iconv" = yes; then
10899 LIBICONV="-liconv"
10900 fi
10901
10902
10903
10904 trap '' 1 2 15
10905 cat > confcache <<\EOF
10906 # This file is a shell script that caches the results of configure
10907 # tests run on this system so they can be shared between configure
10908 # scripts and configure runs. It is not useful on other systems.
10909 # If it contains results you don't want to keep, you may remove or edit it.
10910 #
10911 # By default, configure uses ./config.cache as the cache file,
10912 # creating it if it does not exist already. You can give configure
10913 # the --cache-file=FILE option to use a different cache file; that is
10914 # what configure does when it calls configure scripts in
10915 # subdirectories, so they share the cache.
10916 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10917 # config.status only pays attention to the cache file if you give it the
10918 # --recheck option to rerun configure.
10919 #
10920 EOF
10921 # The following way of writing the cache mishandles newlines in values,
10922 # but we know of no workaround that is simple, portable, and efficient.
10923 # So, don't put newlines in cache variables' values.
10924 # Ultrix sh set writes to stderr and can't be redirected directly,
10925 # and sets the high bit in the cache file unless we assign to the vars.
10926 (set) 2>&1 |
10927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10928 *ac_space=\ *)
10929 # `set' does not quote correctly, so add quotes (double-quote substitution
10930 # turns \\\\ into \\, and sed turns \\ into \).
10931 sed -n \
10932 -e "s/'/'\\\\''/g" \
10933 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10934 ;;
10935 *)
10936 # `set' quotes correctly as required by POSIX, so do not add quotes.
10937 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10938 ;;
10939 esac >> confcache
10940 if cmp -s $cache_file confcache; then
10941 :
10942 else
10943 if test -w $cache_file; then
10944 echo "updating cache $cache_file"
10945 cat confcache > $cache_file
10946 else
10947 echo "not updating unwritable cache $cache_file"
10948 fi
10949 fi
10950 rm -f confcache
10951
10952 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10953
10954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10955 # Let make expand exec_prefix.
10956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10957
10958 # Any assignment to VPATH causes Sun make to only execute
10959 # the first set of double-colon rules, so remove it if not needed.
10960 # If there is a colon in the path, we need to keep it.
10961 if test "x$srcdir" = x.; then
10962 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10963 fi
10964
10965 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10966
10967 DEFS=-DHAVE_CONFIG_H
10968
10969 # Without the "./", some shells look in PATH for config.status.
10970 : ${CONFIG_STATUS=./config.status}
10971
10972 echo creating $CONFIG_STATUS
10973 rm -f $CONFIG_STATUS
10974 cat > $CONFIG_STATUS <<EOF
10975 #! /bin/sh
10976 # Generated automatically by configure.
10977 # Run this file to recreate the current configuration.
10978 # This directory was configured as follows,
10979 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10980 #
10981 # $0 $ac_configure_args
10982 #
10983 # Compiler output produced by configure, useful for debugging
10984 # configure, is in ./config.log if it exists.
10985
10986 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10987 for ac_option
10988 do
10989 case "\$ac_option" in
10990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10991 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10992 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10993 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10994 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10995 exit 0 ;;
10996 -help | --help | --hel | --he | --h)
10997 echo "\$ac_cs_usage"; exit 0 ;;
10998 *) echo "\$ac_cs_usage"; exit 1 ;;
10999 esac
11000 done
11001
11002 ac_given_srcdir=$srcdir
11003 ac_given_INSTALL="$INSTALL"
11004
11005 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11006 EOF
11007 cat >> $CONFIG_STATUS <<EOF
11008
11009 # Protect against being on the right side of a sed subst in config.status.
11010 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11011 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11012 $ac_vpsub
11013 $extrasub
11014 s%@SHELL@%$SHELL%g
11015 s%@CFLAGS@%$CFLAGS%g
11016 s%@CPPFLAGS@%$CPPFLAGS%g
11017 s%@CXXFLAGS@%$CXXFLAGS%g
11018 s%@FFLAGS@%$FFLAGS%g
11019 s%@DEFS@%$DEFS%g
11020 s%@LDFLAGS@%$LDFLAGS%g
11021 s%@LIBS@%$LIBS%g
11022 s%@exec_prefix@%$exec_prefix%g
11023 s%@prefix@%$prefix%g
11024 s%@program_transform_name@%$program_transform_name%g
11025 s%@bindir@%$bindir%g
11026 s%@sbindir@%$sbindir%g
11027 s%@libexecdir@%$libexecdir%g
11028 s%@datadir@%$datadir%g
11029 s%@sysconfdir@%$sysconfdir%g
11030 s%@sharedstatedir@%$sharedstatedir%g
11031 s%@localstatedir@%$localstatedir%g
11032 s%@libdir@%$libdir%g
11033 s%@includedir@%$includedir%g
11034 s%@oldincludedir@%$oldincludedir%g
11035 s%@infodir@%$infodir%g
11036 s%@mandir@%$mandir%g
11037 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
11038 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
11039 s%@MAINT@%$MAINT%g
11040 s%@CC@%$CC%g
11041 s%@CPP@%$CPP%g
11042 s%@host@%$host%g
11043 s%@host_alias@%$host_alias%g
11044 s%@host_cpu@%$host_cpu%g
11045 s%@host_vendor@%$host_vendor%g
11046 s%@host_os@%$host_os%g
11047 s%@target@%$target%g
11048 s%@target_alias@%$target_alias%g
11049 s%@target_cpu@%$target_cpu%g
11050 s%@target_vendor@%$target_vendor%g
11051 s%@target_os@%$target_os%g
11052 s%@build@%$build%g
11053 s%@build_alias@%$build_alias%g
11054 s%@build_cpu@%$build_cpu%g
11055 s%@build_vendor@%$build_vendor%g
11056 s%@build_os@%$build_os%g
11057 s%@RANLIB@%$RANLIB%g
11058 s%@SET_MAKE@%$SET_MAKE%g
11059 s%@ALLOCA@%$ALLOCA%g
11060 s%@USE_NLS@%$USE_NLS%g
11061 s%@MSGFMT@%$MSGFMT%g
11062 s%@GMSGFMT@%$GMSGFMT%g
11063 s%@XGETTEXT@%$XGETTEXT%g
11064 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
11065 s%@CATALOGS@%$CATALOGS%g
11066 s%@CATOBJEXT@%$CATOBJEXT%g
11067 s%@DATADIRNAME@%$DATADIRNAME%g
11068 s%@GMOFILES@%$GMOFILES%g
11069 s%@INSTOBJEXT@%$INSTOBJEXT%g
11070 s%@INTLDEPS@%$INTLDEPS%g
11071 s%@INTLLIBS@%$INTLLIBS%g
11072 s%@INTLOBJS@%$INTLOBJS%g
11073 s%@POFILES@%$POFILES%g
11074 s%@POSUB@%$POSUB%g
11075 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11076 s%@GT_NO@%$GT_NO%g
11077 s%@GT_YES@%$GT_YES%g
11078 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11079 s%@l@%$l%g
11080 s%@subdirs@%$subdirs%g
11081 s%@AWK@%$AWK%g
11082 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11083 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11084 s%@INSTALL_DATA@%$INSTALL_DATA%g
11085 s%@LN_S@%$LN_S%g
11086 s%@YACC@%$YACC%g
11087 s%@AR@%$AR%g
11088 s%@DLLTOOL@%$DLLTOOL%g
11089 s%@WINDRES@%$WINDRES%g
11090 s%@MIG@%$MIG%g
11091 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11092 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11093 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11094 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11095 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11096 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11097 s%@WIN32LIBS@%$WIN32LIBS%g
11098 s%@LIBGUI@%$LIBGUI%g
11099 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11100 s%@WIN32LDAPP@%$WIN32LDAPP%g
11101 s%@TCL_VERSION@%$TCL_VERSION%g
11102 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11103 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11104 s%@TCL_CC@%$TCL_CC%g
11105 s%@TCL_DEFS@%$TCL_DEFS%g
11106 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11107 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11108 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11109 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11110 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11111 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11112 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11113 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11114 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11115 s%@TCL_RANLIB@%$TCL_RANLIB%g
11116 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11117 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11118 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11119 s%@TK_VERSION@%$TK_VERSION%g
11120 s%@TK_DEFS@%$TK_DEFS%g
11121 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11122 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11123 s%@TK_XLIBSW@%$TK_XLIBSW%g
11124 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11125 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11126 s%@TCLHDIR@%$TCLHDIR%g
11127 s%@TKHDIR@%$TKHDIR%g
11128 s%@ITCLHDIR@%$ITCLHDIR%g
11129 s%@ITKHDIR@%$ITKHDIR%g
11130 s%@ITCL_VERSION@%$ITCL_VERSION%g
11131 s%@ITCL_DEFS@%$ITCL_DEFS%g
11132 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11133 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11134 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11135 s%@ITK_VERSION@%$ITK_VERSION%g
11136 s%@ITK_DEFS@%$ITK_DEFS%g
11137 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11138 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11139 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11140 s%@X_CFLAGS@%$X_CFLAGS%g
11141 s%@X_LDFLAGS@%$X_LDFLAGS%g
11142 s%@X_LIBS@%$X_LIBS%g
11143 s%@TCL_DEPS@%$TCL_DEPS%g
11144 s%@TK_DEPS@%$TK_DEPS%g
11145 s%@ITCLLIB@%$ITCLLIB%g
11146 s%@ITCL_DEPS@%$ITCL_DEPS%g
11147 s%@ITKLIB@%$ITKLIB%g
11148 s%@ITK_DEPS@%$ITK_DEPS%g
11149 s%@GDBTKLIBS@%$GDBTKLIBS%g
11150 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11151 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11152 s%@IGNORE_SIM@%$IGNORE_SIM%g
11153 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11154 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11155 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11156 s%@CONFIG_OBS@%$CONFIG_OBS%g
11157 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11158 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11159 s%@CONFIG_ALL@%$CONFIG_ALL%g
11160 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11161 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11162 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11163 s%@target_subdir@%$target_subdir%g
11164 /@host_makefile_frag@/r $host_makefile_frag
11165 s%@host_makefile_frag@%%g
11166 /@target_makefile_frag@/r $target_makefile_frag
11167 s%@target_makefile_frag@%%g
11168 s%@frags@%$frags%g
11169 s%@xm_h@%$xm_h%g
11170 s%@tm_h@%$tm_h%g
11171 s%@nm_h@%$nm_h%g
11172 s%@EXEEXT@%$EXEEXT%g
11173 s%@LIBICONV@%$LIBICONV%g
11174
11175 CEOF
11176 EOF
11177
11178 cat >> $CONFIG_STATUS <<\EOF
11179
11180 # Split the substitutions into bite-sized pieces for seds with
11181 # small command number limits, like on Digital OSF/1 and HP-UX.
11182 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11183 ac_file=1 # Number of current file.
11184 ac_beg=1 # First line for current file.
11185 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11186 ac_more_lines=:
11187 ac_sed_cmds=""
11188 while $ac_more_lines; do
11189 if test $ac_beg -gt 1; then
11190 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11191 else
11192 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11193 fi
11194 if test ! -s conftest.s$ac_file; then
11195 ac_more_lines=false
11196 rm -f conftest.s$ac_file
11197 else
11198 if test -z "$ac_sed_cmds"; then
11199 ac_sed_cmds="sed -f conftest.s$ac_file"
11200 else
11201 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11202 fi
11203 ac_file=`expr $ac_file + 1`
11204 ac_beg=$ac_end
11205 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11206 fi
11207 done
11208 if test -z "$ac_sed_cmds"; then
11209 ac_sed_cmds=cat
11210 fi
11211 EOF
11212
11213 cat >> $CONFIG_STATUS <<EOF
11214
11215 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11216 EOF
11217 cat >> $CONFIG_STATUS <<\EOF
11218 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11220 case "$ac_file" in
11221 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11222 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11223 *) ac_file_in="${ac_file}.in" ;;
11224 esac
11225
11226 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11227
11228 # Remove last slash and all that follows it. Not all systems have dirname.
11229 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11230 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11231 # The file is in a subdirectory.
11232 test ! -d "$ac_dir" && mkdir "$ac_dir"
11233 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11234 # A "../" for each directory in $ac_dir_suffix.
11235 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11236 else
11237 ac_dir_suffix= ac_dots=
11238 fi
11239
11240 case "$ac_given_srcdir" in
11241 .) srcdir=.
11242 if test -z "$ac_dots"; then top_srcdir=.
11243 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11244 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11245 *) # Relative path.
11246 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11247 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11248 esac
11249
11250 case "$ac_given_INSTALL" in
11251 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11252 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11253 esac
11254
11255 echo creating "$ac_file"
11256 rm -f "$ac_file"
11257 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11258 case "$ac_file" in
11259 *Makefile*) ac_comsub="1i\\
11260 # $configure_input" ;;
11261 *) ac_comsub= ;;
11262 esac
11263
11264 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11265 sed -e "$ac_comsub
11266 s%@configure_input@%$configure_input%g
11267 s%@srcdir@%$srcdir%g
11268 s%@top_srcdir@%$top_srcdir%g
11269 s%@INSTALL@%$INSTALL%g
11270 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11271 fi; done
11272 rm -f conftest.s*
11273
11274 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11275 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11276 #
11277 # ac_d sets the value in "#define NAME VALUE" lines.
11278 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11279 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11280 ac_dC='\3'
11281 ac_dD='%g'
11282 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11283 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11284 ac_uB='\([ ]\)%\1#\2define\3'
11285 ac_uC=' '
11286 ac_uD='\4%g'
11287 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11288 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11289 ac_eB='$%\1#\2define\3'
11290 ac_eC=' '
11291 ac_eD='%g'
11292
11293 if test "${CONFIG_HEADERS+set}" != set; then
11294 EOF
11295 cat >> $CONFIG_STATUS <<EOF
11296 CONFIG_HEADERS="config.h:config.in"
11297 EOF
11298 cat >> $CONFIG_STATUS <<\EOF
11299 fi
11300 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11301 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11302 case "$ac_file" in
11303 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11304 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11305 *) ac_file_in="${ac_file}.in" ;;
11306 esac
11307
11308 echo creating $ac_file
11309
11310 rm -f conftest.frag conftest.in conftest.out
11311 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11312 cat $ac_file_inputs > conftest.in
11313
11314 EOF
11315
11316 # Transform confdefs.h into a sed script conftest.vals that substitutes
11317 # the proper values into config.h.in to produce config.h. And first:
11318 # Protect against being on the right side of a sed subst in config.status.
11319 # Protect against being in an unquoted here document in config.status.
11320 rm -f conftest.vals
11321 cat > conftest.hdr <<\EOF
11322 s/[\\&%]/\\&/g
11323 s%[\\$`]%\\&%g
11324 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11325 s%ac_d%ac_u%gp
11326 s%ac_u%ac_e%gp
11327 EOF
11328 sed -n -f conftest.hdr confdefs.h > conftest.vals
11329 rm -f conftest.hdr
11330
11331 # This sed command replaces #undef with comments. This is necessary, for
11332 # example, in the case of _POSIX_SOURCE, which is predefined and required
11333 # on some systems where configure will not decide to define it.
11334 cat >> conftest.vals <<\EOF
11335 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11336 EOF
11337
11338 # Break up conftest.vals because some shells have a limit on
11339 # the size of here documents, and old seds have small limits too.
11340
11341 rm -f conftest.tail
11342 while :
11343 do
11344 ac_lines=`grep -c . conftest.vals`
11345 # grep -c gives empty output for an empty file on some AIX systems.
11346 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11347 # Write a limited-size here document to conftest.frag.
11348 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11349 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11350 echo 'CEOF
11351 sed -f conftest.frag conftest.in > conftest.out
11352 rm -f conftest.in
11353 mv conftest.out conftest.in
11354 ' >> $CONFIG_STATUS
11355 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11356 rm -f conftest.vals
11357 mv conftest.tail conftest.vals
11358 done
11359 rm -f conftest.vals
11360
11361 cat >> $CONFIG_STATUS <<\EOF
11362 rm -f conftest.frag conftest.h
11363 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11364 cat conftest.in >> conftest.h
11365 rm -f conftest.in
11366 if cmp -s $ac_file conftest.h 2>/dev/null; then
11367 echo "$ac_file is unchanged"
11368 rm -f conftest.h
11369 else
11370 # Remove last slash and all that follows it. Not all systems have dirname.
11371 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11372 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11373 # The file is in a subdirectory.
11374 test ! -d "$ac_dir" && mkdir "$ac_dir"
11375 fi
11376 rm -f $ac_file
11377 mv conftest.h $ac_file
11378 fi
11379 fi; done
11380
11381 EOF
11382
11383 cat >> $CONFIG_STATUS <<EOF
11384 ac_sources="$files"
11385 ac_dests="$links"
11386 EOF
11387
11388 cat >> $CONFIG_STATUS <<\EOF
11389 srcdir=$ac_given_srcdir
11390 while test -n "$ac_sources"; do
11391 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11392 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11393
11394 echo "linking $srcdir/$ac_source to $ac_dest"
11395
11396 if test ! -r $srcdir/$ac_source; then
11397 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11398 fi
11399 rm -f $ac_dest
11400
11401 # Make relative symlinks.
11402 # Remove last slash and all that follows it. Not all systems have dirname.
11403 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
11404 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11405 # The dest file is in a subdirectory.
11406 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11407 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
11408 # A "../" for each directory in $ac_dest_dir_suffix.
11409 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
11410 else
11411 ac_dest_dir_suffix= ac_dots=
11412 fi
11413
11414 case "$srcdir" in
11415 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11416 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11417 esac
11418
11419 # Make a symlink if possible; otherwise try a hard link.
11420 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11421 ln $srcdir/$ac_source $ac_dest; then :
11422 else
11423 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11424 fi
11425 done
11426 EOF
11427 cat >> $CONFIG_STATUS <<EOF
11428
11429 gdb_host_cpu=$gdb_host_cpu
11430 gdb_target_cpu=$gdb_target_cpu
11431 nativefile=$nativefile
11432
11433 EOF
11434 cat >> $CONFIG_STATUS <<\EOF
11435
11436 if test "${nativefile}" = ""; then
11437 < Makefile \
11438 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11439 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11440 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11441 > Makefile.tem
11442 mv -f Makefile.tem Makefile
11443 fi
11444
11445 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11446 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11447 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11448 mv -f Makefile.tmp Makefile
11449
11450
11451 case x$CONFIG_HEADERS in
11452 xconfig.h:config.in)
11453 echo > stamp-h ;;
11454 esac
11455
11456 exit 0
11457 EOF
11458 chmod +x $CONFIG_STATUS
11459 rm -fr confdefs* $ac_clean_files
11460 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11461
11462 if test "$no_recursion" != yes; then
11463
11464 # Remove --cache-file and --srcdir arguments so they do not pile up.
11465 ac_sub_configure_args=
11466 ac_prev=
11467 for ac_arg in $ac_configure_args; do
11468 if test -n "$ac_prev"; then
11469 ac_prev=
11470 continue
11471 fi
11472 case "$ac_arg" in
11473 -cache-file | --cache-file | --cache-fil | --cache-fi \
11474 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11475 ac_prev=cache_file ;;
11476 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11477 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11478 ;;
11479 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11480 ac_prev=srcdir ;;
11481 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11482 ;;
11483 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11484 esac
11485 done
11486
11487 for ac_config_dir in doc testsuite $configdirs; do
11488
11489 # Do not complain, so a configure script can configure whichever
11490 # parts of a large source tree are present.
11491 if test ! -d $srcdir/$ac_config_dir; then
11492 continue
11493 fi
11494
11495 echo configuring in $ac_config_dir
11496
11497 case "$srcdir" in
11498 .) ;;
11499 *)
11500 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11501 else
11502 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11503 fi
11504 ;;
11505 esac
11506
11507 ac_popdir=`pwd`
11508 cd $ac_config_dir
11509
11510 # A "../" for each directory in /$ac_config_dir.
11511 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11512
11513 case "$srcdir" in
11514 .) # No --srcdir option. We are building in place.
11515 ac_sub_srcdir=$srcdir ;;
11516 /*) # Absolute path.
11517 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11518 *) # Relative path.
11519 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11520 esac
11521
11522 # Check for guested configure; otherwise get Cygnus style configure.
11523 if test -f $ac_sub_srcdir/configure; then
11524 ac_sub_configure=$ac_sub_srcdir/configure
11525 elif test -f $ac_sub_srcdir/configure.in; then
11526 ac_sub_configure=$ac_configure
11527 else
11528 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11529 ac_sub_configure=
11530 fi
11531
11532 # The recursion is here.
11533 if test -n "$ac_sub_configure"; then
11534
11535 # Make the cache file name correct relative to the subdirectory.
11536 case "$cache_file" in
11537 /*) ac_sub_cache_file=$cache_file ;;
11538 *) # Relative path.
11539 ac_sub_cache_file="$ac_dots$cache_file" ;;
11540 esac
11541 case "$ac_given_INSTALL" in
11542 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11543 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11544 esac
11545
11546 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11547 # The eval makes quoting arguments work.
11548 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11549 then :
11550 else
11551 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
11552 fi
11553 fi
11554
11555 cd $ac_popdir
11556 done
11557 fi
11558
11559
11560 exit 0
This page took 0.291651 seconds and 4 git commands to generate.