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
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host |
--host |
--hos |
--ho)
244 -host=* |
--host=* |
--hos=* |
--ho=*)
247 -includedir |
--includedir |
--includedi |
--included |
--include \
248 |
--includ |
--inclu |
--incl |
--inc)
249 ac_prev
=includedir
;;
250 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
251 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
252 includedir
="$ac_optarg" ;;
254 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
256 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
257 infodir
="$ac_optarg" ;;
259 -libdir |
--libdir |
--libdi |
--libd)
261 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
262 libdir
="$ac_optarg" ;;
264 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
265 |
--libexe |
--libex |
--libe)
266 ac_prev
=libexecdir
;;
267 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
268 |
--libexe=* |
--libex=* |
--libe=*)
269 libexecdir
="$ac_optarg" ;;
271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
272 |
--localstate |
--localstat |
--localsta |
--localst \
273 |
--locals |
--local |
--loca |
--loc |
--lo)
274 ac_prev
=localstatedir
;;
275 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
276 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
277 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
278 localstatedir
="$ac_optarg" ;;
280 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
282 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
283 mandir
="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
293 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
294 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
297 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
298 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
299 |
--oldin |
--oldi |
--old |
--ol |
--o)
300 ac_prev
=oldincludedir
;;
301 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
302 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
303 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
304 oldincludedir
="$ac_optarg" ;;
306 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
308 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
309 prefix
="$ac_optarg" ;;
311 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
312 |
--program-pre |
--program-pr |
--program-p)
313 ac_prev
=program_prefix
;;
314 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
315 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
316 program_prefix
="$ac_optarg" ;;
318 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
319 |
--program-suf |
--program-su |
--program-s)
320 ac_prev
=program_suffix
;;
321 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
322 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
323 program_suffix
="$ac_optarg" ;;
325 -program-transform-name |
--program-transform-name \
326 |
--program-transform-nam |
--program-transform-na \
327 |
--program-transform-n |
--program-transform- \
328 |
--program-transform |
--program-transfor \
329 |
--program-transfo |
--program-transf \
330 |
--program-trans |
--program-tran \
331 |
--progr-tra |
--program-tr |
--program-t)
332 ac_prev
=program_transform_name
;;
333 -program-transform-name=* |
--program-transform-name=* \
334 |
--program-transform-nam=* |
--program-transform-na=* \
335 |
--program-transform-n=* |
--program-transform-=* \
336 |
--program-transform=* |
--program-transfor=* \
337 |
--program-transfo=* |
--program-transf=* \
338 |
--program-trans=* |
--program-tran=* \
339 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
340 program_transform_name
="$ac_optarg" ;;
342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
343 |
-silent |
--silent |
--silen |
--sile |
--sil)
346 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
348 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
350 sbindir
="$ac_optarg" ;;
352 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
353 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
354 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
356 ac_prev
=sharedstatedir
;;
357 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
358 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
359 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
361 sharedstatedir
="$ac_optarg" ;;
363 -site |
--site |
--sit)
365 -site=* |
--site=* |
--sit=*)
368 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
370 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
371 sitefile
="$ac_optarg" ;;
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE
="$sitefile"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval
="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE
=$enableval
594 USE_MAINTAINER_MODE
=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE
=
602 MAINTAINER_MODE_FALSE
='#'
604 MAINTAINER_MODE_TRUE
='#'
605 MAINTAINER_MODE_FALSE
=
607 MAINT
=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc
; ac_word
=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc
; ac_word
=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC
="$CC" # Let the user override the test.
651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy
$ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy
"$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
704 for ac_dir
in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp
='$CPP $CPPFLAGS'
732 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling
=$ac_cv_prog_cc_cross
736 cat > conftest.
$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure
:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
744 ac_cv_prog_cc_works
=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (.
/conftest
; exit) 2>/dev
/null
; then
747 ac_cv_prog_cc_cross
=no
749 ac_cv_prog_cc_cross
=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.
$ac_ext >&5
754 ac_cv_prog_cc_works
=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp
='$CPP $CPPFLAGS'
760 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling
=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no
; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling
=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c
<<EOF
783 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS
="${CFLAGS+set}"
799 ac_save_CFLAGS
="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS
="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
864 CPP
="${CC-cc} -E -traditional-cpp"
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
881 CPP
="${CC-cc} -nologo -E"
882 cat > conftest.
$ac_ext <<EOF
883 #line 884 "configure"
884 #include "confdefs.h"
888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
889 { (eval echo configure
:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
891 if test -z "$ac_err"; then
895 echo "configure: failed program was:" >&5
896 cat conftest.
$ac_ext >&5
905 ac_cv_prog_CPP
="$CPP"
907 CPP
="$ac_cv_prog_CPP"
909 ac_cv_prog_CPP
="$CPP"
911 echo "$ac_t""$CPP" 1>&6
913 echo $ac_n "checking for AIX""... $ac_c" 1>&6
914 echo "configure:915: checking for AIX" >&5
915 cat > conftest.
$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
924 egrep "yes" >/dev
/null
2>&1; then
926 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
927 #define _ALL_SOURCE 1
932 echo "$ac_t""no" 1>&6
937 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
938 echo "configure:939: checking for POSIXized ISC" >&5
939 if test -d /etc
/conf
/kconfig.d
&&
940 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
942 echo "$ac_t""yes" 1>&6
943 ISC
=yes # If later tests want to check for ISC.
944 cat >> confdefs.h
<<\EOF
945 #define _POSIX_SOURCE 1
948 if test "$GCC" = yes; then
954 echo "$ac_t""no" 1>&6
961 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
962 echo "configure:963: checking for ${CC-cc} option to accept ANSI C" >&5
963 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 am_cv_prog_cc_stdc
=no
968 # Don't try gcc -ansi; that turns off useful extensions and
969 # breaks some systems' header files.
971 # Ultrix and OSF/1 -std1
972 # HP-UX 10.20 and later -Ae
973 # HP-UX older versions -Aa -D_HPUX_SOURCE
974 # SVR4 -Xc -D__EXTENSIONS__
975 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
977 CC
="$ac_save_CC $ac_arg"
978 cat > conftest.
$ac_ext <<EOF
979 #line 980 "configure"
980 #include "confdefs.h"
983 #include <sys/types.h>
984 #include <sys/stat.h>
985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
986 struct buf { int x; };
987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
988 static char *e (p, i)
994 static char *f (char * (*g) (char **, int), char **p, ...)
999 s = g (p, va_arg (v,int));
1003 int test (int i, double x);
1004 struct s1 {int (*f) (int a);};
1005 struct s2 {int (*f) (double a);};
1006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1016 if { (eval echo configure
:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1018 am_cv_prog_cc_stdc
="$ac_arg"; break
1020 echo "configure: failed program was:" >&5
1021 cat conftest.
$ac_ext >&5
1029 if test -z "$am_cv_prog_cc_stdc"; then
1030 echo "$ac_t""none needed" 1>&6
1032 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1034 case "x$am_cv_prog_cc_stdc" in
1036 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1041 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1042 if test -f $ac_dir/install-sh
; then
1044 ac_install_sh
="$ac_aux_dir/install-sh -c"
1046 elif test -f $ac_dir/install.sh
; then
1048 ac_install_sh
="$ac_aux_dir/install.sh -c"
1052 if test -z "$ac_aux_dir"; then
1053 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1055 ac_config_guess
=$ac_aux_dir/config.guess
1056 ac_config_sub
=$ac_aux_dir/config.sub
1057 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1060 # Do some error checking and defaulting for the host and target type.
1062 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1065 # 1. You are not allowed to specify --host, --target, and nonopt at the
1067 # 2. Host defaults to nonopt.
1068 # 3. If nonopt is not specified, then host defaults to the current host,
1069 # as determined by config.guess.
1070 # 4. Target and build default to nonopt.
1071 # 5. If nonopt is not specified, then target and build default to host.
1073 # The aliases save the names the user supplied, while $host etc.
1074 # will get canonicalized.
1075 case $host---$target---$nonopt in
1076 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1077 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1081 # Make sure we can run config.sub.
1082 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1083 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1086 echo $ac_n "checking host system type""... $ac_c" 1>&6
1087 echo "configure:1088: checking host system type" >&5
1090 case "$host_alias" in
1094 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1095 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1097 *) host_alias
=$nonopt ;;
1101 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1102 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105 echo "$ac_t""$host" 1>&6
1107 echo $ac_n "checking target system type""... $ac_c" 1>&6
1108 echo "configure:1109: checking target system type" >&5
1110 target_alias
=$target
1111 case "$target_alias" in
1114 NONE
) target_alias
=$host_alias ;;
1115 *) target_alias
=$nonopt ;;
1119 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1120 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 echo "$ac_t""$target" 1>&6
1125 echo $ac_n "checking build system type""... $ac_c" 1>&6
1126 echo "configure:1127: checking build system type" >&5
1129 case "$build_alias" in
1132 NONE
) build_alias
=$host_alias ;;
1133 *) build_alias
=$nonopt ;;
1137 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1138 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1139 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1140 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1141 echo "$ac_t""$build" 1>&6
1143 test "$host_alias" != "$target_alias" &&
1144 test "$program_prefix$program_suffix$program_transform_name" = \
1146 program_prefix
=${target_alias}-
1150 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether ${MAKE-make} sets \${MAKE}" >&5
1152 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1153 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 cat > conftestmake
<<\EOF
1158 @
echo 'ac_maketemp="${MAKE}"'
1160 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1161 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1162 if test -n "$ac_maketemp"; then
1163 eval ac_cv_prog_make_
${ac_make}_set
=yes
1165 eval ac_cv_prog_make_
${ac_make}_set
=no
1169 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1170 echo "$ac_t""yes" 1>&6
1173 echo "$ac_t""no" 1>&6
1174 SET_MAKE
="MAKE=${MAKE-make}"
1177 # Extract the first word of "ranlib", so it can be a program name with args.
1178 set dummy ranlib
; ac_word
=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$RANLIB"; then
1185 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1189 for ac_dir
in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir
=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_RANLIB
="ranlib"
1197 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1200 RANLIB
="$ac_cv_prog_RANLIB"
1201 if test -n "$RANLIB"; then
1202 echo "$ac_t""$RANLIB" 1>&6
1204 echo "$ac_t""no" 1>&6
1207 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1208 echo "configure:1209: checking for ANSI C header files" >&5
1209 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1221 { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1222 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1223 if test -z "$ac_err"; then
1225 ac_cv_header_stdc
=yes
1228 echo "configure: failed program was:" >&5
1229 cat conftest.
$ac_ext >&5
1231 ac_cv_header_stdc
=no
1235 if test $ac_cv_header_stdc = yes; then
1236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1243 egrep "memchr" >/dev
/null
2>&1; then
1247 ac_cv_header_stdc
=no
1253 if test $ac_cv_header_stdc = yes; then
1254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1255 cat > conftest.
$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261 egrep "free" >/dev
/null
2>&1; then
1265 ac_cv_header_stdc
=no
1271 if test $ac_cv_header_stdc = yes; then
1272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1273 if test "$cross_compiling" = yes; then
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1280 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1281 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1283 int main () { int i; for (i = 0; i < 256; i++)
1284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1288 if { (eval echo configure
:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1295 ac_cv_header_stdc
=no
1303 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1304 if test $ac_cv_header_stdc = yes; then
1305 cat >> confdefs.h
<<\EOF
1306 #define STDC_HEADERS 1
1311 echo $ac_n "checking for working const""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working const" >&5
1313 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 /* Ultrix mips cc rejects this. */
1323 typedef int charset[2]; const charset x;
1324 /* SunOS 4.1.1 cc rejects this. */
1325 char const *const *ccp;
1327 /* NEC SVR4.0.2 mips cc rejects this. */
1328 struct point {int x, y;};
1329 static struct point const zero = {0,0};
1330 /* AIX XL C 1.02.0.0 rejects this.
1331 It does not let you subtract one const X* pointer from another in an arm
1332 of an if-expression whose if-part is not a constant expression */
1333 const char *g = "string";
1334 ccp = &g + (g ? g-g : 0);
1335 /* HPUX 7.0 cc rejects these. */
1338 ccp = (char const *const *) p;
1339 { /* SCO 3.2v4 cc rejects this. */
1341 char const *s = 0 ? (char *) 0 : (char const *) 0;
1345 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1347 const int *foo = &x[0];
1350 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1351 typedef const int *iptr;
1355 { /* AIX XL C 1.02.0.0 rejects this saying
1356 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1357 struct s { int j; const int *ap[3]; };
1358 struct s *b; b->j = 5;
1360 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1366 if { (eval echo configure
:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1370 echo "configure: failed program was:" >&5
1371 cat conftest.
$ac_ext >&5
1378 echo "$ac_t""$ac_cv_c_const" 1>&6
1379 if test $ac_cv_c_const = no
; then
1380 cat >> confdefs.h
<<\EOF
1386 echo $ac_n "checking for inline""... $ac_c" 1>&6
1387 echo "configure:1388: checking for inline" >&5
1388 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1392 for ac_kw
in inline __inline__ __inline
; do
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1401 if { (eval echo configure
:1402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 ac_cv_c_inline
=$ac_kw; break
1405 echo "configure: failed program was:" >&5
1406 cat conftest.
$ac_ext >&5
1413 echo "$ac_t""$ac_cv_c_inline" 1>&6
1414 case "$ac_cv_c_inline" in
1416 no
) cat >> confdefs.h
<<\EOF
1420 *) cat >> confdefs.h
<<EOF
1421 #define inline $ac_cv_c_inline
1426 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1427 echo "configure:1428: checking for off_t" >&5
1428 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.
$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 #include <sys/types.h>
1440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1441 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1443 ac_cv_type_off_t
=yes
1451 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1452 if test $ac_cv_type_off_t = no
; then
1453 cat >> confdefs.h
<<\EOF
1459 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1460 echo "configure:1461: checking for size_t" >&5
1461 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.
$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <sys/types.h>
1473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1474 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1476 ac_cv_type_size_t
=yes
1479 ac_cv_type_size_t
=no
1484 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1485 if test $ac_cv_type_size_t = no
; then
1486 cat >> confdefs.h
<<\EOF
1487 #define size_t unsigned
1492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1493 # for constant arguments. Useless!
1494 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1495 echo "configure:1496: checking for working alloca.h" >&5
1496 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.
$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1504 char *p = alloca(2 * sizeof(int));
1507 if { (eval echo configure
:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1509 ac_cv_header_alloca_h
=yes
1511 echo "configure: failed program was:" >&5
1512 cat conftest.
$ac_ext >&5
1514 ac_cv_header_alloca_h
=no
1519 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1520 if test $ac_cv_header_alloca_h = yes; then
1521 cat >> confdefs.h
<<\EOF
1522 #define HAVE_ALLOCA_H 1
1527 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1528 echo "configure:1529: checking for alloca" >&5
1529 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.
$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1537 # define alloca __builtin_alloca
1540 # include <malloc.h>
1541 # define alloca _alloca
1544 # include <alloca.h>
1549 # ifndef alloca /* predefined by HP cc +Olibcalls */
1558 char *p = (char *) alloca(1);
1561 if { (eval echo configure
:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1563 ac_cv_func_alloca_works
=yes
1565 echo "configure: failed program was:" >&5
1566 cat conftest.
$ac_ext >&5
1568 ac_cv_func_alloca_works
=no
1573 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1574 if test $ac_cv_func_alloca_works = yes; then
1575 cat >> confdefs.h
<<\EOF
1576 #define HAVE_ALLOCA 1
1581 if test $ac_cv_func_alloca_works = no
; then
1582 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1583 # that cause trouble. Some versions do not even contain alloca or
1584 # contain a buggy version. If you still want to use their alloca,
1585 # use ar to extract alloca.o from them instead of compiling alloca.c.
1586 ALLOCA
=alloca.
${ac_objext}
1587 cat >> confdefs.h
<<\EOF
1592 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1593 echo "configure:1594: checking whether alloca needs Cray hooks" >&5
1594 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.
$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1600 #if defined(CRAY) && ! defined(CRAY2)
1607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1608 egrep "webecray" >/dev
/null
2>&1; then
1619 echo "$ac_t""$ac_cv_os_cray" 1>&6
1620 if test $ac_cv_os_cray = yes; then
1621 for ac_func
in _getb67 GETB67 getb67
; do
1622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_func" >&5
1624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.
$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 /* System header to define __stub macros and hopefully few prototypes,
1631 which can conflict with char $ac_func(); below. */
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1640 /* The GNU C library defines this for functions which it implements
1641 to always fail with ENOSYS. Some functions are actually named
1642 something starting with __ and the normal name is an alias. */
1643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1651 if { (eval echo configure
:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1653 eval "ac_cv_func_$ac_func=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.
$ac_ext >&5
1658 eval "ac_cv_func_$ac_func=no"
1663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1664 echo "$ac_t""yes" 1>&6
1665 cat >> confdefs.h
<<EOF
1666 #define CRAY_STACKSEG_END $ac_func
1671 echo "$ac_t""no" 1>&6
1677 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1678 echo "configure:1679: checking stack direction for C alloca" >&5
1679 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 if test "$cross_compiling" = yes; then
1683 ac_cv_c_stack_direction
=0
1685 cat > conftest.
$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 find_stack_direction ()
1690 static char *addr = 0;
1695 return find_stack_direction ();
1698 return (&dummy > addr) ? 1 : -1;
1702 exit (find_stack_direction() < 0);
1705 if { (eval echo configure
:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1707 ac_cv_c_stack_direction
=1
1709 echo "configure: failed program was:" >&5
1710 cat conftest.
$ac_ext >&5
1712 ac_cv_c_stack_direction
=-1
1719 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1720 cat >> confdefs.h
<<EOF
1721 #define STACK_DIRECTION $ac_cv_c_stack_direction
1726 for ac_hdr
in unistd.h
1728 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1730 echo "configure:1731: checking for $ac_hdr" >&5
1731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 cat > conftest.
$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1739 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1740 { (eval echo configure
:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1741 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1742 if test -z "$ac_err"; then
1744 eval "ac_cv_header_$ac_safe=yes"
1747 echo "configure: failed program was:" >&5
1748 cat conftest.
$ac_ext >&5
1750 eval "ac_cv_header_$ac_safe=no"
1754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1755 echo "$ac_t""yes" 1>&6
1756 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1757 cat >> confdefs.h
<<EOF
1758 #define $ac_tr_hdr 1
1762 echo "$ac_t""no" 1>&6
1766 for ac_func
in getpagesize
1768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1769 echo "configure:1770: checking for $ac_func" >&5
1770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 /* System header to define __stub macros and hopefully few prototypes,
1777 which can conflict with char $ac_func(); below. */
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1797 if { (eval echo configure
:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1799 eval "ac_cv_func_$ac_func=yes"
1801 echo "configure: failed program was:" >&5
1802 cat conftest.
$ac_ext >&5
1804 eval "ac_cv_func_$ac_func=no"
1809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1811 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1812 cat >> confdefs.h
<<EOF
1813 #define $ac_tr_func 1
1817 echo "$ac_t""no" 1>&6
1821 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1822 echo "configure:1823: checking for working mmap" >&5
1823 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 if test "$cross_compiling" = yes; then
1827 ac_cv_func_mmap_fixed_mapped
=no
1829 cat > conftest.
$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1833 /* Thanks to Mike Haertel and Jim Avera for this test.
1834 Here is a matrix of mmap possibilities:
1835 mmap private not fixed
1836 mmap private fixed at somewhere currently unmapped
1837 mmap private fixed at somewhere already mapped
1838 mmap shared not fixed
1839 mmap shared fixed at somewhere currently unmapped
1840 mmap shared fixed at somewhere already mapped
1841 For private mappings, we should verify that changes cannot be read()
1842 back from the file, nor mmap's back from the file at a different
1843 address. (There have been systems where private was not correctly
1844 implemented like the infamous i386 svr4.0, and systems where the
1845 VM page cache was not coherent with the filesystem buffer cache
1846 like early versions of FreeBSD and possibly contemporary NetBSD.)
1847 For shared mappings, we should conversely verify that changes get
1848 propogated back to all the places they're supposed to be.
1850 Grep wants private fixed already mapped.
1851 The main things grep needs to know about mmap are:
1852 * does it exist and is it safe to write into the mmap'd area
1853 * how to use it (BSD variants) */
1854 #include <sys/types.h>
1856 #include <sys/mman.h>
1858 /* This mess was copied from the GNU getpagesize.h. */
1859 #ifndef HAVE_GETPAGESIZE
1860 # ifdef HAVE_UNISTD_H
1861 # include <unistd.h>
1864 /* Assume that all systems that can run configure have sys/param.h. */
1865 # ifndef HAVE_SYS_PARAM_H
1866 # define HAVE_SYS_PARAM_H 1
1869 # ifdef _SC_PAGESIZE
1870 # define getpagesize() sysconf(_SC_PAGESIZE)
1871 # else /* no _SC_PAGESIZE */
1872 # ifdef HAVE_SYS_PARAM_H
1873 # include <sys/param.h>
1874 # ifdef EXEC_PAGESIZE
1875 # define getpagesize() EXEC_PAGESIZE
1876 # else /* no EXEC_PAGESIZE */
1878 # define getpagesize() NBPG * CLSIZE
1881 # endif /* no CLSIZE */
1882 # else /* no NBPG */
1884 # define getpagesize() NBPC
1885 # else /* no NBPC */
1887 # define getpagesize() PAGESIZE
1888 # endif /* PAGESIZE */
1889 # endif /* no NBPC */
1890 # endif /* no NBPG */
1891 # endif /* no EXEC_PAGESIZE */
1892 # else /* no HAVE_SYS_PARAM_H */
1893 # define getpagesize() 8192 /* punt totally */
1894 # endif /* no HAVE_SYS_PARAM_H */
1895 # endif /* no _SC_PAGESIZE */
1897 #endif /* no HAVE_GETPAGESIZE */
1900 extern "C" { void *malloc(unsigned); }
1908 char *data, *data2, *data3;
1912 pagesize = getpagesize();
1915 * First, make a file with some known garbage in it.
1917 data = malloc(pagesize);
1920 for (i = 0; i < pagesize; ++i)
1921 *(data + i) = rand();
1923 fd = creat("conftestmmap", 0600);
1926 if (write(fd, data, pagesize) != pagesize)
1931 * Next, try to mmap the file at a fixed address which
1932 * already has something else allocated at it. If we can,
1933 * also make sure that we see the same garbage.
1935 fd = open("conftestmmap", O_RDWR);
1938 data2 = malloc(2 * pagesize);
1941 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1942 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1943 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1945 for (i = 0; i < pagesize; ++i)
1946 if (*(data + i) != *(data2 + i))
1950 * Finally, make sure that changes to the mapped area
1951 * do not percolate back to the file as seen by read().
1952 * (This is a bug on some variants of i386 svr4.0.)
1954 for (i = 0; i < pagesize; ++i)
1955 *(data2 + i) = *(data2 + i) + 1;
1956 data3 = malloc(pagesize);
1959 if (read(fd, data3, pagesize) != pagesize)
1961 for (i = 0; i < pagesize; ++i)
1962 if (*(data + i) != *(data3 + i))
1965 unlink("conftestmmap");
1970 if { (eval echo configure
:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1972 ac_cv_func_mmap_fixed_mapped
=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 ac_cv_func_mmap_fixed_mapped
=no
1984 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1985 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1986 cat >> confdefs.h
<<\EOF
1993 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1994 unistd.h values.h sys
/param.h
1996 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1998 echo "configure:1999: checking for $ac_hdr" >&5
1999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure
:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2012 eval "ac_cv_header_$ac_safe=yes"
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2018 eval "ac_cv_header_$ac_safe=no"
2022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2024 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2025 cat >> confdefs.h
<<EOF
2026 #define $ac_tr_hdr 1
2030 echo "$ac_t""no" 1>&6
2034 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2035 __argz_count __argz_stringify __argz_next
2037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2038 echo "configure:2039: checking for $ac_func" >&5
2039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.
$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $ac_func(); below. */
2048 /* Override any gcc2 internal prototype to avoid an error. */
2049 /* We use char because int might match the return type of a gcc2
2050 builtin and then its argument prototype would still apply. */
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2066 if { (eval echo configure
:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2068 eval "ac_cv_func_$ac_func=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.
$ac_ext >&5
2073 eval "ac_cv_func_$ac_func=no"
2078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2079 echo "$ac_t""yes" 1>&6
2080 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2081 cat >> confdefs.h
<<EOF
2082 #define $ac_tr_func 1
2086 echo "$ac_t""no" 1>&6
2091 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2092 for ac_func
in stpcpy
2094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_func" >&5
2096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.
$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 /* System header to define __stub macros and hopefully few prototypes,
2103 which can conflict with char $ac_func(); below. */
2105 /* Override any gcc2 internal prototype to avoid an error. */
2106 /* We use char because int might match the return type of a gcc2
2107 builtin and then its argument prototype would still apply. */
2112 /* The GNU C library defines this for functions which it implements
2113 to always fail with ENOSYS. Some functions are actually named
2114 something starting with __ and the normal name is an alias. */
2115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2123 if { (eval echo configure
:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2125 eval "ac_cv_func_$ac_func=yes"
2127 echo "configure: failed program was:" >&5
2128 cat conftest.
$ac_ext >&5
2130 eval "ac_cv_func_$ac_func=no"
2135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2138 cat >> confdefs.h
<<EOF
2139 #define $ac_tr_func 1
2143 echo "$ac_t""no" 1>&6
2148 if test "${ac_cv_func_stpcpy}" = "yes"; then
2149 cat >> confdefs.h
<<\EOF
2150 #define HAVE_STPCPY 1
2155 if test $ac_cv_header_locale_h = yes; then
2156 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2157 echo "configure:2158: checking for LC_MESSAGES" >&5
2158 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 cat > conftest.
$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2169 if { (eval echo configure
:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2171 am_cv_val_LC_MESSAGES
=yes
2173 echo "configure: failed program was:" >&5
2174 cat conftest.
$ac_ext >&5
2176 am_cv_val_LC_MESSAGES
=no
2181 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2182 if test $am_cv_val_LC_MESSAGES = yes; then
2183 cat >> confdefs.h
<<\EOF
2184 #define HAVE_LC_MESSAGES 1
2189 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2190 echo "configure:2191: checking whether NLS is requested" >&5
2191 # Check whether --enable-nls or --disable-nls was given.
2192 if test "${enable_nls+set}" = set; then
2193 enableval
="$enable_nls"
2199 echo "$ac_t""$USE_NLS" 1>&6
2202 USE_INCLUDED_LIBINTL
=no
2204 if test "$USE_NLS" = "yes"; then
2205 cat >> confdefs.h
<<\EOF
2206 #define ENABLE_NLS 1
2209 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2210 echo "configure:2211: checking whether included gettext is requested" >&5
2211 # Check whether --with-included-gettext or --without-included-gettext was given.
2212 if test "${with_included_gettext+set}" = set; then
2213 withval
="$with_included_gettext"
2214 nls_cv_force_use_gnu_gettext
=$withval
2216 nls_cv_force_use_gnu_gettext
=no
2219 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2221 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2222 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2224 nls_cv_header_libgt
=
2227 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2228 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2229 echo "configure:2230: checking for libintl.h" >&5
2230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 #include <libintl.h>
2238 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure
:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2243 eval "ac_cv_header_$ac_safe=yes"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.
$ac_ext >&5
2249 eval "ac_cv_header_$ac_safe=no"
2253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2256 echo "configure:2257: checking for gettext in libc" >&5
2257 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 cat > conftest.
$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2263 #include <libintl.h>
2265 return (int) gettext ("")
2268 if { (eval echo configure
:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2270 gt_cv_func_gettext_libc
=yes
2272 echo "configure: failed program was:" >&5
2273 cat conftest.
$ac_ext >&5
2275 gt_cv_func_gettext_libc
=no
2280 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2282 if test "$gt_cv_func_gettext_libc" != "yes"; then
2283 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2284 echo "configure:2285: checking for bindtextdomain in -lintl" >&5
2285 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 ac_save_LIBS
="$LIBS"
2291 cat > conftest.
$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2297 char bindtextdomain();
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2305 eval "ac_cv_lib_$ac_lib_var=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 eval "ac_cv_lib_$ac_lib_var=no"
2313 LIBS
="$ac_save_LIBS"
2316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2317 echo "$ac_t""yes" 1>&6
2318 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2319 echo "configure:2320: checking for gettext in libintl" >&5
2320 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 cat > conftest.
$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2328 return (int) gettext ("")
2331 if { (eval echo configure
:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2333 gt_cv_func_gettext_libintl
=yes
2335 echo "configure: failed program was:" >&5
2336 cat conftest.
$ac_ext >&5
2338 gt_cv_func_gettext_libintl
=no
2343 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2345 echo "$ac_t""no" 1>&6
2350 if test "$gt_cv_func_gettext_libc" = "yes" \
2351 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2352 cat >> confdefs.h
<<\EOF
2353 #define HAVE_GETTEXT 1
2356 # Extract the first word of "msgfmt", so it can be a program name with args.
2357 set dummy msgfmt
; ac_word
=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2368 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2369 for ac_dir
in $PATH; do
2370 test -z "$ac_dir" && ac_dir
=.
2371 if test -f $ac_dir/$ac_word; then
2372 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2373 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2379 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2383 MSGFMT
="$ac_cv_path_MSGFMT"
2384 if test -n "$MSGFMT"; then
2385 echo "$ac_t""$MSGFMT" 1>&6
2387 echo "$ac_t""no" 1>&6
2389 if test "$MSGFMT" != "no"; then
2390 for ac_func
in dcgettext
2392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2393 echo "configure:2394: checking for $ac_func" >&5
2394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 /* System header to define __stub macros and hopefully few prototypes,
2401 which can conflict with char $ac_func(); below. */
2403 /* Override any gcc2 internal prototype to avoid an error. */
2404 /* We use char because int might match the return type of a gcc2
2405 builtin and then its argument prototype would still apply. */
2410 /* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2421 if { (eval echo configure
:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2423 eval "ac_cv_func_$ac_func=yes"
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2428 eval "ac_cv_func_$ac_func=no"
2433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2436 cat >> confdefs.h
<<EOF
2437 #define $ac_tr_func 1
2441 echo "$ac_t""no" 1>&6
2445 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2446 set dummy gmsgfmt
; ac_word
=$2
2447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_word" >&5
2449 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2454 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2457 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2462 for ac_dir
in $ac_dummy; do
2463 test -z "$ac_dir" && ac_dir
=.
2464 if test -f $ac_dir/$ac_word; then
2465 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2470 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2474 GMSGFMT
="$ac_cv_path_GMSGFMT"
2475 if test -n "$GMSGFMT"; then
2476 echo "$ac_t""$GMSGFMT" 1>&6
2478 echo "$ac_t""no" 1>&6
2481 # Extract the first word of "xgettext", so it can be a program name with args.
2482 set dummy xgettext
; ac_word
=$2
2483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2484 echo "configure:2485: checking for $ac_word" >&5
2485 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2490 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2493 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2494 for ac_dir
in $PATH; do
2495 test -z "$ac_dir" && ac_dir
=.
2496 if test -f $ac_dir/$ac_word; then
2497 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2498 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2504 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2508 XGETTEXT
="$ac_cv_path_XGETTEXT"
2509 if test -n "$XGETTEXT"; then
2510 echo "$ac_t""$XGETTEXT" 1>&6
2512 echo "$ac_t""no" 1>&6
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 extern int _nl_msg_cat_cntr;
2521 return _nl_msg_cat_cntr
2524 if { (eval echo configure
:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2541 echo "$ac_t""no" 1>&6
2546 if test "$CATOBJEXT" = "NONE"; then
2547 nls_cv_use_gnu_gettext
=yes
2551 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2552 INTLOBJS
="\$(GETTOBJS)"
2553 # Extract the first word of "msgfmt", so it can be a program name with args.
2554 set dummy msgfmt
; ac_word
=$2
2555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2556 echo "configure:2557: checking for $ac_word" >&5
2557 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2562 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2565 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2566 for ac_dir
in $PATH; do
2567 test -z "$ac_dir" && ac_dir
=.
2568 if test -f $ac_dir/$ac_word; then
2569 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2570 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2576 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2580 MSGFMT
="$ac_cv_path_MSGFMT"
2581 if test -n "$MSGFMT"; then
2582 echo "$ac_t""$MSGFMT" 1>&6
2584 echo "$ac_t""no" 1>&6
2587 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2588 set dummy gmsgfmt
; ac_word
=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2596 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2599 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2604 for ac_dir
in $ac_dummy; do
2605 test -z "$ac_dir" && ac_dir
=.
2606 if test -f $ac_dir/$ac_word; then
2607 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2616 GMSGFMT
="$ac_cv_path_GMSGFMT"
2617 if test -n "$GMSGFMT"; then
2618 echo "$ac_t""$GMSGFMT" 1>&6
2620 echo "$ac_t""no" 1>&6
2623 # Extract the first word of "xgettext", so it can be a program name with args.
2624 set dummy xgettext
; ac_word
=$2
2625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_word" >&5
2627 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2632 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2635 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2636 for ac_dir
in $PATH; do
2637 test -z "$ac_dir" && ac_dir
=.
2638 if test -f $ac_dir/$ac_word; then
2639 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2640 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2646 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2650 XGETTEXT
="$ac_cv_path_XGETTEXT"
2651 if test -n "$XGETTEXT"; then
2652 echo "$ac_t""$XGETTEXT" 1>&6
2654 echo "$ac_t""no" 1>&6
2658 USE_INCLUDED_LIBINTL
=yes
2662 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2664 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2665 nls_cv_header_intl
=libintl.h
2666 nls_cv_header_libgt
=libgettext.h
2669 if test "$XGETTEXT" != ":"; then
2670 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2673 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2678 # We need to process the po/ directory.
2682 nls_cv_header_intl
=libintl.h
2683 nls_cv_header_libgt
=libgettext.h
2686 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2687 # because some of the sources are only built for this goal.
2688 if test "$PACKAGE" = gettext; then
2690 USE_INCLUDED_LIBINTL
=yes
2693 for lang
in $ALL_LINGUAS; do
2694 GMOFILES
="$GMOFILES $lang.gmo"
2695 POFILES
="$POFILES $lang.po"
2711 if test "x$CATOBJEXT" != "x"; then
2712 if test "x$ALL_LINGUAS" = "x"; then
2715 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2716 echo "configure:2717: checking for catalogs to be installed" >&5
2718 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2719 case "$ALL_LINGUAS" in
2720 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2723 LINGUAS
=$NEW_LINGUAS
2724 echo "$ac_t""$LINGUAS" 1>&6
2727 if test -n "$LINGUAS"; then
2728 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2732 if test $ac_cv_header_locale_h = yes; then
2733 INCLUDE_LOCALE_H
="#include <locale.h>"
2736 /* The system does not provide the header <locale.h>. Take care yourself. */"
2740 if test -f $srcdir/po2tbl.
sed.
in; then
2741 if test "$CATOBJEXT" = ".cat"; then
2742 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2743 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2744 echo "configure:2745: checking for linux/version.h" >&5
2745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2748 cat > conftest.
$ac_ext <<EOF
2749 #line 2750 "configure"
2750 #include "confdefs.h"
2751 #include <linux/version.h>
2753 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2754 { (eval echo configure
:2755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2755 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2756 if test -z "$ac_err"; then
2758 eval "ac_cv_header_$ac_safe=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.
$ac_ext >&5
2764 eval "ac_cv_header_$ac_safe=no"
2768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2772 echo "$ac_t""no" 1>&6
2777 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2779 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2780 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2783 if test "$PACKAGE" = "gettext"; then
2793 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2799 if test -f $srcdir/po
/POTFILES.
in; then
2800 test -d po || mkdir po
2801 if test "x$srcdir" != "x."; then
2802 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2803 posrcprefix
="$srcdir/"
2805 posrcprefix
="../$srcdir/"
2811 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2812 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2815 cat >> confdefs.h
<<\EOF
2816 #define PACKAGE "gdb"
2833 configdirs
="doc testsuite"
2835 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2836 if test "${enable_multi_ice+set}" = set; then
2837 enableval
="$enable_multi_ice"
2838 case "${enableval}" in
2839 yes ) enable_multi_ice
="yes" ;;
2840 no
) enable_multi_ice
="no" ;;
2841 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2847 if test "${enable_multi_ice}" = "yes"; then
2848 configdirs
="${configdirs} multi-ice"
2852 .
${srcdir}/configure.
host
2854 .
${srcdir}/configure.tgt
2856 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2860 .
${srcdir}/..
/bfd
/config.bfd
2862 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2864 if test x
"${targ_archs}" != x
; then
2865 cat >> confdefs.h
<<EOF
2866 #define DEFAULT_BFD_ARCH ${targ_archs}
2870 if test x
"${targ_defvec}" != x
; then
2871 cat >> confdefs.h
<<EOF
2872 #define DEFAULT_BFD_VEC ${targ_defvec}
2877 for ac_prog
in mawk gawk nawk
awk
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy
$ac_prog; ac_word
=$2
2881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_word" >&5
2883 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 if test -n "$AWK"; then
2887 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2889 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2891 for ac_dir
in $ac_dummy; do
2892 test -z "$ac_dir" && ac_dir
=.
2893 if test -f $ac_dir/$ac_word; then
2894 ac_cv_prog_AWK
="$ac_prog"
2901 AWK
="$ac_cv_prog_AWK"
2902 if test -n "$AWK"; then
2903 echo "$ac_t""$AWK" 1>&6
2905 echo "$ac_t""no" 1>&6
2908 test -n "$AWK" && break
2911 # Find a good install program. We prefer a C program (faster),
2912 # so one script is as good as another. But avoid the broken or
2913 # incompatible versions:
2914 # SysV /etc/install, /usr/sbin/install
2915 # SunOS /usr/etc/install
2916 # IRIX /sbin/install
2918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2921 # ./install, which can be erroneously created by make from ./install.sh.
2922 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2923 echo "configure:2924: checking for a BSD compatible install" >&5
2924 if test -z "$INSTALL"; then
2925 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2929 for ac_dir
in $PATH; do
2930 # Account for people who put trailing slashes in PATH elements.
2932 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2934 # OSF1 and SCO ODT 3.0 have their own names for install.
2935 # Don't use installbsd from OSF since it installs stuff as root
2937 for ac_prog
in ginstall scoinst
install; do
2938 if test -f $ac_dir/$ac_prog; then
2939 if test $ac_prog = install &&
2940 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2941 # AIX install. It has an incompatible calling convention.
2944 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2955 if test "${ac_cv_path_install+set}" = set; then
2956 INSTALL
="$ac_cv_path_install"
2958 # As a last resort, use the slow shell script. We don't cache a
2959 # path for INSTALL within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the path is relative.
2962 INSTALL
="$ac_install_sh"
2965 echo "$ac_t""$INSTALL" 1>&6
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2973 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2975 if test $host != $build; then
2976 ac_tool_prefix
=${host_alias}-
2981 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2982 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2984 echo "configure:2985: checking for $ac_word" >&5
2985 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 if test -n "$AR"; then
2989 ac_cv_prog_AR
="$AR" # Let the user override the test.
2991 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2993 for ac_dir
in $ac_dummy; do
2994 test -z "$ac_dir" && ac_dir
=.
2995 if test -f $ac_dir/$ac_word; then
2996 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3001 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3005 if test -n "$AR"; then
3006 echo "$ac_t""$AR" 1>&6
3008 echo "$ac_t""no" 1>&6
3013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3014 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_word" >&5
3017 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 if test -n "$RANLIB"; then
3021 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3023 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3025 for ac_dir
in $ac_dummy; do
3026 test -z "$ac_dir" && ac_dir
=.
3027 if test -f $ac_dir/$ac_word; then
3028 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3035 RANLIB
="$ac_cv_prog_RANLIB"
3036 if test -n "$RANLIB"; then
3037 echo "$ac_t""$RANLIB" 1>&6
3039 echo "$ac_t""no" 1>&6
3043 if test -z "$ac_cv_prog_RANLIB"; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "ranlib", so it can be a program name with args.
3046 set dummy ranlib
; ac_word
=$2
3047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3048 echo "configure:3049: checking for $ac_word" >&5
3049 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 if test -n "$RANLIB"; then
3053 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3057 for ac_dir
in $ac_dummy; do
3058 test -z "$ac_dir" && ac_dir
=.
3059 if test -f $ac_dir/$ac_word; then
3060 ac_cv_prog_RANLIB
="ranlib"
3065 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3068 RANLIB
="$ac_cv_prog_RANLIB"
3069 if test -n "$RANLIB"; then
3070 echo "$ac_t""$RANLIB" 1>&6
3072 echo "$ac_t""no" 1>&6
3080 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3081 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_word" >&5
3084 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 if test -n "$DLLTOOL"; then
3088 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3092 for ac_dir
in $ac_dummy; do
3093 test -z "$ac_dir" && ac_dir
=.
3094 if test -f $ac_dir/$ac_word; then
3095 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3100 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3103 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3104 if test -n "$DLLTOOL"; then
3105 echo "$ac_t""$DLLTOOL" 1>&6
3107 echo "$ac_t""no" 1>&6
3112 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3113 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_word" >&5
3116 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 if test -n "$WINDRES"; then
3120 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3124 for ac_dir
in $ac_dummy; do
3125 test -z "$ac_dir" && ac_dir
=.
3126 if test -f $ac_dir/$ac_word; then
3127 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3132 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3135 WINDRES
="$ac_cv_prog_WINDRES"
3136 if test -n "$WINDRES"; then
3137 echo "$ac_t""$WINDRES" 1>&6
3139 echo "$ac_t""no" 1>&6
3144 for ac_prog
in 'bison -y' byacc
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy
$ac_prog; ac_word
=$2
3148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3149 echo "configure:3150: checking for $ac_word" >&5
3150 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 if test -n "$YACC"; then
3154 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3158 for ac_dir
in $ac_dummy; do
3159 test -z "$ac_dir" && ac_dir
=.
3160 if test -f $ac_dir/$ac_word; then
3161 ac_cv_prog_YACC
="$ac_prog"
3168 YACC
="$ac_cv_prog_YACC"
3169 if test -n "$YACC"; then
3170 echo "$ac_t""$YACC" 1>&6
3172 echo "$ac_t""no" 1>&6
3175 test -n "$YACC" && break
3177 test -n "$YACC" || YACC
="yacc"
3180 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3181 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_word" >&5
3184 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 if test -n "$MIG"; then
3188 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3192 for ac_dir
in $ac_dummy; do
3193 test -z "$ac_dir" && ac_dir
=.
3194 if test -f $ac_dir/$ac_word; then
3195 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3200 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3203 MIG
="$ac_cv_prog_MIG"
3204 if test -n "$MIG"; then
3205 echo "$ac_t""$MIG" 1>&6
3207 echo "$ac_t""no" 1>&6
3213 if test "$program_transform_name" = s
,x
,x
,; then
3214 program_transform_name
=
3216 # Double any \ or $. echo might interpret backslashes.
3217 cat <<\EOF_SED
> conftestsed
3218 s
,\\,\\\\,g
; s
,\$
,$$
,g
3220 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3223 test "$program_prefix" != NONE
&&
3224 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3225 # Use a double $ so make ignores it.
3226 test "$program_suffix" != NONE
&&
3227 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3229 # sed with no file args requires a program.
3230 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3233 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3234 echo "configure:3235: checking return type of signal handlers" >&5
3235 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <sys/types.h>
3247 extern "C" void (*signal (int, void (*)(int)))(int);
3249 void (*signal ()) ();
3256 if { (eval echo configure
:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 ac_cv_type_signal
=void
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3263 ac_cv_type_signal
=int
3268 echo "$ac_t""$ac_cv_type_signal" 1>&6
3269 cat >> confdefs.h
<<EOF
3270 #define RETSIGTYPE $ac_cv_type_signal
3275 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3276 echo "configure:3277: checking for ANSI C header files" >&5
3277 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 cat > conftest.
$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3288 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3289 { (eval echo configure
:3290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3290 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3291 if test -z "$ac_err"; then
3293 ac_cv_header_stdc
=yes
3296 echo "configure: failed program was:" >&5
3297 cat conftest.
$ac_ext >&5
3299 ac_cv_header_stdc
=no
3303 if test $ac_cv_header_stdc = yes; then
3304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3305 cat > conftest.
$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3311 egrep "memchr" >/dev
/null
2>&1; then
3315 ac_cv_header_stdc
=no
3321 if test $ac_cv_header_stdc = yes; then
3322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3323 cat > conftest.
$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 egrep "free" >/dev
/null
2>&1; then
3333 ac_cv_header_stdc
=no
3339 if test $ac_cv_header_stdc = yes; then
3340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3341 if test "$cross_compiling" = yes; then
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3348 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3351 int main () { int i; for (i = 0; i < 256; i++)
3352 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3356 if { (eval echo configure
:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3360 echo "configure: failed program was:" >&5
3361 cat conftest.
$ac_ext >&5
3363 ac_cv_header_stdc
=no
3371 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3372 if test $ac_cv_header_stdc = yes; then
3373 cat >> confdefs.h
<<\EOF
3374 #define STDC_HEADERS 1
3381 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3382 cat >> confdefs.h
<<\EOF
3383 #define _MSE_INT_H 1
3388 for ac_hdr
in ctype.h nlist.h link.h thread_db.h proc_service.h \
3389 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3390 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3391 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3392 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3393 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3394 dirent.h sys
/ndir.h sys
/dir.h ndir.h sys
/filio.h \
3395 curses.h ncurses.h \
3398 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_hdr" >&5
3401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.
$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3409 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3410 { (eval echo configure
:3411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3411 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3412 if test -z "$ac_err"; then
3414 eval "ac_cv_header_$ac_safe=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.
$ac_ext >&5
3420 eval "ac_cv_header_$ac_safe=no"
3424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3425 echo "$ac_t""yes" 1>&6
3426 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3427 cat >> confdefs.h
<<EOF
3428 #define $ac_tr_hdr 1
3432 echo "$ac_t""no" 1>&6
3436 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3437 echo "configure:3438: checking whether stat file-mode macros are broken" >&5
3438 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.
$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <sys/types.h>
3445 #include <sys/stat.h>
3447 #if defined(S_ISBLK) && defined(S_IFDIR)
3448 # if S_ISBLK (S_IFDIR)
3453 #if defined(S_ISBLK) && defined(S_IFCHR)
3454 # if S_ISBLK (S_IFCHR)
3459 #if defined(S_ISLNK) && defined(S_IFREG)
3460 # if S_ISLNK (S_IFREG)
3465 #if defined(S_ISSOCK) && defined(S_IFREG)
3466 # if S_ISSOCK (S_IFREG)
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "You lose" >/dev
/null
2>&1; then
3475 ac_cv_header_stat_broken
=yes
3478 ac_cv_header_stat_broken
=no
3484 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3485 if test $ac_cv_header_stat_broken = yes; then
3486 cat >> confdefs.h
<<\EOF
3487 #define STAT_MACROS_BROKEN 1
3493 echo $ac_n "checking for working const""... $ac_c" 1>&6
3494 echo "configure:3495: checking for working const" >&5
3495 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3504 /* Ultrix mips cc rejects this. */
3505 typedef int charset[2]; const charset x;
3506 /* SunOS 4.1.1 cc rejects this. */
3507 char const *const *ccp;
3509 /* NEC SVR4.0.2 mips cc rejects this. */
3510 struct point {int x, y;};
3511 static struct point const zero = {0,0};
3512 /* AIX XL C 1.02.0.0 rejects this.
3513 It does not let you subtract one const X* pointer from another in an arm
3514 of an if-expression whose if-part is not a constant expression */
3515 const char *g = "string";
3516 ccp = &g + (g ? g-g : 0);
3517 /* HPUX 7.0 cc rejects these. */
3520 ccp = (char const *const *) p;
3521 { /* SCO 3.2v4 cc rejects this. */
3523 char const *s = 0 ? (char *) 0 : (char const *) 0;
3527 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3529 const int *foo = &x[0];
3532 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3533 typedef const int *iptr;
3537 { /* AIX XL C 1.02.0.0 rejects this saying
3538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3539 struct s { int j; const int *ap[3]; };
3540 struct s *b; b->j = 5;
3542 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3548 if { (eval echo configure
:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3560 echo "$ac_t""$ac_cv_c_const" 1>&6
3561 if test $ac_cv_c_const = no
; then
3562 cat >> confdefs.h
<<\EOF
3568 echo $ac_n "checking for inline""... $ac_c" 1>&6
3569 echo "configure:3570: checking for inline" >&5
3570 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3574 for ac_kw
in inline __inline__ __inline
; do
3575 cat > conftest.
$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3583 if { (eval echo configure
:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 ac_cv_c_inline
=$ac_kw; break
3587 echo "configure: failed program was:" >&5
3588 cat conftest.
$ac_ext >&5
3595 echo "$ac_t""$ac_cv_c_inline" 1>&6
3596 case "$ac_cv_c_inline" in
3598 no
) cat >> confdefs.h
<<\EOF
3602 *) cat >> confdefs.h
<<EOF
3603 #define inline $ac_cv_c_inline
3609 for ac_func
in bcopy btowc bzero canonicalize_file_name isascii poll \
3610 realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
3612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3613 echo "configure:3614: checking for $ac_func" >&5
3614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.
$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 /* System header to define __stub macros and hopefully few prototypes,
3621 which can conflict with char $ac_func(); below. */
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3630 /* The GNU C library defines this for functions which it implements
3631 to always fail with ENOSYS. Some functions are actually named
3632 something starting with __ and the normal name is an alias. */
3633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3641 if { (eval echo configure
:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3643 eval "ac_cv_func_$ac_func=yes"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.
$ac_ext >&5
3648 eval "ac_cv_func_$ac_func=no"
3653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3654 echo "$ac_t""yes" 1>&6
3655 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3656 cat >> confdefs.h
<<EOF
3657 #define $ac_tr_func 1
3661 echo "$ac_t""no" 1>&6
3665 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3666 # for constant arguments. Useless!
3667 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3668 echo "configure:3669: checking for working alloca.h" >&5
3669 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 cat > conftest.
$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3677 char *p = alloca(2 * sizeof(int));
3680 if { (eval echo configure
:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3682 ac_cv_header_alloca_h
=yes
3684 echo "configure: failed program was:" >&5
3685 cat conftest.
$ac_ext >&5
3687 ac_cv_header_alloca_h
=no
3692 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3693 if test $ac_cv_header_alloca_h = yes; then
3694 cat >> confdefs.h
<<\EOF
3695 #define HAVE_ALLOCA_H 1
3700 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3701 echo "configure:3702: checking for alloca" >&5
3702 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 cat > conftest.
$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3710 # define alloca __builtin_alloca
3713 # include <malloc.h>
3714 # define alloca _alloca
3717 # include <alloca.h>
3722 # ifndef alloca /* predefined by HP cc +Olibcalls */
3731 char *p = (char *) alloca(1);
3734 if { (eval echo configure
:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3736 ac_cv_func_alloca_works
=yes
3738 echo "configure: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 ac_cv_func_alloca_works
=no
3746 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3747 if test $ac_cv_func_alloca_works = yes; then
3748 cat >> confdefs.h
<<\EOF
3749 #define HAVE_ALLOCA 1
3754 if test $ac_cv_func_alloca_works = no
; then
3755 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3756 # that cause trouble. Some versions do not even contain alloca or
3757 # contain a buggy version. If you still want to use their alloca,
3758 # use ar to extract alloca.o from them instead of compiling alloca.c.
3759 ALLOCA
=alloca.
${ac_objext}
3760 cat >> confdefs.h
<<\EOF
3765 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3766 echo "configure:3767: checking whether alloca needs Cray hooks" >&5
3767 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 cat > conftest.
$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #if defined(CRAY) && ! defined(CRAY2)
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 egrep "webecray" >/dev
/null
2>&1; then
3792 echo "$ac_t""$ac_cv_os_cray" 1>&6
3793 if test $ac_cv_os_cray = yes; then
3794 for ac_func
in _getb67 GETB67 getb67
; do
3795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3796 echo "configure:3797: checking for $ac_func" >&5
3797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* System header to define __stub macros and hopefully few prototypes,
3804 which can conflict with char $ac_func(); below. */
3806 /* Override any gcc2 internal prototype to avoid an error. */
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3813 /* The GNU C library defines this for functions which it implements
3814 to always fail with ENOSYS. Some functions are actually named
3815 something starting with __ and the normal name is an alias. */
3816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3824 if { (eval echo configure
:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3826 eval "ac_cv_func_$ac_func=yes"
3828 echo "configure: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3831 eval "ac_cv_func_$ac_func=no"
3836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 cat >> confdefs.h
<<EOF
3839 #define CRAY_STACKSEG_END $ac_func
3844 echo "$ac_t""no" 1>&6
3850 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3851 echo "configure:3852: checking stack direction for C alloca" >&5
3852 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 if test "$cross_compiling" = yes; then
3856 ac_cv_c_stack_direction
=0
3858 cat > conftest.
$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 find_stack_direction ()
3863 static char *addr = 0;
3868 return find_stack_direction ();
3871 return (&dummy > addr) ? 1 : -1;
3875 exit (find_stack_direction() < 0);
3878 if { (eval echo configure
:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3880 ac_cv_c_stack_direction
=1
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 ac_cv_c_stack_direction
=-1
3892 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3893 cat >> confdefs.h
<<EOF
3894 #define STACK_DIRECTION $ac_cv_c_stack_direction
3899 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3900 echo "configure:3901: checking for pid_t" >&5
3901 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 cat > conftest.
$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <sys/types.h>
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3916 ac_cv_type_pid_t
=yes
3924 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3925 if test $ac_cv_type_pid_t = no
; then
3926 cat >> confdefs.h
<<\EOF
3932 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3933 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3934 echo "configure:3935: checking for vfork.h" >&5
3935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3943 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3944 { (eval echo configure
:3945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3945 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3946 if test -z "$ac_err"; then
3948 eval "ac_cv_header_$ac_safe=yes"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.
$ac_ext >&5
3954 eval "ac_cv_header_$ac_safe=no"
3958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3959 echo "$ac_t""yes" 1>&6
3960 cat >> confdefs.h
<<\EOF
3961 #define HAVE_VFORK_H 1
3965 echo "$ac_t""no" 1>&6
3968 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3969 echo "configure:3970: checking for working vfork" >&5
3970 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 if test "$cross_compiling" = yes; then
3974 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3975 echo "configure:3976: checking for vfork" >&5
3976 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3979 cat > conftest.
$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 /* System header to define __stub macros and hopefully few prototypes,
3983 which can conflict with char vfork(); below. */
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3992 /* The GNU C library defines this for functions which it implements
3993 to always fail with ENOSYS. Some functions are actually named
3994 something starting with __ and the normal name is an alias. */
3995 #if defined (__stub_vfork) || defined (__stub___vfork)
4003 if { (eval echo configure
:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4005 eval "ac_cv_func_vfork=yes"
4007 echo "configure: failed program was:" >&5
4008 cat conftest.
$ac_ext >&5
4010 eval "ac_cv_func_vfork=no"
4015 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4019 echo "$ac_t""no" 1>&6
4022 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4024 cat > conftest.
$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* Thanks to Paul Eggert for this test. */
4029 #include <sys/types.h>
4030 #include <sys/stat.h>
4031 #ifdef HAVE_UNISTD_H
4037 /* On some sparc systems, changes by the child to local and incoming
4038 argument registers are propagated back to the parent.
4039 The compiler is told about this with #include <vfork.h>,
4040 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4041 Test for this by using a static variable whose address
4042 is put into a register that is clobbered by the vfork. */
4045 sparc_address_test (int arg)
4047 sparc_address_test (arg) int arg;
4065 pid_t parent = getpid ();
4068 sparc_address_test ();
4073 /* Here is another test for sparc vfork register problems.
4074 This test uses lots of local variables, at least
4075 as many local variables as main has allocated so far
4076 including compiler temporaries. 4 locals are enough for
4077 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4078 A buggy compiler should reuse the register of parent
4079 for one of the local variables, since it will think that
4080 parent can't possibly be used any more in this routine.
4081 Assigning to the local variable will thus munge parent
4082 in the parent process. */
4084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4086 /* Convince the compiler that p..p7 are live; otherwise, it might
4087 use the same hardware register for all 8 local variables. */
4088 if (p != p1 || p != p2 || p != p3 || p != p4
4089 || p != p5 || p != p6 || p != p7)
4092 /* On some systems (e.g. IRIX 3.3),
4093 vfork doesn't separate parent from child file descriptors.
4094 If the child closes a descriptor before it execs or exits,
4095 this munges the parent's descriptor as well.
4096 Test for this by closing stdout in the child. */
4097 _exit(close(fileno(stdout)) != 0);
4102 while (wait(&status) != child)
4105 /* Was there some problem with vforking? */
4108 /* Did the child fail? (This shouldn't happen.) */
4111 /* Did the vfork/compiler bug occur? */
4112 || parent != getpid()
4114 /* Did the file descriptor bug occur? */
4115 || fstat(fileno(stdout), &st) != 0
4120 if { (eval echo configure
:4121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4122 ac_cv_func_vfork_works
=yes
4124 echo "configure: failed program was:" >&5
4125 cat conftest.
$ac_ext >&5
4127 ac_cv_func_vfork_works
=no
4134 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4135 if test $ac_cv_func_vfork_works = no
; then
4136 cat >> confdefs.h
<<\EOF
4142 if test "$cross_compiling" = no
; then
4143 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4144 echo "configure:4145: checking whether setpgrp takes no argument" >&5
4145 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4148 if test "$cross_compiling" = yes; then
4149 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4151 cat > conftest.
$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4155 #ifdef HAVE_UNISTD_H
4160 * If this system has a BSD-style setpgrp, which takes arguments, exit
4165 if (setpgrp(1,1) == -1)
4172 if { (eval echo configure
:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4174 ac_cv_func_setpgrp_void
=no
4176 echo "configure: failed program was:" >&5
4177 cat conftest.
$ac_ext >&5
4179 ac_cv_func_setpgrp_void
=yes
4187 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4188 if test $ac_cv_func_setpgrp_void = yes; then
4189 cat >> confdefs.h
<<\EOF
4190 #define SETPGRP_VOID 1
4196 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4197 echo "configure:4198: checking whether setpgrp takes no argument" >&5
4198 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 cat > conftest.
$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4209 if (setpgrp(1,1) == -1)
4216 if { (eval echo configure
:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4218 ac_cv_func_setpgrp_void
=no
4220 echo "configure: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4223 ac_cv_func_setpgrp_void
=yes
4228 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4229 if test $ac_cv_func_setpgrp_void = yes; then
4230 cat >> confdefs.h
<<\EOF
4231 #define SETPGRP_VOID 1
4237 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4238 # since sigsetjmp might only be defined as a macro.
4239 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4240 echo "configure:4241: checking for sigsetjmp" >&5
4241 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 cat > conftest.
$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4251 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4254 if { (eval echo configure
:4255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4256 gdb_cv_func_sigsetjmp
=yes
4258 echo "configure: failed program was:" >&5
4259 cat conftest.
$ac_ext >&5
4261 gdb_cv_func_sigsetjmp
=no
4266 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4267 if test $gdb_cv_func_sigsetjmp = yes; then
4268 cat >> confdefs.h
<<\EOF
4269 #define HAVE_SIGSETJMP 1
4274 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4275 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4276 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4277 echo "configure:4278: checking for r_fs in struct reg" >&5
4278 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 cat > conftest.
$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4284 #include <machine/reg.h>
4286 struct reg r; r.r_fs;
4289 if { (eval echo configure
:4290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4291 gdb_cv_struct_reg_r_fs
=yes
4293 echo "configure: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4296 gdb_cv_struct_reg_r_fs
=no
4301 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4302 if test $gdb_cv_struct_reg_r_fs = yes; then
4303 cat >> confdefs.h
<<\EOF
4304 #define HAVE_STRUCT_REG_R_FS 1
4308 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4309 echo "configure:4310: checking for r_gs in struct reg" >&5
4310 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 cat > conftest.
$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <machine/reg.h>
4318 struct reg r; r.r_gs;
4321 if { (eval echo configure
:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4323 gdb_cv_struct_reg_r_gs
=yes
4325 echo "configure: failed program was:" >&5
4326 cat conftest.
$ac_ext >&5
4328 gdb_cv_struct_reg_r_gs
=no
4333 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4334 if test $gdb_cv_struct_reg_r_gs = yes; then
4335 cat >> confdefs.h
<<\EOF
4336 #define HAVE_STRUCT_REG_R_GS 1
4341 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4342 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4343 echo "configure:4344: checking for PTRACE_GETREGS" >&5
4344 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 #include <sys/ptrace.h>
4355 if { (eval echo configure
:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4357 gdb_cv_have_ptrace_getregs
=yes
4359 echo "configure: failed program was:" >&5
4360 cat conftest.
$ac_ext >&5
4362 gdb_cv_have_ptrace_getregs
=no
4367 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4368 if test $gdb_cv_have_ptrace_getregs = yes; then
4369 cat >> confdefs.h
<<\EOF
4370 #define HAVE_PTRACE_GETREGS 1
4375 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4376 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4377 echo "configure:4378: checking for PTRACE_GETFPXREGS" >&5
4378 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 cat > conftest.
$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 #include <sys/ptrace.h>
4389 if { (eval echo configure
:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4391 gdb_cv_have_ptrace_getfpxregs
=yes
4393 echo "configure: failed program was:" >&5
4394 cat conftest.
$ac_ext >&5
4396 gdb_cv_have_ptrace_getfpxregs
=no
4401 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4402 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4403 cat >> confdefs.h
<<\EOF
4404 #define HAVE_PTRACE_GETFPXREGS 1
4409 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4410 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4411 echo "configure:4412: checking for PT_GETDBREGS" >&5
4412 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 cat > conftest.
$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 #include <sys/types.h>
4419 #include <sys/ptrace.h>
4424 if { (eval echo configure
:4425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4426 gdb_cv_have_pt_getdbregs
=yes
4428 echo "configure: failed program was:" >&5
4429 cat conftest.
$ac_ext >&5
4431 gdb_cv_have_pt_getdbregs
=no
4436 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4437 if test $gdb_cv_have_pt_getdbregs = yes; then
4438 cat >> confdefs.h
<<\EOF
4439 #define HAVE_PT_GETDBREGS 1
4444 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4445 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
4446 echo "configure:4447: checking for PT_GETXMMREGS" >&5
4447 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.
$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 #include <sys/types.h>
4454 #include <sys/ptrace.h>
4459 if { (eval echo configure
:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4461 gdb_cv_have_pt_getxmmregs
=yes
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4466 gdb_cv_have_pt_getxmmregs
=no
4471 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
4472 if test $gdb_cv_have_pt_getxmmregs = yes; then
4473 cat >> confdefs.h
<<\EOF
4474 #define HAVE_PT_GETXMMREGS 1
4480 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4481 echo "configure:4482: checking for socketpair in -lsocket" >&5
4482 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 ac_save_LIBS
="$LIBS"
4487 LIBS
="-lsocket $LIBS"
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4500 if { (eval echo configure
:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4502 eval "ac_cv_lib_$ac_lib_var=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4507 eval "ac_cv_lib_$ac_lib_var=no"
4510 LIBS
="$ac_save_LIBS"
4513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4516 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4517 cat >> confdefs.h
<<EOF
4518 #define $ac_tr_lib 1
4521 LIBS
="-lsocket $LIBS"
4524 echo "$ac_t""no" 1>&6
4527 for ac_func
in socketpair
4529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_func" >&5
4531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 cat > conftest.
$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* System header to define __stub macros and hopefully few prototypes,
4538 which can conflict with char $ac_func(); below. */
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4547 /* The GNU C library defines this for functions which it implements
4548 to always fail with ENOSYS. Some functions are actually named
4549 something starting with __ and the normal name is an alias. */
4550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4558 if { (eval echo configure
:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4560 eval "ac_cv_func_$ac_func=yes"
4562 echo "configure: failed program was:" >&5
4563 cat conftest.
$ac_ext >&5
4565 eval "ac_cv_func_$ac_func=no"
4570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4572 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4573 cat >> confdefs.h
<<EOF
4574 #define $ac_tr_func 1
4578 echo "$ac_t""no" 1>&6
4584 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4585 echo "configure:4586: checking whether malloc must be declared" >&5
4586 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 cat > conftest.
$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4594 #ifdef HAVE_STRING_H
4597 #ifdef HAVE_STRINGS_H
4598 #include <strings.h>
4601 #ifdef HAVE_STDLIB_H
4604 #ifdef HAVE_UNISTD_H
4608 char *(*pfn) = (char *(*)) malloc
4611 if { (eval echo configure
:4612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4613 bfd_cv_decl_needed_malloc
=no
4615 echo "configure: failed program was:" >&5
4616 cat conftest.
$ac_ext >&5
4618 bfd_cv_decl_needed_malloc
=yes
4623 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4624 if test $bfd_cv_decl_needed_malloc = yes; then
4625 cat >> confdefs.h
<<\EOF
4626 #define NEED_DECLARATION_MALLOC 1
4631 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4632 echo "configure:4633: checking whether realloc must be declared" >&5
4633 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 cat > conftest.
$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4641 #ifdef HAVE_STRING_H
4644 #ifdef HAVE_STRINGS_H
4645 #include <strings.h>
4648 #ifdef HAVE_STDLIB_H
4651 #ifdef HAVE_UNISTD_H
4655 char *(*pfn) = (char *(*)) realloc
4658 if { (eval echo configure
:4659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4660 bfd_cv_decl_needed_realloc
=no
4662 echo "configure: failed program was:" >&5
4663 cat conftest.
$ac_ext >&5
4665 bfd_cv_decl_needed_realloc
=yes
4670 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4671 if test $bfd_cv_decl_needed_realloc = yes; then
4672 cat >> confdefs.h
<<\EOF
4673 #define NEED_DECLARATION_REALLOC 1
4678 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4679 echo "configure:4680: checking whether free must be declared" >&5
4680 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 cat > conftest.
$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4688 #ifdef HAVE_STRING_H
4691 #ifdef HAVE_STRINGS_H
4692 #include <strings.h>
4695 #ifdef HAVE_STDLIB_H
4698 #ifdef HAVE_UNISTD_H
4702 char *(*pfn) = (char *(*)) free
4705 if { (eval echo configure
:4706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4707 bfd_cv_decl_needed_free
=no
4709 echo "configure: failed program was:" >&5
4710 cat conftest.
$ac_ext >&5
4712 bfd_cv_decl_needed_free
=yes
4717 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4718 if test $bfd_cv_decl_needed_free = yes; then
4719 cat >> confdefs.h
<<\EOF
4720 #define NEED_DECLARATION_FREE 1
4725 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4726 echo "configure:4727: checking whether strerror must be declared" >&5
4727 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4730 cat > conftest.
$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4735 #ifdef HAVE_STRING_H
4738 #ifdef HAVE_STRINGS_H
4739 #include <strings.h>
4742 #ifdef HAVE_STDLIB_H
4745 #ifdef HAVE_UNISTD_H
4749 char *(*pfn) = (char *(*)) strerror
4752 if { (eval echo configure
:4753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4754 bfd_cv_decl_needed_strerror
=no
4756 echo "configure: failed program was:" >&5
4757 cat conftest.
$ac_ext >&5
4759 bfd_cv_decl_needed_strerror
=yes
4764 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4765 if test $bfd_cv_decl_needed_strerror = yes; then
4766 cat >> confdefs.h
<<\EOF
4767 #define NEED_DECLARATION_STRERROR 1
4772 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4773 echo "configure:4774: checking whether strdup must be declared" >&5
4774 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.
$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 #ifdef HAVE_STRING_H
4785 #ifdef HAVE_STRINGS_H
4786 #include <strings.h>
4789 #ifdef HAVE_STDLIB_H
4792 #ifdef HAVE_UNISTD_H
4796 char *(*pfn) = (char *(*)) strdup
4799 if { (eval echo configure
:4800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4801 bfd_cv_decl_needed_strdup
=no
4803 echo "configure: failed program was:" >&5
4804 cat conftest.
$ac_ext >&5
4806 bfd_cv_decl_needed_strdup
=yes
4811 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4812 if test $bfd_cv_decl_needed_strdup = yes; then
4813 cat >> confdefs.h
<<\EOF
4814 #define NEED_DECLARATION_STRDUP 1
4819 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4820 echo "configure:4821: checking whether strstr must be declared" >&5
4821 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4829 #ifdef HAVE_STRING_H
4832 #ifdef HAVE_STRINGS_H
4833 #include <strings.h>
4836 #ifdef HAVE_STDLIB_H
4839 #ifdef HAVE_UNISTD_H
4843 char *(*pfn) = (char *(*)) strstr
4846 if { (eval echo configure
:4847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4848 bfd_cv_decl_needed_strstr
=no
4850 echo "configure: failed program was:" >&5
4851 cat conftest.
$ac_ext >&5
4853 bfd_cv_decl_needed_strstr
=yes
4858 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4859 if test $bfd_cv_decl_needed_strstr = yes; then
4860 cat >> confdefs.h
<<\EOF
4861 #define NEED_DECLARATION_STRSTR 1
4866 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
4867 echo "configure:4868: checking whether canonicalize_file_name must be declared" >&5
4868 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 cat > conftest.
$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4876 #ifdef HAVE_STRING_H
4879 #ifdef HAVE_STRINGS_H
4880 #include <strings.h>
4883 #ifdef HAVE_STDLIB_H
4886 #ifdef HAVE_UNISTD_H
4890 char *(*pfn) = (char *(*)) canonicalize_file_name
4893 if { (eval echo configure
:4894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4895 bfd_cv_decl_needed_canonicalize_file_name
=no
4897 echo "configure: failed program was:" >&5
4898 cat conftest.
$ac_ext >&5
4900 bfd_cv_decl_needed_canonicalize_file_name
=yes
4905 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
4906 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
4907 cat >> confdefs.h
<<\EOF
4908 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
4914 # The following save_state_t checkery is only necessary for HPUX
4915 # versions earlier than 10.20. When those fade from memory, this
4916 # could be expunged. --jsm 1999-03-22
4918 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4919 echo "configure:4920: checking for HPUX save_state structure" >&5
4920 cat > conftest.
$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4923 #include <machine/save_state.h>
4925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4926 egrep "save_state_t" >/dev
/null
2>&1; then
4928 gdb_cv_hpux_savestate
=yes
4931 gdb_cv_hpux_savestate
=no
4935 cat > conftest.
$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 #include <machine/save_state.h>
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 egrep "ss_wide" >/dev
/null
2>&1; then
4943 gdb_cv_hpux_sswide
=yes
4946 gdb_cv_hpux_sswide
=no
4950 if test $gdb_cv_hpux_savestate = yes
4952 cat >> confdefs.h
<<\EOF
4953 #define HAVE_STRUCT_SAVE_STATE_T 1
4957 if test $gdb_cv_hpux_sswide = yes
4959 cat >> confdefs.h
<<\EOF
4960 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4964 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4967 # If we are configured native on GNU/Linux, work around problems with
4969 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4971 if test "${target}" = "${host}"; then
4974 cat >> confdefs.h
<<\EOF
4975 #define START_INFERIOR_TRAPS_EXPECTED 2
4978 cat >> confdefs.h
<<\EOF
4979 #define sys_quotactl 1
4984 cat >> confdefs.h
<<\EOF
4985 #define NEW_PROC_API 1
4989 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4990 cat >> confdefs.h
<<\EOF
4991 #define NEW_PROC_API 1
4996 cat >> confdefs.h
<<\EOF
4997 #define NEW_PROC_API 1
5004 if test "$ac_cv_header_sys_procfs_h" = yes; then
5005 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5006 echo "configure:5007: checking for pstatus_t in sys/procfs.h" >&5
5007 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 cat > conftest.
$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5015 #include <sys/procfs.h>
5020 if { (eval echo configure
:5021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5024 echo "configure: failed program was:" >&5
5025 cat conftest.
$ac_ext >&5
5027 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5033 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5034 cat >> confdefs.h
<<\EOF
5035 #define HAVE_PSTATUS_T 1
5039 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5041 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
5042 echo "configure:5043: checking for prrun_t in sys/procfs.h" >&5
5043 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 cat > conftest.
$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5051 #include <sys/procfs.h>
5056 if { (eval echo configure
:5057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5058 bfd_cv_have_sys_procfs_type_prrun_t
=yes
5060 echo "configure: failed program was:" >&5
5061 cat conftest.
$ac_ext >&5
5063 bfd_cv_have_sys_procfs_type_prrun_t
=no
5069 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
5070 cat >> confdefs.h
<<\EOF
5071 #define HAVE_PRRUN_T 1
5075 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
5077 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
5078 echo "configure:5079: checking for gregset_t in sys/procfs.h" >&5
5079 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.
$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5087 #include <sys/procfs.h>
5092 if { (eval echo configure
:5093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5094 bfd_cv_have_sys_procfs_type_gregset_t
=yes
5096 echo "configure: failed program was:" >&5
5097 cat conftest.
$ac_ext >&5
5099 bfd_cv_have_sys_procfs_type_gregset_t
=no
5105 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
5106 cat >> confdefs.h
<<\EOF
5107 #define HAVE_GREGSET_T 1
5111 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
5113 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
5114 echo "configure:5115: checking for fpregset_t in sys/procfs.h" >&5
5115 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 cat > conftest.
$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5123 #include <sys/procfs.h>
5128 if { (eval echo configure
:5129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5130 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
5132 echo "configure: failed program was:" >&5
5133 cat conftest.
$ac_ext >&5
5135 bfd_cv_have_sys_procfs_type_fpregset_t
=no
5141 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
5142 cat >> confdefs.h
<<\EOF
5143 #define HAVE_FPREGSET_T 1
5147 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
5149 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
5150 echo "configure:5151: checking for prgregset_t in sys/procfs.h" >&5
5151 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 cat > conftest.
$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5159 #include <sys/procfs.h>
5164 if { (eval echo configure
:5165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5166 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5168 echo "configure: failed program was:" >&5
5169 cat conftest.
$ac_ext >&5
5171 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5177 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5178 cat >> confdefs.h
<<\EOF
5179 #define HAVE_PRGREGSET_T 1
5183 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5185 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5186 echo "configure:5187: checking for prfpregset_t in sys/procfs.h" >&5
5187 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 cat > conftest.
$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5195 #include <sys/procfs.h>
5200 if { (eval echo configure
:5201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5202 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
5204 echo "configure: failed program was:" >&5
5205 cat conftest.
$ac_ext >&5
5207 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
5213 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5214 cat >> confdefs.h
<<\EOF
5215 #define HAVE_PRFPREGSET_T 1
5219 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5221 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5222 echo "configure:5223: checking for prgregset32_t in sys/procfs.h" >&5
5223 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 cat > conftest.
$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5231 #include <sys/procfs.h>
5236 if { (eval echo configure
:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
5240 echo "configure: failed program was:" >&5
5241 cat conftest.
$ac_ext >&5
5243 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
5249 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5250 cat >> confdefs.h
<<\EOF
5251 #define HAVE_PRGREGSET32_T 1
5255 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5257 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5258 echo "configure:5259: checking for prfpregset32_t in sys/procfs.h" >&5
5259 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.
$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5267 #include <sys/procfs.h>
5272 if { (eval echo configure
:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5274 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5276 echo "configure: failed program was:" >&5
5277 cat conftest.
$ac_ext >&5
5279 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5285 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5286 cat >> confdefs.h
<<\EOF
5287 #define HAVE_PRFPREGSET32_T 1
5291 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5293 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5294 echo "configure:5295: checking for lwpid_t in sys/procfs.h" >&5
5295 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5298 cat > conftest.
$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5303 #include <sys/procfs.h>
5308 if { (eval echo configure
:5309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5310 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5312 echo "configure: failed program was:" >&5
5313 cat conftest.
$ac_ext >&5
5315 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5321 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5322 cat >> confdefs.h
<<\EOF
5323 #define HAVE_LWPID_T 1
5327 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5329 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5330 echo "configure:5331: checking for psaddr_t in sys/procfs.h" >&5
5331 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5334 cat > conftest.
$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5339 #include <sys/procfs.h>
5344 if { (eval echo configure
:5345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5346 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5348 echo "configure: failed program was:" >&5
5349 cat conftest.
$ac_ext >&5
5351 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5357 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5358 cat >> confdefs.h
<<\EOF
5359 #define HAVE_PSADDR_T 1
5363 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5365 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5366 echo "configure:5367: checking for prsysent_t in sys/procfs.h" >&5
5367 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 cat > conftest.
$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5375 #include <sys/procfs.h>
5380 if { (eval echo configure
:5381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5384 echo "configure: failed program was:" >&5
5385 cat conftest.
$ac_ext >&5
5387 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5393 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5394 cat >> confdefs.h
<<\EOF
5395 #define HAVE_PRSYSENT_T 1
5399 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5401 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5402 echo "configure:5403: checking for pr_sigset_t in sys/procfs.h" >&5
5403 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 cat > conftest.
$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5411 #include <sys/procfs.h>
5416 if { (eval echo configure
:5417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5418 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5420 echo "configure: failed program was:" >&5
5421 cat conftest.
$ac_ext >&5
5423 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5429 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5430 cat >> confdefs.h
<<\EOF
5431 #define HAVE_PR_SIGSET_T 1
5435 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5437 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5438 echo "configure:5439: checking for pr_sigaction64_t in sys/procfs.h" >&5
5439 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 cat > conftest.
$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5447 #include <sys/procfs.h>
5449 pr_sigaction64_t avar
5452 if { (eval echo configure
:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5454 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5456 echo "configure: failed program was:" >&5
5457 cat conftest.
$ac_ext >&5
5459 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5465 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5466 cat >> confdefs.h
<<\EOF
5467 #define HAVE_PR_SIGACTION64_T 1
5471 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5473 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5474 echo "configure:5475: checking for pr_siginfo64_t in sys/procfs.h" >&5
5475 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 cat > conftest.
$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5483 #include <sys/procfs.h>
5488 if { (eval echo configure
:5489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5490 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5492 echo "configure: failed program was:" >&5
5493 cat conftest.
$ac_ext >&5
5495 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5501 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5502 cat >> confdefs.h
<<\EOF
5503 #define HAVE_PR_SIGINFO64_T 1
5507 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5513 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5514 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5515 echo "configure:5516: checking whether prfpregset_t type is broken" >&5
5516 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 if test "$cross_compiling" = yes; then
5520 gdb_cv_prfpregset_t_broken
=yes
5522 cat > conftest.
$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 #include <sys/procfs.h>
5528 if (sizeof (prfpregset_t) == sizeof (void *))
5533 if { (eval echo configure
:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5535 gdb_cv_prfpregset_t_broken
=no
5537 echo "configure: failed program was:" >&5
5538 cat conftest.
$ac_ext >&5
5540 gdb_cv_prfpregset_t_broken
=yes
5547 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5548 if test $gdb_cv_prfpregset_t_broken = yes; then
5549 cat >> confdefs.h
<<\EOF
5550 #define PRFPREGSET_T_BROKEN 1
5557 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5558 echo "configure:5559: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5559 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 cat > conftest.
$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5566 #include <sys/types.h>
5567 #include <sys/procfs.h>
5572 dummy = ioctl(0, PIOCSET, &dummy);
5576 if { (eval echo configure
:5577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5578 gdb_cv_have_procfs_piocset
=yes
5580 echo "configure: failed program was:" >&5
5581 cat conftest.
$ac_ext >&5
5583 gdb_cv_have_procfs_piocset
=no
5588 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5589 if test $gdb_cv_have_procfs_piocset = yes; then
5590 cat >> confdefs.h
<<\EOF
5591 #define HAVE_PROCFS_PIOCSET 1
5597 if test ${host} = ${target} ; then
5599 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5600 echo "configure:5601: checking for member l_addr in struct link_map" >&5
5601 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 cat > conftest.
$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5609 struct link_map lm; (void) lm.l_addr;
5612 if { (eval echo configure
:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5614 gdb_cv_have_struct_link_map_with_l_members
=yes
5616 echo "configure: failed program was:" >&5
5617 cat conftest.
$ac_ext >&5
5619 gdb_cv_have_struct_link_map_with_l_members
=no
5624 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5625 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5626 cat >> confdefs.h
<<\EOF
5627 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5633 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5634 echo "configure:5635: checking for member lm_addr in struct link_map" >&5
5635 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5638 cat > conftest.
$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5641 #include <sys/types.h>
5644 struct link_map lm; (void) lm.lm_addr;
5647 if { (eval echo configure
:5648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5649 gdb_cv_have_struct_link_map_with_lm_members
=yes
5651 echo "configure: failed program was:" >&5
5652 cat conftest.
$ac_ext >&5
5654 gdb_cv_have_struct_link_map_with_lm_members
=no
5659 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5660 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5661 cat >> confdefs.h
<<\EOF
5662 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5668 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5669 echo "configure:5670: checking for member som_addr in struct so_map" >&5
5670 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 cat > conftest.
$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 #include <sys/types.h>
5682 struct so_map lm; (void) lm.som_addr;
5685 if { (eval echo configure
:5686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5687 gdb_cv_have_struct_so_map_with_som_members
=yes
5689 echo "configure: failed program was:" >&5
5690 cat conftest.
$ac_ext >&5
5692 gdb_cv_have_struct_so_map_with_som_members
=no
5697 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5698 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5699 cat >> confdefs.h
<<\EOF
5700 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5706 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5707 echo "configure:5708: checking for struct link_map32 in sys/link.h" >&5
5708 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5711 cat > conftest.
$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5715 #include <sys/link.h>
5717 struct link_map32 l;
5720 if { (eval echo configure
:5721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5722 gdb_cv_have_struct_link_map32
=yes
5724 echo "configure: failed program was:" >&5
5725 cat conftest.
$ac_ext >&5
5727 gdb_cv_have_struct_link_map32
=no
5732 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5733 if test $gdb_cv_have_struct_link_map32 = yes; then
5734 cat >> confdefs.h
<<\EOF
5735 #define HAVE_STRUCT_LINK_MAP32 1
5738 cat >> confdefs.h
<<\EOF
5739 #define _SYSCALL32 1
5745 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5746 echo "configure:5747: checking for main in -lm" >&5
5747 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 ac_save_LIBS
="$LIBS"
5753 cat > conftest.
$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5761 if { (eval echo configure
:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5763 eval "ac_cv_lib_$ac_lib_var=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.
$ac_ext >&5
5768 eval "ac_cv_lib_$ac_lib_var=no"
5771 LIBS
="$ac_save_LIBS"
5774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5775 echo "$ac_t""yes" 1>&6
5776 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5778 cat >> confdefs.h
<<EOF
5779 #define $ac_tr_lib 1
5785 echo "$ac_t""no" 1>&6
5789 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5790 echo "configure:5791: checking for wctype in -lc" >&5
5791 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5795 ac_save_LIBS
="$LIBS"
5797 cat > conftest.
$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5800 /* Override any gcc2 internal prototype to avoid an error. */
5801 /* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5809 if { (eval echo configure
:5810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5811 eval "ac_cv_lib_$ac_lib_var=yes"
5813 echo "configure: failed program was:" >&5
5814 cat conftest.
$ac_ext >&5
5816 eval "ac_cv_lib_$ac_lib_var=no"
5819 LIBS
="$ac_save_LIBS"
5822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5826 echo "$ac_t""no" 1>&6
5827 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5828 echo "configure:5829: checking for wctype in -lw" >&5
5829 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 ac_save_LIBS
="$LIBS"
5835 cat > conftest.
$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5847 if { (eval echo configure
:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5849 eval "ac_cv_lib_$ac_lib_var=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.
$ac_ext >&5
5854 eval "ac_cv_lib_$ac_lib_var=no"
5857 LIBS
="$ac_save_LIBS"
5860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5862 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5864 cat >> confdefs.h
<<EOF
5865 #define $ac_tr_lib 1
5871 echo "$ac_t""no" 1>&6
5878 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5879 echo "configure:5880: checking for long long support in compiler" >&5
5880 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 cat > conftest.
$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5889 extern long long foo;
5890 switch (foo & 2) { case 0: return 1; }
5894 if { (eval echo configure
:5895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5896 gdb_cv_c_long_long
=yes
5898 echo "configure: failed program was:" >&5
5899 cat conftest.
$ac_ext >&5
5901 gdb_cv_c_long_long
=no
5906 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5907 if test $gdb_cv_c_long_long = yes; then
5908 cat >> confdefs.h
<<\EOF
5909 #define CC_HAS_LONG_LONG 1
5915 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5916 echo "configure:5917: checking for long long support in printf" >&5
5917 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5920 if test "$cross_compiling" = yes; then
5921 gdb_cv_printf_has_long_long
=no
5923 cat > conftest.
$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5930 l = (l << 16) + 0x0123;
5931 l = (l << 16) + 0x4567;
5932 l = (l << 16) + 0x89ab;
5933 l = (l << 16) + 0xcdef;
5934 sprintf (buf, "0x%016llx", l);
5935 return (strcmp ("0x0123456789abcdef", buf));
5938 if { (eval echo configure
:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5940 gdb_cv_printf_has_long_long
=yes
5942 echo "configure: failed program was:" >&5
5943 cat conftest.
$ac_ext >&5
5945 gdb_cv_printf_has_long_long
=no
5952 if test $gdb_cv_printf_has_long_long = yes; then
5953 cat >> confdefs.h
<<\EOF
5954 #define PRINTF_HAS_LONG_LONG 1
5958 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5961 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5962 echo "configure:5963: checking for long double support in compiler" >&5
5963 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5966 cat > conftest.
$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5974 if { (eval echo configure
:5975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5976 ac_cv_c_long_double
=yes
5978 echo "configure: failed program was:" >&5
5979 cat conftest.
$ac_ext >&5
5981 ac_cv_c_long_double
=no
5986 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5987 if test $ac_cv_c_long_double = yes; then
5988 cat >> confdefs.h
<<\EOF
5989 #define HAVE_LONG_DOUBLE 1
5995 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5996 echo "configure:5997: checking for long double support in printf" >&5
5997 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 if test "$cross_compiling" = yes; then
6001 gdb_cv_printf_has_long_double
=no
6003 cat > conftest.
$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6009 long double f = 3.141592653;
6010 sprintf (buf, "%Lg", f);
6011 return (strncmp ("3.14159", buf, 7));
6014 if { (eval echo configure
:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6016 gdb_cv_printf_has_long_double
=yes
6018 echo "configure: failed program was:" >&5
6019 cat conftest.
$ac_ext >&5
6021 gdb_cv_printf_has_long_double
=no
6028 if test $gdb_cv_printf_has_long_double = yes; then
6029 cat >> confdefs.h
<<\EOF
6030 #define PRINTF_HAS_LONG_DOUBLE 1
6034 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
6037 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
6038 echo "configure:6039: checking for long double support in scanf" >&5
6039 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 if test "$cross_compiling" = yes; then
6043 gdb_cv_scanf_has_long_double
=no
6045 cat > conftest.
$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6050 char *buf = "3.141592653";
6052 sscanf (buf, "%Lg", &f);
6053 return !(f > 3.14159 && f < 3.14160);
6056 if { (eval echo configure
:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6058 gdb_cv_scanf_has_long_double
=yes
6060 echo "configure: failed program was:" >&5
6061 cat conftest.
$ac_ext >&5
6063 gdb_cv_scanf_has_long_double
=no
6070 if test $gdb_cv_scanf_has_long_double = yes; then
6071 cat >> confdefs.h
<<\EOF
6072 #define SCANF_HAS_LONG_DOUBLE 1
6076 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
6078 for ac_hdr
in unistd.h
6080 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6082 echo "configure:6083: checking for $ac_hdr" >&5
6083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6084 echo $ac_n "(cached) $ac_c" 1>&6
6086 cat > conftest.
$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6092 { (eval echo configure
:6093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6093 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6094 if test -z "$ac_err"; then
6096 eval "ac_cv_header_$ac_safe=yes"
6099 echo "configure: failed program was:" >&5
6100 cat conftest.
$ac_ext >&5
6102 eval "ac_cv_header_$ac_safe=no"
6106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6107 echo "$ac_t""yes" 1>&6
6108 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6109 cat >> confdefs.h
<<EOF
6110 #define $ac_tr_hdr 1
6114 echo "$ac_t""no" 1>&6
6118 for ac_func
in getpagesize
6120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6121 echo "configure:6122: checking for $ac_func" >&5
6122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6123 echo $ac_n "(cached) $ac_c" 1>&6
6125 cat > conftest.
$ac_ext <<EOF
6126 #line 6127 "configure"
6127 #include "confdefs.h"
6128 /* System header to define __stub macros and hopefully few prototypes,
6129 which can conflict with char $ac_func(); below. */
6131 /* Override any gcc2 internal prototype to avoid an error. */
6132 /* We use char because int might match the return type of a gcc2
6133 builtin and then its argument prototype would still apply. */
6138 /* The GNU C library defines this for functions which it implements
6139 to always fail with ENOSYS. Some functions are actually named
6140 something starting with __ and the normal name is an alias. */
6141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6149 if { (eval echo configure
:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6151 eval "ac_cv_func_$ac_func=yes"
6153 echo "configure: failed program was:" >&5
6154 cat conftest.
$ac_ext >&5
6156 eval "ac_cv_func_$ac_func=no"
6161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6162 echo "$ac_t""yes" 1>&6
6163 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6164 cat >> confdefs.h
<<EOF
6165 #define $ac_tr_func 1
6169 echo "$ac_t""no" 1>&6
6173 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6174 echo "configure:6175: checking for working mmap" >&5
6175 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6178 if test "$cross_compiling" = yes; then
6179 ac_cv_func_mmap_fixed_mapped
=no
6181 cat > conftest.
$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6185 /* Thanks to Mike Haertel and Jim Avera for this test.
6186 Here is a matrix of mmap possibilities:
6187 mmap private not fixed
6188 mmap private fixed at somewhere currently unmapped
6189 mmap private fixed at somewhere already mapped
6190 mmap shared not fixed
6191 mmap shared fixed at somewhere currently unmapped
6192 mmap shared fixed at somewhere already mapped
6193 For private mappings, we should verify that changes cannot be read()
6194 back from the file, nor mmap's back from the file at a different
6195 address. (There have been systems where private was not correctly
6196 implemented like the infamous i386 svr4.0, and systems where the
6197 VM page cache was not coherent with the filesystem buffer cache
6198 like early versions of FreeBSD and possibly contemporary NetBSD.)
6199 For shared mappings, we should conversely verify that changes get
6200 propogated back to all the places they're supposed to be.
6202 Grep wants private fixed already mapped.
6203 The main things grep needs to know about mmap are:
6204 * does it exist and is it safe to write into the mmap'd area
6205 * how to use it (BSD variants) */
6206 #include <sys/types.h>
6208 #include <sys/mman.h>
6210 /* This mess was copied from the GNU getpagesize.h. */
6211 #ifndef HAVE_GETPAGESIZE
6212 # ifdef HAVE_UNISTD_H
6213 # include <unistd.h>
6216 /* Assume that all systems that can run configure have sys/param.h. */
6217 # ifndef HAVE_SYS_PARAM_H
6218 # define HAVE_SYS_PARAM_H 1
6221 # ifdef _SC_PAGESIZE
6222 # define getpagesize() sysconf(_SC_PAGESIZE)
6223 # else /* no _SC_PAGESIZE */
6224 # ifdef HAVE_SYS_PARAM_H
6225 # include <sys/param.h>
6226 # ifdef EXEC_PAGESIZE
6227 # define getpagesize() EXEC_PAGESIZE
6228 # else /* no EXEC_PAGESIZE */
6230 # define getpagesize() NBPG * CLSIZE
6233 # endif /* no CLSIZE */
6234 # else /* no NBPG */
6236 # define getpagesize() NBPC
6237 # else /* no NBPC */
6239 # define getpagesize() PAGESIZE
6240 # endif /* PAGESIZE */
6241 # endif /* no NBPC */
6242 # endif /* no NBPG */
6243 # endif /* no EXEC_PAGESIZE */
6244 # else /* no HAVE_SYS_PARAM_H */
6245 # define getpagesize() 8192 /* punt totally */
6246 # endif /* no HAVE_SYS_PARAM_H */
6247 # endif /* no _SC_PAGESIZE */
6249 #endif /* no HAVE_GETPAGESIZE */
6252 extern "C" { void *malloc(unsigned); }
6260 char *data, *data2, *data3;
6264 pagesize = getpagesize();
6267 * First, make a file with some known garbage in it.
6269 data = malloc(pagesize);
6272 for (i = 0; i < pagesize; ++i)
6273 *(data + i) = rand();
6275 fd = creat("conftestmmap", 0600);
6278 if (write(fd, data, pagesize) != pagesize)
6283 * Next, try to mmap the file at a fixed address which
6284 * already has something else allocated at it. If we can,
6285 * also make sure that we see the same garbage.
6287 fd = open("conftestmmap", O_RDWR);
6290 data2 = malloc(2 * pagesize);
6293 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6294 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6295 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6297 for (i = 0; i < pagesize; ++i)
6298 if (*(data + i) != *(data2 + i))
6302 * Finally, make sure that changes to the mapped area
6303 * do not percolate back to the file as seen by read().
6304 * (This is a bug on some variants of i386 svr4.0.)
6306 for (i = 0; i < pagesize; ++i)
6307 *(data2 + i) = *(data2 + i) + 1;
6308 data3 = malloc(pagesize);
6311 if (read(fd, data3, pagesize) != pagesize)
6313 for (i = 0; i < pagesize; ++i)
6314 if (*(data + i) != *(data3 + i))
6317 unlink("conftestmmap");
6322 if { (eval echo configure
:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6324 ac_cv_func_mmap_fixed_mapped
=yes
6326 echo "configure: failed program was:" >&5
6327 cat conftest.
$ac_ext >&5
6329 ac_cv_func_mmap_fixed_mapped
=no
6336 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6337 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6338 cat >> confdefs.h
<<\EOF
6347 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
6348 echo "configure:6349: checking for -bbigtoc option" >&5
6349 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6353 SAVE_LDFLAGS
=$LDFLAGS
6356 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
6357 *) gdb_cv_bigtoc
=-bbigtoc ;;
6360 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
6361 cat > conftest.
$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6369 if { (eval echo configure
:6370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6372 echo "configure: failed program was:" >&5
6373 cat conftest.
$ac_ext >&5
6381 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
6382 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
6388 if test ${build} = ${host} -a ${host} = ${target} ; then
6391 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6392 echo "configure:6393: checking for HPUX/OSF thread support" >&5
6393 if test -f /usr
/include
/dce
/cma_config.h
; then
6394 if test "$GCC" = "yes" ; then
6395 echo "$ac_t""yes" 1>&6
6396 cat >> confdefs.h
<<\EOF
6397 #define HAVE_HPUX_THREAD_SUPPORT 1
6400 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6401 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6403 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6406 echo "$ac_t""no" 1>&6
6410 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6411 echo "configure:6412: checking for Solaris thread debugging library" >&5
6412 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6413 echo "$ac_t""yes" 1>&6
6414 cat >> confdefs.h
<<\EOF
6415 #define HAVE_THREAD_DB_LIB 1
6418 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6419 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6420 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6421 echo "configure:6422: checking for dlopen in -ldl" >&5
6422 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6426 ac_save_LIBS
="$LIBS"
6428 cat > conftest.
$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6440 if { (eval echo configure
:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6442 eval "ac_cv_lib_$ac_lib_var=yes"
6444 echo "configure: failed program was:" >&5
6445 cat conftest.
$ac_ext >&5
6447 eval "ac_cv_lib_$ac_lib_var=no"
6450 LIBS
="$ac_save_LIBS"
6453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6454 echo "$ac_t""yes" 1>&6
6455 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6457 cat >> confdefs.h
<<EOF
6458 #define $ac_tr_lib 1
6464 echo "$ac_t""no" 1>&6
6467 if test "$GCC" = "yes" ; then
6468 # The GNU linker requires the -export-dynamic option to make
6469 # all symbols visible in the dynamic symbol table.
6470 hold_ldflags
=$LDFLAGS
6471 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6472 echo "configure:6473: checking for the ld -export-dynamic flag" >&5
6473 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6474 cat > conftest.
$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6482 if { (eval echo configure
:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6486 echo "configure: failed program was:" >&5
6487 cat conftest.
$ac_ext >&5
6492 LDFLAGS
=$hold_ldflags
6493 echo "$ac_t""$found" 1>&6
6494 if test $found = yes; then
6495 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6498 # Sun randomly tweaked the prototypes in <proc_service.h>
6500 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6501 echo "configure:6502: checking if <proc_service.h> is old" >&5
6502 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6503 echo $ac_n "(cached) $ac_c" 1>&6
6506 cat > conftest.
$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6510 #include <proc_service.h>
6512 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6518 if { (eval echo configure
:6519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6520 gdb_cv_proc_service_is_old
=no
6522 echo "configure: failed program was:" >&5
6523 cat conftest.
$ac_ext >&5
6525 gdb_cv_proc_service_is_old
=yes
6531 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6532 if test $gdb_cv_proc_service_is_old = yes; then
6533 cat >> confdefs.h
<<\EOF
6534 #define PROC_SERVICE_IS_OLD 1
6539 echo "$ac_t""no" 1>&6
6547 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6548 if test "${enable_gdbcli+set}" = set; then
6549 enableval
="$enable_gdbcli"
6551 case "${enableval}" in
6552 yes) enable_gdbcli
=yes ;;
6553 "") enable_gdbcli
=yes ;;
6555 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6558 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6566 case ${enable_gdbcli} in
6568 if test -d "${srcdir}/cli" ; then
6569 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6570 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6571 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6572 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6573 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6574 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6575 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6576 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6577 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6583 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6584 if test "${enable_gdbmi+set}" = set; then
6585 enableval
="$enable_gdbmi"
6587 case "${enable_gdbmi}" in
6589 "") enable_gdbmi
=yes ;;
6591 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6599 case ${enable_gdbmi} in
6601 if test -d "${srcdir}/mi" ; then
6602 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6603 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6604 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6605 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6606 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6607 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6608 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6609 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6610 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6615 # Configure UI_OUT by default (before 5.2 it can be disabled)
6616 # It must be configured if gdbmi is configured
6621 # Check whether --with-uiout or --without-uiout was given.
6622 if test "${with_uiout+set}" = set; then
6623 withval
="$with_uiout"
6624 case "${withval}" in
6625 yes) want_uiout
=true
;;
6626 no
) if test $enable_gdbmi = yes; then
6627 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6631 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6637 if test $want_uiout = true
; then
6638 UIOUT_CFLAGS
="-DUI_OUT=1"
6641 # Check whether --enable-tui or --disable-tui was given.
6642 if test "${enable_tui+set}" = set; then
6643 enableval
="$enable_tui"
6645 case "${enable_tui}" in
6647 "") enable_tui
=yes ;;
6649 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6655 case ${enable_tui} in
6657 if test -d "${srcdir}/tui" ; then
6658 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6659 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6660 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6661 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6662 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6663 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6664 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6665 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6666 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6671 # Check whether --enable-netrom or --disable-netrom was given.
6672 if test "${enable_netrom+set}" = set; then
6673 enableval
="$enable_netrom"
6674 case "${enableval}" in
6675 yes) enable_netrom
=yes ;;
6676 no
) enable_netrom
=no
;;
6677 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6682 if test "${enable_netrom}" = "yes"; then
6683 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6684 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6688 # NOTE: Don't add -Wall or -Wunused, they both include
6689 # -Wunused-parameter which reports bogus warnings.
6690 # NOTE: If you add to this list, remember to update
6691 # gdb/doc/gdbint.texinfo.
6692 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6693 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6694 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6695 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6696 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6697 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6698 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6699 # -Woverloaded-virtual -Winline -Werror"
6700 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6701 if test "${enable_build_warnings+set}" = set; then
6702 enableval
="$enable_build_warnings"
6703 case "${enableval}" in
6705 no
) build_warnings
="-w";;
6706 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6707 build_warnings
="${build_warnings} ${t}";;
6708 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6709 build_warnings
="${t} ${build_warnings}";;
6710 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6712 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6713 echo "Setting compiler warning flags = $build_warnings" 6>&1
6716 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6717 if test "${enable_gdb_build_warnings+set}" = set; then
6718 enableval
="$enable_gdb_build_warnings"
6719 case "${enableval}" in
6721 no
) build_warnings
="-w";;
6722 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6723 build_warnings
="${build_warnings} ${t}";;
6724 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6725 build_warnings
="${t} ${build_warnings}";;
6726 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6728 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6729 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6734 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6736 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6737 echo "configure:6738: checking compiler warning flags" >&5
6738 # Separate out the -Werror flag as some files just cannot be
6739 # compiled with it enabled.
6740 for w
in ${build_warnings}; do
6742 -Werr*) WERROR_CFLAGS
=-Werror ;;
6743 *) # Check that GCC accepts it
6744 saved_CFLAGS
="$CFLAGS"
6746 cat > conftest.
$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6754 if { (eval echo configure
:6755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6756 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6758 echo "configure: failed program was:" >&5
6759 cat conftest.
$ac_ext >&5
6762 CFLAGS
="$saved_CFLAGS"
6765 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6775 # Check whether --with-mmalloc or --without-mmalloc was given.
6776 if test "${with_mmalloc+set}" = set; then
6777 withval
="$with_mmalloc"
6778 case "${withval}" in
6779 yes) want_mmalloc
=true
;;
6780 no
) want_mmalloc
=false
;;
6781 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6787 if test x
$want_mmalloc = xtrue
; then
6788 cat >> confdefs.h
<<\EOF
6789 #define USE_MMALLOC 1
6792 cat >> confdefs.h
<<\EOF
6793 #define MMCHECK_FORCE 1
6796 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6797 MMALLOC
='../mmalloc/libmmalloc.a'
6800 # Check whether --with-included-regex or --without-included-regex was given.
6801 if test "${with_included_regex+set}" = set; then
6802 withval
="$with_included_regex"
6803 case "${withval}" in
6804 yes) want_included_regex
=true
;;
6805 no
) want_included_regex
=false
;;
6806 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6809 want_included_regex
=true
6812 if test $want_included_regex = false
; then
6813 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6814 echo "configure:6815: checking for GNU regex" >&5
6815 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6818 cat > conftest.
$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 #include <gnu-versions.h>
6822 #include <sys/types.h>
6825 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6826 #error No valid GNU regex.
6831 if { (eval echo configure
:6832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6833 gdb_cv_have_gnu_regex
=yes
6835 echo "configure: failed program was:" >&5
6836 cat conftest.
$ac_ext >&5
6838 gdb_cv_have_gnu_regex
=no
6843 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6844 if test $gdb_cv_have_gnu_regex = no
; then
6845 want_included_regex
=true
6849 if test x
${want_included_regex} = xtrue
; then
6851 cat >> confdefs.h
<<\EOF
6852 #define USE_INCLUDED_REGEX 1
6858 # In the Cygwin environment, we need some additional flags.
6859 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6860 echo "configure:6861: checking for cygwin" >&5
6861 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.
$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6868 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 egrep "lose" >/dev
/null
2>&1; then
6875 gdb_cv_os_cygwin
=yes
6884 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6887 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6889 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6890 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6895 if test x
$gdb_host = xgo32
; then
6898 if test x
$gdb_cv_os_cygwin = xyes
; then
6899 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6902 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6903 echo "configure:6904: checking for tgetent in -lncurses" >&5
6904 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6906 echo $ac_n "(cached) $ac_c" 1>&6
6908 ac_save_LIBS
="$LIBS"
6909 LIBS
="-lncurses $LIBS"
6910 cat > conftest.
$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6913 /* Override any gcc2 internal prototype to avoid an error. */
6914 /* We use char because int might match the return type of a gcc2
6915 builtin and then its argument prototype would still apply. */
6922 if { (eval echo configure
:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6924 eval "ac_cv_lib_$ac_lib_var=yes"
6926 echo "configure: failed program was:" >&5
6927 cat conftest.
$ac_ext >&5
6929 eval "ac_cv_lib_$ac_lib_var=no"
6932 LIBS
="$ac_save_LIBS"
6935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6936 echo "$ac_t""yes" 1>&6
6939 echo "$ac_t""no" 1>&6
6940 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6941 echo "configure:6942: checking for tgetent in -lHcurses" >&5
6942 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 ac_save_LIBS
="$LIBS"
6947 LIBS
="-lHcurses $LIBS"
6948 cat > conftest.
$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6960 if { (eval echo configure
:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6962 eval "ac_cv_lib_$ac_lib_var=yes"
6964 echo "configure: failed program was:" >&5
6965 cat conftest.
$ac_ext >&5
6967 eval "ac_cv_lib_$ac_lib_var=no"
6970 LIBS
="$ac_save_LIBS"
6973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6974 echo "$ac_t""yes" 1>&6
6977 echo "$ac_t""no" 1>&6
6978 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6979 echo "configure:6980: checking for tgetent in -ltermlib" >&5
6980 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6984 ac_save_LIBS
="$LIBS"
6985 LIBS
="-ltermlib $LIBS"
6986 cat > conftest.
$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 /* Override any gcc2 internal prototype to avoid an error. */
6990 /* We use char because int might match the return type of a gcc2
6991 builtin and then its argument prototype would still apply. */
6998 if { (eval echo configure
:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7000 eval "ac_cv_lib_$ac_lib_var=yes"
7002 echo "configure: failed program was:" >&5
7003 cat conftest.
$ac_ext >&5
7005 eval "ac_cv_lib_$ac_lib_var=no"
7008 LIBS
="$ac_save_LIBS"
7011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7012 echo "$ac_t""yes" 1>&6
7015 echo "$ac_t""no" 1>&6
7016 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
7017 echo "configure:7018: checking for tgetent in -ltermcap" >&5
7018 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
7019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7020 echo $ac_n "(cached) $ac_c" 1>&6
7022 ac_save_LIBS
="$LIBS"
7023 LIBS
="-ltermcap $LIBS"
7024 cat > conftest.
$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 /* Override any gcc2 internal prototype to avoid an error. */
7028 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */
7036 if { (eval echo configure
:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7038 eval "ac_cv_lib_$ac_lib_var=yes"
7040 echo "configure: failed program was:" >&5
7041 cat conftest.
$ac_ext >&5
7043 eval "ac_cv_lib_$ac_lib_var=no"
7046 LIBS
="$ac_save_LIBS"
7049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7053 echo "$ac_t""no" 1>&6
7054 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
7055 echo "configure:7056: checking for tgetent in -lcurses" >&5
7056 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
7057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7058 echo $ac_n "(cached) $ac_c" 1>&6
7060 ac_save_LIBS
="$LIBS"
7061 LIBS
="-lcurses $LIBS"
7062 cat > conftest.
$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7065 /* Override any gcc2 internal prototype to avoid an error. */
7066 /* We use char because int might match the return type of a gcc2
7067 builtin and then its argument prototype would still apply. */
7074 if { (eval echo configure
:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7076 eval "ac_cv_lib_$ac_lib_var=yes"
7078 echo "configure: failed program was:" >&5
7079 cat conftest.
$ac_ext >&5
7081 eval "ac_cv_lib_$ac_lib_var=no"
7084 LIBS
="$ac_save_LIBS"
7087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7088 echo "$ac_t""yes" 1>&6
7091 echo "$ac_t""no" 1>&6
7092 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
7093 echo "configure:7094: checking for tgetent in -lterminfo" >&5
7094 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
7095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7096 echo $ac_n "(cached) $ac_c" 1>&6
7098 ac_save_LIBS
="$LIBS"
7099 LIBS
="-lterminfo $LIBS"
7100 cat > conftest.
$ac_ext <<EOF
7101 #line 7102 "configure"
7102 #include "confdefs.h"
7103 /* Override any gcc2 internal prototype to avoid an error. */
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7112 if { (eval echo configure
:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7114 eval "ac_cv_lib_$ac_lib_var=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.
$ac_ext >&5
7119 eval "ac_cv_lib_$ac_lib_var=no"
7122 LIBS
="$ac_save_LIBS"
7125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7129 echo "$ac_t""no" 1>&6
7143 if test "x$TERM_LIB" = x
7145 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
7151 # libreadline needs libuser32.a in a cygwin environment
7153 if test x
$gdb_cv_os_cygwin = xyes
; then
7154 WIN32LIBS
="-luser32"
7156 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
7162 LIBGUI
="../libgui/src/libgui.a"
7163 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
7167 # Check whether --with-cpu or --without-cpu was given.
7168 if test "${with_cpu+set}" = set; then
7171 powerpc-
* | powerpcle-
* )
7172 ## It would be nice to keep this table in sync with the one in
7174 case "${with_cpu}" in
7175 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
7177 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
7179 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
7180 ## These are all RS6000 variants, as far as GDB is concerned.
7190 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
7196 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
7199 cat >> confdefs.h
<<EOF
7200 #define TARGET_CPU_DEFAULT "${with_cpu}"
7208 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7209 if test "${enable_gdbtk+set}" = set; then
7210 enableval
="$enable_gdbtk"
7211 case "${enableval}" in
7215 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7218 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7226 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7230 # Default is on for everything but go32 and Cygwin
7235 if test -d "${srcdir}/gdbtk" ; then
7251 if test "${enable_gdbtk}" = "yes"; then
7253 # Gdbtk must have an absolute path to srcdir in order to run
7254 # properly when not installed.
7262 # Ok, lets find the tcl configuration
7263 # First, look for one uninstalled.
7264 # the alternative search directory is invoked by --with-tclconfig
7267 if test x
"${no_tcl}" = x
; then
7268 # we reset no_tcl in case something fails here
7270 # Check whether --with-tclconfig or --without-tclconfig was given.
7271 if test "${with_tclconfig+set}" = set; then
7272 withval
="$with_tclconfig"
7273 with_tclconfig
=${withval}
7276 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7277 echo "configure:7278: checking for Tcl configuration" >&5
7278 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7283 # First check to see if --with-tclconfig was specified.
7284 if test x
"${with_tclconfig}" != x
; then
7285 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7286 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
7288 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7292 # then check for a private Tcl installation
7293 if test x
"${ac_cv_c_tclconfig}" = x
; then
7296 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7298 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7300 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7301 if test -f "$i/${configdir}/tclConfig.sh" ; then
7302 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7307 # check in a few common install locations
7308 if test x
"${ac_cv_c_tclconfig}" = x
; then
7309 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7310 if test -f "$i/tclConfig.sh" ; then
7311 ac_cv_c_tclconfig
=`(cd $i; pwd)`
7316 # check in a few other private locations
7317 if test x
"${ac_cv_c_tclconfig}" = x
; then
7320 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7321 if test -f "$i/${configdir}/tclConfig.sh" ; then
7322 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7330 if test x
"${ac_cv_c_tclconfig}" = x
; then
7331 TCLCONFIG
="# no Tcl configs found"
7332 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7335 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
7336 echo "$ac_t""found $TCLCONFIG" 1>&6
7340 if test -z "${no_tcl}"; then
7370 # Ok, lets find the tk configuration
7371 # First, look for one uninstalled.
7372 # the alternative search directory is invoked by --with-tkconfig
7375 if test x
"${no_tk}" = x
; then
7376 # we reset no_tk in case something fails here
7378 # Check whether --with-tkconfig or --without-tkconfig was given.
7379 if test "${with_tkconfig+set}" = set; then
7380 withval
="$with_tkconfig"
7381 with_tkconfig
=${withval}
7384 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7385 echo "configure:7386: checking for Tk configuration" >&5
7386 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7387 echo $ac_n "(cached) $ac_c" 1>&6
7391 # First check to see if --with-tkconfig was specified.
7392 if test x
"${with_tkconfig}" != x
; then
7393 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7394 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7396 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7400 # then check for a private Tk library
7401 if test x
"${ac_cv_c_tkconfig}" = x
; then
7404 `ls -dr ../tk[4-9]* 2>/dev/null` \
7406 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7408 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7409 if test -f "$i/${configdir}/tkConfig.sh" ; then
7410 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7415 # check in a few common install locations
7416 if test x
"${ac_cv_c_tkconfig}" = x
; then
7417 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7418 if test -f "$i/tkConfig.sh" ; then
7419 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7424 # check in a few other private locations
7425 if test x
"${ac_cv_c_tkconfig}" = x
; then
7428 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7429 if test -f "$i/${configdir}/tkConfig.sh" ; then
7430 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7438 if test x
"${ac_cv_c_tkconfig}" = x
; then
7439 TKCONFIG
="# no Tk configs found"
7440 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7443 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7444 echo "$ac_t""found $TKCONFIG" 1>&6
7450 # now look for Tcl library stuff
7461 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
7463 # If $no_tk is nonempty, then we can't do Tk, and there is no
7464 # point to doing Tcl.
7465 if test -z "${no_tk}"; then
7467 if test -f "$TKCONFIG" ; then
7485 # Ok, lets find the tcl source trees so we can use the headers
7486 # Warning: transition of version 9 to 10 will break this algorithm
7487 # because 10 sorts before 9. We also look for just tcl. We have to
7488 # be careful that we don't match stuff like tclX by accident.
7489 # the alternative search directory is involked by --with-tclinclude
7493 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7494 echo "configure:7495: checking for Tcl private headers. dir=${configdir}" >&5
7495 # Check whether --with-tclinclude or --without-tclinclude was given.
7496 if test "${with_tclinclude+set}" = set; then
7497 withval
="$with_tclinclude"
7498 with_tclinclude
=${withval}
7501 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7505 # first check to see if --with-tclinclude was specified
7506 if test x
"${with_tclinclude}" != x
; then
7507 if test -f ${with_tclinclude}/tclInt.h
; then
7508 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7509 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7510 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7512 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7516 # next check if it came with Tcl configuration file
7517 if test x
"${ac_cv_c_tclconfig}" = x
; then
7518 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7519 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7523 # next check in private source directory
7525 # since ls returns lowest version numbers first, reverse its output
7526 if test x
"${ac_cv_c_tclh}" = x
; then
7529 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7530 ${srcdir}/..
/..
/tcl \
7531 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7532 ${srcdir}/..
/..
/..
/tcl \
7533 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7534 if test -f $i/generic
/tclInt.h
; then
7535 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7540 # finally check in a few common install locations
7542 # since ls returns lowest version numbers first, reverse its output
7543 if test x
"${ac_cv_c_tclh}" = x
; then
7545 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7546 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7547 /usr
/local
/src
/tcl \
7548 /usr
/local
/lib
/tcl \
7549 ${prefix}/include
; do
7550 if test -f $i/generic
/tclInt.h
; then
7551 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7556 # see if one is installed
7557 if test x
"${ac_cv_c_tclh}" = x
; then
7558 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7559 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7560 echo "configure:7561: checking for tclInt.h" >&5
7561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7564 cat > conftest.
$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7569 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7570 { (eval echo configure
:7571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7571 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7572 if test -z "$ac_err"; then
7574 eval "ac_cv_header_$ac_safe=yes"
7577 echo "configure: failed program was:" >&5
7578 cat conftest.
$ac_ext >&5
7580 eval "ac_cv_header_$ac_safe=no"
7584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7585 echo "$ac_t""yes" 1>&6
7586 ac_cv_c_tclh
=installed
7588 echo "$ac_t""no" 1>&6
7596 if test x
"${ac_cv_c_tclh}" = x
; then
7597 TCLHDIR
="# no Tcl private headers found"
7598 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7600 if test x
"${ac_cv_c_tclh}" != x
; then
7602 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7603 echo "$ac_t""is installed" 1>&6
7606 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7607 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7608 TCLHDIR
="-I${ac_cv_c_tclh}"
7616 # Ok, lets find the tk source trees so we can use the headers
7617 # If the directory (presumably symlink) named "tk" exists, use that one
7618 # in preference to any others. Same logic is used when choosing library
7619 # and again with Tcl. The search order is the best place to look first, then in
7620 # decreasing significance. The loop breaks if the trigger file is found.
7621 # Note the gross little conversion here of srcdir by cd'ing to the found
7622 # directory. This converts the path from a relative to an absolute, so
7623 # recursive cache variables for the path will work right. We check all
7624 # the possible paths in one loop rather than many seperate loops to speed
7626 # the alternative search directory is involked by --with-tkinclude
7629 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7630 echo "configure:7631: checking for Tk private headers" >&5
7631 # Check whether --with-tkinclude or --without-tkinclude was given.
7632 if test "${with_tkinclude+set}" = set; then
7633 withval
="$with_tkinclude"
7634 with_tkinclude
=${withval}
7637 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7641 # first check to see if --with-tkinclude was specified
7642 if test x
"${with_tkinclude}" != x
; then
7643 if test -f ${with_tkinclude}/tk.h
; then
7644 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7645 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7646 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7648 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7652 # next check if it came with Tk configuration file
7653 if test x
"${ac_cv_c_tkconfig}" = x
; then
7654 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7655 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7659 # next check in private source directory
7661 # since ls returns lowest version numbers first, reverse its output
7662 if test x
"${ac_cv_c_tkh}" = x
; then
7665 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7666 ${srcdir}/..
/..
/tk \
7667 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7668 ${srcdir}/..
/..
/..
/tk \
7669 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7670 if test -f $i/generic
/tk.h
; then
7671 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7676 # finally check in a few common install locations
7678 # since ls returns lowest version numbers first, reverse its output
7679 if test x
"${ac_cv_c_tkh}" = x
; then
7681 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7682 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7685 ${prefix}/include
; do
7686 if test -f $i/generic
/tk.h
; then
7687 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7692 # see if one is installed
7693 if test x
"${ac_cv_c_tkh}" = x
; then
7694 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7695 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7696 echo "configure:7697: checking for tk.h" >&5
7697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7700 cat > conftest.
$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7705 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7706 { (eval echo configure
:7707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7707 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7708 if test -z "$ac_err"; then
7710 eval "ac_cv_header_$ac_safe=yes"
7713 echo "configure: failed program was:" >&5
7714 cat conftest.
$ac_ext >&5
7716 eval "ac_cv_header_$ac_safe=no"
7720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7721 echo "$ac_t""yes" 1>&6
7722 ac_cv_c_tkh
=installed
7724 echo "$ac_t""no" 1>&6
7732 if test x
"${ac_cv_c_tkh}" != x
; then
7734 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7735 echo "$ac_t""is installed" 1>&6
7738 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7739 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7740 TKHDIR
="-I${ac_cv_c_tkh}"
7743 TKHDIR
="# no Tk directory found"
7744 echo "configure: warning: Can't find Tk private headers" 1>&2
7751 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7752 echo "configure:7753: checking for Itcl private headers. srcdir=${srcdir}" >&5
7753 if test x
"${ac_cv_c_itclh}" = x
; then
7754 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7755 if test -f $i/generic
/itcl.h
; then
7756 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7761 if test x
"${ac_cv_c_itclh}" = x
; then
7762 ITCLHDIR
="# no Itcl private headers found"
7763 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7765 if test x
"${ac_cv_c_itclh}" != x
; then
7766 ITCLHDIR
="-I${ac_cv_c_itclh}"
7768 # should always be here
7769 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7774 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7775 echo "configure:7776: checking for Itk private headers. srcdir=${srcdir}" >&5
7776 if test x
"${ac_cv_c_itkh}" = x
; then
7777 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7778 if test -f $i/generic
/itk.h
; then
7779 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7784 if test x
"${ac_cv_c_itkh}" = x
; then
7785 ITKHDIR
="# no Itk private headers found"
7786 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7788 if test x
"${ac_cv_c_itkh}" != x
; then
7789 ITKHDIR
="-I${ac_cv_c_itkh}"
7791 # should always be here
7792 # ITKLIB="../itcl/itk/unix/libitk.a"
7797 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7798 echo "configure:7799: checking for Tix private headers. srcdir=${srcdir}" >&5
7799 if test x
"${ac_cv_c_tixh}" = x
; then
7800 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
7801 if test -f $i/generic
/tix.h
; then
7802 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
7807 if test x
"${ac_cv_c_tixh}" = x
; then
7808 TIXHDIR
="# no Tix private headers found"
7809 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7811 if test x
"${ac_cv_c_tixh}" != x
; then
7812 TIXHDIR
="-I${ac_cv_c_tixh}"
7818 # now look for Tk library stuff
7829 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
7831 # now look for Itcl library stuff
7835 # Ok, lets find the itcl configuration
7836 # First, look for one uninstalled.
7837 # the alternative search directory is invoked by --with-itclconfig
7840 if test x
"${no_itcl}" = x
; then
7841 # we reset no_itcl in case something fails here
7843 # Check whether --with-itclconfig or --without-itclconfig was given.
7844 if test "${with_itclconfig+set}" = set; then
7845 withval
="$with_itclconfig"
7846 with_itclconfig
=${withval}
7849 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7850 echo "configure:7851: checking for Itcl configuration" >&5
7851 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7856 # First check to see if --with-itclconfig was specified.
7857 if test x
"${with_itclconfig}" != x
; then
7858 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7859 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7861 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7865 # then check for a private Itcl library
7866 if test x
"${ac_cv_c_itclconfig}" = x
; then
7869 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7871 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7873 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7874 if test -f "$i/itclConfig.sh" ; then
7875 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7880 # check in a few common install locations
7881 if test x
"${ac_cv_c_itclconfig}" = x
; then
7882 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7883 if test -f "$i/itclConfig.sh" ; then
7884 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7889 # check in a few other private locations
7890 if test x
"${ac_cv_c_itclconfig}" = x
; then
7892 ${srcdir}/..
/itcl
/itcl \
7893 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7894 if test -f "$i/itclConfig.sh" ; then
7895 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7903 if test x
"${ac_cv_c_itclconfig}" = x
; then
7904 ITCLCONFIG
="# no Itcl configs found"
7905 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7908 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7909 echo "$ac_t""found $ITCLCONFIG" 1>&6
7913 if test -z "${no_itcl}"; then
7915 if test -f "$ITCLCONFIG" ; then
7930 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7931 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
7935 # now look for Itk library stuff
7938 # Ok, lets find the itk configuration
7939 # First, look for one uninstalled.
7940 # the alternative search directory is invoked by --with-itkconfig
7943 if test x
"${no_itk}" = x
; then
7944 # we reset no_itk in case something fails here
7946 # Check whether --with-itkconfig or --without-itkconfig was given.
7947 if test "${with_itkconfig+set}" = set; then
7948 withval
="$with_itkconfig"
7949 with_itkconfig
=${withval}
7952 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7953 echo "configure:7954: checking for Itk configuration" >&5
7954 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7959 # First check to see if --with-itkconfig was specified.
7960 if test x
"${with_itkconfig}" != x
; then
7961 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7962 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7964 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7968 # then check for a private Itk library
7969 if test x
"${ac_cv_c_itkconfig}" = x
; then
7972 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7974 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7976 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7977 if test -f "$i/itkConfig.sh" ; then
7978 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7983 # check in a few common install locations
7984 if test x
"${ac_cv_c_itkconfig}" = x
; then
7985 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7986 if test -f "$i/itkConfig.sh" ; then
7987 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7992 # check in a few other private locations
7993 if test x
"${ac_cv_c_itkconfig}" = x
; then
7995 ${srcdir}/..
/itcl
/itk \
7996 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7997 if test -f "$i/itkConfig.sh" ; then
7998 ac_cv_c_itkconfig
=`(cd $i; pwd)`
8006 if test x
"${ac_cv_c_itkconfig}" = x
; then
8007 ITKCONFIG
="# no Itk configs found"
8008 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
8011 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
8012 echo "$ac_t""found $ITKCONFIG" 1>&6
8017 if test -z "${no_itcl}"; then
8019 if test -f "$ITKCONFIG" ; then
8034 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
8035 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
8038 # now look for Tix library stuff
8041 # Ok, lets find the tix configuration
8042 # First, look for one uninstalled.
8043 # the alternative search directory is invoked by --with-itkconfig
8046 if test x
"${no_tix}" = x
; then
8047 # we reset no_tix in case something fails here
8049 # Check whether --with-tixconfig or --without-tixconfig was given.
8050 if test "${with_tixconfig+set}" = set; then
8051 withval
="$with_tixconfig"
8052 with_tixconfig
=${withval}
8055 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
8056 echo "configure:8057: checking for Tix configuration" >&5
8057 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
8058 echo $ac_n "(cached) $ac_c" 1>&6
8062 # First check to see if --with-tixconfig was specified.
8063 if test x
"${with_tixconfig}" != x
; then
8064 if test -f "${with_tixconfig}/tixConfig.sh" ; then
8065 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
8067 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
8071 # then check for a private Tix library
8072 if test x
"${ac_cv_c_tixconfig}" = x
; then
8075 `ls -dr ../tix 2>/dev/null` \
8077 `ls -dr ../../tix 2>/dev/null` \
8079 `ls -dr ../../../tix 2>/dev/null` ; do
8080 echo "**** Looking at $i - with ${configdir}"
8081 if test -f "$i/tixConfig.sh" ; then
8082 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8087 # check in a few common install locations
8088 if test x
"${ac_cv_c_tixconfig}" = x
; then
8089 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8090 echo "**** Looking at $i"
8091 if test -f "$i/tixConfig.sh" ; then
8092 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8097 # check in a few other private locations
8098 echo "**** Other private locations"
8099 if test x
"${ac_cv_c_tixconfig}" = x
; then
8102 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
8103 echo "**** Looking at $i - with ${configdir}"
8104 if test -f "$i/${configdir}/tixConfig.sh" ; then
8105 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
8113 if test x
"${ac_cv_c_tixconfig}" = x
; then
8114 TIXCONFIG
="# no Tix configs found"
8115 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
8118 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
8119 echo "$ac_t""found $TIXCONFIG" 1>&6
8124 if test -z "${no_tix}"; then
8126 if test -f "$TIXCONFIG" ; then
8137 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
8138 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
8141 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
8142 # Tcl/Tk 8.1 require -fwritable strings. I don't
8143 # know whether 8.2 will or not, but I bet it will.
8144 # I don't have to worry about 7.x since we don't support it.
8146 if test "$GCC" = "yes"; then
8147 if test "$TCL_VERSION" != "8.0" ; then
8148 GDBTK_CFLAGS
="-fwritable-strings"
8152 # Include some libraries that Tcl and Tk want.
8153 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
8154 # Yes, the ordering seems wrong here. But it isn't.
8155 # TK_LIBS is the list of libraries that need to be linked
8156 # after Tcl/Tk. Note that this isn't put into LIBS. If it
8157 # were in LIBS then any link tests after this point would
8158 # try to include things like `$(LIBGUI)', which wouldn't work.
8159 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
8161 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
8162 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
8163 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
8164 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
8165 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
8166 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
8167 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
8168 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
8170 if test x
$gdb_cv_os_cygwin = xyes
; then
8171 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
8172 WIN32LDAPP
="-Wl,--subsystem,console"
8173 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
8194 # If we find X, set shell vars x_includes and x_libraries to the
8195 # paths, otherwise set no_x=yes.
8196 # Uses ac_ vars as temps to allow command line to override cache and checks.
8197 # --without-x overrides everything else, but does not touch the cache.
8198 echo $ac_n "checking for X""... $ac_c" 1>&6
8199 echo "configure:8200: checking for X" >&5
8201 # Check whether --with-x or --without-x was given.
8202 if test "${with_x+set}" = set; then
8207 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8208 if test "x$with_x" = xno
; then
8209 # The user explicitly disabled X.
8212 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8213 # Both variables are already set.
8216 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8219 # One or both of the vars are not set, and there is no cached value.
8220 ac_x_includes
=NO ac_x_libraries
=NO
8222 if mkdir conftestdir
; then
8224 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8225 cat > Imakefile
<<'EOF'
8227 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8229 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8231 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8232 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8233 for ac_extension
in a so sl
; do
8234 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8235 test -f $ac_im_libdir/libX11.
$ac_extension; then
8236 ac_im_usrlibdir
=$ac_im_libdir; break
8239 # Screen out bogus values from the imake configuration. They are
8240 # bogus both because they are the default anyway, and because
8241 # using them would break gcc on systems where it needs fixed includes.
8242 case "$ac_im_incroot" in
8244 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
8246 case "$ac_im_usrlibdir" in
8248 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
8255 if test "$ac_x_includes" = NO
; then
8256 # Guess where to find include files, by looking for this one X11 .h file.
8257 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
8259 # First, try using that file with no special directory specified.
8260 cat > conftest.
$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8263 #include <$x_direct_test_include>
8265 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8266 { (eval echo configure
:8267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8267 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8268 if test -z "$ac_err"; then
8270 # We can compile using X headers with no special include directory.
8274 echo "configure: failed program was:" >&5
8275 cat conftest.
$ac_ext >&5
8277 # Look for the header file in a standard set of common directories.
8278 # Check X11 before X11Rn because it is often a symlink to the current release.
8281 /usr
/X11R
6/include \
8282 /usr
/X11R
5/include \
8283 /usr
/X11R
4/include \
8286 /usr
/include
/X11R6 \
8287 /usr
/include
/X11R5 \
8288 /usr
/include
/X11R4 \
8290 /usr
/local
/X11
/include \
8291 /usr
/local
/X11R
6/include \
8292 /usr
/local
/X11R
5/include \
8293 /usr
/local
/X11R
4/include \
8295 /usr
/local
/include
/X11 \
8296 /usr
/local
/include
/X11R6 \
8297 /usr
/local
/include
/X11R5 \
8298 /usr
/local
/include
/X11R4 \
8302 /usr
/XFree86
/include
/X11 \
8305 /usr
/local
/include \
8306 /usr
/unsupported
/include \
8307 /usr
/athena
/include \
8308 /usr
/local
/x11r
5/include \
8309 /usr
/lpp
/Xamples
/include \
8311 /usr
/openwin
/include \
8312 /usr
/openwin
/share
/include \
8315 if test -r "$ac_dir/$x_direct_test_include"; then
8316 ac_x_includes
=$ac_dir
8322 fi # $ac_x_includes = NO
8324 if test "$ac_x_libraries" = NO
; then
8325 # Check for the libraries.
8327 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
8328 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
8330 # See if we find them without any special options.
8331 # Don't add to $LIBS permanently.
8332 ac_save_LIBS
="$LIBS"
8333 LIBS
="-l$x_direct_test_library $LIBS"
8334 cat > conftest.
$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8339 ${x_direct_test_function}()
8342 if { (eval echo configure
:8343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8344 LIBS
="$ac_save_LIBS"
8345 # We can link X programs with no special library path.
8348 echo "configure: failed program was:" >&5
8349 cat conftest.
$ac_ext >&5
8351 LIBS
="$ac_save_LIBS"
8352 # First see if replacing the include by lib works.
8353 # Check X11 before X11Rn because it is often a symlink to the current release.
8354 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8365 /usr
/local
/X11
/lib \
8366 /usr
/local
/X11R
6/lib \
8367 /usr
/local
/X11R
5/lib \
8368 /usr
/local
/X11R
4/lib \
8370 /usr
/local
/lib
/X11 \
8371 /usr
/local
/lib
/X11R6 \
8372 /usr
/local
/lib
/X11R5 \
8373 /usr
/local
/lib
/X11R4 \
8377 /usr
/XFree86
/lib
/X11 \
8381 /usr
/unsupported
/lib \
8383 /usr
/local
/x11r
5/lib \
8384 /usr
/lpp
/Xamples
/lib \
8388 /usr
/openwin
/share
/lib \
8391 for ac_extension
in a so sl
; do
8392 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8393 ac_x_libraries
=$ac_dir
8400 fi # $ac_x_libraries = NO
8402 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8403 # Didn't find X anywhere. Cache the known absence of X.
8404 ac_cv_have_x
="have_x=no"
8406 # Record where we found X for the cache.
8407 ac_cv_have_x
="have_x=yes \
8408 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8412 eval "$ac_cv_have_x"
8415 if test "$have_x" != yes; then
8416 echo "$ac_t""$have_x" 1>&6
8419 # If each of the values was on the command line, it overrides each guess.
8420 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8421 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8422 # Update the cache value to reflect the command line values.
8423 ac_cv_have_x
="have_x=yes \
8424 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8425 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8430 # Unlike the sim directory, whether a simulator is linked is controlled by
8431 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8432 # This code just checks for a few cases where we'd like to ignore those
8433 # definitions, even when they're present in the '.mt' file. These cases
8434 # are when --disable-sim is specified, or if the simulator directory is
8435 # not part of the source tree.
8437 # Check whether --enable-sim or --disable-sim was given.
8438 if test "${enable_sim+set}" = set; then
8439 enableval
="$enable_sim"
8440 echo "enable_sim = $enable_sim";
8441 echo "enableval = ${enableval}";
8442 case "${enableval}" in
8443 yes) ignore_sim
=false
;;
8444 no
) ignore_sim
=true
;;
8445 *) ignore_sim
=false
;;
8452 if test ! -d "${srcdir}/../sim"; then
8456 if test "${ignore_sim}" = "true"; then
8458 IGNORE_SIM_OBS
="SIM_OBS="
8462 cat >> confdefs.h
<<\EOF
8482 # Begin stuff to support --enable-shared
8483 # Check whether --enable-shared or --disable-shared was given.
8484 if test "${enable_shared+set}" = set; then
8485 enableval
="$enable_shared"
8486 case "${enableval}" in
8495 # If we have shared libraries, try to set rpath reasonably.
8496 if test "${shared}" = "true"; then
8499 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8501 *-*-irix5* |
*-*-irix6*)
8502 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8506 *-*-linux* |
*-pc-linux-gnu*)
8507 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8510 HLDFLAGS
='-R $(libdir)'
8513 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;'
8518 # On SunOS, if the linker supports the -rpath option, use it to
8519 # prevent ../bfd and ../opcodes from being included in the run time
8523 echo 'main () { }' > conftest.c
8524 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8525 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8527 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8529 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8531 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8533 elif test "${shared}" = "true"; then
8534 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8536 HLDFLAGS
='-Wl,-rpath='
8538 rm -f conftest.t conftest.c conftest
8543 # End stuff to support --enable-shared
8545 # target_subdir is used by the testsuite to find the target libraries.
8547 if test "${host}" != "${target}"; then
8548 target_subdir
="${target_alias}/"
8553 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8554 if test ! -f ${host_makefile_frag}; then
8555 # When building a native debuger the .mh file containing things
8556 # like NATDEPFILES is needed. Cross debuggers don't need .mh
8557 # since it no longer contains anything useful.
8558 if test "${target}" = "${host}"; then
8559 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
8561 host_makefile_frag
=/dev
/null
8564 frags
="$frags $host_makefile_frag"
8566 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8567 if test ! -f ${target_makefile_frag}; then
8568 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8570 frags
="$frags $target_makefile_frag"
8577 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8578 ' ${host_makefile_frag}`
8580 targetfile
=`sed -n '
8581 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8582 ' ${target_makefile_frag}`
8584 GDB_MULTI_ARCH
=`sed -n '
8585 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8586 ' ${target_makefile_frag}`
8588 if test "${target}" = "${host}"; then
8589 # We pick this up from the host configuration file (.mh) because we
8590 # do not have a native configuration Makefile fragment.
8591 nativefile
=`sed -n '
8592 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8593 ' ${host_makefile_frag}`
8597 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8598 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8599 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8600 # will be the default.
8601 if test x
"${GDB_MULTI_ARCH}" = x
; then
8602 case "${gdb_multi_arch}" in
8603 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8604 no
) GDB_MULTI_ARCH
=0 ;;
8605 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8608 if test x
"${GDB_MULTI_ARCH}" != x
; then
8609 cat >> confdefs.h
<<EOF
8610 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8614 # Warn the user when they use an old practice
8615 case "${GDB_MULTI_ARCH}" in
8617 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8618 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8619 GDB_MULTI_ARCH_PURE
)
8620 if test x
"${targetfile}" != x
; then
8621 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8624 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8627 SUBDIRS
="doc testsuite nlm"
8628 if test "${enable_multi_ice}" = "yes"; then
8629 SUBDIRS
="${SUBDIRS} multi-ice"
8632 # ``gdbserver'' can only be built in a native configuration.
8633 if test x
"${target}" = x
"${host}"; then
8634 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
8635 echo "configure:8636: checking whether gdbserver is supported on this host" >&5
8636 if test x
"${build_gdbserver}" = xyes
; then
8637 configdirs
="${configdirs} gdbserver"
8638 SUBDIRS
="${SUBDIRS} gdbserver"
8639 echo "$ac_t""yes" 1>&6
8641 echo "$ac_t""no" 1>&6
8647 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8648 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8656 if test "${hostfile}" != ""; then
8658 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8659 files
="${files} ${GDB_XM_FILE}"
8660 links
="${links} xm.h"
8661 cat >> confdefs.h
<<EOF
8662 #define GDB_XM_FILE ${GDB_XM_FILE}
8670 if test "${targetfile}" != ""; then
8672 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8673 files
="${files} ${GDB_TM_FILE}"
8674 links
="${links} tm.h"
8675 cat >> confdefs.h
<<EOF
8676 #define GDB_TM_FILE ${GDB_TM_FILE}
8684 if test "${nativefile}" != ""; then
8686 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8687 files
="${files} ${GDB_NM_FILE}"
8688 links
="${links} nm.h"
8689 cat >> confdefs.h
<<EOF
8690 #define GDB_NM_FILE ${GDB_NM_FILE}
8696 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8697 echo "configure:8698: checking whether ln -s works" >&5
8698 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8702 if ln -s X conftestdata
2>/dev
/null
8705 ac_cv_prog_LN_S
="ln -s"
8710 LN_S
="$ac_cv_prog_LN_S"
8711 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8712 echo "$ac_t""yes" 1>&6
8714 echo "$ac_t""no" 1>&6
8720 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8721 echo "configure:8722: checking for Cygwin environment" >&5
8722 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8725 cat > conftest.
$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8732 #define __CYGWIN__ __CYGWIN32__
8737 if { (eval echo configure
:8738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8741 echo "configure: failed program was:" >&5
8742 cat conftest.
$ac_ext >&5
8750 echo "$ac_t""$ac_cv_cygwin" 1>&6
8752 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8753 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8754 echo "configure:8755: checking for mingw32 environment" >&5
8755 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8758 cat > conftest.
$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8766 if { (eval echo configure
:8767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8770 echo "configure: failed program was:" >&5
8771 cat conftest.
$ac_ext >&5
8779 echo "$ac_t""$ac_cv_mingw32" 1>&6
8781 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8784 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8785 echo "configure:8786: checking for executable suffix" >&5
8786 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8789 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8793 echo 'int main () { return 0; }' > conftest.
$ac_ext
8795 if { (eval echo configure
:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8796 for file in conftest.
*; do
8798 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
8799 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8803 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8806 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8811 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8812 echo "$ac_t""${ac_cv_exeext}" 1>&6
8816 subdirs
="$configdirs"
8819 cat > confcache
<<\EOF
8820 # This file is a shell script that caches the results of configure
8821 # tests run on this system so they can be shared between configure
8822 # scripts and configure runs. It is not useful on other systems.
8823 # If it contains results you don't want to keep, you may remove or edit it.
8825 # By default, configure uses ./config.cache as the cache file,
8826 # creating it if it does not exist already. You can give configure
8827 # the --cache-file=FILE option to use a different cache file; that is
8828 # what configure does when it calls configure scripts in
8829 # subdirectories, so they share the cache.
8830 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8831 # config.status only pays attention to the cache file if you give it the
8832 # --recheck option to rerun configure.
8835 # The following way of writing the cache mishandles newlines in values,
8836 # but we know of no workaround that is simple, portable, and efficient.
8837 # So, don't put newlines in cache variables' values.
8838 # Ultrix sh set writes to stderr and can't be redirected directly,
8839 # and sets the high bit in the cache file unless we assign to the vars.
8841 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8843 # `set' does not quote correctly, so add quotes (double-quote substitution
8844 # turns \\\\ into \\, and sed turns \\ into \).
8846 -e "s/'/'\\\\''/g" \
8847 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8850 # `set' quotes correctly as required by POSIX, so do not add quotes.
8851 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8854 if cmp -s $cache_file confcache
; then
8857 if test -w $cache_file; then
8858 echo "updating cache $cache_file"
8859 cat confcache
> $cache_file
8861 echo "not updating unwritable cache $cache_file"
8866 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8868 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8869 # Let make expand exec_prefix.
8870 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8872 # Any assignment to VPATH causes Sun make to only execute
8873 # the first set of double-colon rules, so remove it if not needed.
8874 # If there is a colon in the path, we need to keep it.
8875 if test "x$srcdir" = x.
; then
8876 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8879 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8881 DEFS
=-DHAVE_CONFIG_H
8883 # Without the "./", some shells look in PATH for config.status.
8884 : ${CONFIG_STATUS=./config.status}
8886 echo creating
$CONFIG_STATUS
8887 rm -f $CONFIG_STATUS
8888 cat > $CONFIG_STATUS <<EOF
8890 # Generated automatically by configure.
8891 # Run this file to recreate the current configuration.
8892 # This directory was configured as follows,
8893 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8895 # $0 $ac_configure_args
8897 # Compiler output produced by configure, useful for debugging
8898 # configure, is in ./config.log if it exists.
8900 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8903 case "\$ac_option" in
8904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8905 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8906 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8907 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8908 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8910 -help | --help | --hel | --he | --h)
8911 echo "\$ac_cs_usage"; exit 0 ;;
8912 *) echo "\$ac_cs_usage"; exit 1 ;;
8916 ac_given_srcdir=$srcdir
8917 ac_given_INSTALL="$INSTALL"
8919 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8921 cat >> $CONFIG_STATUS <<EOF
8923 # Protect against being on the right side of a sed subst in config.status.
8924 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8925 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8929 s%@CFLAGS@%$CFLAGS%g
8930 s%@CPPFLAGS@%$CPPFLAGS%g
8931 s%@CXXFLAGS@%$CXXFLAGS%g
8932 s%@FFLAGS@%$FFLAGS%g
8934 s%@LDFLAGS@%$LDFLAGS%g
8936 s%@exec_prefix@%$exec_prefix%g
8937 s%@prefix@%$prefix%g
8938 s%@program_transform_name@%$program_transform_name%g
8939 s%@bindir@%$bindir%g
8940 s%@sbindir@%$sbindir%g
8941 s%@libexecdir@%$libexecdir%g
8942 s%@datadir@%$datadir%g
8943 s%@sysconfdir@%$sysconfdir%g
8944 s%@sharedstatedir@%$sharedstatedir%g
8945 s%@localstatedir@%$localstatedir%g
8946 s%@libdir@%$libdir%g
8947 s%@includedir@%$includedir%g
8948 s%@oldincludedir@%$oldincludedir%g
8949 s%@infodir@%$infodir%g
8950 s%@mandir@%$mandir%g
8951 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8952 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8957 s%@host_alias@%$host_alias%g
8958 s%@host_cpu@%$host_cpu%g
8959 s%@host_vendor@%$host_vendor%g
8960 s%@host_os@%$host_os%g
8961 s%@target@%$target%g
8962 s%@target_alias@%$target_alias%g
8963 s%@target_cpu@%$target_cpu%g
8964 s%@target_vendor@%$target_vendor%g
8965 s%@target_os@%$target_os%g
8967 s%@build_alias@%$build_alias%g
8968 s%@build_cpu@%$build_cpu%g
8969 s%@build_vendor@%$build_vendor%g
8970 s%@build_os@%$build_os%g
8971 s%@SET_MAKE@%$SET_MAKE%g
8972 s%@RANLIB@%$RANLIB%g
8973 s%@ALLOCA@%$ALLOCA%g
8974 s%@USE_NLS@%$USE_NLS%g
8975 s%@MSGFMT@%$MSGFMT%g
8976 s%@GMSGFMT@%$GMSGFMT%g
8977 s%@XGETTEXT@%$XGETTEXT%g
8978 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8979 s%@CATALOGS@%$CATALOGS%g
8980 s%@CATOBJEXT@%$CATOBJEXT%g
8981 s%@DATADIRNAME@%$DATADIRNAME%g
8982 s%@GMOFILES@%$GMOFILES%g
8983 s%@INSTOBJEXT@%$INSTOBJEXT%g
8984 s%@INTLDEPS@%$INTLDEPS%g
8985 s%@INTLLIBS@%$INTLLIBS%g
8986 s%@INTLOBJS@%$INTLOBJS%g
8987 s%@POFILES@%$POFILES%g
8989 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8991 s%@GT_YES@%$GT_YES%g
8992 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8995 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8996 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8997 s%@INSTALL_DATA@%$INSTALL_DATA%g
8999 s%@DLLTOOL@%$DLLTOOL%g
9000 s%@WINDRES@%$WINDRES%g
9003 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
9004 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
9005 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
9006 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
9007 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
9008 s%@MMALLOC@%$MMALLOC%g
9010 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
9011 s%@TERM_LIB@%$TERM_LIB%g
9012 s%@WIN32LIBS@%$WIN32LIBS%g
9013 s%@LIBGUI@%$LIBGUI%g
9014 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
9015 s%@WIN32LDAPP@%$WIN32LDAPP%g
9016 s%@TCL_VERSION@%$TCL_VERSION%g
9017 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
9018 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
9019 s%@TCL_CC@%$TCL_CC%g
9020 s%@TCL_DEFS@%$TCL_DEFS%g
9021 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
9022 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
9023 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
9024 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
9025 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
9026 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
9027 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
9028 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
9029 s%@TCL_RANLIB@%$TCL_RANLIB%g
9030 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
9031 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
9032 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
9033 s%@TK_VERSION@%$TK_VERSION%g
9034 s%@TK_DEFS@%$TK_DEFS%g
9035 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
9036 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
9037 s%@TK_XLIBSW@%$TK_XLIBSW%g
9038 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
9039 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
9040 s%@TCLHDIR@%$TCLHDIR%g
9041 s%@TKHDIR@%$TKHDIR%g
9042 s%@ITCLHDIR@%$ITCLHDIR%g
9043 s%@ITKHDIR@%$ITKHDIR%g
9044 s%@TIXHDIR@%$TIXHDIR%g
9045 s%@ITCL_VERSION@%$ITCL_VERSION%g
9046 s%@ITCL_DEFS@%$ITCL_DEFS%g
9047 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
9048 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
9049 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
9050 s%@ITK_VERSION@%$ITK_VERSION%g
9051 s%@ITK_DEFS@%$ITK_DEFS%g
9052 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
9053 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
9054 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
9055 s%@TIX_VERSION@%$TIX_VERSION%g
9056 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
9057 s%@X_CFLAGS@%$X_CFLAGS%g
9058 s%@X_LDFLAGS@%$X_LDFLAGS%g
9059 s%@X_LIBS@%$X_LIBS%g
9060 s%@TCL_DEPS@%$TCL_DEPS%g
9061 s%@TK_DEPS@%$TK_DEPS%g
9062 s%@ITCLLIB@%$ITCLLIB%g
9063 s%@ITCL_DEPS@%$ITCL_DEPS%g
9064 s%@ITKLIB@%$ITKLIB%g
9065 s%@ITK_DEPS@%$ITK_DEPS%g
9066 s%@TIXLIB@%$TIXLIB%g
9067 s%@TIX_DEPS@%$TIX_DEPS%g
9068 s%@GDBTKLIBS@%$GDBTKLIBS%g
9069 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
9070 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
9071 s%@IGNORE_SIM@%$IGNORE_SIM%g
9072 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
9073 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
9074 s%@CONFIG_OBS@%$CONFIG_OBS%g
9075 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
9076 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
9077 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
9078 s%@CONFIG_INITS@%$CONFIG_INITS%g
9079 s%@CONFIG_ALL@%$CONFIG_ALL%g
9080 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
9081 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
9082 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
9083 s%@HLDFLAGS@%$HLDFLAGS%g
9084 s%@HLDENV@%$HLDENV%g
9085 s%@target_subdir@%$target_subdir%g
9086 /@host_makefile_frag@/r $host_makefile_frag
9087 s%@host_makefile_frag@%%g
9088 /@target_makefile_frag@/r $target_makefile_frag
9089 s%@target_makefile_frag@%%g
9091 s%@SUBDIRS@%$SUBDIRS%g
9096 s%@EXEEXT@%$EXEEXT%g
9097 s%@subdirs@%$subdirs%g
9102 cat >> $CONFIG_STATUS <<\EOF
9104 # Split the substitutions into bite-sized pieces for seds with
9105 # small command number limits, like on Digital OSF/1 and HP-UX.
9106 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9107 ac_file
=1 # Number of current file.
9108 ac_beg
=1 # First line for current file.
9109 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9112 while $ac_more_lines; do
9113 if test $ac_beg -gt 1; then
9114 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9116 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9118 if test ! -s conftest.s
$ac_file; then
9120 rm -f conftest.s
$ac_file
9122 if test -z "$ac_sed_cmds"; then
9123 ac_sed_cmds
="sed -f conftest.s$ac_file"
9125 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9127 ac_file
=`expr $ac_file + 1`
9129 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9132 if test -z "$ac_sed_cmds"; then
9137 cat >> $CONFIG_STATUS <<EOF
9139 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
9141 cat >> $CONFIG_STATUS <<\EOF
9142 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9145 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9146 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9147 *) ac_file_in
="${ac_file}.in" ;;
9150 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9152 # Remove last slash and all that follows it. Not all systems have dirname.
9153 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9154 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9155 # The file is in a subdirectory.
9156 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9157 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9158 # A "../" for each directory in $ac_dir_suffix.
9159 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9161 ac_dir_suffix
= ac_dots
=
9164 case "$ac_given_srcdir" in
9166 if test -z "$ac_dots"; then top_srcdir
=.
9167 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9168 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9170 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9171 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9174 case "$ac_given_INSTALL" in
9175 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9176 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9179 echo creating
"$ac_file"
9181 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9183 *Makefile
*) ac_comsub
="1i\\
9184 # $configure_input" ;;
9188 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9190 s%@configure_input@%$configure_input%g
9191 s%@srcdir@%$srcdir%g
9192 s%@top_srcdir@%$top_srcdir%g
9193 s%@INSTALL@%$INSTALL%g
9194 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9198 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9199 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9201 # ac_d sets the value in "#define NAME VALUE" lines.
9202 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9203 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9206 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9207 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9208 ac_uB
='\([ ]\)%\1#\2define\3'
9211 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9212 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9213 ac_eB
='$%\1#\2define\3'
9217 if test "${CONFIG_HEADERS+set}" != set; then
9219 cat >> $CONFIG_STATUS <<EOF
9220 CONFIG_HEADERS="config.h:config.in"
9222 cat >> $CONFIG_STATUS <<\EOF
9224 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9225 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9227 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9228 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9229 *) ac_file_in
="${ac_file}.in" ;;
9232 echo creating
$ac_file
9234 rm -f conftest.frag conftest.
in conftest.out
9235 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9236 cat $ac_file_inputs > conftest.
in
9240 # Transform confdefs.h into a sed script conftest.vals that substitutes
9241 # the proper values into config.h.in to produce config.h. And first:
9242 # Protect against being on the right side of a sed subst in config.status.
9243 # Protect against being in an unquoted here document in config.status.
9245 cat > conftest.hdr
<<\EOF
9248 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9252 sed -n -f conftest.hdr confdefs.h > conftest.vals
9255 # This sed command replaces #undef with comments. This is necessary, for
9256 # example, in the case of _POSIX_SOURCE, which is predefined and required
9257 # on some systems where configure will not decide to define it.
9258 cat >> conftest.vals <<\EOF
9259 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9262 # Break up conftest.vals because some shells have a limit on
9263 # the size of here documents, and old seds have small limits too.
9268 ac_lines=`grep -c . conftest.vals
`
9269 # grep -c gives empty output for an empty file on some AIX systems.
9270 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9271 # Write a limited-size here document to conftest.frag.
9272 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9273 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9275 sed -f conftest.frag conftest.in > conftest.out
9277 mv conftest.out conftest.in
9279 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9281 mv conftest.tail conftest.vals
9285 cat >> $CONFIG_STATUS <<\EOF
9286 rm -f conftest.frag conftest.h
9287 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9288 cat conftest.in >> conftest.h
9290 if cmp -s $ac_file conftest.h 2>/dev/null; then
9291 echo "$ac_file is unchanged"
9294 # Remove last slash and all that follows it. Not all systems have dirname.
9295 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9296 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9297 # The file is in a subdirectory.
9298 test ! -d "$ac_dir" && mkdir "$ac_dir"
9301 mv conftest.h $ac_file
9307 cat >> $CONFIG_STATUS <<EOF
9312 cat >> $CONFIG_STATUS <<\EOF
9313 srcdir=$ac_given_srcdir
9314 while test -n "$ac_sources"; do
9315 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9316 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9318 echo "linking $srcdir/$ac_source to $ac_dest"
9320 if test ! -r $srcdir/$ac_source; then
9321 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9325 # Make relative symlinks.
9326 # Remove last slash and all that follows it. Not all systems have dirname.
9327 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9328 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9329 # The dest file is in a subdirectory.
9330 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9331 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9332 # A "../" for each directory in $ac_dest_dir_suffix.
9333 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9335 ac_dest_dir_suffix= ac_dots=
9339 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9340 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9343 # Make a symlink if possible; otherwise try a hard link.
9344 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9345 ln $srcdir/$ac_source $ac_dest; then :
9347 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9351 cat >> $CONFIG_STATUS <<EOF
9353 gdb_host_cpu=$gdb_host_cpu
9354 gdb_target_cpu=$gdb_target_cpu
9355 nativefile=$nativefile
9358 cat >> $CONFIG_STATUS <<\EOF
9360 if test "${nativefile}" = ""; then
9362 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
9363 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
9364 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
9366 mv -f Makefile.tem Makefile
9369 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9370 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9371 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9372 mv -f Makefile.tmp Makefile
9375 case x$CONFIG_HEADERS in
9376 xconfig.h:config.in)
9382 chmod +x $CONFIG_STATUS
9383 rm -fr confdefs* $ac_clean_files
9384 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9386 if test "$no_recursion" != yes; then
9388 # Remove --cache-file and --srcdir arguments so they do not pile up.
9389 ac_sub_configure_args=
9391 for ac_arg in $ac_configure_args; do
9392 if test -n "$ac_prev"; then
9397 -cache-file | --cache-file | --cache-fil | --cache-fi \
9398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9399 ac_prev=cache_file ;;
9400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9407 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9411 for ac_config_dir in $configdirs; do
9413 # Do not complain, so a configure script can configure whichever
9414 # parts of a large source tree are present.
9415 if test ! -d $srcdir/$ac_config_dir; then
9419 echo configuring in $ac_config_dir
9424 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9426 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9434 # A "../" for each directory in /$ac_config_dir.
9435 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9438 .) # No --srcdir option. We are building in place.
9439 ac_sub_srcdir=$srcdir ;;
9440 /*) # Absolute path.
9441 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9443 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9446 # Check for guested configure; otherwise get Cygnus style configure.
9447 if test -f $ac_sub_srcdir/configure; then
9448 ac_sub_configure=$ac_sub_srcdir/configure
9449 elif test -f $ac_sub_srcdir/configure.in; then
9450 ac_sub_configure=$ac_configure
9452 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9456 # The recursion is here.
9457 if test -n "$ac_sub_configure"; then
9459 # Make the cache file name correct relative to the subdirectory.
9460 case "$cache_file" in
9461 /*) ac_sub_cache_file=$cache_file ;;
9463 ac_sub_cache_file="$ac_dots$cache_file" ;;
9465 case "$ac_given_INSTALL" in
9466 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9467 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9470 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9471 # The eval makes quoting arguments work.
9472 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9475 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }