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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbcli Enable GDB-CLI interface"
26 --enable-gdbmi Enable GDB-MI interface"
28 --with-uiout Use new uiout functions instead of *printf's"
30 --enable-tui Enable full-screen terminal user interface"
32 --enable-netrom Enable NetROM support"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
38 --with-mmalloc Use memory mapped malloc package"
40 --with-included-regex Use included regex"
42 --with-cpu=CPU Set the default CPU variant to debug"
44 --enable-gdbtk Enable GDBTK GUI front end"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
60 --with-x use the X Window System"
62 --enable-sim Link gdb with simulator"
64 --enable-shared Use shared libraries"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file
=.
/config.cache
79 program_transform_name
=s
,x
,x
,
87 bindir
='${exec_prefix}/bin'
88 sbindir
='${exec_prefix}/sbin'
89 libexecdir
='${exec_prefix}/libexec'
90 datadir
='${prefix}/share'
91 sysconfdir
='${prefix}/etc'
92 sharedstatedir
='${prefix}/com'
93 localstatedir
='${prefix}/var'
94 libdir
='${exec_prefix}/lib'
95 includedir
='${prefix}/include'
96 oldincludedir
='/usr/include'
97 infodir
='${prefix}/info'
98 mandir
='${prefix}/man'
100 # Initialize some other variables.
103 SHELL
=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
129 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
130 bindir
="$ac_optarg" ;;
132 -build |
--build |
--buil |
--bui |
--bu)
134 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
135 build
="$ac_optarg" ;;
137 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
138 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
139 ac_prev
=cache_file
;;
140 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
141 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
142 cache_file
="$ac_optarg" ;;
144 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
146 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
148 datadir
="$ac_optarg" ;;
150 -disable-* |
--disable-*)
151 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* |
--enable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
173 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
174 |
--exec |
--exe |
--ex)
175 ac_prev
=exec_prefix
;;
176 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
177 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
178 |
--exec=* |
--exe=* |
--ex=*)
179 exec_prefix
="$ac_optarg" ;;
181 -gas |
--gas |
--ga |
--g)
182 # Obsolete; use --with-gas.
185 -help |
--help |
--hel |
--he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host |
--host |
--hos |
--ho)
242 -host=* |
--host=* |
--hos=* |
--ho=*)
245 -includedir |
--includedir |
--includedi |
--included |
--include \
246 |
--includ |
--inclu |
--incl |
--inc)
247 ac_prev
=includedir
;;
248 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
249 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
250 includedir
="$ac_optarg" ;;
252 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
254 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
255 infodir
="$ac_optarg" ;;
257 -libdir |
--libdir |
--libdi |
--libd)
259 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
260 libdir
="$ac_optarg" ;;
262 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
263 |
--libexe |
--libex |
--libe)
264 ac_prev
=libexecdir
;;
265 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
266 |
--libexe=* |
--libex=* |
--libe=*)
267 libexecdir
="$ac_optarg" ;;
269 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
270 |
--localstate |
--localstat |
--localsta |
--localst \
271 |
--locals |
--local |
--loca |
--loc |
--lo)
272 ac_prev
=localstatedir
;;
273 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
274 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
275 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
276 localstatedir
="$ac_optarg" ;;
278 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
280 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
281 mandir
="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
291 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
292 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
295 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
296 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
297 |
--oldin |
--oldi |
--old |
--ol |
--o)
298 ac_prev
=oldincludedir
;;
299 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
300 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
301 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
302 oldincludedir
="$ac_optarg" ;;
304 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
306 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
307 prefix
="$ac_optarg" ;;
309 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
310 |
--program-pre |
--program-pr |
--program-p)
311 ac_prev
=program_prefix
;;
312 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
313 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
314 program_prefix
="$ac_optarg" ;;
316 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
317 |
--program-suf |
--program-su |
--program-s)
318 ac_prev
=program_suffix
;;
319 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
320 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
321 program_suffix
="$ac_optarg" ;;
323 -program-transform-name |
--program-transform-name \
324 |
--program-transform-nam |
--program-transform-na \
325 |
--program-transform-n |
--program-transform- \
326 |
--program-transform |
--program-transfor \
327 |
--program-transfo |
--program-transf \
328 |
--program-trans |
--program-tran \
329 |
--progr-tra |
--program-tr |
--program-t)
330 ac_prev
=program_transform_name
;;
331 -program-transform-name=* |
--program-transform-name=* \
332 |
--program-transform-nam=* |
--program-transform-na=* \
333 |
--program-transform-n=* |
--program-transform-=* \
334 |
--program-transform=* |
--program-transfor=* \
335 |
--program-transfo=* |
--program-transf=* \
336 |
--program-trans=* |
--program-tran=* \
337 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
338 program_transform_name
="$ac_optarg" ;;
340 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
341 |
-silent |
--silent |
--silen |
--sile |
--sil)
344 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
346 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
348 sbindir
="$ac_optarg" ;;
350 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
351 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
352 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
354 ac_prev
=sharedstatedir
;;
355 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
356 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
357 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
359 sharedstatedir
="$ac_optarg" ;;
361 -site |
--site |
--sit)
363 -site=* |
--site=* |
--sit=*)
366 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
368 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
369 srcdir
="$ac_optarg" ;;
371 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
372 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
373 ac_prev
=sysconfdir
;;
374 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
375 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
376 sysconfdir
="$ac_optarg" ;;
378 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
380 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
381 target
="$ac_optarg" ;;
383 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
386 -version |
--version |
--versio |
--versi |
--vers)
387 echo "configure generated by autoconf version 2.13"
391 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* |
--without-*)
404 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
413 # Obsolete; use --with-x.
416 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
417 |
--x-incl |
--x-inc |
--x-in |
--x-i)
418 ac_prev
=x_includes
;;
419 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
420 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
421 x_includes
="$ac_optarg" ;;
423 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
424 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
425 ac_prev
=x_libraries
;;
426 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
427 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
428 x_libraries
="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE
; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
478 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
479 |
--no-cr |
--no-c) ;;
480 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
481 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
482 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest
* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file
=main.c
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted
=yes
510 # Try the directory containing this script, then its parent.
512 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
515 if test ! -r $srcdir/$ac_unique_file; then
519 ac_srcdir_defaulted
=no
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE
; then
533 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
535 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 for ac_site_file
in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp
='$CPP $CPPFLAGS'
556 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling
=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
571 ac_n
= ac_c
='\c' ac_t
=
576 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
577 echo "configure:578: checking whether to enable maintainer-specific portions of Makefiles" >&5
578 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
579 if test "${enable_maintainer_mode+set}" = set; then
580 enableval
="$enable_maintainer_mode"
581 USE_MAINTAINER_MODE
=$enableval
583 USE_MAINTAINER_MODE
=no
586 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
589 if test $USE_MAINTAINER_MODE = yes; then
590 MAINTAINER_MODE_TRUE
=
591 MAINTAINER_MODE_FALSE
='#'
593 MAINTAINER_MODE_TRUE
='#'
594 MAINTAINER_MODE_FALSE
=
596 MAINT
=$MAINTAINER_MODE_TRUE
600 # Extract the first word of "gcc", so it can be a program name with args.
601 set dummy gcc
; ac_word
=$2
602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
603 echo "configure:604: checking for $ac_word" >&5
604 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
605 echo $ac_n "(cached) $ac_c" 1>&6
607 if test -n "$CC"; then
608 ac_cv_prog_CC
="$CC" # Let the user override the test.
610 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
612 for ac_dir
in $ac_dummy; do
613 test -z "$ac_dir" && ac_dir
=.
614 if test -f $ac_dir/$ac_word; then
623 if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
626 echo "$ac_t""no" 1>&6
629 if test -z "$CC"; then
630 # Extract the first word of "cc", so it can be a program name with args.
631 set dummy cc
; ac_word
=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 if test -n "$CC"; then
638 ac_cv_prog_CC
="$CC" # Let the user override the test.
640 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
643 for ac_dir
in $ac_dummy; do
644 test -z "$ac_dir" && ac_dir
=.
645 if test -f $ac_dir/$ac_word; then
646 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
655 if test $ac_prog_rejected = yes; then
656 # We found a bogon in the path, so make sure we never use it.
657 set dummy
$ac_cv_prog_CC
659 if test $# -gt 0; then
660 # We chose a different compiler from the bogus one.
661 # However, it has the same basename, so the bogon will be chosen
662 # first if we set CC to just the basename; use the full file name.
664 set dummy
"$ac_dir/$ac_word" "$@"
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
675 echo "$ac_t""no" 1>&6
678 if test -z "$CC"; then
681 # Extract the first word of "cl", so it can be a program name with args.
682 set dummy cl
; ac_word
=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC
="$CC" # Let the user override the test.
691 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
693 for ac_dir
in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir
=.
695 if test -f $ac_dir/$ac_word; then
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
707 echo "$ac_t""no" 1>&6
712 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
715 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
716 echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
720 ac_cpp
='$CPP $CPPFLAGS'
721 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
722 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
723 cross_compiling
=$ac_cv_prog_cc_cross
725 cat > conftest.
$ac_ext << EOF
727 #line 728 "configure"
728 #include "confdefs.h"
732 if { (eval echo configure
:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
733 ac_cv_prog_cc_works
=yes
734 # If we can't run a trivial program, we are probably using a cross compiler.
735 if (.
/conftest
; exit) 2>/dev
/null
; then
736 ac_cv_prog_cc_cross
=no
738 ac_cv_prog_cc_cross
=yes
741 echo "configure: failed program was:" >&5
742 cat conftest.
$ac_ext >&5
743 ac_cv_prog_cc_works
=no
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp
='$CPP $CPPFLAGS'
749 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling
=$ac_cv_prog_cc_cross
753 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
754 if test $ac_cv_prog_cc_works = no
; then
755 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
759 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
760 cross_compiling
=$ac_cv_prog_cc_cross
762 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
763 echo "configure:764: checking whether we are using GNU C" >&5
764 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 cat > conftest.c
<<EOF
772 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
779 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
781 if test $ac_cv_prog_gcc = yes; then
787 ac_test_CFLAGS
="${CFLAGS+set}"
788 ac_save_CFLAGS
="$CFLAGS"
790 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
791 echo "configure:792: checking whether ${CC-cc} accepts -g" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 echo 'void f(){}' > conftest.c
796 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
805 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
806 if test "$ac_test_CFLAGS" = set; then
807 CFLAGS
="$ac_save_CFLAGS"
808 elif test $ac_cv_prog_cc_g = yes; then
809 if test "$GCC" = yes; then
815 if test "$GCC" = yes; then
822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
823 echo "configure:824: checking how to run the C preprocessor" >&5
824 # On Suns, sometimes $CPP names a directory.
825 if test -n "$CPP" && test -d "$CPP"; then
828 if test -z "$CPP"; then
829 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 # This must be in double quotes, not single quotes, because CPP may get
833 # substituted into the Makefile and "${CC-cc}" will confuse make.
835 # On the NeXT, cc -E runs the code through the compiler's parser,
836 # not just through cpp.
837 cat > conftest.
$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure
:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
853 CPP
="${CC-cc} -E -traditional-cpp"
854 cat > conftest.
$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
860 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure
:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 if test -z "$ac_err"; then
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
870 CPP
="${CC-cc} -nologo -E"
871 cat > conftest.
$ac_ext <<EOF
872 #line 873 "configure"
873 #include "confdefs.h"
877 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
878 { (eval echo configure
:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
879 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
880 if test -z "$ac_err"; then
884 echo "configure: failed program was:" >&5
885 cat conftest.
$ac_ext >&5
894 ac_cv_prog_CPP
="$CPP"
896 CPP
="$ac_cv_prog_CPP"
898 ac_cv_prog_CPP
="$CPP"
900 echo "$ac_t""$CPP" 1>&6
902 echo $ac_n "checking for AIX""... $ac_c" 1>&6
903 echo "configure:904: checking for AIX" >&5
904 cat > conftest.
$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
913 egrep "yes" >/dev
/null
2>&1; then
915 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
916 #define _ALL_SOURCE 1
921 echo "$ac_t""no" 1>&6
926 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
927 echo "configure:928: checking for POSIXized ISC" >&5
928 if test -d /etc
/conf
/kconfig.d
&&
929 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
931 echo "$ac_t""yes" 1>&6
932 ISC
=yes # If later tests want to check for ISC.
933 cat >> confdefs.h
<<\EOF
934 #define _POSIX_SOURCE 1
937 if test "$GCC" = yes; then
943 echo "$ac_t""no" 1>&6
950 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
951 echo "configure:952: checking for ${CC-cc} option to accept ANSI C" >&5
952 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 am_cv_prog_cc_stdc
=no
957 # Don't try gcc -ansi; that turns off useful extensions and
958 # breaks some systems' header files.
960 # Ultrix and OSF/1 -std1
961 # HP-UX 10.20 and later -Ae
962 # HP-UX older versions -Aa -D_HPUX_SOURCE
963 # SVR4 -Xc -D__EXTENSIONS__
964 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
966 CC
="$ac_save_CC $ac_arg"
967 cat > conftest.
$ac_ext <<EOF
968 #line 969 "configure"
969 #include "confdefs.h"
972 #include <sys/types.h>
973 #include <sys/stat.h>
974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
975 struct buf { int x; };
976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
977 static char *e (p, i)
983 static char *f (char * (*g) (char **, int), char **p, ...)
988 s = g (p, va_arg (v,int));
992 int test (int i, double x);
993 struct s1 {int (*f) (int a);};
994 struct s2 {int (*f) (double a);};
995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1005 if { (eval echo configure
:1006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1007 am_cv_prog_cc_stdc
="$ac_arg"; break
1009 echo "configure: failed program was:" >&5
1010 cat conftest.
$ac_ext >&5
1018 if test -z "$am_cv_prog_cc_stdc"; then
1019 echo "$ac_t""none needed" 1>&6
1021 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1023 case "x$am_cv_prog_cc_stdc" in
1025 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1030 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1031 if test -f $ac_dir/install-sh
; then
1033 ac_install_sh
="$ac_aux_dir/install-sh -c"
1035 elif test -f $ac_dir/install.sh
; then
1037 ac_install_sh
="$ac_aux_dir/install.sh -c"
1041 if test -z "$ac_aux_dir"; then
1042 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1044 ac_config_guess
=$ac_aux_dir/config.guess
1045 ac_config_sub
=$ac_aux_dir/config.sub
1046 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1049 # Do some error checking and defaulting for the host and target type.
1051 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1054 # 1. You are not allowed to specify --host, --target, and nonopt at the
1056 # 2. Host defaults to nonopt.
1057 # 3. If nonopt is not specified, then host defaults to the current host,
1058 # as determined by config.guess.
1059 # 4. Target and build default to nonopt.
1060 # 5. If nonopt is not specified, then target and build default to host.
1062 # The aliases save the names the user supplied, while $host etc.
1063 # will get canonicalized.
1064 case $host---$target---$nonopt in
1065 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1066 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1070 # Make sure we can run config.sub.
1071 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1072 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1075 echo $ac_n "checking host system type""... $ac_c" 1>&6
1076 echo "configure:1077: checking host system type" >&5
1079 case "$host_alias" in
1083 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1084 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1086 *) host_alias
=$nonopt ;;
1090 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1091 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1092 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1093 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1094 echo "$ac_t""$host" 1>&6
1096 echo $ac_n "checking target system type""... $ac_c" 1>&6
1097 echo "configure:1098: checking target system type" >&5
1099 target_alias
=$target
1100 case "$target_alias" in
1103 NONE
) target_alias
=$host_alias ;;
1104 *) target_alias
=$nonopt ;;
1108 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1109 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1110 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1111 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1112 echo "$ac_t""$target" 1>&6
1114 echo $ac_n "checking build system type""... $ac_c" 1>&6
1115 echo "configure:1116: checking build system type" >&5
1118 case "$build_alias" in
1121 NONE
) build_alias
=$host_alias ;;
1122 *) build_alias
=$nonopt ;;
1126 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1127 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1128 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1129 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1130 echo "$ac_t""$build" 1>&6
1132 test "$host_alias" != "$target_alias" &&
1133 test "$program_prefix$program_suffix$program_transform_name" = \
1135 program_prefix
=${target_alias}-
1139 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether ${MAKE-make} sets \${MAKE}" >&5
1141 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1142 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 cat > conftestmake
<<\EOF
1147 @
echo 'ac_maketemp="${MAKE}"'
1149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1150 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1151 if test -n "$ac_maketemp"; then
1152 eval ac_cv_prog_make_
${ac_make}_set
=yes
1154 eval ac_cv_prog_make_
${ac_make}_set
=no
1158 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1159 echo "$ac_t""yes" 1>&6
1162 echo "$ac_t""no" 1>&6
1163 SET_MAKE
="MAKE=${MAKE-make}"
1166 # Extract the first word of "ranlib", so it can be a program name with args.
1167 set dummy 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
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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
="ranlib"
1186 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1189 RANLIB
="$ac_cv_prog_RANLIB"
1190 if test -n "$RANLIB"; then
1191 echo "$ac_t""$RANLIB" 1>&6
1193 echo "$ac_t""no" 1>&6
1196 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1197 echo "configure:1198: checking for ANSI C header files" >&5
1198 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.
$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1209 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1210 { (eval echo configure
:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1211 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1212 if test -z "$ac_err"; then
1214 ac_cv_header_stdc
=yes
1217 echo "configure: failed program was:" >&5
1218 cat conftest.
$ac_ext >&5
1220 ac_cv_header_stdc
=no
1224 if test $ac_cv_header_stdc = yes; then
1225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1232 egrep "memchr" >/dev
/null
2>&1; then
1236 ac_cv_header_stdc
=no
1242 if test $ac_cv_header_stdc = yes; then
1243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1250 egrep "free" >/dev
/null
2>&1; then
1254 ac_cv_header_stdc
=no
1260 if test $ac_cv_header_stdc = yes; then
1261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1262 if test "$cross_compiling" = yes; then
1265 cat > conftest.
$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1272 int main () { int i; for (i = 0; i < 256; i++)
1273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1277 if { (eval echo configure
:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1281 echo "configure: failed program was:" >&5
1282 cat conftest.
$ac_ext >&5
1284 ac_cv_header_stdc
=no
1292 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1293 if test $ac_cv_header_stdc = yes; then
1294 cat >> confdefs.h
<<\EOF
1295 #define STDC_HEADERS 1
1300 echo $ac_n "checking for working const""... $ac_c" 1>&6
1301 echo "configure:1302: checking for working const" >&5
1302 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 cat > conftest.
$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 /* Ultrix mips cc rejects this. */
1312 typedef int charset[2]; const charset x;
1313 /* SunOS 4.1.1 cc rejects this. */
1314 char const *const *ccp;
1316 /* NEC SVR4.0.2 mips cc rejects this. */
1317 struct point {int x, y;};
1318 static struct point const zero = {0,0};
1319 /* AIX XL C 1.02.0.0 rejects this.
1320 It does not let you subtract one const X* pointer from another in an arm
1321 of an if-expression whose if-part is not a constant expression */
1322 const char *g = "string";
1323 ccp = &g + (g ? g-g : 0);
1324 /* HPUX 7.0 cc rejects these. */
1327 ccp = (char const *const *) p;
1328 { /* SCO 3.2v4 cc rejects this. */
1330 char const *s = 0 ? (char *) 0 : (char const *) 0;
1334 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1336 const int *foo = &x[0];
1339 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1340 typedef const int *iptr;
1344 { /* AIX XL C 1.02.0.0 rejects this saying
1345 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1346 struct s { int j; const int *ap[3]; };
1347 struct s *b; b->j = 5;
1349 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1355 if { (eval echo configure
:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1359 echo "configure: failed program was:" >&5
1360 cat conftest.
$ac_ext >&5
1367 echo "$ac_t""$ac_cv_c_const" 1>&6
1368 if test $ac_cv_c_const = no
; then
1369 cat >> confdefs.h
<<\EOF
1375 echo $ac_n "checking for inline""... $ac_c" 1>&6
1376 echo "configure:1377: checking for inline" >&5
1377 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1381 for ac_kw
in inline __inline__ __inline
; do
1382 cat > conftest.
$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1390 if { (eval echo configure
:1391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1392 ac_cv_c_inline
=$ac_kw; break
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1402 echo "$ac_t""$ac_cv_c_inline" 1>&6
1403 case "$ac_cv_c_inline" in
1405 no
) cat >> confdefs.h
<<\EOF
1409 *) cat >> confdefs.h
<<EOF
1410 #define inline $ac_cv_c_inline
1415 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1416 echo "configure:1417: checking for off_t" >&5
1417 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 cat > conftest.
$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 #include <sys/types.h>
1429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1430 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1432 ac_cv_type_off_t
=yes
1440 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1441 if test $ac_cv_type_off_t = no
; then
1442 cat >> confdefs.h
<<\EOF
1448 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1449 echo "configure:1450: checking for size_t" >&5
1450 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 cat > conftest.
$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1456 #include <sys/types.h>
1462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1463 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1465 ac_cv_type_size_t
=yes
1468 ac_cv_type_size_t
=no
1473 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1474 if test $ac_cv_type_size_t = no
; then
1475 cat >> confdefs.h
<<\EOF
1476 #define size_t unsigned
1481 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1482 # for constant arguments. Useless!
1483 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1484 echo "configure:1485: checking for working alloca.h" >&5
1485 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 cat > conftest.
$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1493 char *p = alloca(2 * sizeof(int));
1496 if { (eval echo configure
:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1498 ac_cv_header_alloca_h
=yes
1500 echo "configure: failed program was:" >&5
1501 cat conftest.
$ac_ext >&5
1503 ac_cv_header_alloca_h
=no
1508 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1509 if test $ac_cv_header_alloca_h = yes; then
1510 cat >> confdefs.h
<<\EOF
1511 #define HAVE_ALLOCA_H 1
1516 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1517 echo "configure:1518: checking for alloca" >&5
1518 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.
$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1526 # define alloca __builtin_alloca
1529 # include <malloc.h>
1530 # define alloca _alloca
1533 # include <alloca.h>
1538 # ifndef alloca /* predefined by HP cc +Olibcalls */
1547 char *p = (char *) alloca(1);
1550 if { (eval echo configure
:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1552 ac_cv_func_alloca_works
=yes
1554 echo "configure: failed program was:" >&5
1555 cat conftest.
$ac_ext >&5
1557 ac_cv_func_alloca_works
=no
1562 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1563 if test $ac_cv_func_alloca_works = yes; then
1564 cat >> confdefs.h
<<\EOF
1565 #define HAVE_ALLOCA 1
1570 if test $ac_cv_func_alloca_works = no
; then
1571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1572 # that cause trouble. Some versions do not even contain alloca or
1573 # contain a buggy version. If you still want to use their alloca,
1574 # use ar to extract alloca.o from them instead of compiling alloca.c.
1575 ALLOCA
=alloca.
${ac_objext}
1576 cat >> confdefs.h
<<\EOF
1581 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1582 echo "configure:1583: checking whether alloca needs Cray hooks" >&5
1583 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 cat > conftest.
$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1589 #if defined(CRAY) && ! defined(CRAY2)
1596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "webecray" >/dev
/null
2>&1; then
1608 echo "$ac_t""$ac_cv_os_cray" 1>&6
1609 if test $ac_cv_os_cray = yes; then
1610 for ac_func
in _getb67 GETB67 getb67
; do
1611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1612 echo "configure:1613: checking for $ac_func" >&5
1613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 cat > conftest.
$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 /* System header to define __stub macros and hopefully few prototypes,
1620 which can conflict with char $ac_func(); below. */
1622 /* Override any gcc2 internal prototype to avoid an error. */
1623 /* We use char because int might match the return type of a gcc2
1624 builtin and then its argument prototype would still apply. */
1629 /* The GNU C library defines this for functions which it implements
1630 to always fail with ENOSYS. Some functions are actually named
1631 something starting with __ and the normal name is an alias. */
1632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1640 if { (eval echo configure
:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1642 eval "ac_cv_func_$ac_func=yes"
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 eval "ac_cv_func_$ac_func=no"
1652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1653 echo "$ac_t""yes" 1>&6
1654 cat >> confdefs.h
<<EOF
1655 #define CRAY_STACKSEG_END $ac_func
1660 echo "$ac_t""no" 1>&6
1666 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1667 echo "configure:1668: checking stack direction for C alloca" >&5
1668 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 if test "$cross_compiling" = yes; then
1672 ac_cv_c_stack_direction
=0
1674 cat > conftest.
$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 find_stack_direction ()
1679 static char *addr = 0;
1684 return find_stack_direction ();
1687 return (&dummy > addr) ? 1 : -1;
1691 exit (find_stack_direction() < 0);
1694 if { (eval echo configure
:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1696 ac_cv_c_stack_direction
=1
1698 echo "configure: failed program was:" >&5
1699 cat conftest.
$ac_ext >&5
1701 ac_cv_c_stack_direction
=-1
1708 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1709 cat >> confdefs.h
<<EOF
1710 #define STACK_DIRECTION $ac_cv_c_stack_direction
1715 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
1717 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1719 echo "configure:1720: checking for $ac_hdr" >&5
1720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1729 { (eval echo configure
:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1730 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1731 if test -z "$ac_err"; then
1733 eval "ac_cv_header_$ac_safe=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.
$ac_ext >&5
1739 eval "ac_cv_header_$ac_safe=no"
1743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1744 echo "$ac_t""yes" 1>&6
1745 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1746 cat >> confdefs.h
<<EOF
1747 #define $ac_tr_hdr 1
1751 echo "$ac_t""no" 1>&6
1755 for ac_func
in getpagesize
1757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $ac_func" >&5
1759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $ac_func(); below. */
1768 /* Override any gcc2 internal prototype to avoid an error. */
1769 /* We use char because int might match the return type of a gcc2
1770 builtin and then its argument prototype would still apply. */
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1786 if { (eval echo configure
:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1788 eval "ac_cv_func_$ac_func=yes"
1790 echo "configure: failed program was:" >&5
1791 cat conftest.
$ac_ext >&5
1793 eval "ac_cv_func_$ac_func=no"
1798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1801 cat >> confdefs.h
<<EOF
1802 #define $ac_tr_func 1
1806 echo "$ac_t""no" 1>&6
1810 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1811 echo "configure:1812: checking for working mmap" >&5
1812 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 if test "$cross_compiling" = yes; then
1816 ac_cv_func_mmap_fixed_mapped
=no
1818 cat > conftest.
$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1822 /* Thanks to Mike Haertel and Jim Avera for this test.
1823 Here is a matrix of mmap possibilities:
1824 mmap private not fixed
1825 mmap private fixed at somewhere currently unmapped
1826 mmap private fixed at somewhere already mapped
1827 mmap shared not fixed
1828 mmap shared fixed at somewhere currently unmapped
1829 mmap shared fixed at somewhere already mapped
1830 For private mappings, we should verify that changes cannot be read()
1831 back from the file, nor mmap's back from the file at a different
1832 address. (There have been systems where private was not correctly
1833 implemented like the infamous i386 svr4.0, and systems where the
1834 VM page cache was not coherent with the filesystem buffer cache
1835 like early versions of FreeBSD and possibly contemporary NetBSD.)
1836 For shared mappings, we should conversely verify that changes get
1837 propogated back to all the places they're supposed to be.
1839 Grep wants private fixed already mapped.
1840 The main things grep needs to know about mmap are:
1841 * does it exist and is it safe to write into the mmap'd area
1842 * how to use it (BSD variants) */
1843 #include <sys/types.h>
1845 #include <sys/mman.h>
1847 #if HAVE_SYS_TYPES_H
1848 # include <sys/types.h>
1852 # include <stdlib.h>
1856 # include <sys/stat.h>
1860 # include <unistd.h>
1863 /* This mess was copied from the GNU getpagesize.h. */
1864 #ifndef HAVE_GETPAGESIZE
1866 /* Assume that all systems that can run configure have sys/param.h. */
1867 # ifndef HAVE_SYS_PARAM_H
1868 # define HAVE_SYS_PARAM_H 1
1871 # ifdef _SC_PAGESIZE
1872 # define getpagesize() sysconf(_SC_PAGESIZE)
1873 # else /* no _SC_PAGESIZE */
1874 # ifdef HAVE_SYS_PARAM_H
1875 # include <sys/param.h>
1876 # ifdef EXEC_PAGESIZE
1877 # define getpagesize() EXEC_PAGESIZE
1878 # else /* no EXEC_PAGESIZE */
1880 # define getpagesize() NBPG * CLSIZE
1883 # endif /* no CLSIZE */
1884 # else /* no NBPG */
1886 # define getpagesize() NBPC
1887 # else /* no NBPC */
1889 # define getpagesize() PAGESIZE
1890 # endif /* PAGESIZE */
1891 # endif /* no NBPC */
1892 # endif /* no NBPG */
1893 # endif /* no EXEC_PAGESIZE */
1894 # else /* no HAVE_SYS_PARAM_H */
1895 # define getpagesize() 8192 /* punt totally */
1896 # endif /* no HAVE_SYS_PARAM_H */
1897 # endif /* no _SC_PAGESIZE */
1899 #endif /* no HAVE_GETPAGESIZE */
1902 extern "C" { void *malloc(unsigned); }
1910 char *data, *data2, *data3;
1914 pagesize = getpagesize();
1917 * First, make a file with some known garbage in it.
1919 data = malloc(pagesize);
1922 for (i = 0; i < pagesize; ++i)
1923 *(data + i) = rand();
1925 fd = creat("conftestmmap", 0600);
1928 if (write(fd, data, pagesize) != pagesize)
1933 * Next, try to mmap the file at a fixed address which
1934 * already has something else allocated at it. If we can,
1935 * also make sure that we see the same garbage.
1937 fd = open("conftestmmap", O_RDWR);
1940 data2 = malloc(2 * pagesize);
1943 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1944 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1947 for (i = 0; i < pagesize; ++i)
1948 if (*(data + i) != *(data2 + i))
1952 * Finally, make sure that changes to the mapped area
1953 * do not percolate back to the file as seen by read().
1954 * (This is a bug on some variants of i386 svr4.0.)
1956 for (i = 0; i < pagesize; ++i)
1957 *(data2 + i) = *(data2 + i) + 1;
1958 data3 = malloc(pagesize);
1961 if (read(fd, data3, pagesize) != pagesize)
1963 for (i = 0; i < pagesize; ++i)
1964 if (*(data + i) != *(data3 + i))
1967 unlink("conftestmmap");
1972 if { (eval echo configure
:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1974 ac_cv_func_mmap_fixed_mapped
=yes
1976 echo "configure: failed program was:" >&5
1977 cat conftest.
$ac_ext >&5
1979 ac_cv_func_mmap_fixed_mapped
=no
1986 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1987 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1988 cat >> confdefs.h
<<\EOF
1995 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1996 unistd.h values.h sys
/param.h
1998 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_hdr" >&5
2001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.
$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure
:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2012 if test -z "$ac_err"; then
2014 eval "ac_cv_header_$ac_safe=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.
$ac_ext >&5
2020 eval "ac_cv_header_$ac_safe=no"
2024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2025 echo "$ac_t""yes" 1>&6
2026 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2027 cat >> confdefs.h
<<EOF
2028 #define $ac_tr_hdr 1
2032 echo "$ac_t""no" 1>&6
2036 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2037 __argz_count __argz_stringify __argz_next
2039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2040 echo "configure:2041: checking for $ac_func" >&5
2041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 cat > conftest.
$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $ac_func(); below. */
2050 /* Override any gcc2 internal prototype to avoid an error. */
2051 /* We use char because int might match the return type of a gcc2
2052 builtin and then its argument prototype would still apply. */
2057 /* The GNU C library defines this for functions which it implements
2058 to always fail with ENOSYS. Some functions are actually named
2059 something starting with __ and the normal name is an alias. */
2060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2068 if { (eval echo configure
:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2070 eval "ac_cv_func_$ac_func=yes"
2072 echo "configure: failed program was:" >&5
2073 cat conftest.
$ac_ext >&5
2075 eval "ac_cv_func_$ac_func=no"
2080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2082 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2083 cat >> confdefs.h
<<EOF
2084 #define $ac_tr_func 1
2088 echo "$ac_t""no" 1>&6
2093 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2094 for ac_func
in stpcpy
2096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_func" >&5
2098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.
$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $ac_func(); below. */
2107 /* Override any gcc2 internal prototype to avoid an error. */
2108 /* We use char because int might match the return type of a gcc2
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2125 if { (eval echo configure
:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2127 eval "ac_cv_func_$ac_func=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.
$ac_ext >&5
2132 eval "ac_cv_func_$ac_func=no"
2137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2138 echo "$ac_t""yes" 1>&6
2139 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2140 cat >> confdefs.h
<<EOF
2141 #define $ac_tr_func 1
2145 echo "$ac_t""no" 1>&6
2150 if test "${ac_cv_func_stpcpy}" = "yes"; then
2151 cat >> confdefs.h
<<\EOF
2152 #define HAVE_STPCPY 1
2157 if test $ac_cv_header_locale_h = yes; then
2158 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2159 echo "configure:2160: checking for LC_MESSAGES" >&5
2160 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.
$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2171 if { (eval echo configure
:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2173 am_cv_val_LC_MESSAGES
=yes
2175 echo "configure: failed program was:" >&5
2176 cat conftest.
$ac_ext >&5
2178 am_cv_val_LC_MESSAGES
=no
2183 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2184 if test $am_cv_val_LC_MESSAGES = yes; then
2185 cat >> confdefs.h
<<\EOF
2186 #define HAVE_LC_MESSAGES 1
2191 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2192 echo "configure:2193: checking whether NLS is requested" >&5
2193 # Check whether --enable-nls or --disable-nls was given.
2194 if test "${enable_nls+set}" = set; then
2195 enableval
="$enable_nls"
2201 echo "$ac_t""$USE_NLS" 1>&6
2204 USE_INCLUDED_LIBINTL
=no
2206 if test "$USE_NLS" = "yes"; then
2207 cat >> confdefs.h
<<\EOF
2208 #define ENABLE_NLS 1
2211 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether included gettext is requested" >&5
2213 # Check whether --with-included-gettext or --without-included-gettext was given.
2214 if test "${with_included_gettext+set}" = set; then
2215 withval
="$with_included_gettext"
2216 nls_cv_force_use_gnu_gettext
=$withval
2218 nls_cv_force_use_gnu_gettext
=no
2221 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2223 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2224 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2226 nls_cv_header_libgt
=
2229 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2230 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2231 echo "configure:2232: checking for libintl.h" >&5
2232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.
$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 #include <libintl.h>
2240 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure
:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then
2245 eval "ac_cv_header_$ac_safe=yes"
2248 echo "configure: failed program was:" >&5
2249 cat conftest.
$ac_ext >&5
2251 eval "ac_cv_header_$ac_safe=no"
2255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2257 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2258 echo "configure:2259: checking for gettext in libc" >&5
2259 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 cat > conftest.
$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 #include <libintl.h>
2267 return (int) gettext ("")
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2272 gt_cv_func_gettext_libc
=yes
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 gt_cv_func_gettext_libc
=no
2282 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2284 if test "$gt_cv_func_gettext_libc" != "yes"; then
2285 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2286 echo "configure:2287: checking for bindtextdomain in -lintl" >&5
2287 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 ac_save_LIBS
="$LIBS"
2293 cat > conftest.
$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 /* Override any gcc2 internal prototype to avoid an error. */
2297 /* We use char because int might match the return type of a gcc2
2298 builtin and then its argument prototype would still apply. */
2299 char bindtextdomain();
2305 if { (eval echo configure
:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2307 eval "ac_cv_lib_$ac_lib_var=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2312 eval "ac_cv_lib_$ac_lib_var=no"
2315 LIBS
="$ac_save_LIBS"
2318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2320 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2321 echo "configure:2322: checking for gettext in libintl" >&5
2322 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 return (int) gettext ("")
2333 if { (eval echo configure
:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2335 gt_cv_func_gettext_libintl
=yes
2337 echo "configure: failed program was:" >&5
2338 cat conftest.
$ac_ext >&5
2340 gt_cv_func_gettext_libintl
=no
2345 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2347 echo "$ac_t""no" 1>&6
2352 if test "$gt_cv_func_gettext_libc" = "yes" \
2353 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2354 cat >> confdefs.h
<<\EOF
2355 #define HAVE_GETTEXT 1
2358 # Extract the first word of "msgfmt", so it can be a program name with args.
2359 set dummy msgfmt
; ac_word
=$2
2360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_word" >&5
2362 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2367 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2371 for ac_dir
in $PATH; do
2372 test -z "$ac_dir" && ac_dir
=.
2373 if test -f $ac_dir/$ac_word; then
2374 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2375 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2381 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2385 MSGFMT
="$ac_cv_path_MSGFMT"
2386 if test -n "$MSGFMT"; then
2387 echo "$ac_t""$MSGFMT" 1>&6
2389 echo "$ac_t""no" 1>&6
2391 if test "$MSGFMT" != "no"; then
2392 for ac_func
in dcgettext
2394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_func" >&5
2396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* System header to define __stub macros and hopefully few prototypes,
2403 which can conflict with char $ac_func(); below. */
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2412 /* The GNU C library defines this for functions which it implements
2413 to always fail with ENOSYS. Some functions are actually named
2414 something starting with __ and the normal name is an alias. */
2415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2423 if { (eval echo configure
:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2425 eval "ac_cv_func_$ac_func=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 eval "ac_cv_func_$ac_func=no"
2435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2436 echo "$ac_t""yes" 1>&6
2437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2438 cat >> confdefs.h
<<EOF
2439 #define $ac_tr_func 1
2443 echo "$ac_t""no" 1>&6
2447 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2448 set dummy gmsgfmt
; ac_word
=$2
2449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_word" >&5
2451 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2456 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2459 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2464 for ac_dir
in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir
=.
2466 if test -f $ac_dir/$ac_word; then
2467 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2472 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2476 GMSGFMT
="$ac_cv_path_GMSGFMT"
2477 if test -n "$GMSGFMT"; then
2478 echo "$ac_t""$GMSGFMT" 1>&6
2480 echo "$ac_t""no" 1>&6
2483 # Extract the first word of "xgettext", so it can be a program name with args.
2484 set dummy xgettext
; ac_word
=$2
2485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2486 echo "configure:2487: checking for $ac_word" >&5
2487 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2492 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2495 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2496 for ac_dir
in $PATH; do
2497 test -z "$ac_dir" && ac_dir
=.
2498 if test -f $ac_dir/$ac_word; then
2499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2500 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2506 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2510 XGETTEXT
="$ac_cv_path_XGETTEXT"
2511 if test -n "$XGETTEXT"; then
2512 echo "$ac_t""$XGETTEXT" 1>&6
2514 echo "$ac_t""no" 1>&6
2517 cat > conftest.
$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2522 extern int _nl_msg_cat_cntr;
2523 return _nl_msg_cat_cntr
2526 if { (eval echo configure
:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2531 echo "configure: failed program was:" >&5
2532 cat conftest.
$ac_ext >&5
2543 echo "$ac_t""no" 1>&6
2548 if test "$CATOBJEXT" = "NONE"; then
2549 nls_cv_use_gnu_gettext
=yes
2553 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2554 INTLOBJS
="\$(GETTOBJS)"
2555 # Extract the first word of "msgfmt", so it can be a program name with args.
2556 set dummy msgfmt
; ac_word
=$2
2557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2558 echo "configure:2559: checking for $ac_word" >&5
2559 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2568 for ac_dir
in $PATH; do
2569 test -z "$ac_dir" && ac_dir
=.
2570 if test -f $ac_dir/$ac_word; then
2571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2572 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2578 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2582 MSGFMT
="$ac_cv_path_MSGFMT"
2583 if test -n "$MSGFMT"; then
2584 echo "$ac_t""$MSGFMT" 1>&6
2586 echo "$ac_t""no" 1>&6
2589 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2590 set dummy gmsgfmt
; ac_word
=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2601 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2606 for ac_dir
in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir
=.
2608 if test -f $ac_dir/$ac_word; then
2609 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2614 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2618 GMSGFMT
="$ac_cv_path_GMSGFMT"
2619 if test -n "$GMSGFMT"; then
2620 echo "$ac_t""$GMSGFMT" 1>&6
2622 echo "$ac_t""no" 1>&6
2625 # Extract the first word of "xgettext", so it can be a program name with args.
2626 set dummy xgettext
; ac_word
=$2
2627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_word" >&5
2629 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2634 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2638 for ac_dir
in $PATH; do
2639 test -z "$ac_dir" && ac_dir
=.
2640 if test -f $ac_dir/$ac_word; then
2641 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2642 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2648 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2652 XGETTEXT
="$ac_cv_path_XGETTEXT"
2653 if test -n "$XGETTEXT"; then
2654 echo "$ac_t""$XGETTEXT" 1>&6
2656 echo "$ac_t""no" 1>&6
2660 USE_INCLUDED_LIBINTL
=yes
2664 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2666 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2667 nls_cv_header_intl
=libintl.h
2668 nls_cv_header_libgt
=libgettext.h
2671 if test "$XGETTEXT" != ":"; then
2672 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2675 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2680 # We need to process the po/ directory.
2684 nls_cv_header_intl
=libintl.h
2685 nls_cv_header_libgt
=libgettext.h
2688 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2689 # because some of the sources are only built for this goal.
2690 if test "$PACKAGE" = gettext; then
2692 USE_INCLUDED_LIBINTL
=yes
2695 for lang
in $ALL_LINGUAS; do
2696 GMOFILES
="$GMOFILES $lang.gmo"
2697 POFILES
="$POFILES $lang.po"
2713 if test "x$CATOBJEXT" != "x"; then
2714 if test "x$ALL_LINGUAS" = "x"; then
2717 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2718 echo "configure:2719: checking for catalogs to be installed" >&5
2720 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2721 case "$ALL_LINGUAS" in
2722 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2725 LINGUAS
=$NEW_LINGUAS
2726 echo "$ac_t""$LINGUAS" 1>&6
2729 if test -n "$LINGUAS"; then
2730 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2734 if test $ac_cv_header_locale_h = yes; then
2735 INCLUDE_LOCALE_H
="#include <locale.h>"
2738 /* The system does not provide the header <locale.h>. Take care yourself. */"
2742 if test -f $srcdir/po2tbl.
sed.
in; then
2743 if test "$CATOBJEXT" = ".cat"; then
2744 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2745 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2746 echo "configure:2747: checking for linux/version.h" >&5
2747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 #include <linux/version.h>
2755 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2756 { (eval echo configure
:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2757 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2758 if test -z "$ac_err"; then
2760 eval "ac_cv_header_$ac_safe=yes"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.
$ac_ext >&5
2766 eval "ac_cv_header_$ac_safe=no"
2770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2774 echo "$ac_t""no" 1>&6
2779 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2781 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2782 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2785 if test "$PACKAGE" = "gettext"; then
2795 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2801 if test -f $srcdir/po
/POTFILES.
in; then
2802 test -d po || mkdir po
2803 if test "x$srcdir" != "x."; then
2804 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2805 posrcprefix
="$srcdir/"
2807 posrcprefix
="../$srcdir/"
2813 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2814 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2817 cat >> confdefs.h
<<\EOF
2818 #define PACKAGE "gdb"
2835 configdirs
="doc testsuite"
2837 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2838 if test "${enable_multi_ice+set}" = set; then
2839 enableval
="$enable_multi_ice"
2840 case "${enableval}" in
2841 yes ) enable_multi_ice
="yes" ;;
2842 no
) enable_multi_ice
="no" ;;
2843 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2849 if test "${enable_multi_ice}" = "yes"; then
2850 configdirs
="${configdirs} multi-ice"
2854 .
${srcdir}/configure.
host
2856 .
${srcdir}/configure.tgt
2858 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2862 .
${srcdir}/..
/bfd
/config.bfd
2864 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2866 if test x
"${targ_archs}" != x
; then
2867 cat >> confdefs.h
<<EOF
2868 #define DEFAULT_BFD_ARCH ${targ_archs}
2872 if test x
"${targ_defvec}" != x
; then
2873 cat >> confdefs.h
<<EOF
2874 #define DEFAULT_BFD_VEC ${targ_defvec}
2879 for ac_prog
in gawk mawk nawk
awk
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy
$ac_prog; ac_word
=$2
2883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2884 echo "configure:2885: checking for $ac_word" >&5
2885 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 if test -n "$AWK"; then
2889 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2891 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2893 for ac_dir
in $ac_dummy; do
2894 test -z "$ac_dir" && ac_dir
=.
2895 if test -f $ac_dir/$ac_word; then
2896 ac_cv_prog_AWK
="$ac_prog"
2903 AWK
="$ac_cv_prog_AWK"
2904 if test -n "$AWK"; then
2905 echo "$ac_t""$AWK" 1>&6
2907 echo "$ac_t""no" 1>&6
2910 test -n "$AWK" && break
2913 # Find a good install program. We prefer a C program (faster),
2914 # so one script is as good as another. But avoid the broken or
2915 # incompatible versions:
2916 # SysV /etc/install, /usr/sbin/install
2917 # SunOS /usr/etc/install
2918 # IRIX /sbin/install
2920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2923 # ./install, which can be erroneously created by make from ./install.sh.
2924 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2925 echo "configure:2926: checking for a BSD compatible install" >&5
2926 if test -z "$INSTALL"; then
2927 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2931 for ac_dir
in $PATH; do
2932 # Account for people who put trailing slashes in PATH elements.
2934 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2936 # OSF1 and SCO ODT 3.0 have their own names for install.
2937 # Don't use installbsd from OSF since it installs stuff as root
2939 for ac_prog
in ginstall scoinst
install; do
2940 if test -f $ac_dir/$ac_prog; then
2941 if test $ac_prog = install &&
2942 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2943 # AIX install. It has an incompatible calling convention.
2946 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2957 if test "${ac_cv_path_install+set}" = set; then
2958 INSTALL
="$ac_cv_path_install"
2960 # As a last resort, use the slow shell script. We don't cache a
2961 # path for INSTALL within a source directory, because that will
2962 # break other packages using the cache if that directory is
2963 # removed, or if the path is relative.
2964 INSTALL
="$ac_install_sh"
2967 echo "$ac_t""$INSTALL" 1>&6
2969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2970 # It thinks the first close brace ends the variable substitution.
2971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2975 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2977 if test $host != $build; then
2978 ac_tool_prefix
=${host_alias}-
2983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2984 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2986 echo "configure:2987: checking for $ac_word" >&5
2987 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 if test -n "$AR"; then
2991 ac_cv_prog_AR
="$AR" # Let the user override the test.
2993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2995 for ac_dir
in $ac_dummy; do
2996 test -z "$ac_dir" && ac_dir
=.
2997 if test -f $ac_dir/$ac_word; then
2998 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3003 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3007 if test -n "$AR"; then
3008 echo "$ac_t""$AR" 1>&6
3010 echo "$ac_t""no" 1>&6
3015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3016 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3018 echo "configure:3019: checking for $ac_word" >&5
3019 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 if test -n "$RANLIB"; then
3023 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3027 for ac_dir
in $ac_dummy; do
3028 test -z "$ac_dir" && ac_dir
=.
3029 if test -f $ac_dir/$ac_word; then
3030 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3037 RANLIB
="$ac_cv_prog_RANLIB"
3038 if test -n "$RANLIB"; then
3039 echo "$ac_t""$RANLIB" 1>&6
3041 echo "$ac_t""no" 1>&6
3045 if test -z "$ac_cv_prog_RANLIB"; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "ranlib", so it can be a program name with args.
3048 set dummy ranlib
; ac_word
=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -n "$RANLIB"; then
3055 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3057 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3059 for ac_dir
in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir
=.
3061 if test -f $ac_dir/$ac_word; then
3062 ac_cv_prog_RANLIB
="ranlib"
3067 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3070 RANLIB
="$ac_cv_prog_RANLIB"
3071 if test -n "$RANLIB"; then
3072 echo "$ac_t""$RANLIB" 1>&6
3074 echo "$ac_t""no" 1>&6
3082 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3083 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_word" >&5
3086 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 if test -n "$DLLTOOL"; then
3090 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3094 for ac_dir
in $ac_dummy; do
3095 test -z "$ac_dir" && ac_dir
=.
3096 if test -f $ac_dir/$ac_word; then
3097 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3102 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3105 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3106 if test -n "$DLLTOOL"; then
3107 echo "$ac_t""$DLLTOOL" 1>&6
3109 echo "$ac_t""no" 1>&6
3114 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3115 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_word" >&5
3118 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 if test -n "$WINDRES"; then
3122 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3124 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3126 for ac_dir
in $ac_dummy; do
3127 test -z "$ac_dir" && ac_dir
=.
3128 if test -f $ac_dir/$ac_word; then
3129 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3134 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3137 WINDRES
="$ac_cv_prog_WINDRES"
3138 if test -n "$WINDRES"; then
3139 echo "$ac_t""$WINDRES" 1>&6
3141 echo "$ac_t""no" 1>&6
3146 for ac_prog
in 'bison -y' byacc
3148 # Extract the first word of "$ac_prog", so it can be a program name with args.
3149 set dummy
$ac_prog; ac_word
=$2
3150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3151 echo "configure:3152: checking for $ac_word" >&5
3152 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 if test -n "$YACC"; then
3156 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3158 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3160 for ac_dir
in $ac_dummy; do
3161 test -z "$ac_dir" && ac_dir
=.
3162 if test -f $ac_dir/$ac_word; then
3163 ac_cv_prog_YACC
="$ac_prog"
3170 YACC
="$ac_cv_prog_YACC"
3171 if test -n "$YACC"; then
3172 echo "$ac_t""$YACC" 1>&6
3174 echo "$ac_t""no" 1>&6
3177 test -n "$YACC" && break
3179 test -n "$YACC" || YACC
="yacc"
3182 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3183 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_word" >&5
3186 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test -n "$MIG"; then
3190 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3194 for ac_dir
in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir
=.
3196 if test -f $ac_dir/$ac_word; then
3197 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3202 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3205 MIG
="$ac_cv_prog_MIG"
3206 if test -n "$MIG"; then
3207 echo "$ac_t""$MIG" 1>&6
3209 echo "$ac_t""no" 1>&6
3215 if test "$program_transform_name" = s
,x
,x
,; then
3216 program_transform_name
=
3218 # Double any \ or $. echo might interpret backslashes.
3219 cat <<\EOF_SED
> conftestsed
3220 s
,\\,\\\\,g
; s
,\$
,$$
,g
3222 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3225 test "$program_prefix" != NONE
&&
3226 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3227 # Use a double $ so make ignores it.
3228 test "$program_suffix" != NONE
&&
3229 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3231 # sed with no file args requires a program.
3232 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3235 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3236 echo "configure:3237: checking return type of signal handlers" >&5
3237 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <sys/types.h>
3249 extern "C" void (*signal (int, void (*)(int)))(int);
3251 void (*signal ()) ();
3258 if { (eval echo configure
:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3260 ac_cv_type_signal
=void
3262 echo "configure: failed program was:" >&5
3263 cat conftest.
$ac_ext >&5
3265 ac_cv_type_signal
=int
3270 echo "$ac_t""$ac_cv_type_signal" 1>&6
3271 cat >> confdefs.h
<<EOF
3272 #define RETSIGTYPE $ac_cv_type_signal
3277 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3278 echo "configure:3279: checking for ANSI C header files" >&5
3279 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 cat > conftest.
$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3290 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3291 { (eval echo configure
:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3292 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3293 if test -z "$ac_err"; then
3295 ac_cv_header_stdc
=yes
3298 echo "configure: failed program was:" >&5
3299 cat conftest.
$ac_ext >&5
3301 ac_cv_header_stdc
=no
3305 if test $ac_cv_header_stdc = yes; then
3306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313 egrep "memchr" >/dev
/null
2>&1; then
3317 ac_cv_header_stdc
=no
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3331 egrep "free" >/dev
/null
2>&1; then
3335 ac_cv_header_stdc
=no
3341 if test $ac_cv_header_stdc = yes; then
3342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3343 if test "$cross_compiling" = yes; then
3346 cat > conftest.
$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3350 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3351 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3353 int main () { int i; for (i = 0; i < 256; i++)
3354 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3358 if { (eval echo configure
:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3362 echo "configure: failed program was:" >&5
3363 cat conftest.
$ac_ext >&5
3365 ac_cv_header_stdc
=no
3373 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3374 if test $ac_cv_header_stdc = yes; then
3375 cat >> confdefs.h
<<\EOF
3376 #define STDC_HEADERS 1
3383 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3384 cat >> confdefs.h
<<\EOF
3385 #define _MSE_INT_H 1
3390 for ac_hdr
in ctype.h nlist.h link.h thread_db.h proc_service.h \
3391 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3392 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3393 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3394 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3395 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3396 dirent.h sys
/ndir.h sys
/dir.h ndir.h sys
/filio.h \
3397 curses.h ncurses.h \
3400 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3402 echo "configure:3403: checking for $ac_hdr" >&5
3403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 cat > conftest.
$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3411 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3412 { (eval echo configure
:3413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3413 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3414 if test -z "$ac_err"; then
3416 eval "ac_cv_header_$ac_safe=yes"
3419 echo "configure: failed program was:" >&5
3420 cat conftest.
$ac_ext >&5
3422 eval "ac_cv_header_$ac_safe=no"
3426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3427 echo "$ac_t""yes" 1>&6
3428 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3429 cat >> confdefs.h
<<EOF
3430 #define $ac_tr_hdr 1
3434 echo "$ac_t""no" 1>&6
3438 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3439 echo "configure:3440: checking whether stat file-mode macros are broken" >&5
3440 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.
$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 #include <sys/types.h>
3447 #include <sys/stat.h>
3449 #if defined(S_ISBLK) && defined(S_IFDIR)
3450 # if S_ISBLK (S_IFDIR)
3455 #if defined(S_ISBLK) && defined(S_IFCHR)
3456 # if S_ISBLK (S_IFCHR)
3461 #if defined(S_ISLNK) && defined(S_IFREG)
3462 # if S_ISLNK (S_IFREG)
3467 #if defined(S_ISSOCK) && defined(S_IFREG)
3468 # if S_ISSOCK (S_IFREG)
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475 egrep "You lose" >/dev
/null
2>&1; then
3477 ac_cv_header_stat_broken
=yes
3480 ac_cv_header_stat_broken
=no
3486 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3487 if test $ac_cv_header_stat_broken = yes; then
3488 cat >> confdefs.h
<<\EOF
3489 #define STAT_MACROS_BROKEN 1
3495 echo $ac_n "checking for working const""... $ac_c" 1>&6
3496 echo "configure:3497: checking for working const" >&5
3497 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.
$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3506 /* Ultrix mips cc rejects this. */
3507 typedef int charset[2]; const charset x;
3508 /* SunOS 4.1.1 cc rejects this. */
3509 char const *const *ccp;
3511 /* NEC SVR4.0.2 mips cc rejects this. */
3512 struct point {int x, y;};
3513 static struct point const zero = {0,0};
3514 /* AIX XL C 1.02.0.0 rejects this.
3515 It does not let you subtract one const X* pointer from another in an arm
3516 of an if-expression whose if-part is not a constant expression */
3517 const char *g = "string";
3518 ccp = &g + (g ? g-g : 0);
3519 /* HPUX 7.0 cc rejects these. */
3522 ccp = (char const *const *) p;
3523 { /* SCO 3.2v4 cc rejects this. */
3525 char const *s = 0 ? (char *) 0 : (char const *) 0;
3529 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3531 const int *foo = &x[0];
3534 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3535 typedef const int *iptr;
3539 { /* AIX XL C 1.02.0.0 rejects this saying
3540 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3541 struct s { int j; const int *ap[3]; };
3542 struct s *b; b->j = 5;
3544 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3550 if { (eval echo configure
:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 echo "configure: failed program was:" >&5
3555 cat conftest.
$ac_ext >&5
3562 echo "$ac_t""$ac_cv_c_const" 1>&6
3563 if test $ac_cv_c_const = no
; then
3564 cat >> confdefs.h
<<\EOF
3570 echo $ac_n "checking for inline""... $ac_c" 1>&6
3571 echo "configure:3572: checking for inline" >&5
3572 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3576 for ac_kw
in inline __inline__ __inline
; do
3577 cat > conftest.
$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3585 if { (eval echo configure
:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 ac_cv_c_inline
=$ac_kw; break
3589 echo "configure: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3597 echo "$ac_t""$ac_cv_c_inline" 1>&6
3598 case "$ac_cv_c_inline" in
3600 no
) cat >> confdefs.h
<<\EOF
3604 *) cat >> confdefs.h
<<EOF
3605 #define inline $ac_cv_c_inline
3611 for ac_func
in bcopy btowc bzero canonicalize_file_name isascii poll \
3612 realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
3614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_func" >&5
3616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.
$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* System header to define __stub macros and hopefully few prototypes,
3623 which can conflict with char $ac_func(); below. */
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3632 /* The GNU C library defines this for functions which it implements
3633 to always fail with ENOSYS. Some functions are actually named
3634 something starting with __ and the normal name is an alias. */
3635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3643 if { (eval echo configure
:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3645 eval "ac_cv_func_$ac_func=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.
$ac_ext >&5
3650 eval "ac_cv_func_$ac_func=no"
3655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3657 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3658 cat >> confdefs.h
<<EOF
3659 #define $ac_tr_func 1
3663 echo "$ac_t""no" 1>&6
3667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3668 # for constant arguments. Useless!
3669 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3670 echo "configure:3671: checking for working alloca.h" >&5
3671 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3679 char *p = alloca(2 * sizeof(int));
3682 if { (eval echo configure
:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3684 ac_cv_header_alloca_h
=yes
3686 echo "configure: failed program was:" >&5
3687 cat conftest.
$ac_ext >&5
3689 ac_cv_header_alloca_h
=no
3694 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3695 if test $ac_cv_header_alloca_h = yes; then
3696 cat >> confdefs.h
<<\EOF
3697 #define HAVE_ALLOCA_H 1
3702 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3703 echo "configure:3704: checking for alloca" >&5
3704 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.
$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3712 # define alloca __builtin_alloca
3715 # include <malloc.h>
3716 # define alloca _alloca
3719 # include <alloca.h>
3724 # ifndef alloca /* predefined by HP cc +Olibcalls */
3733 char *p = (char *) alloca(1);
3736 if { (eval echo configure
:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3738 ac_cv_func_alloca_works
=yes
3740 echo "configure: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3743 ac_cv_func_alloca_works
=no
3748 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3749 if test $ac_cv_func_alloca_works = yes; then
3750 cat >> confdefs.h
<<\EOF
3751 #define HAVE_ALLOCA 1
3756 if test $ac_cv_func_alloca_works = no
; then
3757 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3758 # that cause trouble. Some versions do not even contain alloca or
3759 # contain a buggy version. If you still want to use their alloca,
3760 # use ar to extract alloca.o from them instead of compiling alloca.c.
3761 ALLOCA
=alloca.
${ac_objext}
3762 cat >> confdefs.h
<<\EOF
3767 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3768 echo "configure:3769: checking whether alloca needs Cray hooks" >&5
3769 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 cat > conftest.
$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 #if defined(CRAY) && ! defined(CRAY2)
3782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783 egrep "webecray" >/dev
/null
2>&1; then
3794 echo "$ac_t""$ac_cv_os_cray" 1>&6
3795 if test $ac_cv_os_cray = yes; then
3796 for ac_func
in _getb67 GETB67 getb67
; do
3797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3798 echo "configure:3799: checking for $ac_func" >&5
3799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.
$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* System header to define __stub macros and hopefully few prototypes,
3806 which can conflict with char $ac_func(); below. */
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3815 /* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3826 if { (eval echo configure
:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3828 eval "ac_cv_func_$ac_func=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 eval "ac_cv_func_$ac_func=no"
3838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 cat >> confdefs.h
<<EOF
3841 #define CRAY_STACKSEG_END $ac_func
3846 echo "$ac_t""no" 1>&6
3852 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3853 echo "configure:3854: checking stack direction for C alloca" >&5
3854 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 if test "$cross_compiling" = yes; then
3858 ac_cv_c_stack_direction
=0
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 find_stack_direction ()
3865 static char *addr = 0;
3870 return find_stack_direction ();
3873 return (&dummy > addr) ? 1 : -1;
3877 exit (find_stack_direction() < 0);
3880 if { (eval echo configure
:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3882 ac_cv_c_stack_direction
=1
3884 echo "configure: failed program was:" >&5
3885 cat conftest.
$ac_ext >&5
3887 ac_cv_c_stack_direction
=-1
3894 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3895 cat >> confdefs.h
<<EOF
3896 #define STACK_DIRECTION $ac_cv_c_stack_direction
3901 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3902 echo "configure:3903: checking for pid_t" >&5
3903 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 cat > conftest.
$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 #include <sys/types.h>
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3918 ac_cv_type_pid_t
=yes
3926 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3927 if test $ac_cv_type_pid_t = no
; then
3928 cat >> confdefs.h
<<\EOF
3934 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3935 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3936 echo "configure:3937: checking for vfork.h" >&5
3937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.
$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3945 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3946 { (eval echo configure
:3947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3947 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3948 if test -z "$ac_err"; then
3950 eval "ac_cv_header_$ac_safe=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.
$ac_ext >&5
3956 eval "ac_cv_header_$ac_safe=no"
3960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3961 echo "$ac_t""yes" 1>&6
3962 cat >> confdefs.h
<<\EOF
3963 #define HAVE_VFORK_H 1
3967 echo "$ac_t""no" 1>&6
3970 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3971 echo "configure:3972: checking for working vfork" >&5
3972 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3975 if test "$cross_compiling" = yes; then
3976 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3977 echo "configure:3978: checking for vfork" >&5
3978 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.
$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 /* System header to define __stub macros and hopefully few prototypes,
3985 which can conflict with char vfork(); below. */
3987 /* Override any gcc2 internal prototype to avoid an error. */
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3994 /* The GNU C library defines this for functions which it implements
3995 to always fail with ENOSYS. Some functions are actually named
3996 something starting with __ and the normal name is an alias. */
3997 #if defined (__stub_vfork) || defined (__stub___vfork)
4005 if { (eval echo configure
:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4007 eval "ac_cv_func_vfork=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.
$ac_ext >&5
4012 eval "ac_cv_func_vfork=no"
4017 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4021 echo "$ac_t""no" 1>&6
4024 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4026 cat > conftest.
$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 /* Thanks to Paul Eggert for this test. */
4031 #include <sys/types.h>
4032 #include <sys/stat.h>
4033 #ifdef HAVE_UNISTD_H
4039 /* On some sparc systems, changes by the child to local and incoming
4040 argument registers are propagated back to the parent.
4041 The compiler is told about this with #include <vfork.h>,
4042 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4043 Test for this by using a static variable whose address
4044 is put into a register that is clobbered by the vfork. */
4047 sparc_address_test (int arg)
4049 sparc_address_test (arg) int arg;
4067 pid_t parent = getpid ();
4070 sparc_address_test ();
4075 /* Here is another test for sparc vfork register problems.
4076 This test uses lots of local variables, at least
4077 as many local variables as main has allocated so far
4078 including compiler temporaries. 4 locals are enough for
4079 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4080 A buggy compiler should reuse the register of parent
4081 for one of the local variables, since it will think that
4082 parent can't possibly be used any more in this routine.
4083 Assigning to the local variable will thus munge parent
4084 in the parent process. */
4086 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4087 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4088 /* Convince the compiler that p..p7 are live; otherwise, it might
4089 use the same hardware register for all 8 local variables. */
4090 if (p != p1 || p != p2 || p != p3 || p != p4
4091 || p != p5 || p != p6 || p != p7)
4094 /* On some systems (e.g. IRIX 3.3),
4095 vfork doesn't separate parent from child file descriptors.
4096 If the child closes a descriptor before it execs or exits,
4097 this munges the parent's descriptor as well.
4098 Test for this by closing stdout in the child. */
4099 _exit(close(fileno(stdout)) != 0);
4104 while (wait(&status) != child)
4107 /* Was there some problem with vforking? */
4110 /* Did the child fail? (This shouldn't happen.) */
4113 /* Did the vfork/compiler bug occur? */
4114 || parent != getpid()
4116 /* Did the file descriptor bug occur? */
4117 || fstat(fileno(stdout), &st) != 0
4122 if { (eval echo configure
:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4124 ac_cv_func_vfork_works
=yes
4126 echo "configure: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4129 ac_cv_func_vfork_works
=no
4136 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4137 if test $ac_cv_func_vfork_works = no
; then
4138 cat >> confdefs.h
<<\EOF
4144 if test "$cross_compiling" = no
; then
4145 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4146 echo "configure:4147: checking whether setpgrp takes no argument" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 if test "$cross_compiling" = yes; then
4151 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4153 cat > conftest.
$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4157 #ifdef HAVE_UNISTD_H
4162 * If this system has a BSD-style setpgrp, which takes arguments, exit
4167 if (setpgrp(1,1) == -1)
4174 if { (eval echo configure
:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4176 ac_cv_func_setpgrp_void
=no
4178 echo "configure: failed program was:" >&5
4179 cat conftest.
$ac_ext >&5
4181 ac_cv_func_setpgrp_void
=yes
4189 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4190 if test $ac_cv_func_setpgrp_void = yes; then
4191 cat >> confdefs.h
<<\EOF
4192 #define SETPGRP_VOID 1
4198 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4199 echo "configure:4200: checking whether setpgrp takes no argument" >&5
4200 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 cat > conftest.
$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4211 if (setpgrp(1,1) == -1)
4218 if { (eval echo configure
:4219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4220 ac_cv_func_setpgrp_void
=no
4222 echo "configure: failed program was:" >&5
4223 cat conftest.
$ac_ext >&5
4225 ac_cv_func_setpgrp_void
=yes
4230 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4231 if test $ac_cv_func_setpgrp_void = yes; then
4232 cat >> confdefs.h
<<\EOF
4233 #define SETPGRP_VOID 1
4239 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4240 # since sigsetjmp might only be defined as a macro.
4241 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4242 echo "configure:4243: checking for sigsetjmp" >&5
4243 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 cat > conftest.
$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4253 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4256 if { (eval echo configure
:4257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258 gdb_cv_func_sigsetjmp
=yes
4260 echo "configure: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4263 gdb_cv_func_sigsetjmp
=no
4268 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4269 if test $gdb_cv_func_sigsetjmp = yes; then
4270 cat >> confdefs.h
<<\EOF
4271 #define HAVE_SIGSETJMP 1
4276 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4277 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4278 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4279 echo "configure:4280: checking for r_fs in struct reg" >&5
4280 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 cat > conftest.
$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 #include <machine/reg.h>
4288 struct reg r; r.r_fs;
4291 if { (eval echo configure
:4292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4293 gdb_cv_struct_reg_r_fs
=yes
4295 echo "configure: failed program was:" >&5
4296 cat conftest.
$ac_ext >&5
4298 gdb_cv_struct_reg_r_fs
=no
4303 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4304 if test $gdb_cv_struct_reg_r_fs = yes; then
4305 cat >> confdefs.h
<<\EOF
4306 #define HAVE_STRUCT_REG_R_FS 1
4310 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4311 echo "configure:4312: checking for r_gs in struct reg" >&5
4312 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 #include <machine/reg.h>
4320 struct reg r; r.r_gs;
4323 if { (eval echo configure
:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 gdb_cv_struct_reg_r_gs
=yes
4327 echo "configure: failed program was:" >&5
4328 cat conftest.
$ac_ext >&5
4330 gdb_cv_struct_reg_r_gs
=no
4335 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4336 if test $gdb_cv_struct_reg_r_gs = yes; then
4337 cat >> confdefs.h
<<\EOF
4338 #define HAVE_STRUCT_REG_R_GS 1
4343 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4344 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4345 echo "configure:4346: checking for PTRACE_GETREGS" >&5
4346 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 cat > conftest.
$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4352 #include <sys/ptrace.h>
4357 if { (eval echo configure
:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4359 gdb_cv_have_ptrace_getregs
=yes
4361 echo "configure: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4364 gdb_cv_have_ptrace_getregs
=no
4369 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4370 if test $gdb_cv_have_ptrace_getregs = yes; then
4371 cat >> confdefs.h
<<\EOF
4372 #define HAVE_PTRACE_GETREGS 1
4377 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4378 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4379 echo "configure:4380: checking for PTRACE_GETFPXREGS" >&5
4380 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 cat > conftest.
$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4386 #include <sys/ptrace.h>
4391 if { (eval echo configure
:4392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4393 gdb_cv_have_ptrace_getfpxregs
=yes
4395 echo "configure: failed program was:" >&5
4396 cat conftest.
$ac_ext >&5
4398 gdb_cv_have_ptrace_getfpxregs
=no
4403 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4404 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4405 cat >> confdefs.h
<<\EOF
4406 #define HAVE_PTRACE_GETFPXREGS 1
4411 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4412 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4413 echo "configure:4414: checking for PT_GETDBREGS" >&5
4414 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 cat > conftest.
$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 #include <sys/types.h>
4421 #include <sys/ptrace.h>
4426 if { (eval echo configure
:4427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4428 gdb_cv_have_pt_getdbregs
=yes
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 gdb_cv_have_pt_getdbregs
=no
4438 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4439 if test $gdb_cv_have_pt_getdbregs = yes; then
4440 cat >> confdefs.h
<<\EOF
4441 #define HAVE_PT_GETDBREGS 1
4446 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4447 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
4448 echo "configure:4449: checking for PT_GETXMMREGS" >&5
4449 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.
$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 #include <sys/types.h>
4456 #include <sys/ptrace.h>
4461 if { (eval echo configure
:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4463 gdb_cv_have_pt_getxmmregs
=yes
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4468 gdb_cv_have_pt_getxmmregs
=no
4473 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
4474 if test $gdb_cv_have_pt_getxmmregs = yes; then
4475 cat >> confdefs.h
<<\EOF
4476 #define HAVE_PT_GETXMMREGS 1
4482 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4483 echo "configure:4484: checking for socketpair in -lsocket" >&5
4484 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 ac_save_LIBS
="$LIBS"
4489 LIBS
="-lsocket $LIBS"
4490 cat > conftest.
$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 /* Override any gcc2 internal prototype to avoid an error. */
4494 /* We use char because int might match the return type of a gcc2
4495 builtin and then its argument prototype would still apply. */
4502 if { (eval echo configure
:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4504 eval "ac_cv_lib_$ac_lib_var=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.
$ac_ext >&5
4509 eval "ac_cv_lib_$ac_lib_var=no"
4512 LIBS
="$ac_save_LIBS"
4515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4519 cat >> confdefs.h
<<EOF
4520 #define $ac_tr_lib 1
4523 LIBS
="-lsocket $LIBS"
4526 echo "$ac_t""no" 1>&6
4529 for ac_func
in socketpair
4531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4532 echo "configure:4533: checking for $ac_func" >&5
4533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.
$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 /* System header to define __stub macros and hopefully few prototypes,
4540 which can conflict with char $ac_func(); below. */
4542 /* Override any gcc2 internal prototype to avoid an error. */
4543 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */
4549 /* The GNU C library defines this for functions which it implements
4550 to always fail with ENOSYS. Some functions are actually named
4551 something starting with __ and the normal name is an alias. */
4552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4560 if { (eval echo configure
:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4562 eval "ac_cv_func_$ac_func=yes"
4564 echo "configure: failed program was:" >&5
4565 cat conftest.
$ac_ext >&5
4567 eval "ac_cv_func_$ac_func=no"
4572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4573 echo "$ac_t""yes" 1>&6
4574 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4575 cat >> confdefs.h
<<EOF
4576 #define $ac_tr_func 1
4580 echo "$ac_t""no" 1>&6
4586 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4587 echo "configure:4588: checking whether malloc must be declared" >&5
4588 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4591 cat > conftest.
$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4596 #ifdef HAVE_STRING_H
4599 #ifdef HAVE_STRINGS_H
4600 #include <strings.h>
4603 #ifdef HAVE_STDLIB_H
4606 #ifdef HAVE_UNISTD_H
4610 char *(*pfn) = (char *(*)) malloc
4613 if { (eval echo configure
:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4615 bfd_cv_decl_needed_malloc
=no
4617 echo "configure: failed program was:" >&5
4618 cat conftest.
$ac_ext >&5
4620 bfd_cv_decl_needed_malloc
=yes
4625 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4626 if test $bfd_cv_decl_needed_malloc = yes; then
4627 cat >> confdefs.h
<<\EOF
4628 #define NEED_DECLARATION_MALLOC 1
4633 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4634 echo "configure:4635: checking whether realloc must be declared" >&5
4635 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 cat > conftest.
$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 #ifdef HAVE_STRING_H
4646 #ifdef HAVE_STRINGS_H
4647 #include <strings.h>
4650 #ifdef HAVE_STDLIB_H
4653 #ifdef HAVE_UNISTD_H
4657 char *(*pfn) = (char *(*)) realloc
4660 if { (eval echo configure
:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4662 bfd_cv_decl_needed_realloc
=no
4664 echo "configure: failed program was:" >&5
4665 cat conftest.
$ac_ext >&5
4667 bfd_cv_decl_needed_realloc
=yes
4672 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4673 if test $bfd_cv_decl_needed_realloc = yes; then
4674 cat >> confdefs.h
<<\EOF
4675 #define NEED_DECLARATION_REALLOC 1
4680 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4681 echo "configure:4682: checking whether free must be declared" >&5
4682 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.
$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4690 #ifdef HAVE_STRING_H
4693 #ifdef HAVE_STRINGS_H
4694 #include <strings.h>
4697 #ifdef HAVE_STDLIB_H
4700 #ifdef HAVE_UNISTD_H
4704 char *(*pfn) = (char *(*)) free
4707 if { (eval echo configure
:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709 bfd_cv_decl_needed_free
=no
4711 echo "configure: failed program was:" >&5
4712 cat conftest.
$ac_ext >&5
4714 bfd_cv_decl_needed_free
=yes
4719 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4720 if test $bfd_cv_decl_needed_free = yes; then
4721 cat >> confdefs.h
<<\EOF
4722 #define NEED_DECLARATION_FREE 1
4727 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4728 echo "configure:4729: checking whether strerror must be declared" >&5
4729 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 cat > conftest.
$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4737 #ifdef HAVE_STRING_H
4740 #ifdef HAVE_STRINGS_H
4741 #include <strings.h>
4744 #ifdef HAVE_STDLIB_H
4747 #ifdef HAVE_UNISTD_H
4751 char *(*pfn) = (char *(*)) strerror
4754 if { (eval echo configure
:4755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4756 bfd_cv_decl_needed_strerror
=no
4758 echo "configure: failed program was:" >&5
4759 cat conftest.
$ac_ext >&5
4761 bfd_cv_decl_needed_strerror
=yes
4766 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4767 if test $bfd_cv_decl_needed_strerror = yes; then
4768 cat >> confdefs.h
<<\EOF
4769 #define NEED_DECLARATION_STRERROR 1
4774 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4775 echo "configure:4776: checking whether strdup must be declared" >&5
4776 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4779 cat > conftest.
$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4784 #ifdef HAVE_STRING_H
4787 #ifdef HAVE_STRINGS_H
4788 #include <strings.h>
4791 #ifdef HAVE_STDLIB_H
4794 #ifdef HAVE_UNISTD_H
4798 char *(*pfn) = (char *(*)) strdup
4801 if { (eval echo configure
:4802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4803 bfd_cv_decl_needed_strdup
=no
4805 echo "configure: failed program was:" >&5
4806 cat conftest.
$ac_ext >&5
4808 bfd_cv_decl_needed_strdup
=yes
4813 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4814 if test $bfd_cv_decl_needed_strdup = yes; then
4815 cat >> confdefs.h
<<\EOF
4816 #define NEED_DECLARATION_STRDUP 1
4821 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4822 echo "configure:4823: checking whether strstr must be declared" >&5
4823 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 cat > conftest.
$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4831 #ifdef HAVE_STRING_H
4834 #ifdef HAVE_STRINGS_H
4835 #include <strings.h>
4838 #ifdef HAVE_STDLIB_H
4841 #ifdef HAVE_UNISTD_H
4845 char *(*pfn) = (char *(*)) strstr
4848 if { (eval echo configure
:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4850 bfd_cv_decl_needed_strstr
=no
4852 echo "configure: failed program was:" >&5
4853 cat conftest.
$ac_ext >&5
4855 bfd_cv_decl_needed_strstr
=yes
4860 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4861 if test $bfd_cv_decl_needed_strstr = yes; then
4862 cat >> confdefs.h
<<\EOF
4863 #define NEED_DECLARATION_STRSTR 1
4868 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
4869 echo "configure:4870: checking whether canonicalize_file_name must be declared" >&5
4870 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.
$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4878 #ifdef HAVE_STRING_H
4881 #ifdef HAVE_STRINGS_H
4882 #include <strings.h>
4885 #ifdef HAVE_STDLIB_H
4888 #ifdef HAVE_UNISTD_H
4892 char *(*pfn) = (char *(*)) canonicalize_file_name
4895 if { (eval echo configure
:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4897 bfd_cv_decl_needed_canonicalize_file_name
=no
4899 echo "configure: failed program was:" >&5
4900 cat conftest.
$ac_ext >&5
4902 bfd_cv_decl_needed_canonicalize_file_name
=yes
4907 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
4908 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
4909 cat >> confdefs.h
<<\EOF
4910 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
4916 # The following save_state_t checkery is only necessary for HPUX
4917 # versions earlier than 10.20. When those fade from memory, this
4918 # could be expunged. --jsm 1999-03-22
4920 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4921 echo "configure:4922: checking for HPUX save_state structure" >&5
4922 cat > conftest.
$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4925 #include <machine/save_state.h>
4927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4928 egrep "save_state_t" >/dev
/null
2>&1; then
4930 gdb_cv_hpux_savestate
=yes
4933 gdb_cv_hpux_savestate
=no
4937 cat > conftest.
$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 #include <machine/save_state.h>
4942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4943 egrep "ss_wide" >/dev
/null
2>&1; then
4945 gdb_cv_hpux_sswide
=yes
4948 gdb_cv_hpux_sswide
=no
4952 if test $gdb_cv_hpux_savestate = yes
4954 cat >> confdefs.h
<<\EOF
4955 #define HAVE_STRUCT_SAVE_STATE_T 1
4959 if test $gdb_cv_hpux_sswide = yes
4961 cat >> confdefs.h
<<\EOF
4962 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4966 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4969 # If we are configured native on GNU/Linux, work around problems with
4971 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4973 if test "${target}" = "${host}"; then
4976 cat >> confdefs.h
<<\EOF
4977 #define START_INFERIOR_TRAPS_EXPECTED 2
4980 cat >> confdefs.h
<<\EOF
4981 #define sys_quotactl 1
4986 cat >> confdefs.h
<<\EOF
4987 #define NEW_PROC_API 1
4991 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4992 cat >> confdefs.h
<<\EOF
4993 #define NEW_PROC_API 1
4998 cat >> confdefs.h
<<\EOF
4999 #define NEW_PROC_API 1
5006 if test "$ac_cv_header_sys_procfs_h" = yes; then
5007 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5008 echo "configure:5009: checking for pstatus_t in sys/procfs.h" >&5
5009 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.
$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5017 #include <sys/procfs.h>
5022 if { (eval echo configure
:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5024 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5026 echo "configure: failed program was:" >&5
5027 cat conftest.
$ac_ext >&5
5029 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5035 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5036 cat >> confdefs.h
<<\EOF
5037 #define HAVE_PSTATUS_T 1
5041 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5043 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
5044 echo "configure:5045: checking for prrun_t in sys/procfs.h" >&5
5045 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 cat > conftest.
$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5053 #include <sys/procfs.h>
5058 if { (eval echo configure
:5059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5060 bfd_cv_have_sys_procfs_type_prrun_t
=yes
5062 echo "configure: failed program was:" >&5
5063 cat conftest.
$ac_ext >&5
5065 bfd_cv_have_sys_procfs_type_prrun_t
=no
5071 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
5072 cat >> confdefs.h
<<\EOF
5073 #define HAVE_PRRUN_T 1
5077 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
5079 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
5080 echo "configure:5081: checking for gregset_t in sys/procfs.h" >&5
5081 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 cat > conftest.
$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5089 #include <sys/procfs.h>
5094 if { (eval echo configure
:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 bfd_cv_have_sys_procfs_type_gregset_t
=yes
5098 echo "configure: failed program was:" >&5
5099 cat conftest.
$ac_ext >&5
5101 bfd_cv_have_sys_procfs_type_gregset_t
=no
5107 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
5108 cat >> confdefs.h
<<\EOF
5109 #define HAVE_GREGSET_T 1
5113 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
5115 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
5116 echo "configure:5117: checking for fpregset_t in sys/procfs.h" >&5
5117 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5120 cat > conftest.
$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5125 #include <sys/procfs.h>
5130 if { (eval echo configure
:5131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5132 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
5134 echo "configure: failed program was:" >&5
5135 cat conftest.
$ac_ext >&5
5137 bfd_cv_have_sys_procfs_type_fpregset_t
=no
5143 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
5144 cat >> confdefs.h
<<\EOF
5145 #define HAVE_FPREGSET_T 1
5149 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
5151 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
5152 echo "configure:5153: checking for prgregset_t in sys/procfs.h" >&5
5153 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 cat > conftest.
$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5161 #include <sys/procfs.h>
5166 if { (eval echo configure
:5167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5168 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5170 echo "configure: failed program was:" >&5
5171 cat conftest.
$ac_ext >&5
5173 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5179 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5180 cat >> confdefs.h
<<\EOF
5181 #define HAVE_PRGREGSET_T 1
5185 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5187 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5188 echo "configure:5189: checking for prfpregset_t in sys/procfs.h" >&5
5189 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 cat > conftest.
$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5197 #include <sys/procfs.h>
5202 if { (eval echo configure
:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5209 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
5215 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5216 cat >> confdefs.h
<<\EOF
5217 #define HAVE_PRFPREGSET_T 1
5221 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5223 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5224 echo "configure:5225: checking for prgregset32_t in sys/procfs.h" >&5
5225 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5233 #include <sys/procfs.h>
5238 if { (eval echo configure
:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
5251 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5252 cat >> confdefs.h
<<\EOF
5253 #define HAVE_PRGREGSET32_T 1
5257 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5259 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5260 echo "configure:5261: checking for prfpregset32_t in sys/procfs.h" >&5
5261 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 cat > conftest.
$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5269 #include <sys/procfs.h>
5274 if { (eval echo configure
:5275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5276 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5278 echo "configure: failed program was:" >&5
5279 cat conftest.
$ac_ext >&5
5281 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5287 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5288 cat >> confdefs.h
<<\EOF
5289 #define HAVE_PRFPREGSET32_T 1
5293 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5295 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5296 echo "configure:5297: checking for lwpid_t in sys/procfs.h" >&5
5297 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 cat > conftest.
$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5305 #include <sys/procfs.h>
5310 if { (eval echo configure
:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.
$ac_ext >&5
5317 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5323 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5324 cat >> confdefs.h
<<\EOF
5325 #define HAVE_LWPID_T 1
5329 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5331 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5332 echo "configure:5333: checking for psaddr_t in sys/procfs.h" >&5
5333 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.
$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5341 #include <sys/procfs.h>
5346 if { (eval echo configure
:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5350 echo "configure: failed program was:" >&5
5351 cat conftest.
$ac_ext >&5
5353 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5359 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5360 cat >> confdefs.h
<<\EOF
5361 #define HAVE_PSADDR_T 1
5365 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5367 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5368 echo "configure:5369: checking for prsysent_t in sys/procfs.h" >&5
5369 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5377 #include <sys/procfs.h>
5382 if { (eval echo configure
:5383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5384 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5386 echo "configure: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5389 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5395 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5396 cat >> confdefs.h
<<\EOF
5397 #define HAVE_PRSYSENT_T 1
5401 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5403 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5404 echo "configure:5405: checking for pr_sigset_t in sys/procfs.h" >&5
5405 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5408 cat > conftest.
$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5413 #include <sys/procfs.h>
5418 if { (eval echo configure
:5419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5420 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5422 echo "configure: failed program was:" >&5
5423 cat conftest.
$ac_ext >&5
5425 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5431 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5432 cat >> confdefs.h
<<\EOF
5433 #define HAVE_PR_SIGSET_T 1
5437 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5439 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5440 echo "configure:5441: checking for pr_sigaction64_t in sys/procfs.h" >&5
5441 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5444 cat > conftest.
$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5449 #include <sys/procfs.h>
5451 pr_sigaction64_t avar
5454 if { (eval echo configure
:5455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5456 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5458 echo "configure: failed program was:" >&5
5459 cat conftest.
$ac_ext >&5
5461 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5467 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5468 cat >> confdefs.h
<<\EOF
5469 #define HAVE_PR_SIGACTION64_T 1
5473 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5475 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5476 echo "configure:5477: checking for pr_siginfo64_t in sys/procfs.h" >&5
5477 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 cat > conftest.
$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5485 #include <sys/procfs.h>
5490 if { (eval echo configure
:5491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5492 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5494 echo "configure: failed program was:" >&5
5495 cat conftest.
$ac_ext >&5
5497 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5503 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5504 cat >> confdefs.h
<<\EOF
5505 #define HAVE_PR_SIGINFO64_T 1
5509 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5515 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5516 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5517 echo "configure:5518: checking whether prfpregset_t type is broken" >&5
5518 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 if test "$cross_compiling" = yes; then
5522 gdb_cv_prfpregset_t_broken
=yes
5524 cat > conftest.
$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 #include <sys/procfs.h>
5530 if (sizeof (prfpregset_t) == sizeof (void *))
5535 if { (eval echo configure
:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5537 gdb_cv_prfpregset_t_broken
=no
5539 echo "configure: failed program was:" >&5
5540 cat conftest.
$ac_ext >&5
5542 gdb_cv_prfpregset_t_broken
=yes
5549 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5550 if test $gdb_cv_prfpregset_t_broken = yes; then
5551 cat >> confdefs.h
<<\EOF
5552 #define PRFPREGSET_T_BROKEN 1
5559 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5560 echo "configure:5561: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5561 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 cat > conftest.
$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5568 #include <sys/types.h>
5569 #include <sys/procfs.h>
5574 dummy = ioctl(0, PIOCSET, &dummy);
5578 if { (eval echo configure
:5579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5580 gdb_cv_have_procfs_piocset
=yes
5582 echo "configure: failed program was:" >&5
5583 cat conftest.
$ac_ext >&5
5585 gdb_cv_have_procfs_piocset
=no
5590 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5591 if test $gdb_cv_have_procfs_piocset = yes; then
5592 cat >> confdefs.h
<<\EOF
5593 #define HAVE_PROCFS_PIOCSET 1
5599 if test ${host} = ${target} ; then
5601 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5602 echo "configure:5603: checking for member l_addr in struct link_map" >&5
5603 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 cat > conftest.
$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5611 struct link_map lm; (void) lm.l_addr;
5614 if { (eval echo configure
:5615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5616 gdb_cv_have_struct_link_map_with_l_members
=yes
5618 echo "configure: failed program was:" >&5
5619 cat conftest.
$ac_ext >&5
5621 gdb_cv_have_struct_link_map_with_l_members
=no
5626 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5627 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5628 cat >> confdefs.h
<<\EOF
5629 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5635 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5636 echo "configure:5637: checking for member lm_addr in struct link_map" >&5
5637 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.
$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 #include <sys/types.h>
5646 struct link_map lm; (void) lm.lm_addr;
5649 if { (eval echo configure
:5650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5651 gdb_cv_have_struct_link_map_with_lm_members
=yes
5653 echo "configure: failed program was:" >&5
5654 cat conftest.
$ac_ext >&5
5656 gdb_cv_have_struct_link_map_with_lm_members
=no
5661 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5662 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5663 cat >> confdefs.h
<<\EOF
5664 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5670 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5671 echo "configure:5672: checking for member som_addr in struct so_map" >&5
5672 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.
$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 #include <sys/types.h>
5684 struct so_map lm; (void) lm.som_addr;
5687 if { (eval echo configure
:5688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5689 gdb_cv_have_struct_so_map_with_som_members
=yes
5691 echo "configure: failed program was:" >&5
5692 cat conftest.
$ac_ext >&5
5694 gdb_cv_have_struct_so_map_with_som_members
=no
5699 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5700 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5701 cat >> confdefs.h
<<\EOF
5702 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5708 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5709 echo "configure:5710: checking for struct link_map32 in sys/link.h" >&5
5710 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5713 cat > conftest.
$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5717 #include <sys/link.h>
5719 struct link_map32 l;
5722 if { (eval echo configure
:5723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5724 gdb_cv_have_struct_link_map32
=yes
5726 echo "configure: failed program was:" >&5
5727 cat conftest.
$ac_ext >&5
5729 gdb_cv_have_struct_link_map32
=no
5734 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5735 if test $gdb_cv_have_struct_link_map32 = yes; then
5736 cat >> confdefs.h
<<\EOF
5737 #define HAVE_STRUCT_LINK_MAP32 1
5740 cat >> confdefs.h
<<\EOF
5741 #define _SYSCALL32 1
5747 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5748 echo "configure:5749: checking for main in -lm" >&5
5749 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 ac_save_LIBS
="$LIBS"
5755 cat > conftest.
$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5763 if { (eval echo configure
:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5765 eval "ac_cv_lib_$ac_lib_var=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.
$ac_ext >&5
5770 eval "ac_cv_lib_$ac_lib_var=no"
5773 LIBS
="$ac_save_LIBS"
5776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5777 echo "$ac_t""yes" 1>&6
5778 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5780 cat >> confdefs.h
<<EOF
5781 #define $ac_tr_lib 1
5787 echo "$ac_t""no" 1>&6
5791 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5792 echo "configure:5793: checking for wctype in -lc" >&5
5793 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5797 ac_save_LIBS
="$LIBS"
5799 cat > conftest.
$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5802 /* Override any gcc2 internal prototype to avoid an error. */
5803 /* We use char because int might match the return type of a gcc2
5804 builtin and then its argument prototype would still apply. */
5811 if { (eval echo configure
:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5813 eval "ac_cv_lib_$ac_lib_var=yes"
5815 echo "configure: failed program was:" >&5
5816 cat conftest.
$ac_ext >&5
5818 eval "ac_cv_lib_$ac_lib_var=no"
5821 LIBS
="$ac_save_LIBS"
5824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5825 echo "$ac_t""yes" 1>&6
5828 echo "$ac_t""no" 1>&6
5829 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5830 echo "configure:5831: checking for wctype in -lw" >&5
5831 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 ac_save_LIBS
="$LIBS"
5837 cat > conftest.
$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5849 if { (eval echo configure
:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5851 eval "ac_cv_lib_$ac_lib_var=yes"
5853 echo "configure: failed program was:" >&5
5854 cat conftest.
$ac_ext >&5
5856 eval "ac_cv_lib_$ac_lib_var=no"
5859 LIBS
="$ac_save_LIBS"
5862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5863 echo "$ac_t""yes" 1>&6
5864 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5865 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5866 cat >> confdefs.h
<<EOF
5867 #define $ac_tr_lib 1
5873 echo "$ac_t""no" 1>&6
5880 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5881 echo "configure:5882: checking for long long support in compiler" >&5
5882 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 cat > conftest.
$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5891 extern long long foo;
5892 switch (foo & 2) { case 0: return 1; }
5896 if { (eval echo configure
:5897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5898 gdb_cv_c_long_long
=yes
5900 echo "configure: failed program was:" >&5
5901 cat conftest.
$ac_ext >&5
5903 gdb_cv_c_long_long
=no
5908 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5909 if test $gdb_cv_c_long_long = yes; then
5910 cat >> confdefs.h
<<\EOF
5911 #define CC_HAS_LONG_LONG 1
5917 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5918 echo "configure:5919: checking for long long support in printf" >&5
5919 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 if test "$cross_compiling" = yes; then
5923 gdb_cv_printf_has_long_long
=no
5925 cat > conftest.
$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5932 l = (l << 16) + 0x0123;
5933 l = (l << 16) + 0x4567;
5934 l = (l << 16) + 0x89ab;
5935 l = (l << 16) + 0xcdef;
5936 sprintf (buf, "0x%016llx", l);
5937 return (strcmp ("0x0123456789abcdef", buf));
5940 if { (eval echo configure
:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5942 gdb_cv_printf_has_long_long
=yes
5944 echo "configure: failed program was:" >&5
5945 cat conftest.
$ac_ext >&5
5947 gdb_cv_printf_has_long_long
=no
5954 if test $gdb_cv_printf_has_long_long = yes; then
5955 cat >> confdefs.h
<<\EOF
5956 #define PRINTF_HAS_LONG_LONG 1
5960 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5963 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5964 echo "configure:5965: checking for long double support in compiler" >&5
5965 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5966 echo $ac_n "(cached) $ac_c" 1>&6
5968 cat > conftest.
$ac_ext <<EOF
5969 #line 5970 "configure"
5970 #include "confdefs.h"
5976 if { (eval echo configure
:5977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5978 ac_cv_c_long_double
=yes
5980 echo "configure: failed program was:" >&5
5981 cat conftest.
$ac_ext >&5
5983 ac_cv_c_long_double
=no
5988 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5989 if test $ac_cv_c_long_double = yes; then
5990 cat >> confdefs.h
<<\EOF
5991 #define HAVE_LONG_DOUBLE 1
5997 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5998 echo "configure:5999: checking for long double support in printf" >&5
5999 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6002 if test "$cross_compiling" = yes; then
6003 gdb_cv_printf_has_long_double
=no
6005 cat > conftest.
$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6011 long double f = 3.141592653;
6012 sprintf (buf, "%Lg", f);
6013 return (strncmp ("3.14159", buf, 7));
6016 if { (eval echo configure
:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6018 gdb_cv_printf_has_long_double
=yes
6020 echo "configure: failed program was:" >&5
6021 cat conftest.
$ac_ext >&5
6023 gdb_cv_printf_has_long_double
=no
6030 if test $gdb_cv_printf_has_long_double = yes; then
6031 cat >> confdefs.h
<<\EOF
6032 #define PRINTF_HAS_LONG_DOUBLE 1
6036 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
6039 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
6040 echo "configure:6041: checking for long double support in scanf" >&5
6041 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 if test "$cross_compiling" = yes; then
6045 gdb_cv_scanf_has_long_double
=no
6047 cat > conftest.
$ac_ext <<EOF
6048 #line 6049 "configure"
6049 #include "confdefs.h"
6052 char *buf = "3.141592653";
6054 sscanf (buf, "%Lg", &f);
6055 return !(f > 3.14159 && f < 3.14160);
6058 if { (eval echo configure
:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6060 gdb_cv_scanf_has_long_double
=yes
6062 echo "configure: failed program was:" >&5
6063 cat conftest.
$ac_ext >&5
6065 gdb_cv_scanf_has_long_double
=no
6072 if test $gdb_cv_scanf_has_long_double = yes; then
6073 cat >> confdefs.h
<<\EOF
6074 #define SCANF_HAS_LONG_DOUBLE 1
6078 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
6080 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
6082 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6084 echo "configure:6085: checking for $ac_hdr" >&5
6085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6088 cat > conftest.
$ac_ext <<EOF
6089 #line 6090 "configure"
6090 #include "confdefs.h"
6093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6094 { (eval echo configure
:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6096 if test -z "$ac_err"; then
6098 eval "ac_cv_header_$ac_safe=yes"
6101 echo "configure: failed program was:" >&5
6102 cat conftest.
$ac_ext >&5
6104 eval "ac_cv_header_$ac_safe=no"
6108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6109 echo "$ac_t""yes" 1>&6
6110 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6111 cat >> confdefs.h
<<EOF
6112 #define $ac_tr_hdr 1
6116 echo "$ac_t""no" 1>&6
6120 for ac_func
in getpagesize
6122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6123 echo "configure:6124: checking for $ac_func" >&5
6124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6127 cat > conftest.
$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 /* System header to define __stub macros and hopefully few prototypes,
6131 which can conflict with char $ac_func(); below. */
6133 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6140 /* The GNU C library defines this for functions which it implements
6141 to always fail with ENOSYS. Some functions are actually named
6142 something starting with __ and the normal name is an alias. */
6143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6151 if { (eval echo configure
:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6153 eval "ac_cv_func_$ac_func=yes"
6155 echo "configure: failed program was:" >&5
6156 cat conftest.
$ac_ext >&5
6158 eval "ac_cv_func_$ac_func=no"
6163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6164 echo "$ac_t""yes" 1>&6
6165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6166 cat >> confdefs.h
<<EOF
6167 #define $ac_tr_func 1
6171 echo "$ac_t""no" 1>&6
6175 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6176 echo "configure:6177: checking for working mmap" >&5
6177 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6178 echo $ac_n "(cached) $ac_c" 1>&6
6180 if test "$cross_compiling" = yes; then
6181 ac_cv_func_mmap_fixed_mapped
=no
6183 cat > conftest.
$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6187 /* Thanks to Mike Haertel and Jim Avera for this test.
6188 Here is a matrix of mmap possibilities:
6189 mmap private not fixed
6190 mmap private fixed at somewhere currently unmapped
6191 mmap private fixed at somewhere already mapped
6192 mmap shared not fixed
6193 mmap shared fixed at somewhere currently unmapped
6194 mmap shared fixed at somewhere already mapped
6195 For private mappings, we should verify that changes cannot be read()
6196 back from the file, nor mmap's back from the file at a different
6197 address. (There have been systems where private was not correctly
6198 implemented like the infamous i386 svr4.0, and systems where the
6199 VM page cache was not coherent with the filesystem buffer cache
6200 like early versions of FreeBSD and possibly contemporary NetBSD.)
6201 For shared mappings, we should conversely verify that changes get
6202 propogated back to all the places they're supposed to be.
6204 Grep wants private fixed already mapped.
6205 The main things grep needs to know about mmap are:
6206 * does it exist and is it safe to write into the mmap'd area
6207 * how to use it (BSD variants) */
6208 #include <sys/types.h>
6210 #include <sys/mman.h>
6212 #if HAVE_SYS_TYPES_H
6213 # include <sys/types.h>
6217 # include <stdlib.h>
6221 # include <sys/stat.h>
6225 # include <unistd.h>
6228 /* This mess was copied from the GNU getpagesize.h. */
6229 #ifndef HAVE_GETPAGESIZE
6231 /* Assume that all systems that can run configure have sys/param.h. */
6232 # ifndef HAVE_SYS_PARAM_H
6233 # define HAVE_SYS_PARAM_H 1
6236 # ifdef _SC_PAGESIZE
6237 # define getpagesize() sysconf(_SC_PAGESIZE)
6238 # else /* no _SC_PAGESIZE */
6239 # ifdef HAVE_SYS_PARAM_H
6240 # include <sys/param.h>
6241 # ifdef EXEC_PAGESIZE
6242 # define getpagesize() EXEC_PAGESIZE
6243 # else /* no EXEC_PAGESIZE */
6245 # define getpagesize() NBPG * CLSIZE
6248 # endif /* no CLSIZE */
6249 # else /* no NBPG */
6251 # define getpagesize() NBPC
6252 # else /* no NBPC */
6254 # define getpagesize() PAGESIZE
6255 # endif /* PAGESIZE */
6256 # endif /* no NBPC */
6257 # endif /* no NBPG */
6258 # endif /* no EXEC_PAGESIZE */
6259 # else /* no HAVE_SYS_PARAM_H */
6260 # define getpagesize() 8192 /* punt totally */
6261 # endif /* no HAVE_SYS_PARAM_H */
6262 # endif /* no _SC_PAGESIZE */
6264 #endif /* no HAVE_GETPAGESIZE */
6267 extern "C" { void *malloc(unsigned); }
6275 char *data, *data2, *data3;
6279 pagesize = getpagesize();
6282 * First, make a file with some known garbage in it.
6284 data = malloc(pagesize);
6287 for (i = 0; i < pagesize; ++i)
6288 *(data + i) = rand();
6290 fd = creat("conftestmmap", 0600);
6293 if (write(fd, data, pagesize) != pagesize)
6298 * Next, try to mmap the file at a fixed address which
6299 * already has something else allocated at it. If we can,
6300 * also make sure that we see the same garbage.
6302 fd = open("conftestmmap", O_RDWR);
6305 data2 = malloc(2 * pagesize);
6308 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6309 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6310 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6312 for (i = 0; i < pagesize; ++i)
6313 if (*(data + i) != *(data2 + i))
6317 * Finally, make sure that changes to the mapped area
6318 * do not percolate back to the file as seen by read().
6319 * (This is a bug on some variants of i386 svr4.0.)
6321 for (i = 0; i < pagesize; ++i)
6322 *(data2 + i) = *(data2 + i) + 1;
6323 data3 = malloc(pagesize);
6326 if (read(fd, data3, pagesize) != pagesize)
6328 for (i = 0; i < pagesize; ++i)
6329 if (*(data + i) != *(data3 + i))
6332 unlink("conftestmmap");
6337 if { (eval echo configure
:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6339 ac_cv_func_mmap_fixed_mapped
=yes
6341 echo "configure: failed program was:" >&5
6342 cat conftest.
$ac_ext >&5
6344 ac_cv_func_mmap_fixed_mapped
=no
6351 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6352 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6353 cat >> confdefs.h
<<\EOF
6362 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
6363 echo "configure:6364: checking for -bbigtoc option" >&5
6364 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6
6368 SAVE_LDFLAGS
=$LDFLAGS
6371 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
6372 *) gdb_cv_bigtoc
=-bbigtoc ;;
6375 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
6376 cat > conftest.
$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6384 if { (eval echo configure
:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6387 echo "configure: failed program was:" >&5
6388 cat conftest.
$ac_ext >&5
6396 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
6397 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
6403 if test ${build} = ${host} -a ${host} = ${target} ; then
6406 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6407 echo "configure:6408: checking for HPUX/OSF thread support" >&5
6408 if test -f /usr
/include
/dce
/cma_config.h
; then
6409 if test "$GCC" = "yes" ; then
6410 echo "$ac_t""yes" 1>&6
6411 cat >> confdefs.h
<<\EOF
6412 #define HAVE_HPUX_THREAD_SUPPORT 1
6415 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6416 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6418 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6421 echo "$ac_t""no" 1>&6
6425 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6426 echo "configure:6427: checking for Solaris thread debugging library" >&5
6427 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6428 echo "$ac_t""yes" 1>&6
6429 cat >> confdefs.h
<<\EOF
6430 #define HAVE_THREAD_DB_LIB 1
6433 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6434 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6435 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6436 echo "configure:6437: checking for dlopen in -ldl" >&5
6437 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 ac_save_LIBS
="$LIBS"
6443 cat > conftest.
$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6446 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6455 if { (eval echo configure
:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6457 eval "ac_cv_lib_$ac_lib_var=yes"
6459 echo "configure: failed program was:" >&5
6460 cat conftest.
$ac_ext >&5
6462 eval "ac_cv_lib_$ac_lib_var=no"
6465 LIBS
="$ac_save_LIBS"
6468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6469 echo "$ac_t""yes" 1>&6
6470 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6471 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6472 cat >> confdefs.h
<<EOF
6473 #define $ac_tr_lib 1
6479 echo "$ac_t""no" 1>&6
6482 if test "$GCC" = "yes" ; then
6483 # The GNU linker requires the -export-dynamic option to make
6484 # all symbols visible in the dynamic symbol table.
6485 hold_ldflags
=$LDFLAGS
6486 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6487 echo "configure:6488: checking for the ld -export-dynamic flag" >&5
6488 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6489 cat > conftest.
$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6497 if { (eval echo configure
:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6501 echo "configure: failed program was:" >&5
6502 cat conftest.
$ac_ext >&5
6507 LDFLAGS
=$hold_ldflags
6508 echo "$ac_t""$found" 1>&6
6509 if test $found = yes; then
6510 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6513 # Sun randomly tweaked the prototypes in <proc_service.h>
6515 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6516 echo "configure:6517: checking if <proc_service.h> is old" >&5
6517 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6521 cat > conftest.
$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6525 #include <proc_service.h>
6527 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6533 if { (eval echo configure
:6534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6535 gdb_cv_proc_service_is_old
=no
6537 echo "configure: failed program was:" >&5
6538 cat conftest.
$ac_ext >&5
6540 gdb_cv_proc_service_is_old
=yes
6546 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6547 if test $gdb_cv_proc_service_is_old = yes; then
6548 cat >> confdefs.h
<<\EOF
6549 #define PROC_SERVICE_IS_OLD 1
6554 echo "$ac_t""no" 1>&6
6562 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6563 if test "${enable_gdbcli+set}" = set; then
6564 enableval
="$enable_gdbcli"
6566 case "${enableval}" in
6567 yes) enable_gdbcli
=yes ;;
6568 "") enable_gdbcli
=yes ;;
6570 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6573 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6581 case ${enable_gdbcli} in
6583 if test -d "${srcdir}/cli" ; then
6584 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6585 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6586 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6587 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6588 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6589 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6590 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6591 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6592 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6598 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6599 if test "${enable_gdbmi+set}" = set; then
6600 enableval
="$enable_gdbmi"
6602 case "${enable_gdbmi}" in
6604 "") enable_gdbmi
=yes ;;
6606 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6614 case ${enable_gdbmi} in
6616 if test -d "${srcdir}/mi" ; then
6617 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6618 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6619 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6620 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6621 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6622 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6623 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6624 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6625 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6630 # Configure UI_OUT by default (before 5.2 it can be disabled)
6631 # It must be configured if gdbmi is configured
6636 # Check whether --with-uiout or --without-uiout was given.
6637 if test "${with_uiout+set}" = set; then
6638 withval
="$with_uiout"
6639 case "${withval}" in
6640 yes) want_uiout
=true
;;
6641 no
) if test $enable_gdbmi = yes; then
6642 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6646 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6652 if test $want_uiout = true
; then
6653 UIOUT_CFLAGS
="-DUI_OUT=1"
6656 # Check whether --enable-tui or --disable-tui was given.
6657 if test "${enable_tui+set}" = set; then
6658 enableval
="$enable_tui"
6660 case "${enable_tui}" in
6662 "") enable_tui
=yes ;;
6664 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6670 case ${enable_tui} in
6672 if test -d "${srcdir}/tui" ; then
6673 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6674 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6675 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6676 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6677 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6678 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6679 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6680 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6681 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6686 # Check whether --enable-netrom or --disable-netrom was given.
6687 if test "${enable_netrom+set}" = set; then
6688 enableval
="$enable_netrom"
6689 case "${enableval}" in
6690 yes) enable_netrom
=yes ;;
6691 no
) enable_netrom
=no
;;
6692 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6697 if test "${enable_netrom}" = "yes"; then
6698 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6699 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6703 # NOTE: Don't add -Wall or -Wunused, they both include
6704 # -Wunused-parameter which reports bogus warnings.
6705 # NOTE: If you add to this list, remember to update
6706 # gdb/doc/gdbint.texinfo.
6707 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6708 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6709 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6710 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6711 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6712 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6713 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6714 # -Woverloaded-virtual -Winline -Werror"
6715 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6716 if test "${enable_build_warnings+set}" = set; then
6717 enableval
="$enable_build_warnings"
6718 case "${enableval}" in
6720 no
) build_warnings
="-w";;
6721 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6722 build_warnings
="${build_warnings} ${t}";;
6723 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6724 build_warnings
="${t} ${build_warnings}";;
6725 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6727 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6728 echo "Setting compiler warning flags = $build_warnings" 6>&1
6731 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6732 if test "${enable_gdb_build_warnings+set}" = set; then
6733 enableval
="$enable_gdb_build_warnings"
6734 case "${enableval}" in
6736 no
) build_warnings
="-w";;
6737 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6738 build_warnings
="${build_warnings} ${t}";;
6739 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6740 build_warnings
="${t} ${build_warnings}";;
6741 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6743 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6744 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6749 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6751 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6752 echo "configure:6753: checking compiler warning flags" >&5
6753 # Separate out the -Werror flag as some files just cannot be
6754 # compiled with it enabled.
6755 for w
in ${build_warnings}; do
6757 -Werr*) WERROR_CFLAGS
=-Werror ;;
6758 *) # Check that GCC accepts it
6759 saved_CFLAGS
="$CFLAGS"
6761 cat > conftest.
$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6769 if { (eval echo configure
:6770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6771 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6773 echo "configure: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6777 CFLAGS
="$saved_CFLAGS"
6780 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6790 # Check whether --with-mmalloc or --without-mmalloc was given.
6791 if test "${with_mmalloc+set}" = set; then
6792 withval
="$with_mmalloc"
6793 case "${withval}" in
6794 yes) want_mmalloc
=true
;;
6795 no
) want_mmalloc
=false
;;
6796 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6802 if test x
$want_mmalloc = xtrue
; then
6803 cat >> confdefs.h
<<\EOF
6804 #define USE_MMALLOC 1
6807 cat >> confdefs.h
<<\EOF
6808 #define MMCHECK_FORCE 1
6811 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6812 MMALLOC
='../mmalloc/libmmalloc.a'
6815 # Check whether --with-included-regex or --without-included-regex was given.
6816 if test "${with_included_regex+set}" = set; then
6817 withval
="$with_included_regex"
6818 case "${withval}" in
6819 yes) want_included_regex
=true
;;
6820 no
) want_included_regex
=false
;;
6821 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6824 want_included_regex
=true
6827 if test $want_included_regex = false
; then
6828 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6829 echo "configure:6830: checking for GNU regex" >&5
6830 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 cat > conftest.
$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 #include <gnu-versions.h>
6837 #include <sys/types.h>
6840 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6841 #error No valid GNU regex.
6846 if { (eval echo configure
:6847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6848 gdb_cv_have_gnu_regex
=yes
6850 echo "configure: failed program was:" >&5
6851 cat conftest.
$ac_ext >&5
6853 gdb_cv_have_gnu_regex
=no
6858 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6859 if test $gdb_cv_have_gnu_regex = no
; then
6860 want_included_regex
=true
6864 if test x
${want_included_regex} = xtrue
; then
6866 cat >> confdefs.h
<<\EOF
6867 #define USE_INCLUDED_REGEX 1
6873 # In the Cygwin environment, we need some additional flags.
6874 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6875 echo "configure:6876: checking for cygwin" >&5
6876 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6877 echo $ac_n "(cached) $ac_c" 1>&6
6879 cat > conftest.
$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6883 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6888 egrep "lose" >/dev
/null
2>&1; then
6890 gdb_cv_os_cygwin
=yes
6899 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6902 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6904 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6905 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6910 if test x
$gdb_host = xgo32
; then
6913 if test x
$gdb_cv_os_cygwin = xyes
; then
6914 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6917 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6918 echo "configure:6919: checking for tgetent in -lncurses" >&5
6919 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 ac_save_LIBS
="$LIBS"
6924 LIBS
="-lncurses $LIBS"
6925 cat > conftest.
$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6937 if { (eval echo configure
:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6939 eval "ac_cv_lib_$ac_lib_var=yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.
$ac_ext >&5
6944 eval "ac_cv_lib_$ac_lib_var=no"
6947 LIBS
="$ac_save_LIBS"
6950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6954 echo "$ac_t""no" 1>&6
6955 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6956 echo "configure:6957: checking for tgetent in -lHcurses" >&5
6957 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6959 echo $ac_n "(cached) $ac_c" 1>&6
6961 ac_save_LIBS
="$LIBS"
6962 LIBS
="-lHcurses $LIBS"
6963 cat > conftest.
$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 /* Override any gcc2 internal prototype to avoid an error. */
6967 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6975 if { (eval echo configure
:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6977 eval "ac_cv_lib_$ac_lib_var=yes"
6979 echo "configure: failed program was:" >&5
6980 cat conftest.
$ac_ext >&5
6982 eval "ac_cv_lib_$ac_lib_var=no"
6985 LIBS
="$ac_save_LIBS"
6988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6989 echo "$ac_t""yes" 1>&6
6992 echo "$ac_t""no" 1>&6
6993 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6994 echo "configure:6995: checking for tgetent in -ltermlib" >&5
6995 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6999 ac_save_LIBS
="$LIBS"
7000 LIBS
="-ltermlib $LIBS"
7001 cat > conftest.
$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7013 if { (eval echo configure
:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7015 eval "ac_cv_lib_$ac_lib_var=yes"
7017 echo "configure: failed program was:" >&5
7018 cat conftest.
$ac_ext >&5
7020 eval "ac_cv_lib_$ac_lib_var=no"
7023 LIBS
="$ac_save_LIBS"
7026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7027 echo "$ac_t""yes" 1>&6
7030 echo "$ac_t""no" 1>&6
7031 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
7032 echo "configure:7033: checking for tgetent in -ltermcap" >&5
7033 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
7034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 ac_save_LIBS
="$LIBS"
7038 LIBS
="-ltermcap $LIBS"
7039 cat > conftest.
$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* Override any gcc2 internal prototype to avoid an error. */
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7051 if { (eval echo configure
:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7053 eval "ac_cv_lib_$ac_lib_var=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 eval "ac_cv_lib_$ac_lib_var=no"
7061 LIBS
="$ac_save_LIBS"
7064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7068 echo "$ac_t""no" 1>&6
7069 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
7070 echo "configure:7071: checking for tgetent in -lcurses" >&5
7071 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
7072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7075 ac_save_LIBS
="$LIBS"
7076 LIBS
="-lcurses $LIBS"
7077 cat > conftest.
$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7080 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7089 if { (eval echo configure
:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7091 eval "ac_cv_lib_$ac_lib_var=yes"
7093 echo "configure: failed program was:" >&5
7094 cat conftest.
$ac_ext >&5
7096 eval "ac_cv_lib_$ac_lib_var=no"
7099 LIBS
="$ac_save_LIBS"
7102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7106 echo "$ac_t""no" 1>&6
7107 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
7108 echo "configure:7109: checking for tgetent in -lterminfo" >&5
7109 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
7110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7111 echo $ac_n "(cached) $ac_c" 1>&6
7113 ac_save_LIBS
="$LIBS"
7114 LIBS
="-lterminfo $LIBS"
7115 cat > conftest.
$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7118 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7127 if { (eval echo configure
:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7129 eval "ac_cv_lib_$ac_lib_var=yes"
7131 echo "configure: failed program was:" >&5
7132 cat conftest.
$ac_ext >&5
7134 eval "ac_cv_lib_$ac_lib_var=no"
7137 LIBS
="$ac_save_LIBS"
7140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7144 echo "$ac_t""no" 1>&6
7158 if test "x$TERM_LIB" = x
7160 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
7166 # libreadline needs libuser32.a in a cygwin environment
7168 if test x
$gdb_cv_os_cygwin = xyes
; then
7169 WIN32LIBS
="-luser32"
7171 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
7177 LIBGUI
="../libgui/src/libgui.a"
7178 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
7182 # Check whether --with-cpu or --without-cpu was given.
7183 if test "${with_cpu+set}" = set; then
7186 powerpc-
* | powerpcle-
* )
7187 ## It would be nice to keep this table in sync with the one in
7189 case "${with_cpu}" in
7190 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
7192 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
7194 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
7195 ## These are all RS6000 variants, as far as GDB is concerned.
7205 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
7211 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
7214 cat >> confdefs.h
<<EOF
7215 #define TARGET_CPU_DEFAULT "${with_cpu}"
7223 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7224 if test "${enable_gdbtk+set}" = set; then
7225 enableval
="$enable_gdbtk"
7226 case "${enableval}" in
7230 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7233 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7241 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7245 # Default is on for everything but go32 and Cygwin
7250 if test -d "${srcdir}/gdbtk" ; then
7266 if test "${enable_gdbtk}" = "yes"; then
7268 # Gdbtk must have an absolute path to srcdir in order to run
7269 # properly when not installed.
7277 # Ok, lets find the tcl configuration
7278 # First, look for one uninstalled.
7279 # the alternative search directory is invoked by --with-tclconfig
7282 if test x
"${no_tcl}" = x
; then
7283 # we reset no_tcl in case something fails here
7285 # Check whether --with-tclconfig or --without-tclconfig was given.
7286 if test "${with_tclconfig+set}" = set; then
7287 withval
="$with_tclconfig"
7288 with_tclconfig
=${withval}
7291 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7292 echo "configure:7293: checking for Tcl configuration" >&5
7293 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7298 # First check to see if --with-tclconfig was specified.
7299 if test x
"${with_tclconfig}" != x
; then
7300 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7301 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
7303 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7307 # then check for a private Tcl installation
7308 if test x
"${ac_cv_c_tclconfig}" = x
; then
7311 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7313 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7315 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7316 if test -f "$i/${configdir}/tclConfig.sh" ; then
7317 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7322 # check in a few common install locations
7323 if test x
"${ac_cv_c_tclconfig}" = x
; then
7324 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7325 if test -f "$i/tclConfig.sh" ; then
7326 ac_cv_c_tclconfig
=`(cd $i; pwd)`
7331 # check in a few other private locations
7332 if test x
"${ac_cv_c_tclconfig}" = x
; then
7335 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7336 if test -f "$i/${configdir}/tclConfig.sh" ; then
7337 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7345 if test x
"${ac_cv_c_tclconfig}" = x
; then
7346 TCLCONFIG
="# no Tcl configs found"
7347 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7350 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
7351 echo "$ac_t""found $TCLCONFIG" 1>&6
7355 if test -z "${no_tcl}"; then
7385 # Ok, lets find the tk configuration
7386 # First, look for one uninstalled.
7387 # the alternative search directory is invoked by --with-tkconfig
7390 if test x
"${no_tk}" = x
; then
7391 # we reset no_tk in case something fails here
7393 # Check whether --with-tkconfig or --without-tkconfig was given.
7394 if test "${with_tkconfig+set}" = set; then
7395 withval
="$with_tkconfig"
7396 with_tkconfig
=${withval}
7399 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7400 echo "configure:7401: checking for Tk configuration" >&5
7401 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7406 # First check to see if --with-tkconfig was specified.
7407 if test x
"${with_tkconfig}" != x
; then
7408 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7409 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7411 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7415 # then check for a private Tk library
7416 if test x
"${ac_cv_c_tkconfig}" = x
; then
7419 `ls -dr ../tk[4-9]* 2>/dev/null` \
7421 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7423 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7424 if test -f "$i/${configdir}/tkConfig.sh" ; then
7425 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7430 # check in a few common install locations
7431 if test x
"${ac_cv_c_tkconfig}" = x
; then
7432 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7433 if test -f "$i/tkConfig.sh" ; then
7434 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7439 # check in a few other private locations
7440 if test x
"${ac_cv_c_tkconfig}" = x
; then
7443 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7444 if test -f "$i/${configdir}/tkConfig.sh" ; then
7445 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7453 if test x
"${ac_cv_c_tkconfig}" = x
; then
7454 TKCONFIG
="# no Tk configs found"
7455 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7458 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7459 echo "$ac_t""found $TKCONFIG" 1>&6
7465 # now look for Tcl library stuff
7476 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
7478 # If $no_tk is nonempty, then we can't do Tk, and there is no
7479 # point to doing Tcl.
7480 if test -z "${no_tk}"; then
7482 if test -f "$TKCONFIG" ; then
7500 # Ok, lets find the tcl source trees so we can use the headers
7501 # Warning: transition of version 9 to 10 will break this algorithm
7502 # because 10 sorts before 9. We also look for just tcl. We have to
7503 # be careful that we don't match stuff like tclX by accident.
7504 # the alternative search directory is involked by --with-tclinclude
7508 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7509 echo "configure:7510: checking for Tcl private headers. dir=${configdir}" >&5
7510 # Check whether --with-tclinclude or --without-tclinclude was given.
7511 if test "${with_tclinclude+set}" = set; then
7512 withval
="$with_tclinclude"
7513 with_tclinclude
=${withval}
7516 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7520 # first check to see if --with-tclinclude was specified
7521 if test x
"${with_tclinclude}" != x
; then
7522 if test -f ${with_tclinclude}/tclInt.h
; then
7523 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7524 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7525 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7527 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7531 # next check if it came with Tcl configuration file
7532 if test x
"${ac_cv_c_tclconfig}" = x
; then
7533 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7534 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7538 # next check in private source directory
7540 # since ls returns lowest version numbers first, reverse its output
7541 if test x
"${ac_cv_c_tclh}" = x
; then
7544 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7545 ${srcdir}/..
/..
/tcl \
7546 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7547 ${srcdir}/..
/..
/..
/tcl \
7548 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7549 if test -f $i/generic
/tclInt.h
; then
7550 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7555 # finally check in a few common install locations
7557 # since ls returns lowest version numbers first, reverse its output
7558 if test x
"${ac_cv_c_tclh}" = x
; then
7560 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7561 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7562 /usr
/local
/src
/tcl \
7563 /usr
/local
/lib
/tcl \
7564 ${prefix}/include
; do
7565 if test -f $i/generic
/tclInt.h
; then
7566 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7571 # see if one is installed
7572 if test x
"${ac_cv_c_tclh}" = x
; then
7573 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7574 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7575 echo "configure:7576: checking for tclInt.h" >&5
7576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7579 cat > conftest.
$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7585 { (eval echo configure
:7586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7586 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7587 if test -z "$ac_err"; then
7589 eval "ac_cv_header_$ac_safe=yes"
7592 echo "configure: failed program was:" >&5
7593 cat conftest.
$ac_ext >&5
7595 eval "ac_cv_header_$ac_safe=no"
7599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7600 echo "$ac_t""yes" 1>&6
7601 ac_cv_c_tclh
=installed
7603 echo "$ac_t""no" 1>&6
7611 if test x
"${ac_cv_c_tclh}" = x
; then
7612 TCLHDIR
="# no Tcl private headers found"
7613 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7615 if test x
"${ac_cv_c_tclh}" != x
; then
7617 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7618 echo "$ac_t""is installed" 1>&6
7621 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7622 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7623 TCLHDIR
="-I${ac_cv_c_tclh}"
7631 # Ok, lets find the tk source trees so we can use the headers
7632 # If the directory (presumably symlink) named "tk" exists, use that one
7633 # in preference to any others. Same logic is used when choosing library
7634 # and again with Tcl. The search order is the best place to look first, then in
7635 # decreasing significance. The loop breaks if the trigger file is found.
7636 # Note the gross little conversion here of srcdir by cd'ing to the found
7637 # directory. This converts the path from a relative to an absolute, so
7638 # recursive cache variables for the path will work right. We check all
7639 # the possible paths in one loop rather than many seperate loops to speed
7641 # the alternative search directory is involked by --with-tkinclude
7644 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7645 echo "configure:7646: checking for Tk private headers" >&5
7646 # Check whether --with-tkinclude or --without-tkinclude was given.
7647 if test "${with_tkinclude+set}" = set; then
7648 withval
="$with_tkinclude"
7649 with_tkinclude
=${withval}
7652 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7656 # first check to see if --with-tkinclude was specified
7657 if test x
"${with_tkinclude}" != x
; then
7658 if test -f ${with_tkinclude}/tk.h
; then
7659 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7660 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7661 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7663 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7667 # next check if it came with Tk configuration file
7668 if test x
"${ac_cv_c_tkconfig}" = x
; then
7669 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7670 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7674 # next check in private source directory
7676 # since ls returns lowest version numbers first, reverse its output
7677 if test x
"${ac_cv_c_tkh}" = x
; then
7680 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7681 ${srcdir}/..
/..
/tk \
7682 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7683 ${srcdir}/..
/..
/..
/tk \
7684 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7685 if test -f $i/generic
/tk.h
; then
7686 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7691 # finally check in a few common install locations
7693 # since ls returns lowest version numbers first, reverse its output
7694 if test x
"${ac_cv_c_tkh}" = x
; then
7696 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7697 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7700 ${prefix}/include
; do
7701 if test -f $i/generic
/tk.h
; then
7702 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7707 # see if one is installed
7708 if test x
"${ac_cv_c_tkh}" = x
; then
7709 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7710 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7711 echo "configure:7712: checking for tk.h" >&5
7712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7715 cat > conftest.
$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7720 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7721 { (eval echo configure
:7722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7722 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7723 if test -z "$ac_err"; then
7725 eval "ac_cv_header_$ac_safe=yes"
7728 echo "configure: failed program was:" >&5
7729 cat conftest.
$ac_ext >&5
7731 eval "ac_cv_header_$ac_safe=no"
7735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7736 echo "$ac_t""yes" 1>&6
7737 ac_cv_c_tkh
=installed
7739 echo "$ac_t""no" 1>&6
7747 if test x
"${ac_cv_c_tkh}" != x
; then
7749 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7750 echo "$ac_t""is installed" 1>&6
7753 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7754 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7755 TKHDIR
="-I${ac_cv_c_tkh}"
7758 TKHDIR
="# no Tk directory found"
7759 echo "configure: warning: Can't find Tk private headers" 1>&2
7766 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7767 echo "configure:7768: checking for Itcl private headers. srcdir=${srcdir}" >&5
7768 if test x
"${ac_cv_c_itclh}" = x
; then
7769 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7770 if test -f $i/generic
/itcl.h
; then
7771 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7776 if test x
"${ac_cv_c_itclh}" = x
; then
7777 ITCLHDIR
="# no Itcl private headers found"
7778 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7780 if test x
"${ac_cv_c_itclh}" != x
; then
7781 ITCLHDIR
="-I${ac_cv_c_itclh}"
7783 # should always be here
7784 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7789 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7790 echo "configure:7791: checking for Itk private headers. srcdir=${srcdir}" >&5
7791 if test x
"${ac_cv_c_itkh}" = x
; then
7792 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7793 if test -f $i/generic
/itk.h
; then
7794 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7799 if test x
"${ac_cv_c_itkh}" = x
; then
7800 ITKHDIR
="# no Itk private headers found"
7801 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7803 if test x
"${ac_cv_c_itkh}" != x
; then
7804 ITKHDIR
="-I${ac_cv_c_itkh}"
7806 # should always be here
7807 # ITKLIB="../itcl/itk/unix/libitk.a"
7812 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7813 echo "configure:7814: checking for Tix private headers. srcdir=${srcdir}" >&5
7814 if test x
"${ac_cv_c_tixh}" = x
; then
7815 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
7816 if test -f $i/generic
/tix.h
; then
7817 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
7822 if test x
"${ac_cv_c_tixh}" = x
; then
7823 TIXHDIR
="# no Tix private headers found"
7824 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7826 if test x
"${ac_cv_c_tixh}" != x
; then
7827 TIXHDIR
="-I${ac_cv_c_tixh}"
7833 # now look for Tk library stuff
7844 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
7846 # now look for Itcl library stuff
7850 # Ok, lets find the itcl configuration
7851 # First, look for one uninstalled.
7852 # the alternative search directory is invoked by --with-itclconfig
7855 if test x
"${no_itcl}" = x
; then
7856 # we reset no_itcl in case something fails here
7858 # Check whether --with-itclconfig or --without-itclconfig was given.
7859 if test "${with_itclconfig+set}" = set; then
7860 withval
="$with_itclconfig"
7861 with_itclconfig
=${withval}
7864 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7865 echo "configure:7866: checking for Itcl configuration" >&5
7866 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7871 # First check to see if --with-itclconfig was specified.
7872 if test x
"${with_itclconfig}" != x
; then
7873 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7874 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7876 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7880 # then check for a private Itcl library
7881 if test x
"${ac_cv_c_itclconfig}" = x
; then
7884 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7886 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7888 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7889 if test -f "$i/itclConfig.sh" ; then
7890 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7895 # check in a few common install locations
7896 if test x
"${ac_cv_c_itclconfig}" = x
; then
7897 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7898 if test -f "$i/itclConfig.sh" ; then
7899 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7904 # check in a few other private locations
7905 if test x
"${ac_cv_c_itclconfig}" = x
; then
7907 ${srcdir}/..
/itcl
/itcl \
7908 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7909 if test -f "$i/itclConfig.sh" ; then
7910 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7918 if test x
"${ac_cv_c_itclconfig}" = x
; then
7919 ITCLCONFIG
="# no Itcl configs found"
7920 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7923 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7924 echo "$ac_t""found $ITCLCONFIG" 1>&6
7928 if test -z "${no_itcl}"; then
7930 if test -f "$ITCLCONFIG" ; then
7945 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7946 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
7950 # now look for Itk library stuff
7953 # Ok, lets find the itk configuration
7954 # First, look for one uninstalled.
7955 # the alternative search directory is invoked by --with-itkconfig
7958 if test x
"${no_itk}" = x
; then
7959 # we reset no_itk in case something fails here
7961 # Check whether --with-itkconfig or --without-itkconfig was given.
7962 if test "${with_itkconfig+set}" = set; then
7963 withval
="$with_itkconfig"
7964 with_itkconfig
=${withval}
7967 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7968 echo "configure:7969: checking for Itk configuration" >&5
7969 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7974 # First check to see if --with-itkconfig was specified.
7975 if test x
"${with_itkconfig}" != x
; then
7976 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7977 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7979 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7983 # then check for a private Itk library
7984 if test x
"${ac_cv_c_itkconfig}" = x
; then
7987 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7989 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7991 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7992 if test -f "$i/itkConfig.sh" ; then
7993 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7998 # check in a few common install locations
7999 if test x
"${ac_cv_c_itkconfig}" = x
; then
8000 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8001 if test -f "$i/itkConfig.sh" ; then
8002 ac_cv_c_itkconfig
=`(cd $i; pwd)`
8007 # check in a few other private locations
8008 if test x
"${ac_cv_c_itkconfig}" = x
; then
8010 ${srcdir}/..
/itcl
/itk \
8011 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
8012 if test -f "$i/itkConfig.sh" ; then
8013 ac_cv_c_itkconfig
=`(cd $i; pwd)`
8021 if test x
"${ac_cv_c_itkconfig}" = x
; then
8022 ITKCONFIG
="# no Itk configs found"
8023 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
8026 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
8027 echo "$ac_t""found $ITKCONFIG" 1>&6
8032 if test -z "${no_itcl}"; then
8034 if test -f "$ITKCONFIG" ; then
8049 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
8050 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
8053 # now look for Tix library stuff
8056 # Ok, lets find the tix configuration
8057 # First, look for one uninstalled.
8058 # the alternative search directory is invoked by --with-itkconfig
8061 if test x
"${no_tix}" = x
; then
8062 # we reset no_tix in case something fails here
8064 # Check whether --with-tixconfig or --without-tixconfig was given.
8065 if test "${with_tixconfig+set}" = set; then
8066 withval
="$with_tixconfig"
8067 with_tixconfig
=${withval}
8070 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
8071 echo "configure:8072: checking for Tix configuration" >&5
8072 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
8073 echo $ac_n "(cached) $ac_c" 1>&6
8077 # First check to see if --with-tixconfig was specified.
8078 if test x
"${with_tixconfig}" != x
; then
8079 if test -f "${with_tixconfig}/tixConfig.sh" ; then
8080 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
8082 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
8086 # then check for a private Tix library
8087 if test x
"${ac_cv_c_tixconfig}" = x
; then
8090 `ls -dr ../tix 2>/dev/null` \
8092 `ls -dr ../../tix 2>/dev/null` \
8094 `ls -dr ../../../tix 2>/dev/null` ; do
8095 echo "**** Looking at $i - with ${configdir}"
8096 if test -f "$i/tixConfig.sh" ; then
8097 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8102 # check in a few common install locations
8103 if test x
"${ac_cv_c_tixconfig}" = x
; then
8104 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8105 echo "**** Looking at $i"
8106 if test -f "$i/tixConfig.sh" ; then
8107 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8112 # check in a few other private locations
8113 echo "**** Other private locations"
8114 if test x
"${ac_cv_c_tixconfig}" = x
; then
8117 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
8118 echo "**** Looking at $i - with ${configdir}"
8119 if test -f "$i/${configdir}/tixConfig.sh" ; then
8120 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
8128 if test x
"${ac_cv_c_tixconfig}" = x
; then
8129 TIXCONFIG
="# no Tix configs found"
8130 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
8133 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
8134 echo "$ac_t""found $TIXCONFIG" 1>&6
8139 if test -z "${no_tix}"; then
8141 if test -f "$TIXCONFIG" ; then
8152 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
8153 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
8156 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
8157 # Tcl/Tk 8.1 require -fwritable strings. I don't
8158 # know whether 8.2 will or not, but I bet it will.
8159 # I don't have to worry about 7.x since we don't support it.
8161 if test "$GCC" = "yes"; then
8162 if test "$TCL_VERSION" != "8.0" ; then
8163 GDBTK_CFLAGS
="-fwritable-strings"
8167 # Include some libraries that Tcl and Tk want.
8168 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
8169 # Yes, the ordering seems wrong here. But it isn't.
8170 # TK_LIBS is the list of libraries that need to be linked
8171 # after Tcl/Tk. Note that this isn't put into LIBS. If it
8172 # were in LIBS then any link tests after this point would
8173 # try to include things like `$(LIBGUI)', which wouldn't work.
8174 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
8176 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
8177 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
8178 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
8179 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
8180 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
8181 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
8182 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
8183 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
8185 if test x
$gdb_cv_os_cygwin = xyes
; then
8186 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
8187 WIN32LDAPP
="-Wl,--subsystem,console"
8188 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
8209 # If we find X, set shell vars x_includes and x_libraries to the
8210 # paths, otherwise set no_x=yes.
8211 # Uses ac_ vars as temps to allow command line to override cache and checks.
8212 # --without-x overrides everything else, but does not touch the cache.
8213 echo $ac_n "checking for X""... $ac_c" 1>&6
8214 echo "configure:8215: checking for X" >&5
8216 # Check whether --with-x or --without-x was given.
8217 if test "${with_x+set}" = set; then
8222 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8223 if test "x$with_x" = xno
; then
8224 # The user explicitly disabled X.
8227 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8228 # Both variables are already set.
8231 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8232 echo $ac_n "(cached) $ac_c" 1>&6
8234 # One or both of the vars are not set, and there is no cached value.
8235 ac_x_includes
=NO ac_x_libraries
=NO
8237 if mkdir conftestdir
; then
8239 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8240 cat > Imakefile
<<'EOF'
8242 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8244 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8246 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8247 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8248 for ac_extension
in a so sl
; do
8249 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8250 test -f $ac_im_libdir/libX11.
$ac_extension; then
8251 ac_im_usrlibdir
=$ac_im_libdir; break
8254 # Screen out bogus values from the imake configuration. They are
8255 # bogus both because they are the default anyway, and because
8256 # using them would break gcc on systems where it needs fixed includes.
8257 case "$ac_im_incroot" in
8259 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
8261 case "$ac_im_usrlibdir" in
8263 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
8270 if test "$ac_x_includes" = NO
; then
8271 # Guess where to find include files, by looking for this one X11 .h file.
8272 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
8274 # First, try using that file with no special directory specified.
8275 cat > conftest.
$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 #include <$x_direct_test_include>
8280 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8281 { (eval echo configure
:8282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8282 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8283 if test -z "$ac_err"; then
8285 # We can compile using X headers with no special include directory.
8289 echo "configure: failed program was:" >&5
8290 cat conftest.
$ac_ext >&5
8292 # Look for the header file in a standard set of common directories.
8293 # Check X11 before X11Rn because it is often a symlink to the current release.
8296 /usr
/X11R
6/include \
8297 /usr
/X11R
5/include \
8298 /usr
/X11R
4/include \
8301 /usr
/include
/X11R6 \
8302 /usr
/include
/X11R5 \
8303 /usr
/include
/X11R4 \
8305 /usr
/local
/X11
/include \
8306 /usr
/local
/X11R
6/include \
8307 /usr
/local
/X11R
5/include \
8308 /usr
/local
/X11R
4/include \
8310 /usr
/local
/include
/X11 \
8311 /usr
/local
/include
/X11R6 \
8312 /usr
/local
/include
/X11R5 \
8313 /usr
/local
/include
/X11R4 \
8317 /usr
/XFree86
/include
/X11 \
8320 /usr
/local
/include \
8321 /usr
/unsupported
/include \
8322 /usr
/athena
/include \
8323 /usr
/local
/x11r
5/include \
8324 /usr
/lpp
/Xamples
/include \
8326 /usr
/openwin
/include \
8327 /usr
/openwin
/share
/include \
8330 if test -r "$ac_dir/$x_direct_test_include"; then
8331 ac_x_includes
=$ac_dir
8337 fi # $ac_x_includes = NO
8339 if test "$ac_x_libraries" = NO
; then
8340 # Check for the libraries.
8342 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
8343 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
8345 # See if we find them without any special options.
8346 # Don't add to $LIBS permanently.
8347 ac_save_LIBS
="$LIBS"
8348 LIBS
="-l$x_direct_test_library $LIBS"
8349 cat > conftest.
$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8354 ${x_direct_test_function}()
8357 if { (eval echo configure
:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8359 LIBS
="$ac_save_LIBS"
8360 # We can link X programs with no special library path.
8363 echo "configure: failed program was:" >&5
8364 cat conftest.
$ac_ext >&5
8366 LIBS
="$ac_save_LIBS"
8367 # First see if replacing the include by lib works.
8368 # Check X11 before X11Rn because it is often a symlink to the current release.
8369 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8380 /usr
/local
/X11
/lib \
8381 /usr
/local
/X11R
6/lib \
8382 /usr
/local
/X11R
5/lib \
8383 /usr
/local
/X11R
4/lib \
8385 /usr
/local
/lib
/X11 \
8386 /usr
/local
/lib
/X11R6 \
8387 /usr
/local
/lib
/X11R5 \
8388 /usr
/local
/lib
/X11R4 \
8392 /usr
/XFree86
/lib
/X11 \
8396 /usr
/unsupported
/lib \
8398 /usr
/local
/x11r
5/lib \
8399 /usr
/lpp
/Xamples
/lib \
8403 /usr
/openwin
/share
/lib \
8406 for ac_extension
in a so sl
; do
8407 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8408 ac_x_libraries
=$ac_dir
8415 fi # $ac_x_libraries = NO
8417 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8418 # Didn't find X anywhere. Cache the known absence of X.
8419 ac_cv_have_x
="have_x=no"
8421 # Record where we found X for the cache.
8422 ac_cv_have_x
="have_x=yes \
8423 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8427 eval "$ac_cv_have_x"
8430 if test "$have_x" != yes; then
8431 echo "$ac_t""$have_x" 1>&6
8434 # If each of the values was on the command line, it overrides each guess.
8435 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8436 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8437 # Update the cache value to reflect the command line values.
8438 ac_cv_have_x
="have_x=yes \
8439 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8440 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8445 # Unlike the sim directory, whether a simulator is linked is controlled by
8446 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8447 # This code just checks for a few cases where we'd like to ignore those
8448 # definitions, even when they're present in the '.mt' file. These cases
8449 # are when --disable-sim is specified, or if the simulator directory is
8450 # not part of the source tree.
8452 # Check whether --enable-sim or --disable-sim was given.
8453 if test "${enable_sim+set}" = set; then
8454 enableval
="$enable_sim"
8455 echo "enable_sim = $enable_sim";
8456 echo "enableval = ${enableval}";
8457 case "${enableval}" in
8458 yes) ignore_sim
=false
;;
8459 no
) ignore_sim
=true
;;
8460 *) ignore_sim
=false
;;
8467 if test ! -d "${srcdir}/../sim"; then
8471 if test "${ignore_sim}" = "true"; then
8473 IGNORE_SIM_OBS
="SIM_OBS="
8477 cat >> confdefs.h
<<\EOF
8497 # Begin stuff to support --enable-shared
8498 # Check whether --enable-shared or --disable-shared was given.
8499 if test "${enable_shared+set}" = set; then
8500 enableval
="$enable_shared"
8501 case "${enableval}" in
8510 # If we have shared libraries, try to set rpath reasonably.
8511 if test "${shared}" = "true"; then
8514 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8516 *-*-irix5* |
*-*-irix6*)
8517 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8521 *-*-linux* |
*-pc-linux-gnu*)
8522 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8525 HLDFLAGS
='-R $(libdir)'
8528 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
8533 # On SunOS, if the linker supports the -rpath option, use it to
8534 # prevent ../bfd and ../opcodes from being included in the run time
8538 echo 'main () { }' > conftest.c
8539 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8540 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8542 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8544 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8546 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8548 elif test "${shared}" = "true"; then
8549 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8551 HLDFLAGS
='-Wl,-rpath='
8553 rm -f conftest.t conftest.c conftest
8558 # End stuff to support --enable-shared
8560 # target_subdir is used by the testsuite to find the target libraries.
8562 if test "${host}" != "${target}"; then
8563 target_subdir
="${target_alias}/"
8568 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8569 if test ! -f ${host_makefile_frag}; then
8570 # When building a native debuger the .mh file containing things
8571 # like NATDEPFILES is needed. Cross debuggers don't need .mh
8572 # since it no longer contains anything useful.
8573 if test "${target}" = "${host}"; then
8574 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
8576 host_makefile_frag
=/dev
/null
8579 frags
="$frags $host_makefile_frag"
8581 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8582 if test ! -f ${target_makefile_frag}; then
8583 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8585 frags
="$frags $target_makefile_frag"
8592 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8593 ' ${host_makefile_frag}`
8595 targetfile
=`sed -n '
8596 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8597 ' ${target_makefile_frag}`
8599 GDB_MULTI_ARCH
=`sed -n '
8600 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8601 ' ${target_makefile_frag}`
8603 if test "${target}" = "${host}"; then
8604 # We pick this up from the host configuration file (.mh) because we
8605 # do not have a native configuration Makefile fragment.
8606 nativefile
=`sed -n '
8607 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8608 ' ${host_makefile_frag}`
8612 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8613 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8614 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8615 # will be the default.
8616 if test x
"${GDB_MULTI_ARCH}" = x
; then
8617 case "${gdb_multi_arch}" in
8618 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8619 no
) GDB_MULTI_ARCH
=0 ;;
8620 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8623 if test x
"${GDB_MULTI_ARCH}" != x
; then
8624 cat >> confdefs.h
<<EOF
8625 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8629 # Warn the user when they use an old practice
8630 case "${GDB_MULTI_ARCH}" in
8632 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8633 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8634 GDB_MULTI_ARCH_PURE
)
8635 if test x
"${targetfile}" != x
; then
8636 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8639 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8642 SUBDIRS
="doc testsuite nlm"
8643 if test "${enable_multi_ice}" = "yes"; then
8644 SUBDIRS
="${SUBDIRS} multi-ice"
8647 # ``gdbserver'' can only be built in a native configuration.
8648 if test x
"${target}" = x
"${host}"; then
8649 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
8650 echo "configure:8651: checking whether gdbserver is supported on this host" >&5
8651 if test x
"${build_gdbserver}" = xyes
; then
8652 configdirs
="${configdirs} gdbserver"
8653 SUBDIRS
="${SUBDIRS} gdbserver"
8654 echo "$ac_t""yes" 1>&6
8656 echo "$ac_t""no" 1>&6
8662 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8663 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8671 if test "${hostfile}" != ""; then
8673 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8674 files
="${files} ${GDB_XM_FILE}"
8675 links
="${links} xm.h"
8676 cat >> confdefs.h
<<EOF
8677 #define GDB_XM_FILE ${GDB_XM_FILE}
8685 if test "${targetfile}" != ""; then
8687 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8688 files
="${files} ${GDB_TM_FILE}"
8689 links
="${links} tm.h"
8690 cat >> confdefs.h
<<EOF
8691 #define GDB_TM_FILE ${GDB_TM_FILE}
8699 if test "${nativefile}" != ""; then
8701 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8702 files
="${files} ${GDB_NM_FILE}"
8703 links
="${links} nm.h"
8704 cat >> confdefs.h
<<EOF
8705 #define GDB_NM_FILE ${GDB_NM_FILE}
8711 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8712 echo "configure:8713: checking whether ln -s works" >&5
8713 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8714 echo $ac_n "(cached) $ac_c" 1>&6
8717 if ln -s X conftestdata
2>/dev
/null
8720 ac_cv_prog_LN_S
="ln -s"
8725 LN_S
="$ac_cv_prog_LN_S"
8726 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8727 echo "$ac_t""yes" 1>&6
8729 echo "$ac_t""no" 1>&6
8735 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8736 echo "configure:8737: checking for Cygwin environment" >&5
8737 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8740 cat > conftest.
$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8747 #define __CYGWIN__ __CYGWIN32__
8752 if { (eval echo configure
:8753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8756 echo "configure: failed program was:" >&5
8757 cat conftest.
$ac_ext >&5
8765 echo "$ac_t""$ac_cv_cygwin" 1>&6
8767 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8768 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8769 echo "configure:8770: checking for mingw32 environment" >&5
8770 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8773 cat > conftest.
$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8781 if { (eval echo configure
:8782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8785 echo "configure: failed program was:" >&5
8786 cat conftest.
$ac_ext >&5
8794 echo "$ac_t""$ac_cv_mingw32" 1>&6
8796 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8799 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8800 echo "configure:8801: checking for executable suffix" >&5
8801 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8804 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8808 echo 'int main () { return 0; }' > conftest.
$ac_ext
8810 if { (eval echo configure
:8811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8811 for file in conftest.
*; do
8813 *.c |
*.o |
*.obj
) ;;
8814 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8818 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8821 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8826 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8827 echo "$ac_t""${ac_cv_exeext}" 1>&6
8831 subdirs
="$configdirs"
8834 cat > confcache
<<\EOF
8835 # This file is a shell script that caches the results of configure
8836 # tests run on this system so they can be shared between configure
8837 # scripts and configure runs. It is not useful on other systems.
8838 # If it contains results you don't want to keep, you may remove or edit it.
8840 # By default, configure uses ./config.cache as the cache file,
8841 # creating it if it does not exist already. You can give configure
8842 # the --cache-file=FILE option to use a different cache file; that is
8843 # what configure does when it calls configure scripts in
8844 # subdirectories, so they share the cache.
8845 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8846 # config.status only pays attention to the cache file if you give it the
8847 # --recheck option to rerun configure.
8850 # The following way of writing the cache mishandles newlines in values,
8851 # but we know of no workaround that is simple, portable, and efficient.
8852 # So, don't put newlines in cache variables' values.
8853 # Ultrix sh set writes to stderr and can't be redirected directly,
8854 # and sets the high bit in the cache file unless we assign to the vars.
8856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8858 # `set' does not quote correctly, so add quotes (double-quote substitution
8859 # turns \\\\ into \\, and sed turns \\ into \).
8861 -e "s/'/'\\\\''/g" \
8862 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8865 # `set' quotes correctly as required by POSIX, so do not add quotes.
8866 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8869 if cmp -s $cache_file confcache
; then
8872 if test -w $cache_file; then
8873 echo "updating cache $cache_file"
8874 cat confcache
> $cache_file
8876 echo "not updating unwritable cache $cache_file"
8881 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8883 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8884 # Let make expand exec_prefix.
8885 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8887 # Any assignment to VPATH causes Sun make to only execute
8888 # the first set of double-colon rules, so remove it if not needed.
8889 # If there is a colon in the path, we need to keep it.
8890 if test "x$srcdir" = x.
; then
8891 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8894 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8896 DEFS
=-DHAVE_CONFIG_H
8898 # Without the "./", some shells look in PATH for config.status.
8899 : ${CONFIG_STATUS=./config.status}
8901 echo creating
$CONFIG_STATUS
8902 rm -f $CONFIG_STATUS
8903 cat > $CONFIG_STATUS <<EOF
8905 # Generated automatically by configure.
8906 # Run this file to recreate the current configuration.
8907 # This directory was configured as follows,
8908 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8910 # $0 $ac_configure_args
8912 # Compiler output produced by configure, useful for debugging
8913 # configure, is in ./config.log if it exists.
8915 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8918 case "\$ac_option" in
8919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8920 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8921 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8922 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8923 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8925 -help | --help | --hel | --he | --h)
8926 echo "\$ac_cs_usage"; exit 0 ;;
8927 *) echo "\$ac_cs_usage"; exit 1 ;;
8931 ac_given_srcdir=$srcdir
8932 ac_given_INSTALL="$INSTALL"
8934 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8936 cat >> $CONFIG_STATUS <<EOF
8938 # Protect against being on the right side of a sed subst in config.status.
8939 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8940 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8944 s%@CFLAGS@%$CFLAGS%g
8945 s%@CPPFLAGS@%$CPPFLAGS%g
8946 s%@CXXFLAGS@%$CXXFLAGS%g
8947 s%@FFLAGS@%$FFLAGS%g
8949 s%@LDFLAGS@%$LDFLAGS%g
8951 s%@exec_prefix@%$exec_prefix%g
8952 s%@prefix@%$prefix%g
8953 s%@program_transform_name@%$program_transform_name%g
8954 s%@bindir@%$bindir%g
8955 s%@sbindir@%$sbindir%g
8956 s%@libexecdir@%$libexecdir%g
8957 s%@datadir@%$datadir%g
8958 s%@sysconfdir@%$sysconfdir%g
8959 s%@sharedstatedir@%$sharedstatedir%g
8960 s%@localstatedir@%$localstatedir%g
8961 s%@libdir@%$libdir%g
8962 s%@includedir@%$includedir%g
8963 s%@oldincludedir@%$oldincludedir%g
8964 s%@infodir@%$infodir%g
8965 s%@mandir@%$mandir%g
8966 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8967 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8972 s%@host_alias@%$host_alias%g
8973 s%@host_cpu@%$host_cpu%g
8974 s%@host_vendor@%$host_vendor%g
8975 s%@host_os@%$host_os%g
8976 s%@target@%$target%g
8977 s%@target_alias@%$target_alias%g
8978 s%@target_cpu@%$target_cpu%g
8979 s%@target_vendor@%$target_vendor%g
8980 s%@target_os@%$target_os%g
8982 s%@build_alias@%$build_alias%g
8983 s%@build_cpu@%$build_cpu%g
8984 s%@build_vendor@%$build_vendor%g
8985 s%@build_os@%$build_os%g
8986 s%@SET_MAKE@%$SET_MAKE%g
8987 s%@RANLIB@%$RANLIB%g
8988 s%@ALLOCA@%$ALLOCA%g
8989 s%@USE_NLS@%$USE_NLS%g
8990 s%@MSGFMT@%$MSGFMT%g
8991 s%@GMSGFMT@%$GMSGFMT%g
8992 s%@XGETTEXT@%$XGETTEXT%g
8993 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8994 s%@CATALOGS@%$CATALOGS%g
8995 s%@CATOBJEXT@%$CATOBJEXT%g
8996 s%@DATADIRNAME@%$DATADIRNAME%g
8997 s%@GMOFILES@%$GMOFILES%g
8998 s%@INSTOBJEXT@%$INSTOBJEXT%g
8999 s%@INTLDEPS@%$INTLDEPS%g
9000 s%@INTLLIBS@%$INTLLIBS%g
9001 s%@INTLOBJS@%$INTLOBJS%g
9002 s%@POFILES@%$POFILES%g
9004 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9006 s%@GT_YES@%$GT_YES%g
9007 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9010 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9011 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9012 s%@INSTALL_DATA@%$INSTALL_DATA%g
9014 s%@DLLTOOL@%$DLLTOOL%g
9015 s%@WINDRES@%$WINDRES%g
9018 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
9019 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
9020 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
9021 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
9022 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
9023 s%@MMALLOC@%$MMALLOC%g
9025 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
9026 s%@TERM_LIB@%$TERM_LIB%g
9027 s%@WIN32LIBS@%$WIN32LIBS%g
9028 s%@LIBGUI@%$LIBGUI%g
9029 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
9030 s%@WIN32LDAPP@%$WIN32LDAPP%g
9031 s%@TCL_VERSION@%$TCL_VERSION%g
9032 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
9033 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
9034 s%@TCL_CC@%$TCL_CC%g
9035 s%@TCL_DEFS@%$TCL_DEFS%g
9036 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
9037 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
9038 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
9039 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
9040 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
9041 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
9042 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
9043 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
9044 s%@TCL_RANLIB@%$TCL_RANLIB%g
9045 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
9046 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
9047 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
9048 s%@TK_VERSION@%$TK_VERSION%g
9049 s%@TK_DEFS@%$TK_DEFS%g
9050 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
9051 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
9052 s%@TK_XLIBSW@%$TK_XLIBSW%g
9053 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
9054 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
9055 s%@TCLHDIR@%$TCLHDIR%g
9056 s%@TKHDIR@%$TKHDIR%g
9057 s%@ITCLHDIR@%$ITCLHDIR%g
9058 s%@ITKHDIR@%$ITKHDIR%g
9059 s%@TIXHDIR@%$TIXHDIR%g
9060 s%@ITCL_VERSION@%$ITCL_VERSION%g
9061 s%@ITCL_DEFS@%$ITCL_DEFS%g
9062 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
9063 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
9064 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
9065 s%@ITK_VERSION@%$ITK_VERSION%g
9066 s%@ITK_DEFS@%$ITK_DEFS%g
9067 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
9068 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
9069 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
9070 s%@TIX_VERSION@%$TIX_VERSION%g
9071 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
9072 s%@X_CFLAGS@%$X_CFLAGS%g
9073 s%@X_LDFLAGS@%$X_LDFLAGS%g
9074 s%@X_LIBS@%$X_LIBS%g
9075 s%@TCL_DEPS@%$TCL_DEPS%g
9076 s%@TK_DEPS@%$TK_DEPS%g
9077 s%@ITCLLIB@%$ITCLLIB%g
9078 s%@ITCL_DEPS@%$ITCL_DEPS%g
9079 s%@ITKLIB@%$ITKLIB%g
9080 s%@ITK_DEPS@%$ITK_DEPS%g
9081 s%@TIXLIB@%$TIXLIB%g
9082 s%@TIX_DEPS@%$TIX_DEPS%g
9083 s%@GDBTKLIBS@%$GDBTKLIBS%g
9084 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
9085 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
9086 s%@IGNORE_SIM@%$IGNORE_SIM%g
9087 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
9088 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
9089 s%@CONFIG_OBS@%$CONFIG_OBS%g
9090 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
9091 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
9092 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
9093 s%@CONFIG_INITS@%$CONFIG_INITS%g
9094 s%@CONFIG_ALL@%$CONFIG_ALL%g
9095 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
9096 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
9097 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
9098 s%@HLDFLAGS@%$HLDFLAGS%g
9099 s%@HLDENV@%$HLDENV%g
9100 s%@target_subdir@%$target_subdir%g
9101 /@host_makefile_frag@/r $host_makefile_frag
9102 s%@host_makefile_frag@%%g
9103 /@target_makefile_frag@/r $target_makefile_frag
9104 s%@target_makefile_frag@%%g
9106 s%@SUBDIRS@%$SUBDIRS%g
9111 s%@EXEEXT@%$EXEEXT%g
9112 s%@subdirs@%$subdirs%g
9117 cat >> $CONFIG_STATUS <<\EOF
9119 # Split the substitutions into bite-sized pieces for seds with
9120 # small command number limits, like on Digital OSF/1 and HP-UX.
9121 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9122 ac_file
=1 # Number of current file.
9123 ac_beg
=1 # First line for current file.
9124 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9127 while $ac_more_lines; do
9128 if test $ac_beg -gt 1; then
9129 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9131 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9133 if test ! -s conftest.s
$ac_file; then
9135 rm -f conftest.s
$ac_file
9137 if test -z "$ac_sed_cmds"; then
9138 ac_sed_cmds
="sed -f conftest.s$ac_file"
9140 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9142 ac_file
=`expr $ac_file + 1`
9144 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9147 if test -z "$ac_sed_cmds"; then
9152 cat >> $CONFIG_STATUS <<EOF
9154 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
9156 cat >> $CONFIG_STATUS <<\EOF
9157 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9160 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9161 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9162 *) ac_file_in
="${ac_file}.in" ;;
9165 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9167 # Remove last slash and all that follows it. Not all systems have dirname.
9168 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9169 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9170 # The file is in a subdirectory.
9171 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9172 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9173 # A "../" for each directory in $ac_dir_suffix.
9174 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9176 ac_dir_suffix
= ac_dots
=
9179 case "$ac_given_srcdir" in
9181 if test -z "$ac_dots"; then top_srcdir
=.
9182 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9183 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9185 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9186 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9189 case "$ac_given_INSTALL" in
9190 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9191 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9194 echo creating
"$ac_file"
9196 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9198 *Makefile
*) ac_comsub
="1i\\
9199 # $configure_input" ;;
9203 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9205 s%@configure_input@%$configure_input%g
9206 s%@srcdir@%$srcdir%g
9207 s%@top_srcdir@%$top_srcdir%g
9208 s%@INSTALL@%$INSTALL%g
9209 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9213 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9214 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9216 # ac_d sets the value in "#define NAME VALUE" lines.
9217 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9218 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9221 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9222 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9223 ac_uB
='\([ ]\)%\1#\2define\3'
9226 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9227 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9228 ac_eB
='$%\1#\2define\3'
9232 if test "${CONFIG_HEADERS+set}" != set; then
9234 cat >> $CONFIG_STATUS <<EOF
9235 CONFIG_HEADERS="config.h:config.in"
9237 cat >> $CONFIG_STATUS <<\EOF
9239 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9242 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9243 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9244 *) ac_file_in
="${ac_file}.in" ;;
9247 echo creating
$ac_file
9249 rm -f conftest.frag conftest.
in conftest.out
9250 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9251 cat $ac_file_inputs > conftest.
in
9255 # Transform confdefs.h into a sed script conftest.vals that substitutes
9256 # the proper values into config.h.in to produce config.h. And first:
9257 # Protect against being on the right side of a sed subst in config.status.
9258 # Protect against being in an unquoted here document in config.status.
9260 cat > conftest.hdr
<<\EOF
9263 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9267 sed -n -f conftest.hdr confdefs.h > conftest.vals
9270 # This sed command replaces #undef with comments. This is necessary, for
9271 # example, in the case of _POSIX_SOURCE, which is predefined and required
9272 # on some systems where configure will not decide to define it.
9273 cat >> conftest.vals <<\EOF
9274 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9277 # Break up conftest.vals because some shells have a limit on
9278 # the size of here documents, and old seds have small limits too.
9283 ac_lines=`grep -c . conftest.vals
`
9284 # grep -c gives empty output for an empty file on some AIX systems.
9285 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9286 # Write a limited-size here document to conftest.frag.
9287 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9288 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9290 sed -f conftest.frag conftest.in > conftest.out
9292 mv conftest.out conftest.in
9294 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9296 mv conftest.tail conftest.vals
9300 cat >> $CONFIG_STATUS <<\EOF
9301 rm -f conftest.frag conftest.h
9302 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9303 cat conftest.in >> conftest.h
9305 if cmp -s $ac_file conftest.h 2>/dev/null; then
9306 echo "$ac_file is unchanged"
9309 # Remove last slash and all that follows it. Not all systems have dirname.
9310 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9311 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9312 # The file is in a subdirectory.
9313 test ! -d "$ac_dir" && mkdir "$ac_dir"
9316 mv conftest.h $ac_file
9322 cat >> $CONFIG_STATUS <<EOF
9327 cat >> $CONFIG_STATUS <<\EOF
9328 srcdir=$ac_given_srcdir
9329 while test -n "$ac_sources"; do
9330 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9331 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9333 echo "linking $srcdir/$ac_source to $ac_dest"
9335 if test ! -r $srcdir/$ac_source; then
9336 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9340 # Make relative symlinks.
9341 # Remove last slash and all that follows it. Not all systems have dirname.
9342 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9343 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9344 # The dest file is in a subdirectory.
9345 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9346 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9347 # A "../" for each directory in $ac_dest_dir_suffix.
9348 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9350 ac_dest_dir_suffix= ac_dots=
9354 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9355 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9358 # Make a symlink if possible; otherwise try a hard link.
9359 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9360 ln $srcdir/$ac_source $ac_dest; then :
9362 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9366 cat >> $CONFIG_STATUS <<EOF
9368 gdb_host_cpu=$gdb_host_cpu
9369 gdb_target_cpu=$gdb_target_cpu
9370 nativefile=$nativefile
9373 cat >> $CONFIG_STATUS <<\EOF
9375 if test "${nativefile}" = ""; then
9377 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
9378 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
9379 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
9381 mv -f Makefile.tem Makefile
9384 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9385 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9386 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9387 mv -f Makefile.tmp Makefile
9390 case x$CONFIG_HEADERS in
9391 xconfig.h:config.in)
9397 chmod +x $CONFIG_STATUS
9398 rm -fr confdefs* $ac_clean_files
9399 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9401 if test "$no_recursion" != yes; then
9403 # Remove --cache-file and --srcdir arguments so they do not pile up.
9404 ac_sub_configure_args=
9406 for ac_arg in $ac_configure_args; do
9407 if test -n "$ac_prev"; then
9412 -cache-file | --cache-file | --cache-fil | --cache-fi \
9413 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9414 ac_prev=cache_file ;;
9415 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9416 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9418 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9420 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9422 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9426 for ac_config_dir in $configdirs; do
9428 # Do not complain, so a configure script can configure whichever
9429 # parts of a large source tree are present.
9430 if test ! -d $srcdir/$ac_config_dir; then
9434 echo configuring in $ac_config_dir
9439 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9441 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9449 # A "../" for each directory in /$ac_config_dir.
9450 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9453 .) # No --srcdir option. We are building in place.
9454 ac_sub_srcdir=$srcdir ;;
9455 /*) # Absolute path.
9456 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9458 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9461 # Check for guested configure; otherwise get Cygnus style configure.
9462 if test -f $ac_sub_srcdir/configure; then
9463 ac_sub_configure=$ac_sub_srcdir/configure
9464 elif test -f $ac_sub_srcdir/configure.in; then
9465 ac_sub_configure=$ac_configure
9467 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9471 # The recursion is here.
9472 if test -n "$ac_sub_configure"; then
9474 # Make the cache file name correct relative to the subdirectory.
9475 case "$cache_file" in
9476 /*) ac_sub_cache_file=$cache_file ;;
9478 ac_sub_cache_file="$ac_dots$cache_file" ;;
9480 case "$ac_given_INSTALL" in
9481 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9482 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9485 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9486 # The eval makes quoting arguments work.
9487 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9490 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }