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 -Aa -D_HPUX_SOURCE
973 # SVR4 -Xc -D__EXTENSIONS__
974 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
976 CC
="$ac_save_CC $ac_arg"
977 cat > conftest.
$ac_ext <<EOF
978 #line 979 "configure"
979 #include "confdefs.h"
982 #include <sys/types.h>
983 #include <sys/stat.h>
984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
985 struct buf { int x; };
986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
987 static char *e (p, i)
993 static char *f (char * (*g) (char **, int), char **p, ...)
998 s = g (p, va_arg (v,int));
1002 int test (int i, double x);
1003 struct s1 {int (*f) (int a);};
1004 struct s2 {int (*f) (double a);};
1005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1015 if { (eval echo configure
:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1017 am_cv_prog_cc_stdc
="$ac_arg"; break
1019 echo "configure: failed program was:" >&5
1020 cat conftest.
$ac_ext >&5
1028 if test -z "$am_cv_prog_cc_stdc"; then
1029 echo "$ac_t""none needed" 1>&6
1031 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1033 case "x$am_cv_prog_cc_stdc" in
1035 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1040 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1041 if test -f $ac_dir/install-sh
; then
1043 ac_install_sh
="$ac_aux_dir/install-sh -c"
1045 elif test -f $ac_dir/install.sh
; then
1047 ac_install_sh
="$ac_aux_dir/install.sh -c"
1051 if test -z "$ac_aux_dir"; then
1052 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1054 ac_config_guess
=$ac_aux_dir/config.guess
1055 ac_config_sub
=$ac_aux_dir/config.sub
1056 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1059 # Do some error checking and defaulting for the host and target type.
1061 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1064 # 1. You are not allowed to specify --host, --target, and nonopt at the
1066 # 2. Host defaults to nonopt.
1067 # 3. If nonopt is not specified, then host defaults to the current host,
1068 # as determined by config.guess.
1069 # 4. Target and build default to nonopt.
1070 # 5. If nonopt is not specified, then target and build default to host.
1072 # The aliases save the names the user supplied, while $host etc.
1073 # will get canonicalized.
1074 case $host---$target---$nonopt in
1075 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1076 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1080 # Make sure we can run config.sub.
1081 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1082 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1085 echo $ac_n "checking host system type""... $ac_c" 1>&6
1086 echo "configure:1087: checking host system type" >&5
1089 case "$host_alias" in
1093 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1094 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1096 *) host_alias
=$nonopt ;;
1100 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1101 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1102 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1103 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1104 echo "$ac_t""$host" 1>&6
1106 echo $ac_n "checking target system type""... $ac_c" 1>&6
1107 echo "configure:1108: checking target system type" >&5
1109 target_alias
=$target
1110 case "$target_alias" in
1113 NONE
) target_alias
=$host_alias ;;
1114 *) target_alias
=$nonopt ;;
1118 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1119 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1122 echo "$ac_t""$target" 1>&6
1124 echo $ac_n "checking build system type""... $ac_c" 1>&6
1125 echo "configure:1126: checking build system type" >&5
1128 case "$build_alias" in
1131 NONE
) build_alias
=$host_alias ;;
1132 *) build_alias
=$nonopt ;;
1136 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1137 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1138 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1139 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1140 echo "$ac_t""$build" 1>&6
1142 test "$host_alias" != "$target_alias" &&
1143 test "$program_prefix$program_suffix$program_transform_name" = \
1145 program_prefix
=${target_alias}-
1149 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether ${MAKE-make} sets \${MAKE}" >&5
1151 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1152 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 cat > conftestmake
<<\EOF
1157 @
echo 'ac_maketemp="${MAKE}"'
1159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1160 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1161 if test -n "$ac_maketemp"; then
1162 eval ac_cv_prog_make_
${ac_make}_set
=yes
1164 eval ac_cv_prog_make_
${ac_make}_set
=no
1168 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1169 echo "$ac_t""yes" 1>&6
1172 echo "$ac_t""no" 1>&6
1173 SET_MAKE
="MAKE=${MAKE-make}"
1176 # Extract the first word of "ranlib", so it can be a program name with args.
1177 set dummy ranlib
; ac_word
=$2
1178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_word" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 if test -n "$RANLIB"; then
1184 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1186 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1188 for ac_dir
in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir
=.
1190 if test -f $ac_dir/$ac_word; then
1191 ac_cv_prog_RANLIB
="ranlib"
1196 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1199 RANLIB
="$ac_cv_prog_RANLIB"
1200 if test -n "$RANLIB"; then
1201 echo "$ac_t""$RANLIB" 1>&6
1203 echo "$ac_t""no" 1>&6
1206 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1207 echo "configure:1208: checking for ANSI C header files" >&5
1208 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftest.
$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1219 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1220 { (eval echo configure
:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1221 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1222 if test -z "$ac_err"; then
1224 ac_cv_header_stdc
=yes
1227 echo "configure: failed program was:" >&5
1228 cat conftest.
$ac_ext >&5
1230 ac_cv_header_stdc
=no
1234 if test $ac_cv_header_stdc = yes; then
1235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1236 cat > conftest.
$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1242 egrep "memchr" >/dev
/null
2>&1; then
1246 ac_cv_header_stdc
=no
1252 if test $ac_cv_header_stdc = yes; then
1253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1254 cat > conftest.
$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1260 egrep "free" >/dev
/null
2>&1; then
1264 ac_cv_header_stdc
=no
1270 if test $ac_cv_header_stdc = yes; then
1271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1272 if test "$cross_compiling" = yes; then
1275 cat > conftest.
$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1279 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1280 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1282 int main () { int i; for (i = 0; i < 256; i++)
1283 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1287 if { (eval echo configure
:1288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1291 echo "configure: failed program was:" >&5
1292 cat conftest.
$ac_ext >&5
1294 ac_cv_header_stdc
=no
1302 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1303 if test $ac_cv_header_stdc = yes; then
1304 cat >> confdefs.h
<<\EOF
1305 #define STDC_HEADERS 1
1310 echo $ac_n "checking for working const""... $ac_c" 1>&6
1311 echo "configure:1312: checking for working const" >&5
1312 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.
$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1321 /* Ultrix mips cc rejects this. */
1322 typedef int charset[2]; const charset x;
1323 /* SunOS 4.1.1 cc rejects this. */
1324 char const *const *ccp;
1326 /* NEC SVR4.0.2 mips cc rejects this. */
1327 struct point {int x, y;};
1328 static struct point const zero = {0,0};
1329 /* AIX XL C 1.02.0.0 rejects this.
1330 It does not let you subtract one const X* pointer from another in an arm
1331 of an if-expression whose if-part is not a constant expression */
1332 const char *g = "string";
1333 ccp = &g + (g ? g-g : 0);
1334 /* HPUX 7.0 cc rejects these. */
1337 ccp = (char const *const *) p;
1338 { /* SCO 3.2v4 cc rejects this. */
1340 char const *s = 0 ? (char *) 0 : (char const *) 0;
1344 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1346 const int *foo = &x[0];
1349 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1350 typedef const int *iptr;
1354 { /* AIX XL C 1.02.0.0 rejects this saying
1355 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1356 struct s { int j; const int *ap[3]; };
1357 struct s *b; b->j = 5;
1359 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1365 if { (eval echo configure
:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1369 echo "configure: failed program was:" >&5
1370 cat conftest.
$ac_ext >&5
1377 echo "$ac_t""$ac_cv_c_const" 1>&6
1378 if test $ac_cv_c_const = no
; then
1379 cat >> confdefs.h
<<\EOF
1385 echo $ac_n "checking for inline""... $ac_c" 1>&6
1386 echo "configure:1387: checking for inline" >&5
1387 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1391 for ac_kw
in inline __inline__ __inline
; do
1392 cat > conftest.
$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1400 if { (eval echo configure
:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1402 ac_cv_c_inline
=$ac_kw; break
1404 echo "configure: failed program was:" >&5
1405 cat conftest.
$ac_ext >&5
1412 echo "$ac_t""$ac_cv_c_inline" 1>&6
1413 case "$ac_cv_c_inline" in
1415 no
) cat >> confdefs.h
<<\EOF
1419 *) cat >> confdefs.h
<<EOF
1420 #define inline $ac_cv_c_inline
1425 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1426 echo "configure:1427: checking for off_t" >&5
1427 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 cat > conftest.
$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 #include <sys/types.h>
1439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1440 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1442 ac_cv_type_off_t
=yes
1450 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1451 if test $ac_cv_type_off_t = no
; then
1452 cat >> confdefs.h
<<\EOF
1458 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1459 echo "configure:1460: checking for size_t" >&5
1460 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.
$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 #include <sys/types.h>
1472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1473 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1475 ac_cv_type_size_t
=yes
1478 ac_cv_type_size_t
=no
1483 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1484 if test $ac_cv_type_size_t = no
; then
1485 cat >> confdefs.h
<<\EOF
1486 #define size_t unsigned
1491 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1492 # for constant arguments. Useless!
1493 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1494 echo "configure:1495: checking for working alloca.h" >&5
1495 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1503 char *p = alloca(2 * sizeof(int));
1506 if { (eval echo configure
:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1508 ac_cv_header_alloca_h
=yes
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1513 ac_cv_header_alloca_h
=no
1518 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1519 if test $ac_cv_header_alloca_h = yes; then
1520 cat >> confdefs.h
<<\EOF
1521 #define HAVE_ALLOCA_H 1
1526 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1527 echo "configure:1528: checking for alloca" >&5
1528 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 cat > conftest.
$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1536 # define alloca __builtin_alloca
1539 # include <malloc.h>
1540 # define alloca _alloca
1543 # include <alloca.h>
1548 # ifndef alloca /* predefined by HP cc +Olibcalls */
1557 char *p = (char *) alloca(1);
1560 if { (eval echo configure
:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1562 ac_cv_func_alloca_works
=yes
1564 echo "configure: failed program was:" >&5
1565 cat conftest.
$ac_ext >&5
1567 ac_cv_func_alloca_works
=no
1572 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1573 if test $ac_cv_func_alloca_works = yes; then
1574 cat >> confdefs.h
<<\EOF
1575 #define HAVE_ALLOCA 1
1580 if test $ac_cv_func_alloca_works = no
; then
1581 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1582 # that cause trouble. Some versions do not even contain alloca or
1583 # contain a buggy version. If you still want to use their alloca,
1584 # use ar to extract alloca.o from them instead of compiling alloca.c.
1585 ALLOCA
=alloca.
${ac_objext}
1586 cat >> confdefs.h
<<\EOF
1591 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1592 echo "configure:1593: checking whether alloca needs Cray hooks" >&5
1593 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 #if defined(CRAY) && ! defined(CRAY2)
1606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1607 egrep "webecray" >/dev
/null
2>&1; then
1618 echo "$ac_t""$ac_cv_os_cray" 1>&6
1619 if test $ac_cv_os_cray = yes; then
1620 for ac_func
in _getb67 GETB67 getb67
; do
1621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1622 echo "configure:1623: checking for $ac_func" >&5
1623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 cat > conftest.
$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629 /* System header to define __stub macros and hopefully few prototypes,
1630 which can conflict with char $ac_func(); below. */
1632 /* Override any gcc2 internal prototype to avoid an error. */
1633 /* We use char because int might match the return type of a gcc2
1634 builtin and then its argument prototype would still apply. */
1639 /* The GNU C library defines this for functions which it implements
1640 to always fail with ENOSYS. Some functions are actually named
1641 something starting with __ and the normal name is an alias. */
1642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1650 if { (eval echo configure
:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1652 eval "ac_cv_func_$ac_func=yes"
1654 echo "configure: failed program was:" >&5
1655 cat conftest.
$ac_ext >&5
1657 eval "ac_cv_func_$ac_func=no"
1662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1663 echo "$ac_t""yes" 1>&6
1664 cat >> confdefs.h
<<EOF
1665 #define CRAY_STACKSEG_END $ac_func
1670 echo "$ac_t""no" 1>&6
1676 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1677 echo "configure:1678: checking stack direction for C alloca" >&5
1678 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 if test "$cross_compiling" = yes; then
1682 ac_cv_c_stack_direction
=0
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 find_stack_direction ()
1689 static char *addr = 0;
1694 return find_stack_direction ();
1697 return (&dummy > addr) ? 1 : -1;
1701 exit (find_stack_direction() < 0);
1704 if { (eval echo configure
:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1706 ac_cv_c_stack_direction
=1
1708 echo "configure: failed program was:" >&5
1709 cat conftest.
$ac_ext >&5
1711 ac_cv_c_stack_direction
=-1
1718 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1719 cat >> confdefs.h
<<EOF
1720 #define STACK_DIRECTION $ac_cv_c_stack_direction
1725 for ac_hdr
in unistd.h
1727 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1729 echo "configure:1730: checking for $ac_hdr" >&5
1730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1738 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1739 { (eval echo configure
:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1740 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1741 if test -z "$ac_err"; then
1743 eval "ac_cv_header_$ac_safe=yes"
1746 echo "configure: failed program was:" >&5
1747 cat conftest.
$ac_ext >&5
1749 eval "ac_cv_header_$ac_safe=no"
1753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1754 echo "$ac_t""yes" 1>&6
1755 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1756 cat >> confdefs.h
<<EOF
1757 #define $ac_tr_hdr 1
1761 echo "$ac_t""no" 1>&6
1765 for ac_func
in getpagesize
1767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_func" >&5
1769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 cat > conftest.
$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $ac_func(); below. */
1778 /* Override any gcc2 internal prototype to avoid an error. */
1779 /* We use char because int might match the return type of a gcc2
1780 builtin and then its argument prototype would still apply. */
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1796 if { (eval echo configure
:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1798 eval "ac_cv_func_$ac_func=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.
$ac_ext >&5
1803 eval "ac_cv_func_$ac_func=no"
1808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1809 echo "$ac_t""yes" 1>&6
1810 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1811 cat >> confdefs.h
<<EOF
1812 #define $ac_tr_func 1
1816 echo "$ac_t""no" 1>&6
1820 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1821 echo "configure:1822: checking for working mmap" >&5
1822 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 if test "$cross_compiling" = yes; then
1826 ac_cv_func_mmap_fixed_mapped
=no
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1832 /* Thanks to Mike Haertel and Jim Avera for this test.
1833 Here is a matrix of mmap possibilities:
1834 mmap private not fixed
1835 mmap private fixed at somewhere currently unmapped
1836 mmap private fixed at somewhere already mapped
1837 mmap shared not fixed
1838 mmap shared fixed at somewhere currently unmapped
1839 mmap shared fixed at somewhere already mapped
1840 For private mappings, we should verify that changes cannot be read()
1841 back from the file, nor mmap's back from the file at a different
1842 address. (There have been systems where private was not correctly
1843 implemented like the infamous i386 svr4.0, and systems where the
1844 VM page cache was not coherent with the filesystem buffer cache
1845 like early versions of FreeBSD and possibly contemporary NetBSD.)
1846 For shared mappings, we should conversely verify that changes get
1847 propogated back to all the places they're supposed to be.
1849 Grep wants private fixed already mapped.
1850 The main things grep needs to know about mmap are:
1851 * does it exist and is it safe to write into the mmap'd area
1852 * how to use it (BSD variants) */
1853 #include <sys/types.h>
1855 #include <sys/mman.h>
1857 /* This mess was copied from the GNU getpagesize.h. */
1858 #ifndef HAVE_GETPAGESIZE
1859 # ifdef HAVE_UNISTD_H
1860 # include <unistd.h>
1863 /* Assume that all systems that can run configure have sys/param.h. */
1864 # ifndef HAVE_SYS_PARAM_H
1865 # define HAVE_SYS_PARAM_H 1
1868 # ifdef _SC_PAGESIZE
1869 # define getpagesize() sysconf(_SC_PAGESIZE)
1870 # else /* no _SC_PAGESIZE */
1871 # ifdef HAVE_SYS_PARAM_H
1872 # include <sys/param.h>
1873 # ifdef EXEC_PAGESIZE
1874 # define getpagesize() EXEC_PAGESIZE
1875 # else /* no EXEC_PAGESIZE */
1877 # define getpagesize() NBPG * CLSIZE
1880 # endif /* no CLSIZE */
1881 # else /* no NBPG */
1883 # define getpagesize() NBPC
1884 # else /* no NBPC */
1886 # define getpagesize() PAGESIZE
1887 # endif /* PAGESIZE */
1888 # endif /* no NBPC */
1889 # endif /* no NBPG */
1890 # endif /* no EXEC_PAGESIZE */
1891 # else /* no HAVE_SYS_PARAM_H */
1892 # define getpagesize() 8192 /* punt totally */
1893 # endif /* no HAVE_SYS_PARAM_H */
1894 # endif /* no _SC_PAGESIZE */
1896 #endif /* no HAVE_GETPAGESIZE */
1899 extern "C" { void *malloc(unsigned); }
1907 char *data, *data2, *data3;
1911 pagesize = getpagesize();
1914 * First, make a file with some known garbage in it.
1916 data = malloc(pagesize);
1919 for (i = 0; i < pagesize; ++i)
1920 *(data + i) = rand();
1922 fd = creat("conftestmmap", 0600);
1925 if (write(fd, data, pagesize) != pagesize)
1930 * Next, try to mmap the file at a fixed address which
1931 * already has something else allocated at it. If we can,
1932 * also make sure that we see the same garbage.
1934 fd = open("conftestmmap", O_RDWR);
1937 data2 = malloc(2 * pagesize);
1940 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1941 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1942 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1944 for (i = 0; i < pagesize; ++i)
1945 if (*(data + i) != *(data2 + i))
1949 * Finally, make sure that changes to the mapped area
1950 * do not percolate back to the file as seen by read().
1951 * (This is a bug on some variants of i386 svr4.0.)
1953 for (i = 0; i < pagesize; ++i)
1954 *(data2 + i) = *(data2 + i) + 1;
1955 data3 = malloc(pagesize);
1958 if (read(fd, data3, pagesize) != pagesize)
1960 for (i = 0; i < pagesize; ++i)
1961 if (*(data + i) != *(data3 + i))
1964 unlink("conftestmmap");
1969 if { (eval echo configure
:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1971 ac_cv_func_mmap_fixed_mapped
=yes
1973 echo "configure: failed program was:" >&5
1974 cat conftest.
$ac_ext >&5
1976 ac_cv_func_mmap_fixed_mapped
=no
1983 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1984 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1985 cat >> confdefs.h
<<\EOF
1992 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1993 unistd.h values.h sys
/param.h
1995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_hdr" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.
$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure
:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2011 eval "ac_cv_header_$ac_safe=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 eval "ac_cv_header_$ac_safe=no"
2021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2024 cat >> confdefs.h
<<EOF
2025 #define $ac_tr_hdr 1
2029 echo "$ac_t""no" 1>&6
2033 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2034 __argz_count __argz_stringify __argz_next
2036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_func" >&5
2038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 /* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char $ac_func(); below. */
2047 /* Override any gcc2 internal prototype to avoid an error. */
2048 /* We use char because int might match the return type of a gcc2
2049 builtin and then its argument prototype would still apply. */
2054 /* The GNU C library defines this for functions which it implements
2055 to always fail with ENOSYS. Some functions are actually named
2056 something starting with __ and the normal name is an alias. */
2057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2065 if { (eval echo configure
:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2067 eval "ac_cv_func_$ac_func=yes"
2069 echo "configure: failed program was:" >&5
2070 cat conftest.
$ac_ext >&5
2072 eval "ac_cv_func_$ac_func=no"
2077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2079 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2080 cat >> confdefs.h
<<EOF
2081 #define $ac_tr_func 1
2085 echo "$ac_t""no" 1>&6
2090 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2091 for ac_func
in stpcpy
2093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2094 echo "configure:2095: checking for $ac_func" >&5
2095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 cat > conftest.
$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2101 /* System header to define __stub macros and hopefully few prototypes,
2102 which can conflict with char $ac_func(); below. */
2104 /* Override any gcc2 internal prototype to avoid an error. */
2105 /* We use char because int might match the return type of a gcc2
2106 builtin and then its argument prototype would still apply. */
2111 /* The GNU C library defines this for functions which it implements
2112 to always fail with ENOSYS. Some functions are actually named
2113 something starting with __ and the normal name is an alias. */
2114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2122 if { (eval echo configure
:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2124 eval "ac_cv_func_$ac_func=yes"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.
$ac_ext >&5
2129 eval "ac_cv_func_$ac_func=no"
2134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2135 echo "$ac_t""yes" 1>&6
2136 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2137 cat >> confdefs.h
<<EOF
2138 #define $ac_tr_func 1
2142 echo "$ac_t""no" 1>&6
2147 if test "${ac_cv_func_stpcpy}" = "yes"; then
2148 cat >> confdefs.h
<<\EOF
2149 #define HAVE_STPCPY 1
2154 if test $ac_cv_header_locale_h = yes; then
2155 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2156 echo "configure:2157: checking for LC_MESSAGES" >&5
2157 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat > conftest.
$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2168 if { (eval echo configure
:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2170 am_cv_val_LC_MESSAGES
=yes
2172 echo "configure: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 am_cv_val_LC_MESSAGES
=no
2180 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2181 if test $am_cv_val_LC_MESSAGES = yes; then
2182 cat >> confdefs.h
<<\EOF
2183 #define HAVE_LC_MESSAGES 1
2188 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2189 echo "configure:2190: checking whether NLS is requested" >&5
2190 # Check whether --enable-nls or --disable-nls was given.
2191 if test "${enable_nls+set}" = set; then
2192 enableval
="$enable_nls"
2198 echo "$ac_t""$USE_NLS" 1>&6
2201 USE_INCLUDED_LIBINTL
=no
2203 if test "$USE_NLS" = "yes"; then
2204 cat >> confdefs.h
<<\EOF
2205 #define ENABLE_NLS 1
2208 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2209 echo "configure:2210: checking whether included gettext is requested" >&5
2210 # Check whether --with-included-gettext or --without-included-gettext was given.
2211 if test "${with_included_gettext+set}" = set; then
2212 withval
="$with_included_gettext"
2213 nls_cv_force_use_gnu_gettext
=$withval
2215 nls_cv_force_use_gnu_gettext
=no
2218 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2220 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2221 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2223 nls_cv_header_libgt
=
2226 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2228 echo "configure:2229: checking for libintl.h" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <libintl.h>
2237 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure
:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_header_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2255 echo "configure:2256: checking for gettext in libc" >&5
2256 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 #include <libintl.h>
2264 return (int) gettext ("")
2267 if { (eval echo configure
:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2269 gt_cv_func_gettext_libc
=yes
2271 echo "configure: failed program was:" >&5
2272 cat conftest.
$ac_ext >&5
2274 gt_cv_func_gettext_libc
=no
2279 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2281 if test "$gt_cv_func_gettext_libc" != "yes"; then
2282 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2283 echo "configure:2284: checking for bindtextdomain in -lintl" >&5
2284 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 ac_save_LIBS
="$LIBS"
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2296 char bindtextdomain();
2302 if { (eval echo configure
:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2304 eval "ac_cv_lib_$ac_lib_var=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.
$ac_ext >&5
2309 eval "ac_cv_lib_$ac_lib_var=no"
2312 LIBS
="$ac_save_LIBS"
2315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2318 echo "configure:2319: checking for gettext in libintl" >&5
2319 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 cat > conftest.
$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2327 return (int) gettext ("")
2330 if { (eval echo configure
:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2332 gt_cv_func_gettext_libintl
=yes
2334 echo "configure: failed program was:" >&5
2335 cat conftest.
$ac_ext >&5
2337 gt_cv_func_gettext_libintl
=no
2342 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2344 echo "$ac_t""no" 1>&6
2349 if test "$gt_cv_func_gettext_libc" = "yes" \
2350 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2351 cat >> confdefs.h
<<\EOF
2352 #define HAVE_GETTEXT 1
2355 # Extract the first word of "msgfmt", so it can be a program name with args.
2356 set dummy msgfmt
; ac_word
=$2
2357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_word" >&5
2359 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2364 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2367 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2368 for ac_dir
in $PATH; do
2369 test -z "$ac_dir" && ac_dir
=.
2370 if test -f $ac_dir/$ac_word; then
2371 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2372 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2378 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2382 MSGFMT
="$ac_cv_path_MSGFMT"
2383 if test -n "$MSGFMT"; then
2384 echo "$ac_t""$MSGFMT" 1>&6
2386 echo "$ac_t""no" 1>&6
2388 if test "$MSGFMT" != "no"; then
2389 for ac_func
in dcgettext
2391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_func" >&5
2393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char $ac_func(); below. */
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2420 if { (eval echo configure
:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2422 eval "ac_cv_func_$ac_func=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.
$ac_ext >&5
2427 eval "ac_cv_func_$ac_func=no"
2432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2435 cat >> confdefs.h
<<EOF
2436 #define $ac_tr_func 1
2440 echo "$ac_t""no" 1>&6
2444 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2445 set dummy gmsgfmt
; ac_word
=$2
2446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2447 echo "configure:2448: checking for $ac_word" >&5
2448 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2453 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2456 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2459 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2461 for ac_dir
in $ac_dummy; do
2462 test -z "$ac_dir" && ac_dir
=.
2463 if test -f $ac_dir/$ac_word; then
2464 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2469 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2473 GMSGFMT
="$ac_cv_path_GMSGFMT"
2474 if test -n "$GMSGFMT"; then
2475 echo "$ac_t""$GMSGFMT" 1>&6
2477 echo "$ac_t""no" 1>&6
2480 # Extract the first word of "xgettext", so it can be a program name with args.
2481 set dummy xgettext
; ac_word
=$2
2482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2483 echo "configure:2484: checking for $ac_word" >&5
2484 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2489 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2492 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2493 for ac_dir
in $PATH; do
2494 test -z "$ac_dir" && ac_dir
=.
2495 if test -f $ac_dir/$ac_word; then
2496 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2497 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2503 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2507 XGETTEXT
="$ac_cv_path_XGETTEXT"
2508 if test -n "$XGETTEXT"; then
2509 echo "$ac_t""$XGETTEXT" 1>&6
2511 echo "$ac_t""no" 1>&6
2514 cat > conftest.
$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2519 extern int _nl_msg_cat_cntr;
2520 return _nl_msg_cat_cntr
2523 if { (eval echo configure
:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2540 echo "$ac_t""no" 1>&6
2545 if test "$CATOBJEXT" = "NONE"; then
2546 nls_cv_use_gnu_gettext
=yes
2550 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2551 INTLOBJS
="\$(GETTOBJS)"
2552 # Extract the first word of "msgfmt", so it can be a program name with args.
2553 set dummy msgfmt
; ac_word
=$2
2554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_word" >&5
2556 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2564 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2565 for ac_dir
in $PATH; do
2566 test -z "$ac_dir" && ac_dir
=.
2567 if test -f $ac_dir/$ac_word; then
2568 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2569 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2575 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2579 MSGFMT
="$ac_cv_path_MSGFMT"
2580 if test -n "$MSGFMT"; then
2581 echo "$ac_t""$MSGFMT" 1>&6
2583 echo "$ac_t""no" 1>&6
2586 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2587 set dummy gmsgfmt
; ac_word
=$2
2588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_word" >&5
2590 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2595 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2598 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2601 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2603 for ac_dir
in $ac_dummy; do
2604 test -z "$ac_dir" && ac_dir
=.
2605 if test -f $ac_dir/$ac_word; then
2606 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2611 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2615 GMSGFMT
="$ac_cv_path_GMSGFMT"
2616 if test -n "$GMSGFMT"; then
2617 echo "$ac_t""$GMSGFMT" 1>&6
2619 echo "$ac_t""no" 1>&6
2622 # Extract the first word of "xgettext", so it can be a program name with args.
2623 set dummy xgettext
; ac_word
=$2
2624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_word" >&5
2626 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2631 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2635 for ac_dir
in $PATH; do
2636 test -z "$ac_dir" && ac_dir
=.
2637 if test -f $ac_dir/$ac_word; then
2638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2639 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2645 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2649 XGETTEXT
="$ac_cv_path_XGETTEXT"
2650 if test -n "$XGETTEXT"; then
2651 echo "$ac_t""$XGETTEXT" 1>&6
2653 echo "$ac_t""no" 1>&6
2657 USE_INCLUDED_LIBINTL
=yes
2661 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2663 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2664 nls_cv_header_intl
=libintl.h
2665 nls_cv_header_libgt
=libgettext.h
2668 if test "$XGETTEXT" != ":"; then
2669 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2672 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2677 # We need to process the po/ directory.
2681 nls_cv_header_intl
=libintl.h
2682 nls_cv_header_libgt
=libgettext.h
2685 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2686 # because some of the sources are only built for this goal.
2687 if test "$PACKAGE" = gettext; then
2689 USE_INCLUDED_LIBINTL
=yes
2692 for lang
in $ALL_LINGUAS; do
2693 GMOFILES
="$GMOFILES $lang.gmo"
2694 POFILES
="$POFILES $lang.po"
2710 if test "x$CATOBJEXT" != "x"; then
2711 if test "x$ALL_LINGUAS" = "x"; then
2714 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2715 echo "configure:2716: checking for catalogs to be installed" >&5
2717 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2718 case "$ALL_LINGUAS" in
2719 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2722 LINGUAS
=$NEW_LINGUAS
2723 echo "$ac_t""$LINGUAS" 1>&6
2726 if test -n "$LINGUAS"; then
2727 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2731 if test $ac_cv_header_locale_h = yes; then
2732 INCLUDE_LOCALE_H
="#include <locale.h>"
2735 /* The system does not provide the header <locale.h>. Take care yourself. */"
2739 if test -f $srcdir/po2tbl.
sed.
in; then
2740 if test "$CATOBJEXT" = ".cat"; then
2741 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2742 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2743 echo "configure:2744: checking for linux/version.h" >&5
2744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.
$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 #include <linux/version.h>
2752 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2753 { (eval echo configure
:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2754 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2755 if test -z "$ac_err"; then
2757 eval "ac_cv_header_$ac_safe=yes"
2760 echo "configure: failed program was:" >&5
2761 cat conftest.
$ac_ext >&5
2763 eval "ac_cv_header_$ac_safe=no"
2767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2771 echo "$ac_t""no" 1>&6
2776 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2778 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2779 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2782 if test "$PACKAGE" = "gettext"; then
2792 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2798 if test -d $srcdir/po
; then
2799 test -d po || mkdir po
2800 if test "x$srcdir" != "x."; then
2801 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2802 posrcprefix
="$srcdir/"
2804 posrcprefix
="../$srcdir/"
2810 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2811 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2827 configdirs
="doc testsuite"
2829 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2830 if test "${enable_multi_ice+set}" = set; then
2831 enableval
="$enable_multi_ice"
2832 case "${enableval}" in
2833 yes ) enable_multi_ice
="yes" ;;
2834 no
) enable_multi_ice
="no" ;;
2835 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2841 if test "${enable_multi_ice}" = "yes"; then
2842 configdirs
="${configdirs} multi-ice"
2846 .
${srcdir}/configure.
host
2848 .
${srcdir}/configure.tgt
2850 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2854 .
${srcdir}/..
/bfd
/config.bfd
2856 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2858 if test x
"${targ_archs}" != x
; then
2859 cat >> confdefs.h
<<EOF
2860 #define DEFAULT_BFD_ARCH ${targ_archs}
2864 if test x
"${targ_defvec}" != x
; then
2865 cat >> confdefs.h
<<EOF
2866 #define DEFAULT_BFD_VEC ${targ_defvec}
2871 for ac_prog
in mawk gawk nawk
awk
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy
$ac_prog; ac_word
=$2
2875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_word" >&5
2877 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 if test -n "$AWK"; then
2881 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2883 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2885 for ac_dir
in $ac_dummy; do
2886 test -z "$ac_dir" && ac_dir
=.
2887 if test -f $ac_dir/$ac_word; then
2888 ac_cv_prog_AWK
="$ac_prog"
2895 AWK
="$ac_cv_prog_AWK"
2896 if test -n "$AWK"; then
2897 echo "$ac_t""$AWK" 1>&6
2899 echo "$ac_t""no" 1>&6
2902 test -n "$AWK" && break
2905 # Find a good install program. We prefer a C program (faster),
2906 # so one script is as good as another. But avoid the broken or
2907 # incompatible versions:
2908 # SysV /etc/install, /usr/sbin/install
2909 # SunOS /usr/etc/install
2910 # IRIX /sbin/install
2912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2915 # ./install, which can be erroneously created by make from ./install.sh.
2916 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2917 echo "configure:2918: checking for a BSD compatible install" >&5
2918 if test -z "$INSTALL"; then
2919 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2923 for ac_dir
in $PATH; do
2924 # Account for people who put trailing slashes in PATH elements.
2926 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2928 # OSF1 and SCO ODT 3.0 have their own names for install.
2929 # Don't use installbsd from OSF since it installs stuff as root
2931 for ac_prog
in ginstall scoinst
install; do
2932 if test -f $ac_dir/$ac_prog; then
2933 if test $ac_prog = install &&
2934 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2935 # AIX install. It has an incompatible calling convention.
2938 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2949 if test "${ac_cv_path_install+set}" = set; then
2950 INSTALL
="$ac_cv_path_install"
2952 # As a last resort, use the slow shell script. We don't cache a
2953 # path for INSTALL within a source directory, because that will
2954 # break other packages using the cache if that directory is
2955 # removed, or if the path is relative.
2956 INSTALL
="$ac_install_sh"
2959 echo "$ac_t""$INSTALL" 1>&6
2961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2962 # It thinks the first close brace ends the variable substitution.
2963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2967 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2969 if test $host != $build; then
2970 ac_tool_prefix
=${host_alias}-
2975 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2976 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2978 echo "configure:2979: checking for $ac_word" >&5
2979 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 if test -n "$AR"; then
2983 ac_cv_prog_AR
="$AR" # Let the user override the test.
2985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2987 for ac_dir
in $ac_dummy; do
2988 test -z "$ac_dir" && ac_dir
=.
2989 if test -f $ac_dir/$ac_word; then
2990 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2995 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2999 if test -n "$AR"; then
3000 echo "$ac_t""$AR" 1>&6
3002 echo "$ac_t""no" 1>&6
3007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3008 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3010 echo "configure:3011: checking for $ac_word" >&5
3011 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 if test -n "$RANLIB"; then
3015 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3017 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3019 for ac_dir
in $ac_dummy; do
3020 test -z "$ac_dir" && ac_dir
=.
3021 if test -f $ac_dir/$ac_word; then
3022 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3029 RANLIB
="$ac_cv_prog_RANLIB"
3030 if test -n "$RANLIB"; then
3031 echo "$ac_t""$RANLIB" 1>&6
3033 echo "$ac_t""no" 1>&6
3037 if test -z "$ac_cv_prog_RANLIB"; then
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "ranlib", so it can be a program name with args.
3040 set dummy ranlib
; ac_word
=$2
3041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3042 echo "configure:3043: checking for $ac_word" >&5
3043 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 if test -n "$RANLIB"; then
3047 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3051 for ac_dir
in $ac_dummy; do
3052 test -z "$ac_dir" && ac_dir
=.
3053 if test -f $ac_dir/$ac_word; then
3054 ac_cv_prog_RANLIB
="ranlib"
3059 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3062 RANLIB
="$ac_cv_prog_RANLIB"
3063 if test -n "$RANLIB"; then
3064 echo "$ac_t""$RANLIB" 1>&6
3066 echo "$ac_t""no" 1>&6
3074 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3075 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3077 echo "configure:3078: checking for $ac_word" >&5
3078 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 if test -n "$DLLTOOL"; then
3082 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3086 for ac_dir
in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir
=.
3088 if test -f $ac_dir/$ac_word; then
3089 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3094 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3097 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3098 if test -n "$DLLTOOL"; then
3099 echo "$ac_t""$DLLTOOL" 1>&6
3101 echo "$ac_t""no" 1>&6
3106 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3107 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5
3110 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 if test -n "$WINDRES"; then
3114 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3116 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3118 for ac_dir
in $ac_dummy; do
3119 test -z "$ac_dir" && ac_dir
=.
3120 if test -f $ac_dir/$ac_word; then
3121 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3126 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3129 WINDRES
="$ac_cv_prog_WINDRES"
3130 if test -n "$WINDRES"; then
3131 echo "$ac_t""$WINDRES" 1>&6
3133 echo "$ac_t""no" 1>&6
3138 for ac_prog
in 'bison -y' byacc
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy
$ac_prog; ac_word
=$2
3142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3143 echo "configure:3144: checking for $ac_word" >&5
3144 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 if test -n "$YACC"; then
3148 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3150 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3152 for ac_dir
in $ac_dummy; do
3153 test -z "$ac_dir" && ac_dir
=.
3154 if test -f $ac_dir/$ac_word; then
3155 ac_cv_prog_YACC
="$ac_prog"
3162 YACC
="$ac_cv_prog_YACC"
3163 if test -n "$YACC"; then
3164 echo "$ac_t""$YACC" 1>&6
3166 echo "$ac_t""no" 1>&6
3169 test -n "$YACC" && break
3171 test -n "$YACC" || YACC
="yacc"
3174 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3175 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3177 echo "configure:3178: checking for $ac_word" >&5
3178 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 if test -n "$MIG"; then
3182 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3186 for ac_dir
in $ac_dummy; do
3187 test -z "$ac_dir" && ac_dir
=.
3188 if test -f $ac_dir/$ac_word; then
3189 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3194 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3197 MIG
="$ac_cv_prog_MIG"
3198 if test -n "$MIG"; then
3199 echo "$ac_t""$MIG" 1>&6
3201 echo "$ac_t""no" 1>&6
3207 if test "$program_transform_name" = s
,x
,x
,; then
3208 program_transform_name
=
3210 # Double any \ or $. echo might interpret backslashes.
3211 cat <<\EOF_SED
> conftestsed
3212 s
,\\,\\\\,g
; s
,\$
,$$
,g
3214 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3217 test "$program_prefix" != NONE
&&
3218 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3219 # Use a double $ so make ignores it.
3220 test "$program_suffix" != NONE
&&
3221 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3223 # sed with no file args requires a program.
3224 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3227 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3228 echo "configure:3229: checking return type of signal handlers" >&5
3229 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 cat > conftest.
$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <sys/types.h>
3241 extern "C" void (*signal (int, void (*)(int)))(int);
3243 void (*signal ()) ();
3250 if { (eval echo configure
:3251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3252 ac_cv_type_signal
=void
3254 echo "configure: failed program was:" >&5
3255 cat conftest.
$ac_ext >&5
3257 ac_cv_type_signal
=int
3262 echo "$ac_t""$ac_cv_type_signal" 1>&6
3263 cat >> confdefs.h
<<EOF
3264 #define RETSIGTYPE $ac_cv_type_signal
3269 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3270 echo "configure:3271: checking for ANSI C header files" >&5
3271 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3283 { (eval echo configure
:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3285 if test -z "$ac_err"; then
3287 ac_cv_header_stdc
=yes
3290 echo "configure: failed program was:" >&5
3291 cat conftest.
$ac_ext >&5
3293 ac_cv_header_stdc
=no
3297 if test $ac_cv_header_stdc = yes; then
3298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 egrep "memchr" >/dev
/null
2>&1; then
3309 ac_cv_header_stdc
=no
3315 if test $ac_cv_header_stdc = yes; then
3316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3317 cat > conftest.
$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "free" >/dev
/null
2>&1; then
3327 ac_cv_header_stdc
=no
3333 if test $ac_cv_header_stdc = yes; then
3334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3335 if test "$cross_compiling" = yes; then
3338 cat > conftest.
$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3342 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3343 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3345 int main () { int i; for (i = 0; i < 256; i++)
3346 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3350 if { (eval echo configure
:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3354 echo "configure: failed program was:" >&5
3355 cat conftest.
$ac_ext >&5
3357 ac_cv_header_stdc
=no
3365 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3366 if test $ac_cv_header_stdc = yes; then
3367 cat >> confdefs.h
<<\EOF
3368 #define STDC_HEADERS 1
3375 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3376 cat >> confdefs.h
<<\EOF
3377 #define _MSE_INT_H 1
3382 for ac_hdr
in ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
3383 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3384 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3385 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3386 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3387 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3388 dirent.h sys
/ndir.h sys
/dir.h ndir.h \
3389 curses.h ncurses.h \
3392 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_hdr" >&5
3395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 cat > conftest.
$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3403 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3404 { (eval echo configure
:3405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3405 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3406 if test -z "$ac_err"; then
3408 eval "ac_cv_header_$ac_safe=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.
$ac_ext >&5
3414 eval "ac_cv_header_$ac_safe=no"
3418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3419 echo "$ac_t""yes" 1>&6
3420 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3421 cat >> confdefs.h
<<EOF
3422 #define $ac_tr_hdr 1
3426 echo "$ac_t""no" 1>&6
3430 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3431 echo "configure:3432: checking whether stat file-mode macros are broken" >&5
3432 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.
$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include <sys/types.h>
3439 #include <sys/stat.h>
3441 #if defined(S_ISBLK) && defined(S_IFDIR)
3442 # if S_ISBLK (S_IFDIR)
3447 #if defined(S_ISBLK) && defined(S_IFCHR)
3448 # if S_ISBLK (S_IFCHR)
3453 #if defined(S_ISLNK) && defined(S_IFREG)
3454 # if S_ISLNK (S_IFREG)
3459 #if defined(S_ISSOCK) && defined(S_IFREG)
3460 # if S_ISSOCK (S_IFREG)
3466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 egrep "You lose" >/dev
/null
2>&1; then
3469 ac_cv_header_stat_broken
=yes
3472 ac_cv_header_stat_broken
=no
3478 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3479 if test $ac_cv_header_stat_broken = yes; then
3480 cat >> confdefs.h
<<\EOF
3481 #define STAT_MACROS_BROKEN 1
3487 echo $ac_n "checking for working const""... $ac_c" 1>&6
3488 echo "configure:3489: checking for working const" >&5
3489 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3498 /* Ultrix mips cc rejects this. */
3499 typedef int charset[2]; const charset x;
3500 /* SunOS 4.1.1 cc rejects this. */
3501 char const *const *ccp;
3503 /* NEC SVR4.0.2 mips cc rejects this. */
3504 struct point {int x, y;};
3505 static struct point const zero = {0,0};
3506 /* AIX XL C 1.02.0.0 rejects this.
3507 It does not let you subtract one const X* pointer from another in an arm
3508 of an if-expression whose if-part is not a constant expression */
3509 const char *g = "string";
3510 ccp = &g + (g ? g-g : 0);
3511 /* HPUX 7.0 cc rejects these. */
3514 ccp = (char const *const *) p;
3515 { /* SCO 3.2v4 cc rejects this. */
3517 char const *s = 0 ? (char *) 0 : (char const *) 0;
3521 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3523 const int *foo = &x[0];
3526 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3527 typedef const int *iptr;
3531 { /* AIX XL C 1.02.0.0 rejects this saying
3532 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3533 struct s { int j; const int *ap[3]; };
3534 struct s *b; b->j = 5;
3536 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3542 if { (eval echo configure
:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 echo "configure: failed program was:" >&5
3547 cat conftest.
$ac_ext >&5
3554 echo "$ac_t""$ac_cv_c_const" 1>&6
3555 if test $ac_cv_c_const = no
; then
3556 cat >> confdefs.h
<<\EOF
3563 for ac_func
in setpgid setpgrp sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_func" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char $ac_func(); below. */
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3583 /* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3594 if { (eval echo configure
:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3596 eval "ac_cv_func_$ac_func=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 eval "ac_cv_func_$ac_func=no"
3606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3609 cat >> confdefs.h
<<EOF
3610 #define $ac_tr_func 1
3614 echo "$ac_t""no" 1>&6
3618 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3619 echo "configure:3620: checking for pid_t" >&5
3620 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <sys/types.h>
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3635 ac_cv_type_pid_t
=yes
3643 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3644 if test $ac_cv_type_pid_t = no
; then
3645 cat >> confdefs.h
<<\EOF
3651 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3652 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3653 echo "configure:3654: checking for vfork.h" >&5
3654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3662 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3663 { (eval echo configure
:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3664 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3665 if test -z "$ac_err"; then
3667 eval "ac_cv_header_$ac_safe=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.
$ac_ext >&5
3673 eval "ac_cv_header_$ac_safe=no"
3677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3679 cat >> confdefs.h
<<\EOF
3680 #define HAVE_VFORK_H 1
3684 echo "$ac_t""no" 1>&6
3687 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3688 echo "configure:3689: checking for working vfork" >&5
3689 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 if test "$cross_compiling" = yes; then
3693 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3694 echo "configure:3695: checking for vfork" >&5
3695 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 cat > conftest.
$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* System header to define __stub macros and hopefully few prototypes,
3702 which can conflict with char vfork(); below. */
3704 /* Override any gcc2 internal prototype to avoid an error. */
3705 /* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3711 /* The GNU C library defines this for functions which it implements
3712 to always fail with ENOSYS. Some functions are actually named
3713 something starting with __ and the normal name is an alias. */
3714 #if defined (__stub_vfork) || defined (__stub___vfork)
3722 if { (eval echo configure
:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3724 eval "ac_cv_func_vfork=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.
$ac_ext >&5
3729 eval "ac_cv_func_vfork=no"
3734 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3738 echo "$ac_t""no" 1>&6
3741 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3743 cat > conftest.
$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* Thanks to Paul Eggert for this test. */
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 #ifdef HAVE_UNISTD_H
3756 /* On some sparc systems, changes by the child to local and incoming
3757 argument registers are propagated back to the parent.
3758 The compiler is told about this with #include <vfork.h>,
3759 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3760 Test for this by using a static variable whose address
3761 is put into a register that is clobbered by the vfork. */
3764 sparc_address_test (int arg)
3766 sparc_address_test (arg) int arg;
3784 pid_t parent = getpid ();
3787 sparc_address_test ();
3792 /* Here is another test for sparc vfork register problems.
3793 This test uses lots of local variables, at least
3794 as many local variables as main has allocated so far
3795 including compiler temporaries. 4 locals are enough for
3796 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3797 A buggy compiler should reuse the register of parent
3798 for one of the local variables, since it will think that
3799 parent can't possibly be used any more in this routine.
3800 Assigning to the local variable will thus munge parent
3801 in the parent process. */
3803 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3804 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3805 /* Convince the compiler that p..p7 are live; otherwise, it might
3806 use the same hardware register for all 8 local variables. */
3807 if (p != p1 || p != p2 || p != p3 || p != p4
3808 || p != p5 || p != p6 || p != p7)
3811 /* On some systems (e.g. IRIX 3.3),
3812 vfork doesn't separate parent from child file descriptors.
3813 If the child closes a descriptor before it execs or exits,
3814 this munges the parent's descriptor as well.
3815 Test for this by closing stdout in the child. */
3816 _exit(close(fileno(stdout)) != 0);
3821 while (wait(&status) != child)
3824 /* Was there some problem with vforking? */
3827 /* Did the child fail? (This shouldn't happen.) */
3830 /* Did the vfork/compiler bug occur? */
3831 || parent != getpid()
3833 /* Did the file descriptor bug occur? */
3834 || fstat(fileno(stdout), &st) != 0
3839 if { (eval echo configure
:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3841 ac_cv_func_vfork_works
=yes
3843 echo "configure: failed program was:" >&5
3844 cat conftest.
$ac_ext >&5
3846 ac_cv_func_vfork_works
=no
3853 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3854 if test $ac_cv_func_vfork_works = no
; then
3855 cat >> confdefs.h
<<\EOF
3861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3862 # for constant arguments. Useless!
3863 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3864 echo "configure:3865: checking for working alloca.h" >&5
3865 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3873 char *p = alloca(2 * sizeof(int));
3876 if { (eval echo configure
:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3878 ac_cv_header_alloca_h
=yes
3880 echo "configure: failed program was:" >&5
3881 cat conftest.
$ac_ext >&5
3883 ac_cv_header_alloca_h
=no
3888 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3889 if test $ac_cv_header_alloca_h = yes; then
3890 cat >> confdefs.h
<<\EOF
3891 #define HAVE_ALLOCA_H 1
3896 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3897 echo "configure:3898: checking for alloca" >&5
3898 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3901 cat > conftest.
$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3906 # define alloca __builtin_alloca
3909 # include <malloc.h>
3910 # define alloca _alloca
3913 # include <alloca.h>
3918 # ifndef alloca /* predefined by HP cc +Olibcalls */
3927 char *p = (char *) alloca(1);
3930 if { (eval echo configure
:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3932 ac_cv_func_alloca_works
=yes
3934 echo "configure: failed program was:" >&5
3935 cat conftest.
$ac_ext >&5
3937 ac_cv_func_alloca_works
=no
3942 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3943 if test $ac_cv_func_alloca_works = yes; then
3944 cat >> confdefs.h
<<\EOF
3945 #define HAVE_ALLOCA 1
3950 if test $ac_cv_func_alloca_works = no
; then
3951 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3952 # that cause trouble. Some versions do not even contain alloca or
3953 # contain a buggy version. If you still want to use their alloca,
3954 # use ar to extract alloca.o from them instead of compiling alloca.c.
3955 ALLOCA
=alloca.
${ac_objext}
3956 cat >> confdefs.h
<<\EOF
3961 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3962 echo "configure:3963: checking whether alloca needs Cray hooks" >&5
3963 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.
$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 #if defined(CRAY) && ! defined(CRAY2)
3976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3977 egrep "webecray" >/dev
/null
2>&1; then
3988 echo "$ac_t""$ac_cv_os_cray" 1>&6
3989 if test $ac_cv_os_cray = yes; then
3990 for ac_func
in _getb67 GETB67 getb67
; do
3991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3992 echo "configure:3993: checking for $ac_func" >&5
3993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.
$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
3999 /* System header to define __stub macros and hopefully few prototypes,
4000 which can conflict with char $ac_func(); below. */
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4009 /* The GNU C library defines this for functions which it implements
4010 to always fail with ENOSYS. Some functions are actually named
4011 something starting with __ and the normal name is an alias. */
4012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4020 if { (eval echo configure
:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4022 eval "ac_cv_func_$ac_func=yes"
4024 echo "configure: failed program was:" >&5
4025 cat conftest.
$ac_ext >&5
4027 eval "ac_cv_func_$ac_func=no"
4032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4033 echo "$ac_t""yes" 1>&6
4034 cat >> confdefs.h
<<EOF
4035 #define CRAY_STACKSEG_END $ac_func
4040 echo "$ac_t""no" 1>&6
4046 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4047 echo "configure:4048: checking stack direction for C alloca" >&5
4048 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 if test "$cross_compiling" = yes; then
4052 ac_cv_c_stack_direction
=0
4054 cat > conftest.
$ac_ext <<EOF
4055 #line 4056 "configure"
4056 #include "confdefs.h"
4057 find_stack_direction ()
4059 static char *addr = 0;
4064 return find_stack_direction ();
4067 return (&dummy > addr) ? 1 : -1;
4071 exit (find_stack_direction() < 0);
4074 if { (eval echo configure
:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4076 ac_cv_c_stack_direction
=1
4078 echo "configure: failed program was:" >&5
4079 cat conftest.
$ac_ext >&5
4081 ac_cv_c_stack_direction
=-1
4088 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4089 cat >> confdefs.h
<<EOF
4090 #define STACK_DIRECTION $ac_cv_c_stack_direction
4095 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4096 echo "configure:4097: checking whether setpgrp takes no argument" >&5
4097 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 if test "$cross_compiling" = yes; then
4101 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4103 cat > conftest.
$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4107 #ifdef HAVE_UNISTD_H
4112 * If this system has a BSD-style setpgrp, which takes arguments, exit
4117 if (setpgrp(1,1) == -1)
4124 if { (eval echo configure
:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4126 ac_cv_func_setpgrp_void
=no
4128 echo "configure: failed program was:" >&5
4129 cat conftest.
$ac_ext >&5
4131 ac_cv_func_setpgrp_void
=yes
4139 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4140 if test $ac_cv_func_setpgrp_void = yes; then
4141 cat >> confdefs.h
<<\EOF
4142 #define SETPGRP_VOID 1
4148 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4149 # since sigsetjmp might only be defined as a macro.
4150 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4151 echo "configure:4152: checking for sigsetjmp" >&5
4152 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.
$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4162 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4165 if { (eval echo configure
:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 gdb_cv_func_sigsetjmp
=yes
4169 echo "configure: failed program was:" >&5
4170 cat conftest.
$ac_ext >&5
4172 gdb_cv_func_sigsetjmp
=no
4177 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4178 if test $gdb_cv_func_sigsetjmp = yes; then
4179 cat >> confdefs.h
<<\EOF
4180 #define HAVE_SIGSETJMP 1
4185 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4186 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4187 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4188 echo "configure:4189: checking for r_fs in struct reg" >&5
4189 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.
$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 #include <machine/reg.h>
4197 struct reg r; r.r_fs;
4200 if { (eval echo configure
:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 gdb_cv_struct_reg_r_fs
=yes
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 gdb_cv_struct_reg_r_fs
=no
4212 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4213 if test $gdb_cv_struct_reg_r_fs = yes; then
4214 cat >> confdefs.h
<<\EOF
4215 #define HAVE_STRUCT_REG_R_FS 1
4219 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4220 echo "configure:4221: checking for r_gs in struct reg" >&5
4221 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.
$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 #include <machine/reg.h>
4229 struct reg r; r.r_gs;
4232 if { (eval echo configure
:4233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4234 gdb_cv_struct_reg_r_gs
=yes
4236 echo "configure: failed program was:" >&5
4237 cat conftest.
$ac_ext >&5
4239 gdb_cv_struct_reg_r_gs
=no
4244 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4245 if test $gdb_cv_struct_reg_r_gs = yes; then
4246 cat >> confdefs.h
<<\EOF
4247 #define HAVE_STRUCT_REG_R_GS 1
4252 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4253 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4254 echo "configure:4255: checking for PTRACE_GETREGS" >&5
4255 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.
$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 #include <sys/ptrace.h>
4266 if { (eval echo configure
:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4268 gdb_cv_have_ptrace_getregs
=yes
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4273 gdb_cv_have_ptrace_getregs
=no
4278 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4279 if test $gdb_cv_have_ptrace_getregs = yes; then
4280 cat >> confdefs.h
<<\EOF
4281 #define HAVE_PTRACE_GETREGS 1
4286 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4287 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4288 echo "configure:4289: checking for PTRACE_GETFPXREGS" >&5
4289 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 cat > conftest.
$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 #include <sys/ptrace.h>
4300 if { (eval echo configure
:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4302 gdb_cv_have_ptrace_getfpxregs
=yes
4304 echo "configure: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4307 gdb_cv_have_ptrace_getfpxregs
=no
4312 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4313 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4314 cat >> confdefs.h
<<\EOF
4315 #define HAVE_PTRACE_GETFPXREGS 1
4320 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4321 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4322 echo "configure:4323: checking for PT_GETDBREGS" >&5
4323 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 #include <sys/types.h>
4330 #include <sys/ptrace.h>
4335 if { (eval echo configure
:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4337 gdb_cv_have_pt_getdbregs
=yes
4339 echo "configure: failed program was:" >&5
4340 cat conftest.
$ac_ext >&5
4342 gdb_cv_have_pt_getdbregs
=no
4347 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4348 if test $gdb_cv_have_pt_getdbregs = yes; then
4349 cat >> confdefs.h
<<\EOF
4350 #define HAVE_PT_GETDBREGS 1
4356 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4357 echo "configure:4358: checking for socketpair in -lsocket" >&5
4358 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 ac_save_LIBS
="$LIBS"
4363 LIBS
="-lsocket $LIBS"
4364 cat > conftest.
$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 /* We use char because int might match the return type of a gcc2
4369 builtin and then its argument prototype would still apply. */
4376 if { (eval echo configure
:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4378 eval "ac_cv_lib_$ac_lib_var=yes"
4380 echo "configure: failed program was:" >&5
4381 cat conftest.
$ac_ext >&5
4383 eval "ac_cv_lib_$ac_lib_var=no"
4386 LIBS
="$ac_save_LIBS"
4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4393 cat >> confdefs.h
<<EOF
4394 #define $ac_tr_lib 1
4397 LIBS
="-lsocket $LIBS"
4400 echo "$ac_t""no" 1>&6
4403 for ac_func
in socketpair
4405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4406 echo "configure:4407: checking for $ac_func" >&5
4407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 cat > conftest.
$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* System header to define __stub macros and hopefully few prototypes,
4414 which can conflict with char $ac_func(); below. */
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4423 /* The GNU C library defines this for functions which it implements
4424 to always fail with ENOSYS. Some functions are actually named
4425 something starting with __ and the normal name is an alias. */
4426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4434 if { (eval echo configure
:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4436 eval "ac_cv_func_$ac_func=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4441 eval "ac_cv_func_$ac_func=no"
4446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4449 cat >> confdefs.h
<<EOF
4450 #define $ac_tr_func 1
4454 echo "$ac_t""no" 1>&6
4460 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4461 echo "configure:4462: checking whether malloc must be declared" >&5
4462 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 cat > conftest.
$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4470 #ifdef HAVE_STRING_H
4473 #ifdef HAVE_STRINGS_H
4474 #include <strings.h>
4477 #ifdef HAVE_STDLIB_H
4480 #ifdef HAVE_UNISTD_H
4484 char *(*pfn) = (char *(*)) malloc
4487 if { (eval echo configure
:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4489 bfd_cv_decl_needed_malloc
=no
4491 echo "configure: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4494 bfd_cv_decl_needed_malloc
=yes
4499 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4500 if test $bfd_cv_decl_needed_malloc = yes; then
4501 cat >> confdefs.h
<<\EOF
4502 #define NEED_DECLARATION_MALLOC 1
4507 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4508 echo "configure:4509: checking whether realloc must be declared" >&5
4509 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 cat > conftest.
$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4517 #ifdef HAVE_STRING_H
4520 #ifdef HAVE_STRINGS_H
4521 #include <strings.h>
4524 #ifdef HAVE_STDLIB_H
4527 #ifdef HAVE_UNISTD_H
4531 char *(*pfn) = (char *(*)) realloc
4534 if { (eval echo configure
:4535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4536 bfd_cv_decl_needed_realloc
=no
4538 echo "configure: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4541 bfd_cv_decl_needed_realloc
=yes
4546 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4547 if test $bfd_cv_decl_needed_realloc = yes; then
4548 cat >> confdefs.h
<<\EOF
4549 #define NEED_DECLARATION_REALLOC 1
4554 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4555 echo "configure:4556: checking whether free must be declared" >&5
4556 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 cat > conftest.
$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4564 #ifdef HAVE_STRING_H
4567 #ifdef HAVE_STRINGS_H
4568 #include <strings.h>
4571 #ifdef HAVE_STDLIB_H
4574 #ifdef HAVE_UNISTD_H
4578 char *(*pfn) = (char *(*)) free
4581 if { (eval echo configure
:4582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4583 bfd_cv_decl_needed_free
=no
4585 echo "configure: failed program was:" >&5
4586 cat conftest.
$ac_ext >&5
4588 bfd_cv_decl_needed_free
=yes
4593 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4594 if test $bfd_cv_decl_needed_free = yes; then
4595 cat >> confdefs.h
<<\EOF
4596 #define NEED_DECLARATION_FREE 1
4601 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4602 echo "configure:4603: checking whether strerror must be declared" >&5
4603 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 cat > conftest.
$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4611 #ifdef HAVE_STRING_H
4614 #ifdef HAVE_STRINGS_H
4615 #include <strings.h>
4618 #ifdef HAVE_STDLIB_H
4621 #ifdef HAVE_UNISTD_H
4625 char *(*pfn) = (char *(*)) strerror
4628 if { (eval echo configure
:4629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4630 bfd_cv_decl_needed_strerror
=no
4632 echo "configure: failed program was:" >&5
4633 cat conftest.
$ac_ext >&5
4635 bfd_cv_decl_needed_strerror
=yes
4640 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4641 if test $bfd_cv_decl_needed_strerror = yes; then
4642 cat >> confdefs.h
<<\EOF
4643 #define NEED_DECLARATION_STRERROR 1
4648 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4649 echo "configure:4650: checking whether strdup must be declared" >&5
4650 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.
$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4658 #ifdef HAVE_STRING_H
4661 #ifdef HAVE_STRINGS_H
4662 #include <strings.h>
4665 #ifdef HAVE_STDLIB_H
4668 #ifdef HAVE_UNISTD_H
4672 char *(*pfn) = (char *(*)) strdup
4675 if { (eval echo configure
:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4677 bfd_cv_decl_needed_strdup
=no
4679 echo "configure: failed program was:" >&5
4680 cat conftest.
$ac_ext >&5
4682 bfd_cv_decl_needed_strdup
=yes
4687 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4688 if test $bfd_cv_decl_needed_strdup = yes; then
4689 cat >> confdefs.h
<<\EOF
4690 #define NEED_DECLARATION_STRDUP 1
4695 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4696 echo "configure:4697: checking whether strstr must be declared" >&5
4697 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.
$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4705 #ifdef HAVE_STRING_H
4708 #ifdef HAVE_STRINGS_H
4709 #include <strings.h>
4712 #ifdef HAVE_STDLIB_H
4715 #ifdef HAVE_UNISTD_H
4719 char *(*pfn) = (char *(*)) strstr
4722 if { (eval echo configure
:4723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4724 bfd_cv_decl_needed_strstr
=no
4726 echo "configure: failed program was:" >&5
4727 cat conftest.
$ac_ext >&5
4729 bfd_cv_decl_needed_strstr
=yes
4734 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4735 if test $bfd_cv_decl_needed_strstr = yes; then
4736 cat >> confdefs.h
<<\EOF
4737 #define NEED_DECLARATION_STRSTR 1
4744 # The following save_state_t checkery is only necessary for HPUX
4745 # versions earlier than 10.20. When those fade from memory, this
4746 # could be expunged. --jsm 1999-03-22
4748 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4749 echo "configure:4750: checking for HPUX save_state structure" >&5
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 #include <machine/save_state.h>
4755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756 egrep "save_state_t" >/dev
/null
2>&1; then
4758 gdb_cv_hpux_savestate
=yes
4761 gdb_cv_hpux_savestate
=no
4765 cat > conftest.
$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4768 #include <machine/save_state.h>
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 egrep "ss_wide" >/dev
/null
2>&1; then
4773 gdb_cv_hpux_sswide
=yes
4776 gdb_cv_hpux_sswide
=no
4780 if test $gdb_cv_hpux_savestate = yes
4782 cat >> confdefs.h
<<\EOF
4783 #define HAVE_STRUCT_SAVE_STATE_T 1
4787 if test $gdb_cv_hpux_sswide = yes
4789 cat >> confdefs.h
<<\EOF
4790 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4794 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4797 # If we are configured native on GNU/Linux, work around problems with
4799 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4801 if test "${target}" = "${host}"; then
4804 cat >> confdefs.h
<<\EOF
4805 #define START_INFERIOR_TRAPS_EXPECTED 2
4808 cat >> confdefs.h
<<\EOF
4809 #define sys_quotactl 1
4814 cat >> confdefs.h
<<\EOF
4815 #define NEW_PROC_API 1
4819 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4820 cat >> confdefs.h
<<\EOF
4821 #define NEW_PROC_API 1
4826 cat >> confdefs.h
<<\EOF
4827 #define NEW_PROC_API 1
4834 if test "$ac_cv_header_sys_procfs_h" = yes; then
4835 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4836 echo "configure:4837: checking for pstatus_t in sys/procfs.h" >&5
4837 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.
$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4845 #include <sys/procfs.h>
4850 if { (eval echo configure
:4851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4852 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4854 echo "configure: failed program was:" >&5
4855 cat conftest.
$ac_ext >&5
4857 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4863 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4864 cat >> confdefs.h
<<\EOF
4865 #define HAVE_PSTATUS_T 1
4869 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4871 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4872 echo "configure:4873: checking for prrun_t in sys/procfs.h" >&5
4873 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 cat > conftest.
$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4881 #include <sys/procfs.h>
4886 if { (eval echo configure
:4887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4888 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4890 echo "configure: failed program was:" >&5
4891 cat conftest.
$ac_ext >&5
4893 bfd_cv_have_sys_procfs_type_prrun_t
=no
4899 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4900 cat >> confdefs.h
<<\EOF
4901 #define HAVE_PRRUN_T 1
4905 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4907 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4908 echo "configure:4909: checking for gregset_t in sys/procfs.h" >&5
4909 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4912 cat > conftest.
$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4917 #include <sys/procfs.h>
4922 if { (eval echo configure
:4923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4924 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4926 echo "configure: failed program was:" >&5
4927 cat conftest.
$ac_ext >&5
4929 bfd_cv_have_sys_procfs_type_gregset_t
=no
4935 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4936 cat >> confdefs.h
<<\EOF
4937 #define HAVE_GREGSET_T 1
4941 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4943 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4944 echo "configure:4945: checking for fpregset_t in sys/procfs.h" >&5
4945 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4953 #include <sys/procfs.h>
4958 if { (eval echo configure
:4959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4960 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4962 echo "configure: failed program was:" >&5
4963 cat conftest.
$ac_ext >&5
4965 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4971 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4972 cat >> confdefs.h
<<\EOF
4973 #define HAVE_FPREGSET_T 1
4977 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4979 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4980 echo "configure:4981: checking for prgregset_t in sys/procfs.h" >&5
4981 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 cat > conftest.
$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4989 #include <sys/procfs.h>
4994 if { (eval echo configure
:4995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4996 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4998 echo "configure: failed program was:" >&5
4999 cat conftest.
$ac_ext >&5
5001 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5007 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5008 cat >> confdefs.h
<<\EOF
5009 #define HAVE_PRGREGSET_T 1
5013 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5015 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5016 echo "configure:5017: checking for prfpregset_t in sys/procfs.h" >&5
5017 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 cat > conftest.
$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5025 #include <sys/procfs.h>
5030 if { (eval echo configure
:5031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5032 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
5034 echo "configure: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5037 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
5043 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5044 cat >> confdefs.h
<<\EOF
5045 #define HAVE_PRFPREGSET_T 1
5049 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5051 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5052 echo "configure:5053: checking for prgregset32_t in sys/procfs.h" >&5
5053 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 cat > conftest.
$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5061 #include <sys/procfs.h>
5066 if { (eval echo configure
:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5068 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
5070 echo "configure: failed program was:" >&5
5071 cat conftest.
$ac_ext >&5
5073 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
5079 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5080 cat >> confdefs.h
<<\EOF
5081 #define HAVE_PRGREGSET32_T 1
5085 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5087 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5088 echo "configure:5089: checking for prfpregset32_t in sys/procfs.h" >&5
5089 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 cat > conftest.
$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5097 #include <sys/procfs.h>
5102 if { (eval echo configure
:5103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5104 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5106 echo "configure: failed program was:" >&5
5107 cat conftest.
$ac_ext >&5
5109 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5115 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5116 cat >> confdefs.h
<<\EOF
5117 #define HAVE_PRFPREGSET32_T 1
5121 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5123 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5124 echo "configure:5125: checking for lwpid_t in sys/procfs.h" >&5
5125 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 cat > conftest.
$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5133 #include <sys/procfs.h>
5138 if { (eval echo configure
:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5140 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5142 echo "configure: failed program was:" >&5
5143 cat conftest.
$ac_ext >&5
5145 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5151 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5152 cat >> confdefs.h
<<\EOF
5153 #define HAVE_LWPID_T 1
5157 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5159 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5160 echo "configure:5161: checking for psaddr_t in sys/procfs.h" >&5
5161 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 cat > conftest.
$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5169 #include <sys/procfs.h>
5174 if { (eval echo configure
:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5176 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5178 echo "configure: failed program was:" >&5
5179 cat conftest.
$ac_ext >&5
5181 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5187 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5188 cat >> confdefs.h
<<\EOF
5189 #define HAVE_PSADDR_T 1
5193 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5195 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5196 echo "configure:5197: checking for prsysent_t in sys/procfs.h" >&5
5197 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6
5200 cat > conftest.
$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5205 #include <sys/procfs.h>
5210 if { (eval echo configure
:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5212 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5214 echo "configure: failed program was:" >&5
5215 cat conftest.
$ac_ext >&5
5217 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5223 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5224 cat >> confdefs.h
<<\EOF
5225 #define HAVE_PRSYSENT_T 1
5229 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5231 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5232 echo "configure:5233: checking for pr_sigset_t in sys/procfs.h" >&5
5233 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 cat > conftest.
$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5241 #include <sys/procfs.h>
5246 if { (eval echo configure
:5247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5248 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5250 echo "configure: failed program was:" >&5
5251 cat conftest.
$ac_ext >&5
5253 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5259 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5260 cat >> confdefs.h
<<\EOF
5261 #define HAVE_PR_SIGSET_T 1
5265 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5267 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5268 echo "configure:5269: checking for pr_sigaction64_t in sys/procfs.h" >&5
5269 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5272 cat > conftest.
$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5277 #include <sys/procfs.h>
5279 pr_sigaction64_t avar
5282 if { (eval echo configure
:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5284 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5286 echo "configure: failed program was:" >&5
5287 cat conftest.
$ac_ext >&5
5289 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5295 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5296 cat >> confdefs.h
<<\EOF
5297 #define HAVE_PR_SIGACTION64_T 1
5301 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5303 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5304 echo "configure:5305: checking for pr_siginfo64_t in sys/procfs.h" >&5
5305 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 cat > conftest.
$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5313 #include <sys/procfs.h>
5318 if { (eval echo configure
:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5320 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5322 echo "configure: failed program was:" >&5
5323 cat conftest.
$ac_ext >&5
5325 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5331 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5332 cat >> confdefs.h
<<\EOF
5333 #define HAVE_PR_SIGINFO64_T 1
5337 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5343 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5344 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5345 echo "configure:5346: checking whether prfpregset_t type is broken" >&5
5346 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 if test "$cross_compiling" = yes; then
5350 gdb_cv_prfpregset_t_broken
=yes
5352 cat > conftest.
$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5355 #include <sys/procfs.h>
5358 if (sizeof (prfpregset_t) == sizeof (void *))
5363 if { (eval echo configure
:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5365 gdb_cv_prfpregset_t_broken
=no
5367 echo "configure: failed program was:" >&5
5368 cat conftest.
$ac_ext >&5
5370 gdb_cv_prfpregset_t_broken
=yes
5377 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5378 if test $gdb_cv_prfpregset_t_broken = yes; then
5379 cat >> confdefs.h
<<\EOF
5380 #define PRFPREGSET_T_BROKEN 1
5387 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5388 echo "configure:5389: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5389 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.
$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5396 #include <sys/types.h>
5397 #include <sys/procfs.h>
5402 dummy = ioctl(0, PIOCSET, &dummy);
5406 if { (eval echo configure
:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5408 gdb_cv_have_procfs_piocset
=yes
5410 echo "configure: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5413 gdb_cv_have_procfs_piocset
=no
5418 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5419 if test $gdb_cv_have_procfs_piocset = yes; then
5420 cat >> confdefs.h
<<\EOF
5421 #define HAVE_PROCFS_PIOCSET 1
5427 if test ${host} = ${target} ; then
5429 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5430 echo "configure:5431: checking for member l_addr in struct link_map" >&5
5431 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 cat > conftest.
$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5439 struct link_map lm; (void) lm.l_addr;
5442 if { (eval echo configure
:5443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5444 gdb_cv_have_struct_link_map_with_l_members
=yes
5446 echo "configure: failed program was:" >&5
5447 cat conftest.
$ac_ext >&5
5449 gdb_cv_have_struct_link_map_with_l_members
=no
5454 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5455 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5456 cat >> confdefs.h
<<\EOF
5457 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5463 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5464 echo "configure:5465: checking for member lm_addr in struct link_map" >&5
5465 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5468 cat > conftest.
$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 #include <sys/types.h>
5474 struct link_map lm; (void) lm.lm_addr;
5477 if { (eval echo configure
:5478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5479 gdb_cv_have_struct_link_map_with_lm_members
=yes
5481 echo "configure: failed program was:" >&5
5482 cat conftest.
$ac_ext >&5
5484 gdb_cv_have_struct_link_map_with_lm_members
=no
5489 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5490 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5491 cat >> confdefs.h
<<\EOF
5492 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5498 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5499 echo "configure:5500: checking for member som_addr in struct so_map" >&5
5500 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5503 cat > conftest.
$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 #include <sys/types.h>
5512 struct so_map lm; (void) lm.som_addr;
5515 if { (eval echo configure
:5516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5517 gdb_cv_have_struct_so_map_with_som_members
=yes
5519 echo "configure: failed program was:" >&5
5520 cat conftest.
$ac_ext >&5
5522 gdb_cv_have_struct_so_map_with_som_members
=no
5527 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5528 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5529 cat >> confdefs.h
<<\EOF
5530 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5536 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5537 echo "configure:5538: checking for struct link_map32 in sys/link.h" >&5
5538 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5541 cat > conftest.
$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5545 #include <sys/link.h>
5547 struct link_map32 l;
5550 if { (eval echo configure
:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5552 gdb_cv_have_struct_link_map32
=yes
5554 echo "configure: failed program was:" >&5
5555 cat conftest.
$ac_ext >&5
5557 gdb_cv_have_struct_link_map32
=no
5562 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5563 if test $gdb_cv_have_struct_link_map32 = yes; then
5564 cat >> confdefs.h
<<\EOF
5565 #define HAVE_STRUCT_LINK_MAP32 1
5571 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5572 echo "configure:5573: checking for main in -lm" >&5
5573 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 ac_save_LIBS
="$LIBS"
5579 cat > conftest.
$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5587 if { (eval echo configure
:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5589 eval "ac_cv_lib_$ac_lib_var=yes"
5591 echo "configure: failed program was:" >&5
5592 cat conftest.
$ac_ext >&5
5594 eval "ac_cv_lib_$ac_lib_var=no"
5597 LIBS
="$ac_save_LIBS"
5600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5603 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5604 cat >> confdefs.h
<<EOF
5605 #define $ac_tr_lib 1
5611 echo "$ac_t""no" 1>&6
5615 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5616 echo "configure:5617: checking for wctype in -lc" >&5
5617 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 ac_save_LIBS
="$LIBS"
5623 cat > conftest.
$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5626 /* Override any gcc2 internal prototype to avoid an error. */
5627 /* We use char because int might match the return type of a gcc2
5628 builtin and then its argument prototype would still apply. */
5635 if { (eval echo configure
:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5637 eval "ac_cv_lib_$ac_lib_var=yes"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.
$ac_ext >&5
5642 eval "ac_cv_lib_$ac_lib_var=no"
5645 LIBS
="$ac_save_LIBS"
5648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5652 echo "$ac_t""no" 1>&6
5653 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5654 echo "configure:5655: checking for wctype in -lw" >&5
5655 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5657 echo $ac_n "(cached) $ac_c" 1>&6
5659 ac_save_LIBS
="$LIBS"
5661 cat > conftest.
$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5673 if { (eval echo configure
:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5675 eval "ac_cv_lib_$ac_lib_var=yes"
5677 echo "configure: failed program was:" >&5
5678 cat conftest.
$ac_ext >&5
5680 eval "ac_cv_lib_$ac_lib_var=no"
5683 LIBS
="$ac_save_LIBS"
5686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5687 echo "$ac_t""yes" 1>&6
5688 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5689 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5690 cat >> confdefs.h
<<EOF
5691 #define $ac_tr_lib 1
5697 echo "$ac_t""no" 1>&6
5704 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5705 echo "configure:5706: checking for long long support in compiler" >&5
5706 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 cat > conftest.
$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5715 extern long long foo;
5716 switch (foo & 2) { case 0: return 1; }
5720 if { (eval echo configure
:5721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5722 gdb_cv_c_long_long
=yes
5724 echo "configure: failed program was:" >&5
5725 cat conftest.
$ac_ext >&5
5727 gdb_cv_c_long_long
=no
5732 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5733 if test $gdb_cv_c_long_long = yes; then
5734 cat >> confdefs.h
<<\EOF
5735 #define CC_HAS_LONG_LONG 1
5741 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5742 echo "configure:5743: checking for long long support in printf" >&5
5743 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5746 if test "$cross_compiling" = yes; then
5747 gdb_cv_printf_has_long_long
=no
5749 cat > conftest.
$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5756 l = (l << 16) + 0x0123;
5757 l = (l << 16) + 0x4567;
5758 l = (l << 16) + 0x89ab;
5759 l = (l << 16) + 0xcdef;
5760 sprintf (buf, "0x%016llx", l);
5761 return (strcmp ("0x0123456789abcdef", buf));
5764 if { (eval echo configure
:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5766 gdb_cv_printf_has_long_long
=yes
5768 echo "configure: failed program was:" >&5
5769 cat conftest.
$ac_ext >&5
5771 gdb_cv_printf_has_long_long
=no
5778 if test $gdb_cv_printf_has_long_long = yes; then
5779 cat >> confdefs.h
<<\EOF
5780 #define PRINTF_HAS_LONG_LONG 1
5784 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5787 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5788 echo "configure:5789: checking for long double support in compiler" >&5
5789 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 cat > conftest.
$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5800 if { (eval echo configure
:5801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5802 ac_cv_c_long_double
=yes
5804 echo "configure: failed program was:" >&5
5805 cat conftest.
$ac_ext >&5
5807 ac_cv_c_long_double
=no
5812 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5813 if test $ac_cv_c_long_double = yes; then
5814 cat >> confdefs.h
<<\EOF
5815 #define HAVE_LONG_DOUBLE 1
5821 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5822 echo "configure:5823: checking for long double support in printf" >&5
5823 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5824 echo $ac_n "(cached) $ac_c" 1>&6
5826 if test "$cross_compiling" = yes; then
5827 gdb_cv_printf_has_long_double
=no
5829 cat > conftest.
$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5835 long double f = 3.141592653;
5836 sprintf (buf, "%Lg", f);
5837 return (strncmp ("3.14159", buf, 7));
5840 if { (eval echo configure
:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5842 gdb_cv_printf_has_long_double
=yes
5844 echo "configure: failed program was:" >&5
5845 cat conftest.
$ac_ext >&5
5847 gdb_cv_printf_has_long_double
=no
5854 if test $gdb_cv_printf_has_long_double = yes; then
5855 cat >> confdefs.h
<<\EOF
5856 #define PRINTF_HAS_LONG_DOUBLE 1
5860 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
5863 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
5864 echo "configure:5865: checking for long double support in scanf" >&5
5865 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5868 if test "$cross_compiling" = yes; then
5869 gdb_cv_scanf_has_long_double
=no
5871 cat > conftest.
$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5876 char *buf = "3.141592653";
5878 sscanf (buf, "%Lg", &f);
5879 return !(f > 3.14159 && f < 3.14160);
5882 if { (eval echo configure
:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5884 gdb_cv_scanf_has_long_double
=yes
5886 echo "configure: failed program was:" >&5
5887 cat conftest.
$ac_ext >&5
5889 gdb_cv_scanf_has_long_double
=no
5896 if test $gdb_cv_scanf_has_long_double = yes; then
5897 cat >> confdefs.h
<<\EOF
5898 #define SCANF_HAS_LONG_DOUBLE 1
5902 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
5904 for ac_hdr
in unistd.h
5906 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5908 echo "configure:5909: checking for $ac_hdr" >&5
5909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5912 cat > conftest.
$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5917 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5918 { (eval echo configure
:5919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5919 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5920 if test -z "$ac_err"; then
5922 eval "ac_cv_header_$ac_safe=yes"
5925 echo "configure: failed program was:" >&5
5926 cat conftest.
$ac_ext >&5
5928 eval "ac_cv_header_$ac_safe=no"
5932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5934 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5935 cat >> confdefs.h
<<EOF
5936 #define $ac_tr_hdr 1
5940 echo "$ac_t""no" 1>&6
5944 for ac_func
in getpagesize
5946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5947 echo "configure:5948: checking for $ac_func" >&5
5948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 cat > conftest.
$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5954 /* System header to define __stub macros and hopefully few prototypes,
5955 which can conflict with char $ac_func(); below. */
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5964 /* The GNU C library defines this for functions which it implements
5965 to always fail with ENOSYS. Some functions are actually named
5966 something starting with __ and the normal name is an alias. */
5967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5975 if { (eval echo configure
:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5977 eval "ac_cv_func_$ac_func=yes"
5979 echo "configure: failed program was:" >&5
5980 cat conftest.
$ac_ext >&5
5982 eval "ac_cv_func_$ac_func=no"
5987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5988 echo "$ac_t""yes" 1>&6
5989 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5990 cat >> confdefs.h
<<EOF
5991 #define $ac_tr_func 1
5995 echo "$ac_t""no" 1>&6
5999 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6000 echo "configure:6001: checking for working mmap" >&5
6001 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 if test "$cross_compiling" = yes; then
6005 ac_cv_func_mmap_fixed_mapped
=no
6007 cat > conftest.
$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6011 /* Thanks to Mike Haertel and Jim Avera for this test.
6012 Here is a matrix of mmap possibilities:
6013 mmap private not fixed
6014 mmap private fixed at somewhere currently unmapped
6015 mmap private fixed at somewhere already mapped
6016 mmap shared not fixed
6017 mmap shared fixed at somewhere currently unmapped
6018 mmap shared fixed at somewhere already mapped
6019 For private mappings, we should verify that changes cannot be read()
6020 back from the file, nor mmap's back from the file at a different
6021 address. (There have been systems where private was not correctly
6022 implemented like the infamous i386 svr4.0, and systems where the
6023 VM page cache was not coherent with the filesystem buffer cache
6024 like early versions of FreeBSD and possibly contemporary NetBSD.)
6025 For shared mappings, we should conversely verify that changes get
6026 propogated back to all the places they're supposed to be.
6028 Grep wants private fixed already mapped.
6029 The main things grep needs to know about mmap are:
6030 * does it exist and is it safe to write into the mmap'd area
6031 * how to use it (BSD variants) */
6032 #include <sys/types.h>
6034 #include <sys/mman.h>
6036 /* This mess was copied from the GNU getpagesize.h. */
6037 #ifndef HAVE_GETPAGESIZE
6038 # ifdef HAVE_UNISTD_H
6039 # include <unistd.h>
6042 /* Assume that all systems that can run configure have sys/param.h. */
6043 # ifndef HAVE_SYS_PARAM_H
6044 # define HAVE_SYS_PARAM_H 1
6047 # ifdef _SC_PAGESIZE
6048 # define getpagesize() sysconf(_SC_PAGESIZE)
6049 # else /* no _SC_PAGESIZE */
6050 # ifdef HAVE_SYS_PARAM_H
6051 # include <sys/param.h>
6052 # ifdef EXEC_PAGESIZE
6053 # define getpagesize() EXEC_PAGESIZE
6054 # else /* no EXEC_PAGESIZE */
6056 # define getpagesize() NBPG * CLSIZE
6059 # endif /* no CLSIZE */
6060 # else /* no NBPG */
6062 # define getpagesize() NBPC
6063 # else /* no NBPC */
6065 # define getpagesize() PAGESIZE
6066 # endif /* PAGESIZE */
6067 # endif /* no NBPC */
6068 # endif /* no NBPG */
6069 # endif /* no EXEC_PAGESIZE */
6070 # else /* no HAVE_SYS_PARAM_H */
6071 # define getpagesize() 8192 /* punt totally */
6072 # endif /* no HAVE_SYS_PARAM_H */
6073 # endif /* no _SC_PAGESIZE */
6075 #endif /* no HAVE_GETPAGESIZE */
6078 extern "C" { void *malloc(unsigned); }
6086 char *data, *data2, *data3;
6090 pagesize = getpagesize();
6093 * First, make a file with some known garbage in it.
6095 data = malloc(pagesize);
6098 for (i = 0; i < pagesize; ++i)
6099 *(data + i) = rand();
6101 fd = creat("conftestmmap", 0600);
6104 if (write(fd, data, pagesize) != pagesize)
6109 * Next, try to mmap the file at a fixed address which
6110 * already has something else allocated at it. If we can,
6111 * also make sure that we see the same garbage.
6113 fd = open("conftestmmap", O_RDWR);
6116 data2 = malloc(2 * pagesize);
6119 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6120 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6121 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6123 for (i = 0; i < pagesize; ++i)
6124 if (*(data + i) != *(data2 + i))
6128 * Finally, make sure that changes to the mapped area
6129 * do not percolate back to the file as seen by read().
6130 * (This is a bug on some variants of i386 svr4.0.)
6132 for (i = 0; i < pagesize; ++i)
6133 *(data2 + i) = *(data2 + i) + 1;
6134 data3 = malloc(pagesize);
6137 if (read(fd, data3, pagesize) != pagesize)
6139 for (i = 0; i < pagesize; ++i)
6140 if (*(data + i) != *(data3 + i))
6143 unlink("conftestmmap");
6148 if { (eval echo configure
:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6150 ac_cv_func_mmap_fixed_mapped
=yes
6152 echo "configure: failed program was:" >&5
6153 cat conftest.
$ac_ext >&5
6155 ac_cv_func_mmap_fixed_mapped
=no
6162 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6163 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6164 cat >> confdefs.h
<<\EOF
6173 if test ${build} = ${host} -a ${host} = ${target} ; then
6176 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6177 echo "configure:6178: checking for HPUX/OSF thread support" >&5
6178 if test -f /usr
/include
/dce
/cma_config.h
; then
6179 if test "$GCC" = "yes" ; then
6180 echo "$ac_t""yes" 1>&6
6181 cat >> confdefs.h
<<\EOF
6182 #define HAVE_HPUX_THREAD_SUPPORT 1
6185 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6186 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6188 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6191 echo "$ac_t""no" 1>&6
6195 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6196 echo "configure:6197: checking for Solaris thread debugging library" >&5
6197 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6198 echo "$ac_t""yes" 1>&6
6199 cat >> confdefs.h
<<\EOF
6200 #define HAVE_THREAD_DB_LIB 1
6203 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6204 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6205 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6206 echo "configure:6207: checking for dlopen in -ldl" >&5
6207 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6211 ac_save_LIBS
="$LIBS"
6213 cat > conftest.
$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6225 if { (eval echo configure
:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6227 eval "ac_cv_lib_$ac_lib_var=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.
$ac_ext >&5
6232 eval "ac_cv_lib_$ac_lib_var=no"
6235 LIBS
="$ac_save_LIBS"
6238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6239 echo "$ac_t""yes" 1>&6
6240 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6242 cat >> confdefs.h
<<EOF
6243 #define $ac_tr_lib 1
6249 echo "$ac_t""no" 1>&6
6252 if test "$GCC" = "yes" ; then
6253 # The GNU linker requires the -export-dynamic option to make
6254 # all symbols visible in the dynamic symbol table.
6255 hold_ldflags
=$LDFLAGS
6256 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6257 echo "configure:6258: checking for the ld -export-dynamic flag" >&5
6258 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6259 cat > conftest.
$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6267 if { (eval echo configure
:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6271 echo "configure: failed program was:" >&5
6272 cat conftest.
$ac_ext >&5
6277 LDFLAGS
=$hold_ldflags
6278 echo "$ac_t""$found" 1>&6
6279 if test $found = yes; then
6280 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6283 # Sun randomly tweaked the prototypes in <proc_service.h>
6285 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6286 echo "configure:6287: checking if <proc_service.h> is old" >&5
6287 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6288 echo $ac_n "(cached) $ac_c" 1>&6
6291 cat > conftest.
$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6295 #include <proc_service.h>
6297 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6303 if { (eval echo configure
:6304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6305 gdb_cv_proc_service_is_old
=no
6307 echo "configure: failed program was:" >&5
6308 cat conftest.
$ac_ext >&5
6310 gdb_cv_proc_service_is_old
=yes
6316 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6317 if test $gdb_cv_proc_service_is_old = yes; then
6318 cat >> confdefs.h
<<\EOF
6319 #define PROC_SERVICE_IS_OLD 1
6324 echo "$ac_t""no" 1>&6
6332 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6333 if test "${enable_gdbcli+set}" = set; then
6334 enableval
="$enable_gdbcli"
6336 case "${enableval}" in
6337 yes) enable_gdbcli
=yes ;;
6338 "") enable_gdbcli
=yes ;;
6340 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6343 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6351 case ${enable_gdbcli} in
6353 if test -d "${srcdir}/cli" ; then
6354 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6355 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6356 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6357 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6358 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6359 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6360 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6361 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6362 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6368 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6369 if test "${enable_gdbmi+set}" = set; then
6370 enableval
="$enable_gdbmi"
6372 case "${enable_gdbmi}" in
6374 "") enable_gdbmi
=yes ;;
6376 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6384 case ${enable_gdbmi} in
6386 if test -d "${srcdir}/mi" ; then
6387 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6388 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6389 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6390 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6391 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6392 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6393 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6394 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6395 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6400 # Configure UI_OUT by default (before 5.2 it can be disabled)
6401 # It must be configured if gdbmi is configured
6406 # Check whether --with-uiout or --without-uiout was given.
6407 if test "${with_uiout+set}" = set; then
6408 withval
="$with_uiout"
6409 case "${withval}" in
6410 yes) want_uiout
=true
;;
6411 no
) if test $enable_gdbmi = yes; then
6412 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6416 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6422 if test $want_uiout = true
; then
6423 UIOUT_CFLAGS
="-DUI_OUT=1"
6426 # Check whether --enable-tui or --disable-tui was given.
6427 if test "${enable_tui+set}" = set; then
6428 enableval
="$enable_tui"
6430 case "${enable_tui}" in
6432 "") enable_tui
=yes ;;
6434 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6440 case ${enable_tui} in
6442 if test -d "${srcdir}/tui" ; then
6443 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6444 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6445 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6446 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6447 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6448 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6449 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6450 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6451 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6456 # Check whether --enable-netrom or --disable-netrom was given.
6457 if test "${enable_netrom+set}" = set; then
6458 enableval
="$enable_netrom"
6459 case "${enableval}" in
6460 yes) enable_netrom
=yes ;;
6461 no
) enable_netrom
=no
;;
6462 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6467 if test "${enable_netrom}" = "yes"; then
6468 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6469 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6473 # NOTE: Don't add -Wall or -Wunused, they both include
6474 # -Wunused-parameter which reports bogus warnings.
6475 # NOTE: If you add to this list, remember to update
6476 # gdb/doc/gdbint.texinfo.
6477 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6478 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6479 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6480 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6481 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6482 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6483 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6484 # -Woverloaded-virtual -Winline -Werror"
6485 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6486 if test "${enable_build_warnings+set}" = set; then
6487 enableval
="$enable_build_warnings"
6488 case "${enableval}" in
6490 no
) build_warnings
="-w";;
6491 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6492 build_warnings
="${build_warnings} ${t}";;
6493 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6494 build_warnings
="${t} ${build_warnings}";;
6495 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6497 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6498 echo "Setting compiler warning flags = $build_warnings" 6>&1
6501 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6502 if test "${enable_gdb_build_warnings+set}" = set; then
6503 enableval
="$enable_gdb_build_warnings"
6504 case "${enableval}" in
6506 no
) build_warnings
="-w";;
6507 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6508 build_warnings
="${build_warnings} ${t}";;
6509 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6510 build_warnings
="${t} ${build_warnings}";;
6511 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6513 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6514 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6519 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6521 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6522 echo "configure:6523: checking compiler warning flags" >&5
6523 # Separate out the -Werror flag as some files just cannot be
6524 # compiled with it enabled.
6525 for w
in ${build_warnings}; do
6527 -Werr*) WERROR_CFLAGS
=-Werror ;;
6528 *) # Check that GCC accepts it
6529 if $CC $w 2>&1 |
grep 'unrecognized option' > /dev
/null
; then
6532 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6536 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6546 # Check whether --with-mmalloc or --without-mmalloc was given.
6547 if test "${with_mmalloc+set}" = set; then
6548 withval
="$with_mmalloc"
6549 case "${withval}" in
6550 yes) want_mmalloc
=true
;;
6551 no
) want_mmalloc
=false
;;
6552 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6558 if test x
$want_mmalloc = xtrue
; then
6559 cat >> confdefs.h
<<\EOF
6560 #define USE_MMALLOC 1
6563 cat >> confdefs.h
<<\EOF
6564 #define MMCHECK_FORCE 1
6567 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6568 MMALLOC
='../mmalloc/libmmalloc.a'
6571 # Check whether --with-included-regex or --without-included-regex was given.
6572 if test "${with_included_regex+set}" = set; then
6573 withval
="$with_included_regex"
6574 case "${withval}" in
6575 yes) want_included_regex
=true
;;
6576 no
) want_included_regex
=false
;;
6577 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6580 want_included_regex
=true
6583 if test $want_included_regex = false
; then
6584 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6585 echo "configure:6586: checking for GNU regex" >&5
6586 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.
$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 #include <gnu-versions.h>
6593 #include <sys/types.h>
6596 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6597 #error No valid GNU regex.
6602 if { (eval echo configure
:6603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6604 gdb_cv_have_gnu_regex
=yes
6606 echo "configure: failed program was:" >&5
6607 cat conftest.
$ac_ext >&5
6609 gdb_cv_have_gnu_regex
=no
6614 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6615 if test $gdb_cv_have_gnu_regex = no
; then
6616 want_included_regex
=true
6620 if test x
${want_included_regex} = xtrue
; then
6622 cat >> confdefs.h
<<\EOF
6623 #define USE_INCLUDED_REGEX 1
6629 # In the Cygwin environment, we need some additional flags.
6630 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6631 echo "configure:6632: checking for cygwin" >&5
6632 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.
$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6639 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644 egrep "lose" >/dev
/null
2>&1; then
6646 gdb_cv_os_cygwin
=yes
6655 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6658 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6660 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6661 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6666 if test x
$gdb_host = xgo32
; then
6669 if test x
$gdb_cv_os_cygwin = xyes
; then
6670 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6673 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6674 echo "configure:6675: checking for tgetent in -lncurses" >&5
6675 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6679 ac_save_LIBS
="$LIBS"
6680 LIBS
="-lncurses $LIBS"
6681 cat > conftest.
$ac_ext <<EOF
6682 #line 6683 "configure"
6683 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6693 if { (eval echo configure
:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6695 eval "ac_cv_lib_$ac_lib_var=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.
$ac_ext >&5
6700 eval "ac_cv_lib_$ac_lib_var=no"
6703 LIBS
="$ac_save_LIBS"
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6710 echo "$ac_t""no" 1>&6
6711 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6712 echo "configure:6713: checking for tgetent in -lHcurses" >&5
6713 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6717 ac_save_LIBS
="$LIBS"
6718 LIBS
="-lHcurses $LIBS"
6719 cat > conftest.
$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6731 if { (eval echo configure
:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6733 eval "ac_cv_lib_$ac_lib_var=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.
$ac_ext >&5
6738 eval "ac_cv_lib_$ac_lib_var=no"
6741 LIBS
="$ac_save_LIBS"
6744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6748 echo "$ac_t""no" 1>&6
6749 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6750 echo "configure:6751: checking for tgetent in -ltermlib" >&5
6751 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6755 ac_save_LIBS
="$LIBS"
6756 LIBS
="-ltermlib $LIBS"
6757 cat > conftest.
$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 /* Override any gcc2 internal prototype to avoid an error. */
6761 /* We use char because int might match the return type of a gcc2
6762 builtin and then its argument prototype would still apply. */
6769 if { (eval echo configure
:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6771 eval "ac_cv_lib_$ac_lib_var=yes"
6773 echo "configure: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6776 eval "ac_cv_lib_$ac_lib_var=no"
6779 LIBS
="$ac_save_LIBS"
6782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6783 echo "$ac_t""yes" 1>&6
6786 echo "$ac_t""no" 1>&6
6787 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6788 echo "configure:6789: checking for tgetent in -ltermcap" >&5
6789 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6791 echo $ac_n "(cached) $ac_c" 1>&6
6793 ac_save_LIBS
="$LIBS"
6794 LIBS
="-ltermcap $LIBS"
6795 cat > conftest.
$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* Override any gcc2 internal prototype to avoid an error. */
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6807 if { (eval echo configure
:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6809 eval "ac_cv_lib_$ac_lib_var=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.
$ac_ext >&5
6814 eval "ac_cv_lib_$ac_lib_var=no"
6817 LIBS
="$ac_save_LIBS"
6820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6824 echo "$ac_t""no" 1>&6
6825 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6826 echo "configure:6827: checking for tgetent in -lcurses" >&5
6827 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 ac_save_LIBS
="$LIBS"
6832 LIBS
="-lcurses $LIBS"
6833 cat > conftest.
$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 /* Override any gcc2 internal prototype to avoid an error. */
6837 /* We use char because int might match the return type of a gcc2
6838 builtin and then its argument prototype would still apply. */
6845 if { (eval echo configure
:6846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6847 eval "ac_cv_lib_$ac_lib_var=yes"
6849 echo "configure: failed program was:" >&5
6850 cat conftest.
$ac_ext >&5
6852 eval "ac_cv_lib_$ac_lib_var=no"
6855 LIBS
="$ac_save_LIBS"
6858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6859 echo "$ac_t""yes" 1>&6
6862 echo "$ac_t""no" 1>&6
6863 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
6864 echo "configure:6865: checking for tgetent in -lterminfo" >&5
6865 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
6866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6869 ac_save_LIBS
="$LIBS"
6870 LIBS
="-lterminfo $LIBS"
6871 cat > conftest.
$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6883 if { (eval echo configure
:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6885 eval "ac_cv_lib_$ac_lib_var=yes"
6887 echo "configure: failed program was:" >&5
6888 cat conftest.
$ac_ext >&5
6890 eval "ac_cv_lib_$ac_lib_var=no"
6893 LIBS
="$ac_save_LIBS"
6896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6897 echo "$ac_t""yes" 1>&6
6900 echo "$ac_t""no" 1>&6
6914 if test "x$TERM_LIB" = x
6916 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
6922 # libreadline needs libuser32.a in a cygwin environment
6924 if test x
$gdb_cv_os_cygwin = xyes
; then
6925 WIN32LIBS
="-luser32"
6927 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
6933 LIBGUI
="../libgui/src/libgui.a"
6934 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
6938 # Check whether --with-cpu or --without-cpu was given.
6939 if test "${with_cpu+set}" = set; then
6942 powerpc-
* | powerpcle-
* )
6943 ## It would be nice to keep this table in sync with the one in
6945 case "${with_cpu}" in
6946 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
6948 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
6950 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
6951 ## These are all RS6000 variants, as far as GDB is concerned.
6961 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
6967 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
6970 cat >> confdefs.h
<<EOF
6971 #define TARGET_CPU_DEFAULT "${with_cpu}"
6979 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6980 if test "${enable_gdbtk+set}" = set; then
6981 enableval
="$enable_gdbtk"
6982 case "${enableval}" in
6986 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6989 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6997 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7001 # Default is on for everything but go32 and Cygwin
7006 if test -d "${srcdir}/gdbtk" ; then
7022 if test "${enable_gdbtk}" = "yes"; then
7026 # Ok, lets find the tcl configuration
7027 # First, look for one uninstalled.
7028 # the alternative search directory is invoked by --with-tclconfig
7031 if test x
"${no_tcl}" = x
; then
7032 # we reset no_tcl in case something fails here
7034 # Check whether --with-tclconfig or --without-tclconfig was given.
7035 if test "${with_tclconfig+set}" = set; then
7036 withval
="$with_tclconfig"
7037 with_tclconfig
=${withval}
7040 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7041 echo "configure:7042: checking for Tcl configuration" >&5
7042 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7047 # First check to see if --with-tclconfig was specified.
7048 if test x
"${with_tclconfig}" != x
; then
7049 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7050 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
7052 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7056 # then check for a private Tcl installation
7057 if test x
"${ac_cv_c_tclconfig}" = x
; then
7060 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7062 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7064 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7065 if test -f "$i/${configdir}/tclConfig.sh" ; then
7066 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7071 # check in a few common install locations
7072 if test x
"${ac_cv_c_tclconfig}" = x
; then
7073 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7074 if test -f "$i/tclConfig.sh" ; then
7075 ac_cv_c_tclconfig
=`(cd $i; pwd)`
7080 # check in a few other private locations
7081 if test x
"${ac_cv_c_tclconfig}" = x
; then
7084 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7085 if test -f "$i/${configdir}/tclConfig.sh" ; then
7086 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7094 if test x
"${ac_cv_c_tclconfig}" = x
; then
7095 TCLCONFIG
="# no Tcl configs found"
7096 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7099 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
7100 echo "$ac_t""found $TCLCONFIG" 1>&6
7104 if test -z "${no_tcl}"; then
7134 # Ok, lets find the tk configuration
7135 # First, look for one uninstalled.
7136 # the alternative search directory is invoked by --with-tkconfig
7139 if test x
"${no_tk}" = x
; then
7140 # we reset no_tk in case something fails here
7142 # Check whether --with-tkconfig or --without-tkconfig was given.
7143 if test "${with_tkconfig+set}" = set; then
7144 withval
="$with_tkconfig"
7145 with_tkconfig
=${withval}
7148 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7149 echo "configure:7150: checking for Tk configuration" >&5
7150 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7155 # First check to see if --with-tkconfig was specified.
7156 if test x
"${with_tkconfig}" != x
; then
7157 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7158 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7160 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7164 # then check for a private Tk library
7165 if test x
"${ac_cv_c_tkconfig}" = x
; then
7168 `ls -dr ../tk[4-9]* 2>/dev/null` \
7170 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7172 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7173 if test -f "$i/${configdir}/tkConfig.sh" ; then
7174 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7179 # check in a few common install locations
7180 if test x
"${ac_cv_c_tkconfig}" = x
; then
7181 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7182 if test -f "$i/tkConfig.sh" ; then
7183 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7188 # check in a few other private locations
7189 if test x
"${ac_cv_c_tkconfig}" = x
; then
7192 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7193 if test -f "$i/${configdir}/tkConfig.sh" ; then
7194 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7202 if test x
"${ac_cv_c_tkconfig}" = x
; then
7203 TKCONFIG
="# no Tk configs found"
7204 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7207 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7208 echo "$ac_t""found $TKCONFIG" 1>&6
7214 # now look for Tcl library stuff
7225 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
7227 # If $no_tk is nonempty, then we can't do Tk, and there is no
7228 # point to doing Tcl.
7229 if test -z "${no_tk}"; then
7231 if test -f "$TKCONFIG" ; then
7249 # Ok, lets find the tcl source trees so we can use the headers
7250 # Warning: transition of version 9 to 10 will break this algorithm
7251 # because 10 sorts before 9. We also look for just tcl. We have to
7252 # be careful that we don't match stuff like tclX by accident.
7253 # the alternative search directory is involked by --with-tclinclude
7257 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7258 echo "configure:7259: checking for Tcl private headers. dir=${configdir}" >&5
7259 # Check whether --with-tclinclude or --without-tclinclude was given.
7260 if test "${with_tclinclude+set}" = set; then
7261 withval
="$with_tclinclude"
7262 with_tclinclude
=${withval}
7265 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7266 echo $ac_n "(cached) $ac_c" 1>&6
7269 # first check to see if --with-tclinclude was specified
7270 if test x
"${with_tclinclude}" != x
; then
7271 if test -f ${with_tclinclude}/tclInt.h
; then
7272 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7273 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7274 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7276 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7280 # next check if it came with Tcl configuration file
7281 if test x
"${ac_cv_c_tclconfig}" = x
; then
7282 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7283 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7287 # next check in private source directory
7289 # since ls returns lowest version numbers first, reverse its output
7290 if test x
"${ac_cv_c_tclh}" = x
; then
7293 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7294 ${srcdir}/..
/..
/tcl \
7295 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7296 ${srcdir}/..
/..
/..
/tcl \
7297 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7298 if test -f $i/generic
/tclInt.h
; then
7299 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7304 # finally check in a few common install locations
7306 # since ls returns lowest version numbers first, reverse its output
7307 if test x
"${ac_cv_c_tclh}" = x
; then
7309 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7310 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7311 /usr
/local
/src
/tcl \
7312 /usr
/local
/lib
/tcl \
7313 ${prefix}/include
; do
7314 if test -f $i/generic
/tclInt.h
; then
7315 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7320 # see if one is installed
7321 if test x
"${ac_cv_c_tclh}" = x
; then
7322 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7323 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7324 echo "configure:7325: checking for tclInt.h" >&5
7325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7326 echo $ac_n "(cached) $ac_c" 1>&6
7328 cat > conftest.
$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7333 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7334 { (eval echo configure
:7335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7335 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7336 if test -z "$ac_err"; then
7338 eval "ac_cv_header_$ac_safe=yes"
7341 echo "configure: failed program was:" >&5
7342 cat conftest.
$ac_ext >&5
7344 eval "ac_cv_header_$ac_safe=no"
7348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7349 echo "$ac_t""yes" 1>&6
7350 ac_cv_c_tclh
=installed
7352 echo "$ac_t""no" 1>&6
7360 if test x
"${ac_cv_c_tclh}" = x
; then
7361 TCLHDIR
="# no Tcl private headers found"
7362 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7364 if test x
"${ac_cv_c_tclh}" != x
; then
7366 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7367 echo "$ac_t""is installed" 1>&6
7370 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7371 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7372 TCLHDIR
="-I${ac_cv_c_tclh}"
7380 # Ok, lets find the tk source trees so we can use the headers
7381 # If the directory (presumably symlink) named "tk" exists, use that one
7382 # in preference to any others. Same logic is used when choosing library
7383 # and again with Tcl. The search order is the best place to look first, then in
7384 # decreasing significance. The loop breaks if the trigger file is found.
7385 # Note the gross little conversion here of srcdir by cd'ing to the found
7386 # directory. This converts the path from a relative to an absolute, so
7387 # recursive cache variables for the path will work right. We check all
7388 # the possible paths in one loop rather than many seperate loops to speed
7390 # the alternative search directory is involked by --with-tkinclude
7393 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7394 echo "configure:7395: checking for Tk private headers" >&5
7395 # Check whether --with-tkinclude or --without-tkinclude was given.
7396 if test "${with_tkinclude+set}" = set; then
7397 withval
="$with_tkinclude"
7398 with_tkinclude
=${withval}
7401 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7405 # first check to see if --with-tkinclude was specified
7406 if test x
"${with_tkinclude}" != x
; then
7407 if test -f ${with_tkinclude}/tk.h
; then
7408 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7409 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7410 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7412 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7416 # next check if it came with Tk configuration file
7417 if test x
"${ac_cv_c_tkconfig}" = x
; then
7418 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7419 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7423 # next check in private source directory
7425 # since ls returns lowest version numbers first, reverse its output
7426 if test x
"${ac_cv_c_tkh}" = x
; then
7429 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7430 ${srcdir}/..
/..
/tk \
7431 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7432 ${srcdir}/..
/..
/..
/tk \
7433 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7434 if test -f $i/generic
/tk.h
; then
7435 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7440 # finally check in a few common install locations
7442 # since ls returns lowest version numbers first, reverse its output
7443 if test x
"${ac_cv_c_tkh}" = x
; then
7445 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7446 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7449 ${prefix}/include
; do
7450 if test -f $i/generic
/tk.h
; then
7451 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7456 # see if one is installed
7457 if test x
"${ac_cv_c_tkh}" = x
; then
7458 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7459 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7460 echo "configure:7461: checking for tk.h" >&5
7461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7462 echo $ac_n "(cached) $ac_c" 1>&6
7464 cat > conftest.
$ac_ext <<EOF
7465 #line 7466 "configure"
7466 #include "confdefs.h"
7469 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7470 { (eval echo configure
:7471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7471 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7472 if test -z "$ac_err"; then
7474 eval "ac_cv_header_$ac_safe=yes"
7477 echo "configure: failed program was:" >&5
7478 cat conftest.
$ac_ext >&5
7480 eval "ac_cv_header_$ac_safe=no"
7484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 ac_cv_c_tkh
=installed
7488 echo "$ac_t""no" 1>&6
7496 if test x
"${ac_cv_c_tkh}" != x
; then
7498 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7499 echo "$ac_t""is installed" 1>&6
7502 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7503 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7504 TKHDIR
="-I${ac_cv_c_tkh}"
7507 TKHDIR
="# no Tk directory found"
7508 echo "configure: warning: Can't find Tk private headers" 1>&2
7515 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7516 echo "configure:7517: checking for Itcl private headers. srcdir=${srcdir}" >&5
7517 if test x
"${ac_cv_c_itclh}" = x
; then
7518 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7519 if test -f $i/generic
/itcl.h
; then
7520 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7525 if test x
"${ac_cv_c_itclh}" = x
; then
7526 ITCLHDIR
="# no Itcl private headers found"
7527 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7529 if test x
"${ac_cv_c_itclh}" != x
; then
7530 ITCLHDIR
="-I${ac_cv_c_itclh}"
7532 # should always be here
7533 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7538 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7539 echo "configure:7540: checking for Itk private headers. srcdir=${srcdir}" >&5
7540 if test x
"${ac_cv_c_itkh}" = x
; then
7541 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7542 if test -f $i/generic
/itk.h
; then
7543 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7548 if test x
"${ac_cv_c_itkh}" = x
; then
7549 ITKHDIR
="# no Itk private headers found"
7550 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7552 if test x
"${ac_cv_c_itkh}" != x
; then
7553 ITKHDIR
="-I${ac_cv_c_itkh}"
7555 # should always be here
7556 # ITKLIB="../itcl/itk/unix/libitk.a"
7561 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7562 echo "configure:7563: checking for Tix private headers. srcdir=${srcdir}" >&5
7563 if test x
"${ac_cv_c_tixh}" = x
; then
7564 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
7565 if test -f $i/generic
/tix.h
; then
7566 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
7571 if test x
"${ac_cv_c_tixh}" = x
; then
7572 TIXHDIR
="# no Tix private headers found"
7573 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7575 if test x
"${ac_cv_c_tixh}" != x
; then
7576 TIXHDIR
="-I${ac_cv_c_tixh}"
7582 # now look for Tk library stuff
7593 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
7595 # now look for Itcl library stuff
7599 # Ok, lets find the itcl configuration
7600 # First, look for one uninstalled.
7601 # the alternative search directory is invoked by --with-itclconfig
7604 if test x
"${no_itcl}" = x
; then
7605 # we reset no_itcl in case something fails here
7607 # Check whether --with-itclconfig or --without-itclconfig was given.
7608 if test "${with_itclconfig+set}" = set; then
7609 withval
="$with_itclconfig"
7610 with_itclconfig
=${withval}
7613 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7614 echo "configure:7615: checking for Itcl configuration" >&5
7615 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7620 # First check to see if --with-itclconfig was specified.
7621 if test x
"${with_itclconfig}" != x
; then
7622 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7623 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7625 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7629 # then check for a private Itcl library
7630 if test x
"${ac_cv_c_itclconfig}" = x
; then
7633 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7635 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7637 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7638 if test -f "$i/itclConfig.sh" ; then
7639 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7644 # check in a few common install locations
7645 if test x
"${ac_cv_c_itclconfig}" = x
; then
7646 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7647 if test -f "$i/itclConfig.sh" ; then
7648 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7653 # check in a few other private locations
7654 if test x
"${ac_cv_c_itclconfig}" = x
; then
7656 ${srcdir}/..
/itcl
/itcl \
7657 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7658 if test -f "$i/itclConfig.sh" ; then
7659 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7667 if test x
"${ac_cv_c_itclconfig}" = x
; then
7668 ITCLCONFIG
="# no Itcl configs found"
7669 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7672 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7673 echo "$ac_t""found $ITCLCONFIG" 1>&6
7677 if test -z "${no_itcl}"; then
7679 if test -f "$ITCLCONFIG" ; then
7695 itcldir
=..
/itcl
/itcl
/win
/
7698 itcldir
=..
/itcl
/itcl
/unix
/
7703 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7704 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
7708 # now look for Itk library stuff
7711 # Ok, lets find the itk configuration
7712 # First, look for one uninstalled.
7713 # the alternative search directory is invoked by --with-itkconfig
7716 if test x
"${no_itk}" = x
; then
7717 # we reset no_itk in case something fails here
7719 # Check whether --with-itkconfig or --without-itkconfig was given.
7720 if test "${with_itkconfig+set}" = set; then
7721 withval
="$with_itkconfig"
7722 with_itkconfig
=${withval}
7725 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7726 echo "configure:7727: checking for Itk configuration" >&5
7727 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7732 # First check to see if --with-itkconfig was specified.
7733 if test x
"${with_itkconfig}" != x
; then
7734 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7735 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7737 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7741 # then check for a private Itk library
7742 if test x
"${ac_cv_c_itkconfig}" = x
; then
7745 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7747 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7749 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7750 if test -f "$i/itkConfig.sh" ; then
7751 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7756 # check in a few common install locations
7757 if test x
"${ac_cv_c_itkconfig}" = x
; then
7758 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7759 if test -f "$i/itkConfig.sh" ; then
7760 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7765 # check in a few other private locations
7766 if test x
"${ac_cv_c_itkconfig}" = x
; then
7768 ${srcdir}/..
/itcl
/itk \
7769 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7770 if test -f "$i/itkConfig.sh" ; then
7771 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7779 if test x
"${ac_cv_c_itkconfig}" = x
; then
7780 ITKCONFIG
="# no Itk configs found"
7781 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
7784 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
7785 echo "$ac_t""found $ITKCONFIG" 1>&6
7790 if test -z "${no_itcl}"; then
7792 if test -f "$ITKCONFIG" ; then
7809 itkdir
=..
/itcl
/itk
/win
/
7812 itkdir
=..
/itcl
/itk
/unix
/
7816 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
7817 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
7820 # now look for Tix library stuff
7823 # Ok, lets find the tix configuration
7824 # First, look for one uninstalled.
7825 # the alternative search directory is invoked by --with-itkconfig
7828 if test x
"${no_tix}" = x
; then
7829 # we reset no_tix in case something fails here
7831 # Check whether --with-tixconfig or --without-tixconfig was given.
7832 if test "${with_tixconfig+set}" = set; then
7833 withval
="$with_tixconfig"
7834 with_tixconfig
=${withval}
7837 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
7838 echo "configure:7839: checking for Tix configuration" >&5
7839 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7844 # First check to see if --with-tixconfig was specified.
7845 if test x
"${with_tixconfig}" != x
; then
7846 if test -f "${with_tixconfig}/tixConfig.sh" ; then
7847 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
7849 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
7853 # then check for a private Tix library
7854 if test x
"${ac_cv_c_tixconfig}" = x
; then
7857 `ls -dr ../tix 2>/dev/null` \
7859 `ls -dr ../../tix 2>/dev/null` \
7861 `ls -dr ../../../tix 2>/dev/null` ; do
7862 echo "**** Looking at $i - with ${configdir}"
7863 if test -f "$i/tixConfig.sh" ; then
7864 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7869 # check in a few common install locations
7870 if test x
"${ac_cv_c_tixconfig}" = x
; then
7871 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7872 echo "**** Looking at $i"
7873 if test -f "$i/tixConfig.sh" ; then
7874 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7879 # check in a few other private locations
7880 echo "**** Other private locations"
7881 if test x
"${ac_cv_c_tixconfig}" = x
; then
7884 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
7885 echo "**** Looking at $i - with ${configdir}"
7886 if test -f "$i/${configdir}/tixConfig.sh" ; then
7887 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
7895 if test x
"${ac_cv_c_tixconfig}" = x
; then
7896 TIXCONFIG
="# no Tix configs found"
7897 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
7900 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
7901 echo "$ac_t""found $TIXCONFIG" 1>&6
7906 if test -z "${no_tix}"; then
7908 if test -f "$TIXCONFIG" ; then
7919 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
7920 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
7923 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
7924 # Tcl/Tk 8.1 require -fwritable strings. I don't
7925 # know whether 8.2 will or not, but I bet it will.
7926 # I don't have to worry about 7.x since we don't support it.
7928 if test "$GCC" = "yes"; then
7929 if test "$TCL_VERSION" != "8.0" ; then
7930 GDBTK_CFLAGS
="-fwritable-strings"
7934 # Include some libraries that Tcl and Tk want.
7935 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
7936 # Yes, the ordering seems wrong here. But it isn't.
7937 # TK_LIBS is the list of libraries that need to be linked
7938 # after Tcl/Tk. Note that this isn't put into LIBS. If it
7939 # were in LIBS then any link tests after this point would
7940 # try to include things like `$(LIBGUI)', which wouldn't work.
7941 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
7943 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
7944 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
7945 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
7946 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
7947 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
7948 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
7949 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
7950 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
7952 if test x
$gdb_cv_os_cygwin = xyes
; then
7953 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
7954 WIN32LDAPP
="-Wl,--subsystem,console"
7955 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
7975 # If we find X, set shell vars x_includes and x_libraries to the
7976 # paths, otherwise set no_x=yes.
7977 # Uses ac_ vars as temps to allow command line to override cache and checks.
7978 # --without-x overrides everything else, but does not touch the cache.
7979 echo $ac_n "checking for X""... $ac_c" 1>&6
7980 echo "configure:7981: checking for X" >&5
7982 # Check whether --with-x or --without-x was given.
7983 if test "${with_x+set}" = set; then
7988 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7989 if test "x$with_x" = xno
; then
7990 # The user explicitly disabled X.
7993 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7994 # Both variables are already set.
7997 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8000 # One or both of the vars are not set, and there is no cached value.
8001 ac_x_includes
=NO ac_x_libraries
=NO
8003 if mkdir conftestdir
; then
8005 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8006 cat > Imakefile
<<'EOF'
8008 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8010 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8012 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8013 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8014 for ac_extension
in a so sl
; do
8015 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8016 test -f $ac_im_libdir/libX11.
$ac_extension; then
8017 ac_im_usrlibdir
=$ac_im_libdir; break
8020 # Screen out bogus values from the imake configuration. They are
8021 # bogus both because they are the default anyway, and because
8022 # using them would break gcc on systems where it needs fixed includes.
8023 case "$ac_im_incroot" in
8025 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
8027 case "$ac_im_usrlibdir" in
8029 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
8036 if test "$ac_x_includes" = NO
; then
8037 # Guess where to find include files, by looking for this one X11 .h file.
8038 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
8040 # First, try using that file with no special directory specified.
8041 cat > conftest.
$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 #include <$x_direct_test_include>
8046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8047 { (eval echo configure
:8048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8049 if test -z "$ac_err"; then
8051 # We can compile using X headers with no special include directory.
8055 echo "configure: failed program was:" >&5
8056 cat conftest.
$ac_ext >&5
8058 # Look for the header file in a standard set of common directories.
8059 # Check X11 before X11Rn because it is often a symlink to the current release.
8062 /usr
/X11R
6/include \
8063 /usr
/X11R
5/include \
8064 /usr
/X11R
4/include \
8067 /usr
/include
/X11R6 \
8068 /usr
/include
/X11R5 \
8069 /usr
/include
/X11R4 \
8071 /usr
/local
/X11
/include \
8072 /usr
/local
/X11R
6/include \
8073 /usr
/local
/X11R
5/include \
8074 /usr
/local
/X11R
4/include \
8076 /usr
/local
/include
/X11 \
8077 /usr
/local
/include
/X11R6 \
8078 /usr
/local
/include
/X11R5 \
8079 /usr
/local
/include
/X11R4 \
8083 /usr
/XFree86
/include
/X11 \
8086 /usr
/local
/include \
8087 /usr
/unsupported
/include \
8088 /usr
/athena
/include \
8089 /usr
/local
/x11r
5/include \
8090 /usr
/lpp
/Xamples
/include \
8092 /usr
/openwin
/include \
8093 /usr
/openwin
/share
/include \
8096 if test -r "$ac_dir/$x_direct_test_include"; then
8097 ac_x_includes
=$ac_dir
8103 fi # $ac_x_includes = NO
8105 if test "$ac_x_libraries" = NO
; then
8106 # Check for the libraries.
8108 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
8109 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
8111 # See if we find them without any special options.
8112 # Don't add to $LIBS permanently.
8113 ac_save_LIBS
="$LIBS"
8114 LIBS
="-l$x_direct_test_library $LIBS"
8115 cat > conftest.
$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8120 ${x_direct_test_function}()
8123 if { (eval echo configure
:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8125 LIBS
="$ac_save_LIBS"
8126 # We can link X programs with no special library path.
8129 echo "configure: failed program was:" >&5
8130 cat conftest.
$ac_ext >&5
8132 LIBS
="$ac_save_LIBS"
8133 # First see if replacing the include by lib works.
8134 # Check X11 before X11Rn because it is often a symlink to the current release.
8135 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8146 /usr
/local
/X11
/lib \
8147 /usr
/local
/X11R
6/lib \
8148 /usr
/local
/X11R
5/lib \
8149 /usr
/local
/X11R
4/lib \
8151 /usr
/local
/lib
/X11 \
8152 /usr
/local
/lib
/X11R6 \
8153 /usr
/local
/lib
/X11R5 \
8154 /usr
/local
/lib
/X11R4 \
8158 /usr
/XFree86
/lib
/X11 \
8162 /usr
/unsupported
/lib \
8164 /usr
/local
/x11r
5/lib \
8165 /usr
/lpp
/Xamples
/lib \
8169 /usr
/openwin
/share
/lib \
8172 for ac_extension
in a so sl
; do
8173 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8174 ac_x_libraries
=$ac_dir
8181 fi # $ac_x_libraries = NO
8183 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8184 # Didn't find X anywhere. Cache the known absence of X.
8185 ac_cv_have_x
="have_x=no"
8187 # Record where we found X for the cache.
8188 ac_cv_have_x
="have_x=yes \
8189 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8193 eval "$ac_cv_have_x"
8196 if test "$have_x" != yes; then
8197 echo "$ac_t""$have_x" 1>&6
8200 # If each of the values was on the command line, it overrides each guess.
8201 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8202 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8203 # Update the cache value to reflect the command line values.
8204 ac_cv_have_x
="have_x=yes \
8205 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8206 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8211 # Unlike the sim directory, whether a simulator is linked is controlled by
8212 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8213 # This code just checks for a few cases where we'd like to ignore those
8214 # definitions, even when they're present in the '.mt' file. These cases
8215 # are when --disable-sim is specified, or if the simulator directory is
8216 # not part of the source tree.
8218 # Check whether --enable-sim or --disable-sim was given.
8219 if test "${enable_sim+set}" = set; then
8220 enableval
="$enable_sim"
8221 echo "enable_sim = $enable_sim";
8222 echo "enableval = ${enableval}";
8223 case "${enableval}" in
8224 yes) ignore_sim
=false
;;
8225 no
) ignore_sim
=true
;;
8226 *) ignore_sim
=false
;;
8233 if test ! -d "${srcdir}/../sim"; then
8237 if test "${ignore_sim}" = "true"; then
8239 IGNORE_SIM_OBS
="SIM_OBS="
8243 cat >> confdefs.h
<<\EOF
8263 # Begin stuff to support --enable-shared
8264 # Check whether --enable-shared or --disable-shared was given.
8265 if test "${enable_shared+set}" = set; then
8266 enableval
="$enable_shared"
8267 case "${enableval}" in
8276 # If we have shared libraries, try to set rpath reasonably.
8277 if test "${shared}" = "true"; then
8280 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8282 *-*-irix5* |
*-*-irix6*)
8283 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8287 *-*-linux* |
*-pc-linux-gnu*)
8288 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8291 HLDFLAGS
='-R $(libdir)'
8294 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;'
8299 # On SunOS, if the linker supports the -rpath option, use it to
8300 # prevent ../bfd and ../opcodes from being included in the run time
8304 echo 'main () { }' > conftest.c
8305 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8306 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8308 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8310 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8312 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8314 elif test "${shared}" = "true"; then
8315 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8317 HLDFLAGS
='-Wl,-rpath='
8319 rm -f conftest.t conftest.c conftest
8324 # End stuff to support --enable-shared
8326 # target_subdir is used by the testsuite to find the target libraries.
8328 if test "${host}" != "${target}"; then
8329 target_subdir
="${target_alias}/"
8334 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8335 if test ! -f ${host_makefile_frag}; then
8336 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
8338 frags
="$frags $host_makefile_frag"
8340 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8341 if test ! -f ${target_makefile_frag}; then
8342 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8344 frags
="$frags $target_makefile_frag"
8351 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8352 ' ${host_makefile_frag}`
8354 targetfile
=`sed -n '
8355 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8356 ' ${target_makefile_frag}`
8358 GDB_MULTI_ARCH
=`sed -n '
8359 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8360 ' ${target_makefile_frag}`
8362 # these really aren't orthogonal true/false values of the same condition,
8363 # but shells are slow enough that I like to reuse the test conditions
8365 if test "${target}" = "${host}"; then
8366 nativefile
=`sed -n '
8367 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8368 ' ${host_makefile_frag}`
8370 # GDBserver is only useful in a "native" environment
8371 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
8375 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8376 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8377 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8378 # will be the default.
8379 if test x
"${GDB_MULTI_ARCH}" = x
; then
8380 case "${gdb_multi_arch}" in
8381 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8382 no
) GDB_MULTI_ARCH
=0 ;;
8383 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8386 if test x
"${GDB_MULTI_ARCH}" != x
; then
8387 cat >> confdefs.h
<<EOF
8388 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8392 # Warn the user when they use an old practice
8393 case "${GDB_MULTI_ARCH}" in
8395 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8396 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8397 GDB_MULTI_ARCH_PURE
)
8398 if test x
"${targetfile}" != x
; then
8399 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8402 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8406 SUBDIRS
="doc testsuite nlm"
8407 if test "${enable_multi_ice}" = "yes"; then
8408 SUBDIRS
="${SUBDIRS} multi-ice"
8413 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8414 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8422 if test "${hostfile}" != ""; then
8424 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8425 files
="${files} ${GDB_XM_FILE}"
8426 links
="${links} xm.h"
8427 cat >> confdefs.h
<<EOF
8428 #define GDB_XM_FILE ${GDB_XM_FILE}
8436 if test "${targetfile}" != ""; then
8438 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8439 files
="${files} ${GDB_TM_FILE}"
8440 links
="${links} tm.h"
8441 cat >> confdefs.h
<<EOF
8442 #define GDB_TM_FILE ${GDB_TM_FILE}
8450 if test "${nativefile}" != ""; then
8452 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8453 files
="${files} ${GDB_NM_FILE}"
8454 links
="${links} nm.h"
8455 cat >> confdefs.h
<<EOF
8456 #define GDB_NM_FILE ${GDB_NM_FILE}
8462 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8463 echo "configure:8464: checking whether ln -s works" >&5
8464 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
8468 if ln -s X conftestdata
2>/dev
/null
8471 ac_cv_prog_LN_S
="ln -s"
8476 LN_S
="$ac_cv_prog_LN_S"
8477 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8478 echo "$ac_t""yes" 1>&6
8480 echo "$ac_t""no" 1>&6
8486 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8487 echo "configure:8488: checking for Cygwin environment" >&5
8488 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8489 echo $ac_n "(cached) $ac_c" 1>&6
8491 cat > conftest.
$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8498 #define __CYGWIN__ __CYGWIN32__
8503 if { (eval echo configure
:8504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8507 echo "configure: failed program was:" >&5
8508 cat conftest.
$ac_ext >&5
8516 echo "$ac_t""$ac_cv_cygwin" 1>&6
8518 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8519 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8520 echo "configure:8521: checking for mingw32 environment" >&5
8521 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8524 cat > conftest.
$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8532 if { (eval echo configure
:8533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8536 echo "configure: failed program was:" >&5
8537 cat conftest.
$ac_ext >&5
8545 echo "$ac_t""$ac_cv_mingw32" 1>&6
8547 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8550 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8551 echo "configure:8552: checking for executable suffix" >&5
8552 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8559 echo 'int main () { return 0; }' > conftest.
$ac_ext
8561 if { (eval echo configure
:8562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8562 for file in conftest.
*; do
8564 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
8565 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8569 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8572 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8577 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8578 echo "$ac_t""${ac_cv_exeext}" 1>&6
8582 subdirs
="$configdirs"
8585 cat > confcache
<<\EOF
8586 # This file is a shell script that caches the results of configure
8587 # tests run on this system so they can be shared between configure
8588 # scripts and configure runs. It is not useful on other systems.
8589 # If it contains results you don't want to keep, you may remove or edit it.
8591 # By default, configure uses ./config.cache as the cache file,
8592 # creating it if it does not exist already. You can give configure
8593 # the --cache-file=FILE option to use a different cache file; that is
8594 # what configure does when it calls configure scripts in
8595 # subdirectories, so they share the cache.
8596 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8597 # config.status only pays attention to the cache file if you give it the
8598 # --recheck option to rerun configure.
8601 # The following way of writing the cache mishandles newlines in values,
8602 # but we know of no workaround that is simple, portable, and efficient.
8603 # So, don't put newlines in cache variables' values.
8604 # Ultrix sh set writes to stderr and can't be redirected directly,
8605 # and sets the high bit in the cache file unless we assign to the vars.
8607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8609 # `set' does not quote correctly, so add quotes (double-quote substitution
8610 # turns \\\\ into \\, and sed turns \\ into \).
8612 -e "s/'/'\\\\''/g" \
8613 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8616 # `set' quotes correctly as required by POSIX, so do not add quotes.
8617 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8620 if cmp -s $cache_file confcache
; then
8623 if test -w $cache_file; then
8624 echo "updating cache $cache_file"
8625 cat confcache
> $cache_file
8627 echo "not updating unwritable cache $cache_file"
8632 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8634 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8635 # Let make expand exec_prefix.
8636 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8638 # Any assignment to VPATH causes Sun make to only execute
8639 # the first set of double-colon rules, so remove it if not needed.
8640 # If there is a colon in the path, we need to keep it.
8641 if test "x$srcdir" = x.
; then
8642 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8645 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8647 DEFS
=-DHAVE_CONFIG_H
8649 # Without the "./", some shells look in PATH for config.status.
8650 : ${CONFIG_STATUS=./config.status}
8652 echo creating
$CONFIG_STATUS
8653 rm -f $CONFIG_STATUS
8654 cat > $CONFIG_STATUS <<EOF
8656 # Generated automatically by configure.
8657 # Run this file to recreate the current configuration.
8658 # This directory was configured as follows,
8659 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8661 # $0 $ac_configure_args
8663 # Compiler output produced by configure, useful for debugging
8664 # configure, is in ./config.log if it exists.
8666 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8669 case "\$ac_option" in
8670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8671 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8672 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8673 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8674 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8676 -help | --help | --hel | --he | --h)
8677 echo "\$ac_cs_usage"; exit 0 ;;
8678 *) echo "\$ac_cs_usage"; exit 1 ;;
8682 ac_given_srcdir=$srcdir
8683 ac_given_INSTALL="$INSTALL"
8685 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8687 cat >> $CONFIG_STATUS <<EOF
8689 # Protect against being on the right side of a sed subst in config.status.
8690 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8691 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8695 s%@CFLAGS@%$CFLAGS%g
8696 s%@CPPFLAGS@%$CPPFLAGS%g
8697 s%@CXXFLAGS@%$CXXFLAGS%g
8698 s%@FFLAGS@%$FFLAGS%g
8700 s%@LDFLAGS@%$LDFLAGS%g
8702 s%@exec_prefix@%$exec_prefix%g
8703 s%@prefix@%$prefix%g
8704 s%@program_transform_name@%$program_transform_name%g
8705 s%@bindir@%$bindir%g
8706 s%@sbindir@%$sbindir%g
8707 s%@libexecdir@%$libexecdir%g
8708 s%@datadir@%$datadir%g
8709 s%@sysconfdir@%$sysconfdir%g
8710 s%@sharedstatedir@%$sharedstatedir%g
8711 s%@localstatedir@%$localstatedir%g
8712 s%@libdir@%$libdir%g
8713 s%@includedir@%$includedir%g
8714 s%@oldincludedir@%$oldincludedir%g
8715 s%@infodir@%$infodir%g
8716 s%@mandir@%$mandir%g
8717 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8718 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8723 s%@host_alias@%$host_alias%g
8724 s%@host_cpu@%$host_cpu%g
8725 s%@host_vendor@%$host_vendor%g
8726 s%@host_os@%$host_os%g
8727 s%@target@%$target%g
8728 s%@target_alias@%$target_alias%g
8729 s%@target_cpu@%$target_cpu%g
8730 s%@target_vendor@%$target_vendor%g
8731 s%@target_os@%$target_os%g
8733 s%@build_alias@%$build_alias%g
8734 s%@build_cpu@%$build_cpu%g
8735 s%@build_vendor@%$build_vendor%g
8736 s%@build_os@%$build_os%g
8737 s%@SET_MAKE@%$SET_MAKE%g
8738 s%@RANLIB@%$RANLIB%g
8739 s%@ALLOCA@%$ALLOCA%g
8740 s%@USE_NLS@%$USE_NLS%g
8741 s%@MSGFMT@%$MSGFMT%g
8742 s%@GMSGFMT@%$GMSGFMT%g
8743 s%@XGETTEXT@%$XGETTEXT%g
8744 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8745 s%@CATALOGS@%$CATALOGS%g
8746 s%@CATOBJEXT@%$CATOBJEXT%g
8747 s%@DATADIRNAME@%$DATADIRNAME%g
8748 s%@GMOFILES@%$GMOFILES%g
8749 s%@INSTOBJEXT@%$INSTOBJEXT%g
8750 s%@INTLDEPS@%$INTLDEPS%g
8751 s%@INTLLIBS@%$INTLLIBS%g
8752 s%@INTLOBJS@%$INTLOBJS%g
8753 s%@POFILES@%$POFILES%g
8755 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8757 s%@GT_YES@%$GT_YES%g
8758 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8761 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8762 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8763 s%@INSTALL_DATA@%$INSTALL_DATA%g
8765 s%@DLLTOOL@%$DLLTOOL%g
8766 s%@WINDRES@%$WINDRES%g
8769 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
8770 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
8771 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
8772 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
8773 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
8774 s%@MMALLOC@%$MMALLOC%g
8776 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
8777 s%@TERM_LIB@%$TERM_LIB%g
8778 s%@WIN32LIBS@%$WIN32LIBS%g
8779 s%@LIBGUI@%$LIBGUI%g
8780 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
8781 s%@WIN32LDAPP@%$WIN32LDAPP%g
8782 s%@TCL_VERSION@%$TCL_VERSION%g
8783 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
8784 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
8785 s%@TCL_CC@%$TCL_CC%g
8786 s%@TCL_DEFS@%$TCL_DEFS%g
8787 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
8788 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
8789 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
8790 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
8791 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
8792 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
8793 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
8794 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
8795 s%@TCL_RANLIB@%$TCL_RANLIB%g
8796 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
8797 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
8798 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
8799 s%@TK_VERSION@%$TK_VERSION%g
8800 s%@TK_DEFS@%$TK_DEFS%g
8801 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
8802 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
8803 s%@TK_XLIBSW@%$TK_XLIBSW%g
8804 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
8805 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
8806 s%@TCLHDIR@%$TCLHDIR%g
8807 s%@TKHDIR@%$TKHDIR%g
8808 s%@ITCLHDIR@%$ITCLHDIR%g
8809 s%@ITKHDIR@%$ITKHDIR%g
8810 s%@TIXHDIR@%$TIXHDIR%g
8811 s%@ITCL_VERSION@%$ITCL_VERSION%g
8812 s%@ITCL_DEFS@%$ITCL_DEFS%g
8813 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
8814 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
8815 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
8816 s%@ITK_VERSION@%$ITK_VERSION%g
8817 s%@ITK_DEFS@%$ITK_DEFS%g
8818 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
8819 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
8820 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
8821 s%@TIX_VERSION@%$TIX_VERSION%g
8822 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
8823 s%@X_CFLAGS@%$X_CFLAGS%g
8824 s%@X_LDFLAGS@%$X_LDFLAGS%g
8825 s%@X_LIBS@%$X_LIBS%g
8826 s%@TCL_DEPS@%$TCL_DEPS%g
8827 s%@TK_DEPS@%$TK_DEPS%g
8828 s%@ITCLLIB@%$ITCLLIB%g
8829 s%@ITCL_DEPS@%$ITCL_DEPS%g
8830 s%@ITKLIB@%$ITKLIB%g
8831 s%@ITK_DEPS@%$ITK_DEPS%g
8832 s%@TIXLIB@%$TIXLIB%g
8833 s%@TIX_DEPS@%$TIX_DEPS%g
8834 s%@GDBTKLIBS@%$GDBTKLIBS%g
8835 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
8836 s%@IGNORE_SIM@%$IGNORE_SIM%g
8837 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
8838 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
8839 s%@CONFIG_OBS@%$CONFIG_OBS%g
8840 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
8841 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
8842 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
8843 s%@CONFIG_INITS@%$CONFIG_INITS%g
8844 s%@CONFIG_ALL@%$CONFIG_ALL%g
8845 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
8846 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
8847 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
8848 s%@HLDFLAGS@%$HLDFLAGS%g
8849 s%@HLDENV@%$HLDENV%g
8850 s%@target_subdir@%$target_subdir%g
8851 /@host_makefile_frag@/r $host_makefile_frag
8852 s%@host_makefile_frag@%%g
8853 /@target_makefile_frag@/r $target_makefile_frag
8854 s%@target_makefile_frag@%%g
8856 s%@SUBDIRS@%$SUBDIRS%g
8861 s%@EXEEXT@%$EXEEXT%g
8862 s%@subdirs@%$subdirs%g
8867 cat >> $CONFIG_STATUS <<\EOF
8869 # Split the substitutions into bite-sized pieces for seds with
8870 # small command number limits, like on Digital OSF/1 and HP-UX.
8871 ac_max_sed_cmds
=60 # Maximum number of lines to put in a sed script.
8872 ac_file
=1 # Number of current file.
8873 ac_beg
=1 # First line for current file.
8874 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8877 while $ac_more_lines; do
8878 if test $ac_beg -gt 1; then
8879 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8881 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8883 if test ! -s conftest.s
$ac_file; then
8885 rm -f conftest.s
$ac_file
8887 if test -z "$ac_sed_cmds"; then
8888 ac_sed_cmds
="sed -f conftest.s$ac_file"
8890 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8892 ac_file
=`expr $ac_file + 1`
8894 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8897 if test -z "$ac_sed_cmds"; then
8902 cat >> $CONFIG_STATUS <<EOF
8904 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
8906 cat >> $CONFIG_STATUS <<\EOF
8907 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8910 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8911 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8912 *) ac_file_in
="${ac_file}.in" ;;
8915 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8917 # Remove last slash and all that follows it. Not all systems have dirname.
8918 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8919 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8920 # The file is in a subdirectory.
8921 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8922 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8923 # A "../" for each directory in $ac_dir_suffix.
8924 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8926 ac_dir_suffix
= ac_dots
=
8929 case "$ac_given_srcdir" in
8931 if test -z "$ac_dots"; then top_srcdir
=.
8932 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8933 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8935 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8936 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8939 case "$ac_given_INSTALL" in
8940 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8941 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8944 echo creating
"$ac_file"
8946 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8948 *Makefile
*) ac_comsub
="1i\\
8949 # $configure_input" ;;
8953 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8955 s%@configure_input@%$configure_input%g
8956 s%@srcdir@%$srcdir%g
8957 s%@top_srcdir@%$top_srcdir%g
8958 s%@INSTALL@%$INSTALL%g
8959 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8966 # ac_d sets the value in "#define NAME VALUE" lines.
8967 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8968 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8971 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8972 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8973 ac_uB
='\([ ]\)%\1#\2define\3'
8976 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8977 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8978 ac_eB
='$%\1#\2define\3'
8982 if test "${CONFIG_HEADERS+set}" != set; then
8984 cat >> $CONFIG_STATUS <<EOF
8985 CONFIG_HEADERS="config.h:config.in"
8987 cat >> $CONFIG_STATUS <<\EOF
8989 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8992 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8993 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8994 *) ac_file_in
="${ac_file}.in" ;;
8997 echo creating
$ac_file
8999 rm -f conftest.frag conftest.
in conftest.out
9000 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9001 cat $ac_file_inputs > conftest.
in
9005 # Transform confdefs.h into a sed script conftest.vals that substitutes
9006 # the proper values into config.h.in to produce config.h. And first:
9007 # Protect against being on the right side of a sed subst in config.status.
9008 # Protect against being in an unquoted here document in config.status.
9010 cat > conftest.hdr
<<\EOF
9013 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9017 sed -n -f conftest.hdr confdefs.h > conftest.vals
9020 # This sed command replaces #undef with comments. This is necessary, for
9021 # example, in the case of _POSIX_SOURCE, which is predefined and required
9022 # on some systems where configure will not decide to define it.
9023 cat >> conftest.vals <<\EOF
9024 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9027 # Break up conftest.vals because some shells have a limit on
9028 # the size of here documents, and old seds have small limits too.
9033 ac_lines=`grep -c . conftest.vals
`
9034 # grep -c gives empty output for an empty file on some AIX systems.
9035 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9036 # Write a limited-size here document to conftest.frag.
9037 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9038 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9040 sed -f conftest.frag conftest.in > conftest.out
9042 mv conftest.out conftest.in
9044 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9046 mv conftest.tail conftest.vals
9050 cat >> $CONFIG_STATUS <<\EOF
9051 rm -f conftest.frag conftest.h
9052 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9053 cat conftest.in >> conftest.h
9055 if cmp -s $ac_file conftest.h 2>/dev/null; then
9056 echo "$ac_file is unchanged"
9059 # Remove last slash and all that follows it. Not all systems have dirname.
9060 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9061 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9062 # The file is in a subdirectory.
9063 test ! -d "$ac_dir" && mkdir "$ac_dir"
9066 mv conftest.h $ac_file
9072 cat >> $CONFIG_STATUS <<EOF
9077 cat >> $CONFIG_STATUS <<\EOF
9078 srcdir=$ac_given_srcdir
9079 while test -n "$ac_sources"; do
9080 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9081 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9083 echo "linking $srcdir/$ac_source to $ac_dest"
9085 if test ! -r $srcdir/$ac_source; then
9086 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9090 # Make relative symlinks.
9091 # Remove last slash and all that follows it. Not all systems have dirname.
9092 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9093 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9094 # The dest file is in a subdirectory.
9095 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9096 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9097 # A "../" for each directory in $ac_dest_dir_suffix.
9098 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9100 ac_dest_dir_suffix= ac_dots=
9104 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9105 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9108 # Make a symlink if possible; otherwise try a hard link.
9109 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9110 ln $srcdir/$ac_source $ac_dest; then :
9112 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9116 cat >> $CONFIG_STATUS <<EOF
9118 gdb_host_cpu=$gdb_host_cpu
9119 gdb_target_cpu=$gdb_target_cpu
9120 nativefile=$nativefile
9123 cat >> $CONFIG_STATUS <<\EOF
9125 if test "${nativefile}" = ""; then
9126 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
9127 < Makefile > Makefile.tem
9128 mv -f Makefile.tem Makefile
9131 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9132 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9133 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9134 mv -f Makefile.tmp Makefile
9137 case x$CONFIG_HEADERS in
9138 xconfig.h:config.in)
9144 chmod +x $CONFIG_STATUS
9145 rm -fr confdefs* $ac_clean_files
9146 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9148 if test "$no_recursion" != yes; then
9150 # Remove --cache-file and --srcdir arguments so they do not pile up.
9151 ac_sub_configure_args=
9153 for ac_arg in $ac_configure_args; do
9154 if test -n "$ac_prev"; then
9159 -cache-file | --cache-file | --cache-fil | --cache-fi \
9160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9161 ac_prev=cache_file ;;
9162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9169 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9173 for ac_config_dir in $configdirs; do
9175 # Do not complain, so a configure script can configure whichever
9176 # parts of a large source tree are present.
9177 if test ! -d $srcdir/$ac_config_dir; then
9181 echo configuring in $ac_config_dir
9186 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9188 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9196 # A "../" for each directory in /$ac_config_dir.
9197 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9200 .) # No --srcdir option. We are building in place.
9201 ac_sub_srcdir=$srcdir ;;
9202 /*) # Absolute path.
9203 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9205 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9208 # Check for guested configure; otherwise get Cygnus style configure.
9209 if test -f $ac_sub_srcdir/configure; then
9210 ac_sub_configure=$ac_sub_srcdir/configure
9211 elif test -f $ac_sub_srcdir/configure.in; then
9212 ac_sub_configure=$ac_configure
9214 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9218 # The recursion is here.
9219 if test -n "$ac_sub_configure"; then
9221 # Make the cache file name correct relative to the subdirectory.
9222 case "$cache_file" in
9223 /*) ac_sub_cache_file=$cache_file ;;
9225 ac_sub_cache_file="$ac_dots$cache_file" ;;
9227 case "$ac_given_INSTALL" in
9228 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9229 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9232 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9233 # The eval makes quoting arguments work.
9234 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9237 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }