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 --enable-tui Enable full-screen terminal user interface"
30 --enable-netrom Enable NetROM support"
32 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
34 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
36 --with-mmalloc Use memory mapped malloc package"
38 --with-included-regex Use included regex"
40 --with-cpu=CPU Set the default CPU variant to debug"
42 --enable-gdbtk Enable GDBTK GUI front end"
44 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
46 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
48 --with-tclinclude=DIR Directory where tcl private headers are"
50 --with-tkinclude=DIR Directory where tk private headers are"
52 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
54 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
56 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
58 --with-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-shared Use shared libraries"
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
68 cache_file
=.
/config.cache
77 program_transform_name
=s
,x
,x
,
86 bindir
='${exec_prefix}/bin'
87 sbindir
='${exec_prefix}/sbin'
88 libexecdir
='${exec_prefix}/libexec'
89 datadir
='${prefix}/share'
90 sysconfdir
='${prefix}/etc'
91 sharedstatedir
='${prefix}/com'
92 localstatedir
='${prefix}/var'
93 libdir
='${exec_prefix}/lib'
94 includedir
='${prefix}/include'
95 oldincludedir
='/usr/include'
96 infodir
='${prefix}/info'
97 mandir
='${prefix}/man'
99 # Initialize some other variables.
102 SHELL
=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
128 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
129 bindir
="$ac_optarg" ;;
131 -build |
--build |
--buil |
--bui |
--bu)
133 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
134 build
="$ac_optarg" ;;
136 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
137 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
138 ac_prev
=cache_file
;;
139 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
140 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
141 cache_file
="$ac_optarg" ;;
143 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
145 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
147 datadir
="$ac_optarg" ;;
149 -disable-* |
--disable-*)
150 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* |
--enable-*)
159 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
172 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
173 |
--exec |
--exe |
--ex)
174 ac_prev
=exec_prefix
;;
175 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
176 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
177 |
--exec=* |
--exe=* |
--ex=*)
178 exec_prefix
="$ac_optarg" ;;
180 -gas |
--gas |
--ga |
--g)
181 # Obsolete; use --with-gas.
184 -help |
--help |
--hel |
--he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --site-file=FILE use FILE as the site file
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host |
--host |
--hos |
--ho)
242 -host=* |
--host=* |
--hos=* |
--ho=*)
245 -includedir |
--includedir |
--includedi |
--included |
--include \
246 |
--includ |
--inclu |
--incl |
--inc)
247 ac_prev
=includedir
;;
248 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
249 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
250 includedir
="$ac_optarg" ;;
252 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
254 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
255 infodir
="$ac_optarg" ;;
257 -libdir |
--libdir |
--libdi |
--libd)
259 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
260 libdir
="$ac_optarg" ;;
262 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
263 |
--libexe |
--libex |
--libe)
264 ac_prev
=libexecdir
;;
265 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
266 |
--libexe=* |
--libex=* |
--libe=*)
267 libexecdir
="$ac_optarg" ;;
269 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
270 |
--localstate |
--localstat |
--localsta |
--localst \
271 |
--locals |
--local |
--loca |
--loc |
--lo)
272 ac_prev
=localstatedir
;;
273 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
274 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
275 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
276 localstatedir
="$ac_optarg" ;;
278 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
280 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
281 mandir
="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
291 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
292 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
295 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
296 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
297 |
--oldin |
--oldi |
--old |
--ol |
--o)
298 ac_prev
=oldincludedir
;;
299 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
300 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
301 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
302 oldincludedir
="$ac_optarg" ;;
304 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
306 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
307 prefix
="$ac_optarg" ;;
309 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
310 |
--program-pre |
--program-pr |
--program-p)
311 ac_prev
=program_prefix
;;
312 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
313 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
314 program_prefix
="$ac_optarg" ;;
316 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
317 |
--program-suf |
--program-su |
--program-s)
318 ac_prev
=program_suffix
;;
319 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
320 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
321 program_suffix
="$ac_optarg" ;;
323 -program-transform-name |
--program-transform-name \
324 |
--program-transform-nam |
--program-transform-na \
325 |
--program-transform-n |
--program-transform- \
326 |
--program-transform |
--program-transfor \
327 |
--program-transfo |
--program-transf \
328 |
--program-trans |
--program-tran \
329 |
--progr-tra |
--program-tr |
--program-t)
330 ac_prev
=program_transform_name
;;
331 -program-transform-name=* |
--program-transform-name=* \
332 |
--program-transform-nam=* |
--program-transform-na=* \
333 |
--program-transform-n=* |
--program-transform-=* \
334 |
--program-transform=* |
--program-transfor=* \
335 |
--program-transfo=* |
--program-transf=* \
336 |
--program-trans=* |
--program-tran=* \
337 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
338 program_transform_name
="$ac_optarg" ;;
340 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
341 |
-silent |
--silent |
--silen |
--sile |
--sil)
344 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
346 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
348 sbindir
="$ac_optarg" ;;
350 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
351 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
352 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
354 ac_prev
=sharedstatedir
;;
355 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
356 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
357 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
359 sharedstatedir
="$ac_optarg" ;;
361 -site |
--site |
--sit)
363 -site=* |
--site=* |
--sit=*)
366 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
368 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
369 sitefile
="$ac_optarg" ;;
371 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
373 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
374 srcdir
="$ac_optarg" ;;
376 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
377 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
378 ac_prev
=sysconfdir
;;
379 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
380 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
381 sysconfdir
="$ac_optarg" ;;
383 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
385 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
386 target
="$ac_optarg" ;;
388 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
391 -version |
--version |
--versio |
--versi |
--vers)
392 echo "configure generated by autoconf version 2.13"
396 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package
=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* |
--without-*)
409 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
422 |
--x-incl |
--x-inc |
--x-in |
--x-i)
423 ac_prev
=x_includes
;;
424 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
425 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
426 x_includes
="$ac_optarg" ;;
428 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
429 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
430 ac_prev
=x_libraries
;;
431 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
432 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
433 x_libraries
="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE
; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c) ;;
485 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
486 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
487 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest
* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file
=main.c
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted
=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted
=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$sitefile"; then
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE
; then
539 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 CONFIG_SITE
="$sitefile"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
585 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
586 echo "configure:587: checking whether to enable maintainer-specific portions of Makefiles" >&5
587 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
588 if test "${enable_maintainer_mode+set}" = set; then
589 enableval
="$enable_maintainer_mode"
590 USE_MAINTAINER_MODE
=$enableval
592 USE_MAINTAINER_MODE
=no
595 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
598 if test $USE_MAINTAINER_MODE = yes; then
599 MAINTAINER_MODE_TRUE
=
600 MAINTAINER_MODE_FALSE
='#'
602 MAINTAINER_MODE_TRUE
='#'
603 MAINTAINER_MODE_FALSE
=
605 MAINT
=$MAINTAINER_MODE_TRUE
609 # Extract the first word of "gcc", so it can be a program name with args.
610 set dummy gcc
; ac_word
=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 if test -n "$CC"; then
617 ac_cv_prog_CC
="$CC" # Let the user override the test.
619 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
621 for ac_dir
in $ac_dummy; do
622 test -z "$ac_dir" && ac_dir
=.
623 if test -f $ac_dir/$ac_word; then
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
635 echo "$ac_t""no" 1>&6
638 if test -z "$CC"; then
639 # Extract the first word of "cc", so it can be a program name with args.
640 set dummy cc
; ac_word
=$2
641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
642 echo "configure:643: checking for $ac_word" >&5
643 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
646 if test -n "$CC"; then
647 ac_cv_prog_CC
="$CC" # Let the user override the test.
649 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
652 for ac_dir
in $ac_dummy; do
653 test -z "$ac_dir" && ac_dir
=.
654 if test -f $ac_dir/$ac_word; then
655 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
664 if test $ac_prog_rejected = yes; then
665 # We found a bogon in the path, so make sure we never use it.
666 set dummy
$ac_cv_prog_CC
668 if test $# -gt 0; then
669 # We chose a different compiler from the bogus one.
670 # However, it has the same basename, so the bogon will be chosen
671 # first if we set CC to just the basename; use the full file name.
673 set dummy
"$ac_dir/$ac_word" "$@"
681 if test -n "$CC"; then
682 echo "$ac_t""$CC" 1>&6
684 echo "$ac_t""no" 1>&6
687 if test -z "$CC"; then
690 # Extract the first word of "cl", so it can be a program name with args.
691 set dummy cl
; ac_word
=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 if test -n "$CC"; then
698 ac_cv_prog_CC
="$CC" # Let the user override the test.
700 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
702 for ac_dir
in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir
=.
704 if test -f $ac_dir/$ac_word; then
713 if test -n "$CC"; then
714 echo "$ac_t""$CC" 1>&6
716 echo "$ac_t""no" 1>&6
721 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
724 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
725 echo "configure:726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
729 ac_cpp
='$CPP $CPPFLAGS'
730 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
731 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
732 cross_compiling
=$ac_cv_prog_cc_cross
734 cat > conftest.
$ac_ext << EOF
736 #line 737 "configure"
737 #include "confdefs.h"
741 if { (eval echo configure
:742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
742 ac_cv_prog_cc_works
=yes
743 # If we can't run a trivial program, we are probably using a cross compiler.
744 if (.
/conftest
; exit) 2>/dev
/null
; then
745 ac_cv_prog_cc_cross
=no
747 ac_cv_prog_cc_cross
=yes
750 echo "configure: failed program was:" >&5
751 cat conftest.
$ac_ext >&5
752 ac_cv_prog_cc_works
=no
756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757 ac_cpp
='$CPP $CPPFLAGS'
758 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760 cross_compiling
=$ac_cv_prog_cc_cross
762 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
763 if test $ac_cv_prog_cc_works = no
; then
764 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
767 echo "configure:768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
768 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
769 cross_compiling
=$ac_cv_prog_cc_cross
771 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
772 echo "configure:773: checking whether we are using GNU C" >&5
773 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 cat > conftest.c
<<EOF
781 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
788 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
790 if test $ac_cv_prog_gcc = yes; then
796 ac_test_CFLAGS
="${CFLAGS+set}"
797 ac_save_CFLAGS
="$CFLAGS"
799 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
800 echo "configure:801: checking whether ${CC-cc} accepts -g" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 echo 'void f(){}' > conftest.c
805 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
814 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
815 if test "$ac_test_CFLAGS" = set; then
816 CFLAGS
="$ac_save_CFLAGS"
817 elif test $ac_cv_prog_cc_g = yes; then
818 if test "$GCC" = yes; then
824 if test "$GCC" = yes; then
831 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
832 echo "configure:833: checking how to run the C preprocessor" >&5
833 # On Suns, sometimes $CPP names a directory.
834 if test -n "$CPP" && test -d "$CPP"; then
837 if test -z "$CPP"; then
838 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 # This must be in double quotes, not single quotes, because CPP may get
842 # substituted into the Makefile and "${CC-cc}" will confuse make.
844 # On the NeXT, cc -E runs the code through the compiler's parser,
845 # not just through cpp.
846 cat > conftest.
$ac_ext <<EOF
847 #line 848 "configure"
848 #include "confdefs.h"
852 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
853 { (eval echo configure
:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
854 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
855 if test -z "$ac_err"; then
859 echo "configure: failed program was:" >&5
860 cat conftest.
$ac_ext >&5
862 CPP
="${CC-cc} -E -traditional-cpp"
863 cat > conftest.
$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
869 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
870 { (eval echo configure
:871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
871 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
872 if test -z "$ac_err"; then
876 echo "configure: failed program was:" >&5
877 cat conftest.
$ac_ext >&5
879 CPP
="${CC-cc} -nologo -E"
880 cat > conftest.
$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
887 { (eval echo configure
:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
889 if test -z "$ac_err"; then
893 echo "configure: failed program was:" >&5
894 cat conftest.
$ac_ext >&5
903 ac_cv_prog_CPP
="$CPP"
905 CPP
="$ac_cv_prog_CPP"
907 ac_cv_prog_CPP
="$CPP"
909 echo "$ac_t""$CPP" 1>&6
911 echo $ac_n "checking for AIX""... $ac_c" 1>&6
912 echo "configure:913: checking for AIX" >&5
913 cat > conftest.
$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
922 egrep "yes" >/dev
/null
2>&1; then
924 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
925 #define _ALL_SOURCE 1
930 echo "$ac_t""no" 1>&6
935 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
936 echo "configure:937: checking for POSIXized ISC" >&5
937 if test -d /etc
/conf
/kconfig.d
&&
938 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
940 echo "$ac_t""yes" 1>&6
941 ISC
=yes # If later tests want to check for ISC.
942 cat >> confdefs.h
<<\EOF
943 #define _POSIX_SOURCE 1
946 if test "$GCC" = yes; then
952 echo "$ac_t""no" 1>&6
959 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
960 echo "configure:961: checking for ${CC-cc} option to accept ANSI C" >&5
961 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 am_cv_prog_cc_stdc
=no
966 # Don't try gcc -ansi; that turns off useful extensions and
967 # breaks some systems' header files.
969 # Ultrix and OSF/1 -std1
970 # HP-UX -Aa -D_HPUX_SOURCE
971 # SVR4 -Xc -D__EXTENSIONS__
972 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
974 CC
="$ac_save_CC $ac_arg"
975 cat > conftest.
$ac_ext <<EOF
976 #line 977 "configure"
977 #include "confdefs.h"
980 #include <sys/types.h>
981 #include <sys/stat.h>
982 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
983 struct buf { int x; };
984 FILE * (*rcsopen) (struct buf *, struct stat *, int);
985 static char *e (p, i)
991 static char *f (char * (*g) (char **, int), char **p, ...)
996 s = g (p, va_arg (v,int));
1000 int test (int i, double x);
1001 struct s1 {int (*f) (int a);};
1002 struct s2 {int (*f) (double a);};
1003 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1009 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1013 if { (eval echo configure
:1014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1015 am_cv_prog_cc_stdc
="$ac_arg"; break
1017 echo "configure: failed program was:" >&5
1018 cat conftest.
$ac_ext >&5
1026 if test -z "$am_cv_prog_cc_stdc"; then
1027 echo "$ac_t""none needed" 1>&6
1029 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1031 case "x$am_cv_prog_cc_stdc" in
1033 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1038 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1039 if test -f $ac_dir/install-sh
; then
1041 ac_install_sh
="$ac_aux_dir/install-sh -c"
1043 elif test -f $ac_dir/install.sh
; then
1045 ac_install_sh
="$ac_aux_dir/install.sh -c"
1049 if test -z "$ac_aux_dir"; then
1050 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1052 ac_config_guess
=$ac_aux_dir/config.guess
1053 ac_config_sub
=$ac_aux_dir/config.sub
1054 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1057 # Do some error checking and defaulting for the host and target type.
1059 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1062 # 1. You are not allowed to specify --host, --target, and nonopt at the
1064 # 2. Host defaults to nonopt.
1065 # 3. If nonopt is not specified, then host defaults to the current host,
1066 # as determined by config.guess.
1067 # 4. Target and build default to nonopt.
1068 # 5. If nonopt is not specified, then target and build default to host.
1070 # The aliases save the names the user supplied, while $host etc.
1071 # will get canonicalized.
1072 case $host---$target---$nonopt in
1073 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1074 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1078 # Make sure we can run config.sub.
1079 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1080 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1083 echo $ac_n "checking host system type""... $ac_c" 1>&6
1084 echo "configure:1085: checking host system type" >&5
1087 case "$host_alias" in
1091 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1092 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1094 *) host_alias
=$nonopt ;;
1098 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1099 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1100 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1101 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1102 echo "$ac_t""$host" 1>&6
1104 echo $ac_n "checking target system type""... $ac_c" 1>&6
1105 echo "configure:1106: checking target system type" >&5
1107 target_alias
=$target
1108 case "$target_alias" in
1111 NONE
) target_alias
=$host_alias ;;
1112 *) target_alias
=$nonopt ;;
1116 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1117 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1118 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1119 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1120 echo "$ac_t""$target" 1>&6
1122 echo $ac_n "checking build system type""... $ac_c" 1>&6
1123 echo "configure:1124: checking build system type" >&5
1126 case "$build_alias" in
1129 NONE
) build_alias
=$host_alias ;;
1130 *) build_alias
=$nonopt ;;
1134 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1135 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1136 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1137 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1138 echo "$ac_t""$build" 1>&6
1140 test "$host_alias" != "$target_alias" &&
1141 test "$program_prefix$program_suffix$program_transform_name" = \
1143 program_prefix
=${target_alias}-
1147 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${MAKE-make} sets \${MAKE}" >&5
1149 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1150 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftestmake
<<\EOF
1155 @
echo 'ac_maketemp="${MAKE}"'
1157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1158 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1159 if test -n "$ac_maketemp"; then
1160 eval ac_cv_prog_make_
${ac_make}_set
=yes
1162 eval ac_cv_prog_make_
${ac_make}_set
=no
1166 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1170 echo "$ac_t""no" 1>&6
1171 SET_MAKE
="MAKE=${MAKE-make}"
1174 # Extract the first word of "ranlib", so it can be a program name with args.
1175 set dummy ranlib
; ac_word
=$2
1176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1177 echo "configure:1178: checking for $ac_word" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 if test -n "$RANLIB"; then
1182 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1186 for ac_dir
in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir
=.
1188 if test -f $ac_dir/$ac_word; then
1189 ac_cv_prog_RANLIB
="ranlib"
1194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1197 RANLIB
="$ac_cv_prog_RANLIB"
1198 if test -n "$RANLIB"; then
1199 echo "$ac_t""$RANLIB" 1>&6
1201 echo "$ac_t""no" 1>&6
1204 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1205 echo "configure:1206: checking for ANSI C header files" >&5
1206 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 cat > conftest.
$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1217 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure
:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1222 ac_cv_header_stdc
=yes
1225 echo "configure: failed program was:" >&5
1226 cat conftest.
$ac_ext >&5
1228 ac_cv_header_stdc
=no
1232 if test $ac_cv_header_stdc = yes; then
1233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1234 cat > conftest.
$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1240 egrep "memchr" >/dev
/null
2>&1; then
1244 ac_cv_header_stdc
=no
1250 if test $ac_cv_header_stdc = yes; then
1251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1252 cat > conftest.
$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1258 egrep "free" >/dev
/null
2>&1; then
1262 ac_cv_header_stdc
=no
1268 if test $ac_cv_header_stdc = yes; then
1269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1270 if test "$cross_compiling" = yes; then
1273 cat > conftest.
$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1277 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1278 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1280 int main () { int i; for (i = 0; i < 256; i++)
1281 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1285 if { (eval echo configure
:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1289 echo "configure: failed program was:" >&5
1290 cat conftest.
$ac_ext >&5
1292 ac_cv_header_stdc
=no
1300 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1301 if test $ac_cv_header_stdc = yes; then
1302 cat >> confdefs.h
<<\EOF
1303 #define STDC_HEADERS 1
1308 echo $ac_n "checking for working const""... $ac_c" 1>&6
1309 echo "configure:1310: checking for working const" >&5
1310 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftest.
$ac_ext <<EOF
1314 #line 1315 "configure"
1315 #include "confdefs.h"
1319 /* Ultrix mips cc rejects this. */
1320 typedef int charset[2]; const charset x;
1321 /* SunOS 4.1.1 cc rejects this. */
1322 char const *const *ccp;
1324 /* NEC SVR4.0.2 mips cc rejects this. */
1325 struct point {int x, y;};
1326 static struct point const zero = {0,0};
1327 /* AIX XL C 1.02.0.0 rejects this.
1328 It does not let you subtract one const X* pointer from another in an arm
1329 of an if-expression whose if-part is not a constant expression */
1330 const char *g = "string";
1331 ccp = &g + (g ? g-g : 0);
1332 /* HPUX 7.0 cc rejects these. */
1335 ccp = (char const *const *) p;
1336 { /* SCO 3.2v4 cc rejects this. */
1338 char const *s = 0 ? (char *) 0 : (char const *) 0;
1342 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1344 const int *foo = &x[0];
1347 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1348 typedef const int *iptr;
1352 { /* AIX XL C 1.02.0.0 rejects this saying
1353 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1354 struct s { int j; const int *ap[3]; };
1355 struct s *b; b->j = 5;
1357 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1363 if { (eval echo configure
:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367 echo "configure: failed program was:" >&5
1368 cat conftest.
$ac_ext >&5
1375 echo "$ac_t""$ac_cv_c_const" 1>&6
1376 if test $ac_cv_c_const = no
; then
1377 cat >> confdefs.h
<<\EOF
1383 echo $ac_n "checking for inline""... $ac_c" 1>&6
1384 echo "configure:1385: checking for inline" >&5
1385 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1389 for ac_kw
in inline __inline__ __inline
; do
1390 cat > conftest.
$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1398 if { (eval echo configure
:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 ac_cv_c_inline
=$ac_kw; break
1402 echo "configure: failed program was:" >&5
1403 cat conftest.
$ac_ext >&5
1410 echo "$ac_t""$ac_cv_c_inline" 1>&6
1411 case "$ac_cv_c_inline" in
1413 no
) cat >> confdefs.h
<<\EOF
1417 *) cat >> confdefs.h
<<EOF
1418 #define inline $ac_cv_c_inline
1423 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1424 echo "configure:1425: checking for off_t" >&5
1425 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 cat > conftest.
$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 #include <sys/types.h>
1437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1438 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1440 ac_cv_type_off_t
=yes
1448 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1449 if test $ac_cv_type_off_t = no
; then
1450 cat >> confdefs.h
<<\EOF
1456 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1457 echo "configure:1458: checking for size_t" >&5
1458 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 cat > conftest.
$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 #include <sys/types.h>
1470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1471 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1473 ac_cv_type_size_t
=yes
1476 ac_cv_type_size_t
=no
1481 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1482 if test $ac_cv_type_size_t = no
; then
1483 cat >> confdefs.h
<<\EOF
1484 #define size_t unsigned
1489 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1490 # for constant arguments. Useless!
1491 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1492 echo "configure:1493: checking for working alloca.h" >&5
1493 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.
$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1501 char *p = alloca(2 * sizeof(int));
1504 if { (eval echo configure
:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1506 ac_cv_header_alloca_h
=yes
1508 echo "configure: failed program was:" >&5
1509 cat conftest.
$ac_ext >&5
1511 ac_cv_header_alloca_h
=no
1516 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1517 if test $ac_cv_header_alloca_h = yes; then
1518 cat >> confdefs.h
<<\EOF
1519 #define HAVE_ALLOCA_H 1
1524 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1525 echo "configure:1526: checking for alloca" >&5
1526 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.
$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1534 # define alloca __builtin_alloca
1537 # include <malloc.h>
1538 # define alloca _alloca
1541 # include <alloca.h>
1546 # ifndef alloca /* predefined by HP cc +Olibcalls */
1555 char *p = (char *) alloca(1);
1558 if { (eval echo configure
:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1560 ac_cv_func_alloca_works
=yes
1562 echo "configure: failed program was:" >&5
1563 cat conftest.
$ac_ext >&5
1565 ac_cv_func_alloca_works
=no
1570 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1571 if test $ac_cv_func_alloca_works = yes; then
1572 cat >> confdefs.h
<<\EOF
1573 #define HAVE_ALLOCA 1
1578 if test $ac_cv_func_alloca_works = no
; then
1579 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1580 # that cause trouble. Some versions do not even contain alloca or
1581 # contain a buggy version. If you still want to use their alloca,
1582 # use ar to extract alloca.o from them instead of compiling alloca.c.
1583 ALLOCA
=alloca.
${ac_objext}
1584 cat >> confdefs.h
<<\EOF
1589 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether alloca needs Cray hooks" >&5
1591 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 #if defined(CRAY) && ! defined(CRAY2)
1604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1605 egrep "webecray" >/dev
/null
2>&1; then
1616 echo "$ac_t""$ac_cv_os_cray" 1>&6
1617 if test $ac_cv_os_cray = yes; then
1618 for ac_func
in _getb67 GETB67 getb67
; do
1619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_func" >&5
1621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* System header to define __stub macros and hopefully few prototypes,
1628 which can conflict with char $ac_func(); below. */
1630 /* Override any gcc2 internal prototype to avoid an error. */
1631 /* We use char because int might match the return type of a gcc2
1632 builtin and then its argument prototype would still apply. */
1637 /* The GNU C library defines this for functions which it implements
1638 to always fail with ENOSYS. Some functions are actually named
1639 something starting with __ and the normal name is an alias. */
1640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1648 if { (eval echo configure
:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1650 eval "ac_cv_func_$ac_func=yes"
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1655 eval "ac_cv_func_$ac_func=no"
1660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 cat >> confdefs.h
<<EOF
1663 #define CRAY_STACKSEG_END $ac_func
1668 echo "$ac_t""no" 1>&6
1674 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1675 echo "configure:1676: checking stack direction for C alloca" >&5
1676 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 if test "$cross_compiling" = yes; then
1680 ac_cv_c_stack_direction
=0
1682 cat > conftest.
$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 find_stack_direction ()
1687 static char *addr = 0;
1692 return find_stack_direction ();
1695 return (&dummy > addr) ? 1 : -1;
1699 exit (find_stack_direction() < 0);
1702 if { (eval echo configure
:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1704 ac_cv_c_stack_direction
=1
1706 echo "configure: failed program was:" >&5
1707 cat conftest.
$ac_ext >&5
1709 ac_cv_c_stack_direction
=-1
1716 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1717 cat >> confdefs.h
<<EOF
1718 #define STACK_DIRECTION $ac_cv_c_stack_direction
1723 for ac_hdr
in unistd.h
1725 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1727 echo "configure:1728: checking for $ac_hdr" >&5
1728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1737 { (eval echo configure
:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1738 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1739 if test -z "$ac_err"; then
1741 eval "ac_cv_header_$ac_safe=yes"
1744 echo "configure: failed program was:" >&5
1745 cat conftest.
$ac_ext >&5
1747 eval "ac_cv_header_$ac_safe=no"
1751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1753 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1754 cat >> confdefs.h
<<EOF
1755 #define $ac_tr_hdr 1
1759 echo "$ac_t""no" 1>&6
1763 for ac_func
in getpagesize
1765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_func" >&5
1767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $ac_func(); below. */
1776 /* Override any gcc2 internal prototype to avoid an error. */
1777 /* We use char because int might match the return type of a gcc2
1778 builtin and then its argument prototype would still apply. */
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1794 if { (eval echo configure
:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1796 eval "ac_cv_func_$ac_func=yes"
1798 echo "configure: failed program was:" >&5
1799 cat conftest.
$ac_ext >&5
1801 eval "ac_cv_func_$ac_func=no"
1806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1807 echo "$ac_t""yes" 1>&6
1808 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1809 cat >> confdefs.h
<<EOF
1810 #define $ac_tr_func 1
1814 echo "$ac_t""no" 1>&6
1818 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1819 echo "configure:1820: checking for working mmap" >&5
1820 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test "$cross_compiling" = yes; then
1824 ac_cv_func_mmap_fixed_mapped
=no
1826 cat > conftest.
$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1830 /* Thanks to Mike Haertel and Jim Avera for this test.
1831 Here is a matrix of mmap possibilities:
1832 mmap private not fixed
1833 mmap private fixed at somewhere currently unmapped
1834 mmap private fixed at somewhere already mapped
1835 mmap shared not fixed
1836 mmap shared fixed at somewhere currently unmapped
1837 mmap shared fixed at somewhere already mapped
1838 For private mappings, we should verify that changes cannot be read()
1839 back from the file, nor mmap's back from the file at a different
1840 address. (There have been systems where private was not correctly
1841 implemented like the infamous i386 svr4.0, and systems where the
1842 VM page cache was not coherent with the filesystem buffer cache
1843 like early versions of FreeBSD and possibly contemporary NetBSD.)
1844 For shared mappings, we should conversely verify that changes get
1845 propogated back to all the places they're supposed to be.
1847 Grep wants private fixed already mapped.
1848 The main things grep needs to know about mmap are:
1849 * does it exist and is it safe to write into the mmap'd area
1850 * how to use it (BSD variants) */
1851 #include <sys/types.h>
1853 #include <sys/mman.h>
1855 /* This mess was copied from the GNU getpagesize.h. */
1856 #ifndef HAVE_GETPAGESIZE
1857 # ifdef HAVE_UNISTD_H
1858 # include <unistd.h>
1861 /* Assume that all systems that can run configure have sys/param.h. */
1862 # ifndef HAVE_SYS_PARAM_H
1863 # define HAVE_SYS_PARAM_H 1
1866 # ifdef _SC_PAGESIZE
1867 # define getpagesize() sysconf(_SC_PAGESIZE)
1868 # else /* no _SC_PAGESIZE */
1869 # ifdef HAVE_SYS_PARAM_H
1870 # include <sys/param.h>
1871 # ifdef EXEC_PAGESIZE
1872 # define getpagesize() EXEC_PAGESIZE
1873 # else /* no EXEC_PAGESIZE */
1875 # define getpagesize() NBPG * CLSIZE
1878 # endif /* no CLSIZE */
1879 # else /* no NBPG */
1881 # define getpagesize() NBPC
1882 # else /* no NBPC */
1884 # define getpagesize() PAGESIZE
1885 # endif /* PAGESIZE */
1886 # endif /* no NBPC */
1887 # endif /* no NBPG */
1888 # endif /* no EXEC_PAGESIZE */
1889 # else /* no HAVE_SYS_PARAM_H */
1890 # define getpagesize() 8192 /* punt totally */
1891 # endif /* no HAVE_SYS_PARAM_H */
1892 # endif /* no _SC_PAGESIZE */
1894 #endif /* no HAVE_GETPAGESIZE */
1897 extern "C" { void *malloc(unsigned); }
1905 char *data, *data2, *data3;
1909 pagesize = getpagesize();
1912 * First, make a file with some known garbage in it.
1914 data = malloc(pagesize);
1917 for (i = 0; i < pagesize; ++i)
1918 *(data + i) = rand();
1920 fd = creat("conftestmmap", 0600);
1923 if (write(fd, data, pagesize) != pagesize)
1928 * Next, try to mmap the file at a fixed address which
1929 * already has something else allocated at it. If we can,
1930 * also make sure that we see the same garbage.
1932 fd = open("conftestmmap", O_RDWR);
1935 data2 = malloc(2 * pagesize);
1938 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1939 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1940 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1942 for (i = 0; i < pagesize; ++i)
1943 if (*(data + i) != *(data2 + i))
1947 * Finally, make sure that changes to the mapped area
1948 * do not percolate back to the file as seen by read().
1949 * (This is a bug on some variants of i386 svr4.0.)
1951 for (i = 0; i < pagesize; ++i)
1952 *(data2 + i) = *(data2 + i) + 1;
1953 data3 = malloc(pagesize);
1956 if (read(fd, data3, pagesize) != pagesize)
1958 for (i = 0; i < pagesize; ++i)
1959 if (*(data + i) != *(data3 + i))
1962 unlink("conftestmmap");
1967 if { (eval echo configure
:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1969 ac_cv_func_mmap_fixed_mapped
=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.
$ac_ext >&5
1974 ac_cv_func_mmap_fixed_mapped
=no
1981 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1982 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1983 cat >> confdefs.h
<<\EOF
1990 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1991 unistd.h values.h sys
/param.h
1993 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1995 echo "configure:1996: checking for $ac_hdr" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.
$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2005 { (eval echo configure
:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2007 if test -z "$ac_err"; then
2009 eval "ac_cv_header_$ac_safe=yes"
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2015 eval "ac_cv_header_$ac_safe=no"
2019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2020 echo "$ac_t""yes" 1>&6
2021 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2022 cat >> confdefs.h
<<EOF
2023 #define $ac_tr_hdr 1
2027 echo "$ac_t""no" 1>&6
2031 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2032 __argz_count __argz_stringify __argz_next
2034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_func" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 /* System header to define __stub macros and hopefully few prototypes,
2043 which can conflict with char $ac_func(); below. */
2045 /* Override any gcc2 internal prototype to avoid an error. */
2046 /* We use char because int might match the return type of a gcc2
2047 builtin and then its argument prototype would still apply. */
2052 /* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2063 if { (eval echo configure
:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2065 eval "ac_cv_func_$ac_func=yes"
2067 echo "configure: failed program was:" >&5
2068 cat conftest.
$ac_ext >&5
2070 eval "ac_cv_func_$ac_func=no"
2075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2077 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2078 cat >> confdefs.h
<<EOF
2079 #define $ac_tr_func 1
2083 echo "$ac_t""no" 1>&6
2088 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2089 for ac_func
in stpcpy
2091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_func" >&5
2093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.
$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 /* System header to define __stub macros and hopefully few prototypes,
2100 which can conflict with char $ac_func(); below. */
2102 /* Override any gcc2 internal prototype to avoid an error. */
2103 /* We use char because int might match the return type of a gcc2
2104 builtin and then its argument prototype would still apply. */
2109 /* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2120 if { (eval echo configure
:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2122 eval "ac_cv_func_$ac_func=yes"
2124 echo "configure: failed program was:" >&5
2125 cat conftest.
$ac_ext >&5
2127 eval "ac_cv_func_$ac_func=no"
2132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2133 echo "$ac_t""yes" 1>&6
2134 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2135 cat >> confdefs.h
<<EOF
2136 #define $ac_tr_func 1
2140 echo "$ac_t""no" 1>&6
2145 if test "${ac_cv_func_stpcpy}" = "yes"; then
2146 cat >> confdefs.h
<<\EOF
2147 #define HAVE_STPCPY 1
2152 if test $ac_cv_header_locale_h = yes; then
2153 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2154 echo "configure:2155: checking for LC_MESSAGES" >&5
2155 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 cat > conftest.
$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2166 if { (eval echo configure
:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2168 am_cv_val_LC_MESSAGES
=yes
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 am_cv_val_LC_MESSAGES
=no
2178 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2179 if test $am_cv_val_LC_MESSAGES = yes; then
2180 cat >> confdefs.h
<<\EOF
2181 #define HAVE_LC_MESSAGES 1
2186 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether NLS is requested" >&5
2188 # Check whether --enable-nls or --disable-nls was given.
2189 if test "${enable_nls+set}" = set; then
2190 enableval
="$enable_nls"
2196 echo "$ac_t""$USE_NLS" 1>&6
2199 USE_INCLUDED_LIBINTL
=no
2201 if test "$USE_NLS" = "yes"; then
2202 cat >> confdefs.h
<<\EOF
2203 #define ENABLE_NLS 1
2206 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2207 echo "configure:2208: checking whether included gettext is requested" >&5
2208 # Check whether --with-included-gettext or --without-included-gettext was given.
2209 if test "${with_included_gettext+set}" = set; then
2210 withval
="$with_included_gettext"
2211 nls_cv_force_use_gnu_gettext
=$withval
2213 nls_cv_force_use_gnu_gettext
=no
2216 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2218 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2219 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2221 nls_cv_header_libgt
=
2224 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2225 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2226 echo "configure:2227: checking for libintl.h" >&5
2227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.
$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <libintl.h>
2235 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2236 { (eval echo configure
:2237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2237 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2238 if test -z "$ac_err"; then
2240 eval "ac_cv_header_$ac_safe=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2246 eval "ac_cv_header_$ac_safe=no"
2250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2253 echo "configure:2254: checking for gettext in libc" >&5
2254 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 cat > conftest.
$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 #include <libintl.h>
2262 return (int) gettext ("")
2265 if { (eval echo configure
:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2267 gt_cv_func_gettext_libc
=yes
2269 echo "configure: failed program was:" >&5
2270 cat conftest.
$ac_ext >&5
2272 gt_cv_func_gettext_libc
=no
2277 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2279 if test "$gt_cv_func_gettext_libc" != "yes"; then
2280 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2281 echo "configure:2282: checking for bindtextdomain in -lintl" >&5
2282 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 ac_save_LIBS
="$LIBS"
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* Override any gcc2 internal prototype to avoid an error. */
2292 /* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2294 char bindtextdomain();
2300 if { (eval echo configure
:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2302 eval "ac_cv_lib_$ac_lib_var=yes"
2304 echo "configure: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2307 eval "ac_cv_lib_$ac_lib_var=no"
2310 LIBS
="$ac_save_LIBS"
2313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2316 echo "configure:2317: checking for gettext in libintl" >&5
2317 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.
$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 return (int) gettext ("")
2328 if { (eval echo configure
:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2330 gt_cv_func_gettext_libintl
=yes
2332 echo "configure: failed program was:" >&5
2333 cat conftest.
$ac_ext >&5
2335 gt_cv_func_gettext_libintl
=no
2340 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2342 echo "$ac_t""no" 1>&6
2347 if test "$gt_cv_func_gettext_libc" = "yes" \
2348 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2349 cat >> confdefs.h
<<\EOF
2350 #define HAVE_GETTEXT 1
2353 # Extract the first word of "msgfmt", so it can be a program name with args.
2354 set dummy msgfmt
; ac_word
=$2
2355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_word" >&5
2357 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2362 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2365 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2366 for ac_dir
in $PATH; do
2367 test -z "$ac_dir" && ac_dir
=.
2368 if test -f $ac_dir/$ac_word; then
2369 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2370 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2376 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2380 MSGFMT
="$ac_cv_path_MSGFMT"
2381 if test -n "$MSGFMT"; then
2382 echo "$ac_t""$MSGFMT" 1>&6
2384 echo "$ac_t""no" 1>&6
2386 if test "$MSGFMT" != "no"; then
2387 for ac_func
in dcgettext
2389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2390 echo "configure:2391: checking for $ac_func" >&5
2391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.
$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 /* System header to define __stub macros and hopefully few prototypes,
2398 which can conflict with char $ac_func(); below. */
2400 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2407 /* The GNU C library defines this for functions which it implements
2408 to always fail with ENOSYS. Some functions are actually named
2409 something starting with __ and the normal name is an alias. */
2410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2418 if { (eval echo configure
:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2420 eval "ac_cv_func_$ac_func=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.
$ac_ext >&5
2425 eval "ac_cv_func_$ac_func=no"
2430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2431 echo "$ac_t""yes" 1>&6
2432 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2433 cat >> confdefs.h
<<EOF
2434 #define $ac_tr_func 1
2438 echo "$ac_t""no" 1>&6
2442 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2443 set dummy gmsgfmt
; ac_word
=$2
2444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2445 echo "configure:2446: checking for $ac_word" >&5
2446 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2451 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2454 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2457 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2459 for ac_dir
in $ac_dummy; do
2460 test -z "$ac_dir" && ac_dir
=.
2461 if test -f $ac_dir/$ac_word; then
2462 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2467 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2471 GMSGFMT
="$ac_cv_path_GMSGFMT"
2472 if test -n "$GMSGFMT"; then
2473 echo "$ac_t""$GMSGFMT" 1>&6
2475 echo "$ac_t""no" 1>&6
2478 # Extract the first word of "xgettext", so it can be a program name with args.
2479 set dummy xgettext
; ac_word
=$2
2480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2481 echo "configure:2482: checking for $ac_word" >&5
2482 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2487 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2490 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2491 for ac_dir
in $PATH; do
2492 test -z "$ac_dir" && ac_dir
=.
2493 if test -f $ac_dir/$ac_word; then
2494 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2495 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2501 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2505 XGETTEXT
="$ac_cv_path_XGETTEXT"
2506 if test -n "$XGETTEXT"; then
2507 echo "$ac_t""$XGETTEXT" 1>&6
2509 echo "$ac_t""no" 1>&6
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 extern int _nl_msg_cat_cntr;
2518 return _nl_msg_cat_cntr
2521 if { (eval echo configure
:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2526 echo "configure: failed program was:" >&5
2527 cat conftest.
$ac_ext >&5
2538 echo "$ac_t""no" 1>&6
2543 if test "$CATOBJEXT" = "NONE"; then
2544 nls_cv_use_gnu_gettext
=yes
2548 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2549 INTLOBJS
="\$(GETTOBJS)"
2550 # Extract the first word of "msgfmt", so it can be a program name with args.
2551 set dummy msgfmt
; ac_word
=$2
2552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_word" >&5
2554 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2559 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2562 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2563 for ac_dir
in $PATH; do
2564 test -z "$ac_dir" && ac_dir
=.
2565 if test -f $ac_dir/$ac_word; then
2566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2567 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2573 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2577 MSGFMT
="$ac_cv_path_MSGFMT"
2578 if test -n "$MSGFMT"; then
2579 echo "$ac_t""$MSGFMT" 1>&6
2581 echo "$ac_t""no" 1>&6
2584 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2585 set dummy gmsgfmt
; ac_word
=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2593 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2596 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2601 for ac_dir
in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir
=.
2603 if test -f $ac_dir/$ac_word; then
2604 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2609 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2613 GMSGFMT
="$ac_cv_path_GMSGFMT"
2614 if test -n "$GMSGFMT"; then
2615 echo "$ac_t""$GMSGFMT" 1>&6
2617 echo "$ac_t""no" 1>&6
2620 # Extract the first word of "xgettext", so it can be a program name with args.
2621 set dummy xgettext
; ac_word
=$2
2622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_word" >&5
2624 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2629 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2632 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2633 for ac_dir
in $PATH; do
2634 test -z "$ac_dir" && ac_dir
=.
2635 if test -f $ac_dir/$ac_word; then
2636 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2637 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2643 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2647 XGETTEXT
="$ac_cv_path_XGETTEXT"
2648 if test -n "$XGETTEXT"; then
2649 echo "$ac_t""$XGETTEXT" 1>&6
2651 echo "$ac_t""no" 1>&6
2655 USE_INCLUDED_LIBINTL
=yes
2659 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2661 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2662 nls_cv_header_intl
=libintl.h
2663 nls_cv_header_libgt
=libgettext.h
2666 if test "$XGETTEXT" != ":"; then
2667 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2670 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2675 # We need to process the po/ directory.
2679 nls_cv_header_intl
=libintl.h
2680 nls_cv_header_libgt
=libgettext.h
2683 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2684 # because some of the sources are only built for this goal.
2685 if test "$PACKAGE" = gettext; then
2687 USE_INCLUDED_LIBINTL
=yes
2690 for lang
in $ALL_LINGUAS; do
2691 GMOFILES
="$GMOFILES $lang.gmo"
2692 POFILES
="$POFILES $lang.po"
2708 if test "x$CATOBJEXT" != "x"; then
2709 if test "x$ALL_LINGUAS" = "x"; then
2712 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2713 echo "configure:2714: checking for catalogs to be installed" >&5
2715 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2716 case "$ALL_LINGUAS" in
2717 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2720 LINGUAS
=$NEW_LINGUAS
2721 echo "$ac_t""$LINGUAS" 1>&6
2724 if test -n "$LINGUAS"; then
2725 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2729 if test $ac_cv_header_locale_h = yes; then
2730 INCLUDE_LOCALE_H
="#include <locale.h>"
2733 /* The system does not provide the header <locale.h>. Take care yourself. */"
2737 if test -f $srcdir/po2tbl.
sed.
in; then
2738 if test "$CATOBJEXT" = ".cat"; then
2739 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2741 echo "configure:2742: checking for linux/version.h" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 #include <linux/version.h>
2750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure
:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2755 eval "ac_cv_header_$ac_safe=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2761 eval "ac_cv_header_$ac_safe=no"
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2769 echo "$ac_t""no" 1>&6
2774 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2776 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2777 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2780 if test "$PACKAGE" = "gettext"; then
2790 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2796 if test -d $srcdir/po
; then
2797 test -d po || mkdir po
2798 if test "x$srcdir" != "x."; then
2799 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2800 posrcprefix
="$srcdir/"
2802 posrcprefix
="../$srcdir/"
2808 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2809 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2825 configdirs
="doc testsuite"
2827 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2828 if test "${enable_multi_ice+set}" = set; then
2829 enableval
="$enable_multi_ice"
2830 case "${enableval}" in
2831 yes ) enable_multi_ice
="yes" ;;
2832 no
) enable_multi_ice
="no" ;;
2833 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2839 if test "${enable_multi_ice}" = "yes"; then
2840 configdirs
="${configdirs} multi-ice"
2844 .
${srcdir}/configure.
host
2846 .
${srcdir}/configure.tgt
2848 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2852 .
${srcdir}/..
/bfd
/config.bfd
2854 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2856 if test x
"${targ_archs}" != x
; then
2857 cat >> confdefs.h
<<EOF
2858 #define DEFAULT_BFD_ARCH ${targ_archs}
2862 if test x
"${targ_defvec}" != x
; then
2863 cat >> confdefs.h
<<EOF
2864 #define DEFAULT_BFD_VEC ${targ_defvec}
2869 for ac_prog
in mawk gawk nawk
awk
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy
$ac_prog; ac_word
=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 if test -n "$AWK"; then
2879 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2881 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2883 for ac_dir
in $ac_dummy; do
2884 test -z "$ac_dir" && ac_dir
=.
2885 if test -f $ac_dir/$ac_word; then
2886 ac_cv_prog_AWK
="$ac_prog"
2893 AWK
="$ac_cv_prog_AWK"
2894 if test -n "$AWK"; then
2895 echo "$ac_t""$AWK" 1>&6
2897 echo "$ac_t""no" 1>&6
2900 test -n "$AWK" && break
2903 # Find a good install program. We prefer a C program (faster),
2904 # so one script is as good as another. But avoid the broken or
2905 # incompatible versions:
2906 # SysV /etc/install, /usr/sbin/install
2907 # SunOS /usr/etc/install
2908 # IRIX /sbin/install
2910 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2911 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2912 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2913 # ./install, which can be erroneously created by make from ./install.sh.
2914 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2915 echo "configure:2916: checking for a BSD compatible install" >&5
2916 if test -z "$INSTALL"; then
2917 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2921 for ac_dir
in $PATH; do
2922 # Account for people who put trailing slashes in PATH elements.
2924 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2926 # OSF1 and SCO ODT 3.0 have their own names for install.
2927 # Don't use installbsd from OSF since it installs stuff as root
2929 for ac_prog
in ginstall scoinst
install; do
2930 if test -f $ac_dir/$ac_prog; then
2931 if test $ac_prog = install &&
2932 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2933 # AIX install. It has an incompatible calling convention.
2936 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2947 if test "${ac_cv_path_install+set}" = set; then
2948 INSTALL
="$ac_cv_path_install"
2950 # As a last resort, use the slow shell script. We don't cache a
2951 # path for INSTALL within a source directory, because that will
2952 # break other packages using the cache if that directory is
2953 # removed, or if the path is relative.
2954 INSTALL
="$ac_install_sh"
2957 echo "$ac_t""$INSTALL" 1>&6
2959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2960 # It thinks the first close brace ends the variable substitution.
2961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2965 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2967 if test $host != $build; then
2968 ac_tool_prefix
=${host_alias}-
2973 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2974 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_word" >&5
2977 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 if test -n "$AR"; then
2981 ac_cv_prog_AR
="$AR" # Let the user override the test.
2983 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2985 for ac_dir
in $ac_dummy; do
2986 test -z "$ac_dir" && ac_dir
=.
2987 if test -f $ac_dir/$ac_word; then
2988 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2993 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2997 if test -n "$AR"; then
2998 echo "$ac_t""$AR" 1>&6
3000 echo "$ac_t""no" 1>&6
3005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3006 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3008 echo "configure:3009: checking for $ac_word" >&5
3009 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 if test -n "$RANLIB"; then
3013 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3015 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3017 for ac_dir
in $ac_dummy; do
3018 test -z "$ac_dir" && ac_dir
=.
3019 if test -f $ac_dir/$ac_word; then
3020 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3027 RANLIB
="$ac_cv_prog_RANLIB"
3028 if test -n "$RANLIB"; then
3029 echo "$ac_t""$RANLIB" 1>&6
3031 echo "$ac_t""no" 1>&6
3035 if test -z "$ac_cv_prog_RANLIB"; then
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "ranlib", so it can be a program name with args.
3038 set dummy ranlib
; ac_word
=$2
3039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_word" >&5
3041 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 if test -n "$RANLIB"; then
3045 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3049 for ac_dir
in $ac_dummy; do
3050 test -z "$ac_dir" && ac_dir
=.
3051 if test -f $ac_dir/$ac_word; then
3052 ac_cv_prog_RANLIB
="ranlib"
3057 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3060 RANLIB
="$ac_cv_prog_RANLIB"
3061 if test -n "$RANLIB"; then
3062 echo "$ac_t""$RANLIB" 1>&6
3064 echo "$ac_t""no" 1>&6
3072 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3073 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3075 echo "configure:3076: checking for $ac_word" >&5
3076 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 if test -n "$DLLTOOL"; then
3080 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3082 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3084 for ac_dir
in $ac_dummy; do
3085 test -z "$ac_dir" && ac_dir
=.
3086 if test -f $ac_dir/$ac_word; then
3087 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3092 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3095 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3096 if test -n "$DLLTOOL"; then
3097 echo "$ac_t""$DLLTOOL" 1>&6
3099 echo "$ac_t""no" 1>&6
3104 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3105 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_word" >&5
3108 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 if test -n "$WINDRES"; then
3112 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3116 for ac_dir
in $ac_dummy; do
3117 test -z "$ac_dir" && ac_dir
=.
3118 if test -f $ac_dir/$ac_word; then
3119 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3124 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3127 WINDRES
="$ac_cv_prog_WINDRES"
3128 if test -n "$WINDRES"; then
3129 echo "$ac_t""$WINDRES" 1>&6
3131 echo "$ac_t""no" 1>&6
3136 for ac_prog
in 'bison -y' byacc
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy
$ac_prog; ac_word
=$2
3140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_word" >&5
3142 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 if test -n "$YACC"; then
3146 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3148 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3150 for ac_dir
in $ac_dummy; do
3151 test -z "$ac_dir" && ac_dir
=.
3152 if test -f $ac_dir/$ac_word; then
3153 ac_cv_prog_YACC
="$ac_prog"
3160 YACC
="$ac_cv_prog_YACC"
3161 if test -n "$YACC"; then
3162 echo "$ac_t""$YACC" 1>&6
3164 echo "$ac_t""no" 1>&6
3167 test -n "$YACC" && break
3169 test -n "$YACC" || YACC
="yacc"
3172 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3173 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3175 echo "configure:3176: checking for $ac_word" >&5
3176 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 if test -n "$MIG"; then
3180 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3182 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3184 for ac_dir
in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir
=.
3186 if test -f $ac_dir/$ac_word; then
3187 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3192 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3195 MIG
="$ac_cv_prog_MIG"
3196 if test -n "$MIG"; then
3197 echo "$ac_t""$MIG" 1>&6
3199 echo "$ac_t""no" 1>&6
3205 if test "$program_transform_name" = s
,x
,x
,; then
3206 program_transform_name
=
3208 # Double any \ or $. echo might interpret backslashes.
3209 cat <<\EOF_SED
> conftestsed
3210 s
,\\,\\\\,g
; s
,\$
,$$
,g
3212 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3215 test "$program_prefix" != NONE
&&
3216 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3217 # Use a double $ so make ignores it.
3218 test "$program_suffix" != NONE
&&
3219 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3221 # sed with no file args requires a program.
3222 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3225 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3226 echo "configure:3227: checking return type of signal handlers" >&5
3227 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.
$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <sys/types.h>
3239 extern "C" void (*signal (int, void (*)(int)))(int);
3241 void (*signal ()) ();
3248 if { (eval echo configure
:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3250 ac_cv_type_signal
=void
3252 echo "configure: failed program was:" >&5
3253 cat conftest.
$ac_ext >&5
3255 ac_cv_type_signal
=int
3260 echo "$ac_t""$ac_cv_type_signal" 1>&6
3261 cat >> confdefs.h
<<EOF
3262 #define RETSIGTYPE $ac_cv_type_signal
3267 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3268 echo "configure:3269: checking for ANSI C header files" >&5
3269 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 cat > conftest.
$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3280 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure
:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3285 ac_cv_header_stdc
=yes
3288 echo "configure: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3291 ac_cv_header_stdc
=no
3295 if test $ac_cv_header_stdc = yes; then
3296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3297 cat > conftest.
$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 egrep "memchr" >/dev
/null
2>&1; then
3307 ac_cv_header_stdc
=no
3313 if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 egrep "free" >/dev
/null
2>&1; then
3325 ac_cv_header_stdc
=no
3331 if test $ac_cv_header_stdc = yes; then
3332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3333 if test "$cross_compiling" = yes; then
3336 cat > conftest.
$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3340 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3341 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3343 int main () { int i; for (i = 0; i < 256; i++)
3344 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3348 if { (eval echo configure
:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3352 echo "configure: failed program was:" >&5
3353 cat conftest.
$ac_ext >&5
3355 ac_cv_header_stdc
=no
3363 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3364 if test $ac_cv_header_stdc = yes; then
3365 cat >> confdefs.h
<<\EOF
3366 #define STDC_HEADERS 1
3373 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3374 cat >> confdefs.h
<<\EOF
3375 #define _MSE_INT_H 1
3380 for ac_hdr
in ctype.h endian.h link.h thread_db.h proc_service.h \
3381 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3382 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3383 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3384 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3385 time.h sys
/ioctl.h sys
/user.h \
3386 dirent.h sys
/ndir.h sys
/dir.h ndir.h \
3387 curses.h ncurses.h \
3390 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3391 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_hdr" >&5
3393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3401 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3402 { (eval echo configure
:3403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3403 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3404 if test -z "$ac_err"; then
3406 eval "ac_cv_header_$ac_safe=yes"
3409 echo "configure: failed program was:" >&5
3410 cat conftest.
$ac_ext >&5
3412 eval "ac_cv_header_$ac_safe=no"
3416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3418 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3419 cat >> confdefs.h
<<EOF
3420 #define $ac_tr_hdr 1
3424 echo "$ac_t""no" 1>&6
3428 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3429 echo "configure:3430: checking whether stat file-mode macros are broken" >&5
3430 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <sys/types.h>
3437 #include <sys/stat.h>
3439 #if defined(S_ISBLK) && defined(S_IFDIR)
3440 # if S_ISBLK (S_IFDIR)
3445 #if defined(S_ISBLK) && defined(S_IFCHR)
3446 # if S_ISBLK (S_IFCHR)
3451 #if defined(S_ISLNK) && defined(S_IFREG)
3452 # if S_ISLNK (S_IFREG)
3457 #if defined(S_ISSOCK) && defined(S_IFREG)
3458 # if S_ISSOCK (S_IFREG)
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465 egrep "You lose" >/dev
/null
2>&1; then
3467 ac_cv_header_stat_broken
=yes
3470 ac_cv_header_stat_broken
=no
3476 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3477 if test $ac_cv_header_stat_broken = yes; then
3478 cat >> confdefs.h
<<\EOF
3479 #define STAT_MACROS_BROKEN 1
3485 echo $ac_n "checking for working const""... $ac_c" 1>&6
3486 echo "configure:3487: checking for working const" >&5
3487 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3496 /* Ultrix mips cc rejects this. */
3497 typedef int charset[2]; const charset x;
3498 /* SunOS 4.1.1 cc rejects this. */
3499 char const *const *ccp;
3501 /* NEC SVR4.0.2 mips cc rejects this. */
3502 struct point {int x, y;};
3503 static struct point const zero = {0,0};
3504 /* AIX XL C 1.02.0.0 rejects this.
3505 It does not let you subtract one const X* pointer from another in an arm
3506 of an if-expression whose if-part is not a constant expression */
3507 const char *g = "string";
3508 ccp = &g + (g ? g-g : 0);
3509 /* HPUX 7.0 cc rejects these. */
3512 ccp = (char const *const *) p;
3513 { /* SCO 3.2v4 cc rejects this. */
3515 char const *s = 0 ? (char *) 0 : (char const *) 0;
3519 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3521 const int *foo = &x[0];
3524 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3525 typedef const int *iptr;
3529 { /* AIX XL C 1.02.0.0 rejects this saying
3530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3531 struct s { int j; const int *ap[3]; };
3532 struct s *b; b->j = 5;
3534 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3540 if { (eval echo configure
:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3544 echo "configure: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3552 echo "$ac_t""$ac_cv_c_const" 1>&6
3553 if test $ac_cv_c_const = no
; then
3554 cat >> confdefs.h
<<\EOF
3561 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask vfork
3563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_func" >&5
3565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 cat > conftest.
$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* System header to define __stub macros and hopefully few prototypes,
3572 which can conflict with char $ac_func(); below. */
3574 /* Override any gcc2 internal prototype to avoid an error. */
3575 /* We use char because int might match the return type of a gcc2
3576 builtin and then its argument prototype would still apply. */
3581 /* The GNU C library defines this for functions which it implements
3582 to always fail with ENOSYS. Some functions are actually named
3583 something starting with __ and the normal name is an alias. */
3584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3592 if { (eval echo configure
:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3594 eval "ac_cv_func_$ac_func=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3599 eval "ac_cv_func_$ac_func=no"
3604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3607 cat >> confdefs.h
<<EOF
3608 #define $ac_tr_func 1
3612 echo "$ac_t""no" 1>&6
3616 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3617 # for constant arguments. Useless!
3618 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3619 echo "configure:3620: checking for working alloca.h" >&5
3620 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+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"
3628 char *p = alloca(2 * sizeof(int));
3631 if { (eval echo configure
:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3633 ac_cv_header_alloca_h
=yes
3635 echo "configure: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3638 ac_cv_header_alloca_h
=no
3643 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3644 if test $ac_cv_header_alloca_h = yes; then
3645 cat >> confdefs.h
<<\EOF
3646 #define HAVE_ALLOCA_H 1
3651 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3652 echo "configure:3653: checking for alloca" >&5
3653 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.
$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3661 # define alloca __builtin_alloca
3664 # include <malloc.h>
3665 # define alloca _alloca
3668 # include <alloca.h>
3673 # ifndef alloca /* predefined by HP cc +Olibcalls */
3682 char *p = (char *) alloca(1);
3685 if { (eval echo configure
:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3687 ac_cv_func_alloca_works
=yes
3689 echo "configure: failed program was:" >&5
3690 cat conftest.
$ac_ext >&5
3692 ac_cv_func_alloca_works
=no
3697 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3698 if test $ac_cv_func_alloca_works = yes; then
3699 cat >> confdefs.h
<<\EOF
3700 #define HAVE_ALLOCA 1
3705 if test $ac_cv_func_alloca_works = no
; then
3706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3707 # that cause trouble. Some versions do not even contain alloca or
3708 # contain a buggy version. If you still want to use their alloca,
3709 # use ar to extract alloca.o from them instead of compiling alloca.c.
3710 ALLOCA
=alloca.
${ac_objext}
3711 cat >> confdefs.h
<<\EOF
3716 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3717 echo "configure:3718: checking whether alloca needs Cray hooks" >&5
3718 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.
$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 #if defined(CRAY) && ! defined(CRAY2)
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 egrep "webecray" >/dev
/null
2>&1; then
3743 echo "$ac_t""$ac_cv_os_cray" 1>&6
3744 if test $ac_cv_os_cray = yes; then
3745 for ac_func
in _getb67 GETB67 getb67
; do
3746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3747 echo "configure:3748: checking for $ac_func" >&5
3748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 cat > conftest.
$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 /* System header to define __stub macros and hopefully few prototypes,
3755 which can conflict with char $ac_func(); below. */
3757 /* Override any gcc2 internal prototype to avoid an error. */
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3764 /* The GNU C library defines this for functions which it implements
3765 to always fail with ENOSYS. Some functions are actually named
3766 something starting with __ and the normal name is an alias. */
3767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3775 if { (eval echo configure
:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3777 eval "ac_cv_func_$ac_func=yes"
3779 echo "configure: failed program was:" >&5
3780 cat conftest.
$ac_ext >&5
3782 eval "ac_cv_func_$ac_func=no"
3787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3788 echo "$ac_t""yes" 1>&6
3789 cat >> confdefs.h
<<EOF
3790 #define CRAY_STACKSEG_END $ac_func
3795 echo "$ac_t""no" 1>&6
3801 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3802 echo "configure:3803: checking stack direction for C alloca" >&5
3803 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 if test "$cross_compiling" = yes; then
3807 ac_cv_c_stack_direction
=0
3809 cat > conftest.
$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 find_stack_direction ()
3814 static char *addr = 0;
3819 return find_stack_direction ();
3822 return (&dummy > addr) ? 1 : -1;
3826 exit (find_stack_direction() < 0);
3829 if { (eval echo configure
:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3831 ac_cv_c_stack_direction
=1
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 ac_cv_c_stack_direction
=-1
3843 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3844 cat >> confdefs.h
<<EOF
3845 #define STACK_DIRECTION $ac_cv_c_stack_direction
3851 # See if machine/reg.h supports the %fs and %gs i386 segment registers.
3852 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
3853 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
3854 echo "configure:3855: checking for r_fs in struct reg" >&5
3855 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.
$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 #include <machine/reg.h>
3863 struct reg r; r.r_fs;
3866 if { (eval echo configure
:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868 gdb_cv_struct_reg_r_fs
=yes
3870 echo "configure: failed program was:" >&5
3871 cat conftest.
$ac_ext >&5
3873 gdb_cv_struct_reg_r_fs
=no
3878 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
3879 if test $gdb_cv_struct_reg_r_fs = yes; then
3880 cat >> confdefs.h
<<\EOF
3881 #define HAVE_STRUCT_REG_R_FS 1
3885 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
3886 echo "configure:3887: checking for r_gs in struct reg" >&5
3887 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 cat > conftest.
$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 #include <machine/reg.h>
3895 struct reg r; r.r_gs;
3898 if { (eval echo configure
:3899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3900 gdb_cv_struct_reg_r_gs
=yes
3902 echo "configure: failed program was:" >&5
3903 cat conftest.
$ac_ext >&5
3905 gdb_cv_struct_reg_r_gs
=no
3910 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
3911 if test $gdb_cv_struct_reg_r_gs = yes; then
3912 cat >> confdefs.h
<<\EOF
3913 #define HAVE_STRUCT_REG_R_GS 1
3918 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
3919 echo "configure:3920: checking for PTRACE_GETREGS" >&5
3920 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 cat > conftest.
$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 #include <sys/ptrace.h>
3931 if { (eval echo configure
:3932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3933 gdb_cv_have_ptrace_getregs
=yes
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 gdb_cv_have_ptrace_getregs
=no
3943 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
3944 if test $gdb_cv_have_ptrace_getregs = yes; then
3945 cat >> confdefs.h
<<\EOF
3946 #define HAVE_PTRACE_GETREGS 1
3951 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
3952 echo "configure:3953: checking for PTRACE_GETFPXREGS" >&5
3953 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <sys/ptrace.h>
3964 if { (eval echo configure
:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3966 gdb_cv_have_ptrace_getfpxregs
=yes
3968 echo "configure: failed program was:" >&5
3969 cat conftest.
$ac_ext >&5
3971 gdb_cv_have_ptrace_getfpxregs
=no
3976 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
3977 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
3978 cat >> confdefs.h
<<\EOF
3979 #define HAVE_PTRACE_GETFPXREGS 1
3984 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3985 echo "configure:3986: checking for socketpair in -lsocket" >&5
3986 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 ac_save_LIBS
="$LIBS"
3991 LIBS
="-lsocket $LIBS"
3992 cat > conftest.
$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 /* We use char because int might match the return type of a gcc2
3997 builtin and then its argument prototype would still apply. */
4004 if { (eval echo configure
:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4006 eval "ac_cv_lib_$ac_lib_var=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.
$ac_ext >&5
4011 eval "ac_cv_lib_$ac_lib_var=no"
4014 LIBS
="$ac_save_LIBS"
4017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4021 cat >> confdefs.h
<<EOF
4022 #define $ac_tr_lib 1
4025 LIBS
="-lsocket $LIBS"
4028 echo "$ac_t""no" 1>&6
4031 for ac_func
in socketpair
4033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4034 echo "configure:4035: checking for $ac_func" >&5
4035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 cat > conftest.
$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4041 /* System header to define __stub macros and hopefully few prototypes,
4042 which can conflict with char $ac_func(); below. */
4044 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4051 /* The GNU C library defines this for functions which it implements
4052 to always fail with ENOSYS. Some functions are actually named
4053 something starting with __ and the normal name is an alias. */
4054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4062 if { (eval echo configure
:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4064 eval "ac_cv_func_$ac_func=yes"
4066 echo "configure: failed program was:" >&5
4067 cat conftest.
$ac_ext >&5
4069 eval "ac_cv_func_$ac_func=no"
4074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4077 cat >> confdefs.h
<<EOF
4078 #define $ac_tr_func 1
4082 echo "$ac_t""no" 1>&6
4088 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4089 echo "configure:4090: checking whether malloc must be declared" >&5
4090 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4098 #ifdef HAVE_STRING_H
4101 #ifdef HAVE_STRINGS_H
4102 #include <strings.h>
4105 #ifdef HAVE_STDLIB_H
4108 #ifdef HAVE_UNISTD_H
4112 char *(*pfn) = (char *(*)) malloc
4115 if { (eval echo configure
:4116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4117 bfd_cv_decl_needed_malloc
=no
4119 echo "configure: failed program was:" >&5
4120 cat conftest.
$ac_ext >&5
4122 bfd_cv_decl_needed_malloc
=yes
4127 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4128 if test $bfd_cv_decl_needed_malloc = yes; then
4129 cat >> confdefs.h
<<\EOF
4130 #define NEED_DECLARATION_MALLOC 1
4135 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4136 echo "configure:4137: checking whether realloc must be declared" >&5
4137 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 cat > conftest.
$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4145 #ifdef HAVE_STRING_H
4148 #ifdef HAVE_STRINGS_H
4149 #include <strings.h>
4152 #ifdef HAVE_STDLIB_H
4155 #ifdef HAVE_UNISTD_H
4159 char *(*pfn) = (char *(*)) realloc
4162 if { (eval echo configure
:4163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4164 bfd_cv_decl_needed_realloc
=no
4166 echo "configure: failed program was:" >&5
4167 cat conftest.
$ac_ext >&5
4169 bfd_cv_decl_needed_realloc
=yes
4174 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4175 if test $bfd_cv_decl_needed_realloc = yes; then
4176 cat >> confdefs.h
<<\EOF
4177 #define NEED_DECLARATION_REALLOC 1
4182 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4183 echo "configure:4184: checking whether free must be declared" >&5
4184 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 cat > conftest.
$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4192 #ifdef HAVE_STRING_H
4195 #ifdef HAVE_STRINGS_H
4196 #include <strings.h>
4199 #ifdef HAVE_STDLIB_H
4202 #ifdef HAVE_UNISTD_H
4206 char *(*pfn) = (char *(*)) free
4209 if { (eval echo configure
:4210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4211 bfd_cv_decl_needed_free
=no
4213 echo "configure: failed program was:" >&5
4214 cat conftest.
$ac_ext >&5
4216 bfd_cv_decl_needed_free
=yes
4221 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4222 if test $bfd_cv_decl_needed_free = yes; then
4223 cat >> confdefs.h
<<\EOF
4224 #define NEED_DECLARATION_FREE 1
4229 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4230 echo "configure:4231: checking whether strerror must be declared" >&5
4231 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 cat > conftest.
$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4239 #ifdef HAVE_STRING_H
4242 #ifdef HAVE_STRINGS_H
4243 #include <strings.h>
4246 #ifdef HAVE_STDLIB_H
4249 #ifdef HAVE_UNISTD_H
4253 char *(*pfn) = (char *(*)) strerror
4256 if { (eval echo configure
:4257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258 bfd_cv_decl_needed_strerror
=no
4260 echo "configure: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4263 bfd_cv_decl_needed_strerror
=yes
4268 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4269 if test $bfd_cv_decl_needed_strerror = yes; then
4270 cat >> confdefs.h
<<\EOF
4271 #define NEED_DECLARATION_STRERROR 1
4276 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4277 echo "configure:4278: checking whether strdup must be declared" >&5
4278 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 cat > conftest.
$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4286 #ifdef HAVE_STRING_H
4289 #ifdef HAVE_STRINGS_H
4290 #include <strings.h>
4293 #ifdef HAVE_STDLIB_H
4296 #ifdef HAVE_UNISTD_H
4300 char *(*pfn) = (char *(*)) strdup
4303 if { (eval echo configure
:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4305 bfd_cv_decl_needed_strdup
=no
4307 echo "configure: failed program was:" >&5
4308 cat conftest.
$ac_ext >&5
4310 bfd_cv_decl_needed_strdup
=yes
4315 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4316 if test $bfd_cv_decl_needed_strdup = yes; then
4317 cat >> confdefs.h
<<\EOF
4318 #define NEED_DECLARATION_STRDUP 1
4323 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4324 echo "configure:4325: checking whether strstr must be declared" >&5
4325 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4333 #ifdef HAVE_STRING_H
4336 #ifdef HAVE_STRINGS_H
4337 #include <strings.h>
4340 #ifdef HAVE_STDLIB_H
4343 #ifdef HAVE_UNISTD_H
4347 char *(*pfn) = (char *(*)) strstr
4350 if { (eval echo configure
:4351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4352 bfd_cv_decl_needed_strstr
=no
4354 echo "configure: failed program was:" >&5
4355 cat conftest.
$ac_ext >&5
4357 bfd_cv_decl_needed_strstr
=yes
4362 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4363 if test $bfd_cv_decl_needed_strstr = yes; then
4364 cat >> confdefs.h
<<\EOF
4365 #define NEED_DECLARATION_STRSTR 1
4372 # The following save_state_t checkery is only necessary for HPUX
4373 # versions earlier than 10.20. When those fade from memory, this
4374 # could be expunged. --jsm 1999-03-22
4376 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4377 echo "configure:4378: checking for HPUX save_state structure" >&5
4378 cat > conftest.
$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 #include <machine/save_state.h>
4383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384 egrep "save_state_t" >/dev
/null
2>&1; then
4386 gdb_cv_hpux_savestate
=yes
4389 gdb_cv_hpux_savestate
=no
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 #include <machine/save_state.h>
4398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399 egrep "ss_wide" >/dev
/null
2>&1; then
4401 gdb_cv_hpux_sswide
=yes
4404 gdb_cv_hpux_sswide
=no
4408 if test $gdb_cv_hpux_savestate = yes
4410 cat >> confdefs.h
<<\EOF
4411 #define HAVE_STRUCT_SAVE_STATE_T 1
4415 if test $gdb_cv_hpux_sswide = yes
4417 cat >> confdefs.h
<<\EOF
4418 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4422 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4425 # If we are configured native on GNU/Linux, work around problems with
4427 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4429 if test "${target}" = "${host}"; then
4432 cat >> confdefs.h
<<\EOF
4433 #define START_INFERIOR_TRAPS_EXPECTED 2
4436 cat >> confdefs.h
<<\EOF
4437 #define sys_quotactl 1
4441 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4442 cat >> confdefs.h
<<\EOF
4443 #define NEW_PROC_API 1
4448 cat >> confdefs.h
<<\EOF
4449 #define NEW_PROC_API 1
4456 if test "$ac_cv_header_sys_procfs_h" = yes; then
4457 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4458 echo "configure:4459: checking for pstatus_t in sys/procfs.h" >&5
4459 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.
$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 #include <sys/procfs.h>
4472 if { (eval echo configure
:4473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4474 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4476 echo "configure: failed program was:" >&5
4477 cat conftest.
$ac_ext >&5
4479 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4485 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4486 cat >> confdefs.h
<<\EOF
4487 #define HAVE_PSTATUS_T 1
4491 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4493 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4494 echo "configure:4495: checking for prrun_t in sys/procfs.h" >&5
4495 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.
$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4503 #include <sys/procfs.h>
4508 if { (eval echo configure
:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4512 echo "configure: failed program was:" >&5
4513 cat conftest.
$ac_ext >&5
4515 bfd_cv_have_sys_procfs_type_prrun_t
=no
4521 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4522 cat >> confdefs.h
<<\EOF
4523 #define HAVE_PRRUN_T 1
4527 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4529 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4530 echo "configure:4531: checking for gregset_t in sys/procfs.h" >&5
4531 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 cat > conftest.
$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4539 #include <sys/procfs.h>
4544 if { (eval echo configure
:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4546 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4548 echo "configure: failed program was:" >&5
4549 cat conftest.
$ac_ext >&5
4551 bfd_cv_have_sys_procfs_type_gregset_t
=no
4557 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4558 cat >> confdefs.h
<<\EOF
4559 #define HAVE_GREGSET_T 1
4563 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4565 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4566 echo "configure:4567: checking for fpregset_t in sys/procfs.h" >&5
4567 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4575 #include <sys/procfs.h>
4580 if { (eval echo configure
:4581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4582 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4584 echo "configure: failed program was:" >&5
4585 cat conftest.
$ac_ext >&5
4587 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4593 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4594 cat >> confdefs.h
<<\EOF
4595 #define HAVE_FPREGSET_T 1
4599 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4601 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4602 echo "configure:4603: checking for prgregset_t in sys/procfs.h" >&5
4603 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+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 #include <sys/procfs.h>
4616 if { (eval echo configure
:4617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4618 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4620 echo "configure: failed program was:" >&5
4621 cat conftest.
$ac_ext >&5
4623 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4629 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4630 cat >> confdefs.h
<<\EOF
4631 #define HAVE_PRGREGSET_T 1
4635 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4637 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4638 echo "configure:4639: checking for prfpregset_t in sys/procfs.h" >&5
4639 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 cat > conftest.
$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4647 #include <sys/procfs.h>
4652 if { (eval echo configure
:4653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4654 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4656 echo "configure: failed program was:" >&5
4657 cat conftest.
$ac_ext >&5
4659 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4665 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4666 cat >> confdefs.h
<<\EOF
4667 #define HAVE_PRFPREGSET_T 1
4671 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4673 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking for prgregset32_t in sys/procfs.h" >&5
4675 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4683 #include <sys/procfs.h>
4688 if { (eval echo configure
:4689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4690 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
4692 echo "configure: failed program was:" >&5
4693 cat conftest.
$ac_ext >&5
4695 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
4701 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
4702 cat >> confdefs.h
<<\EOF
4703 #define HAVE_PRGREGSET32_T 1
4707 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
4709 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
4710 echo "configure:4711: checking for prfpregset32_t in sys/procfs.h" >&5
4711 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4719 #include <sys/procfs.h>
4724 if { (eval echo configure
:4725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4726 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
4737 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
4738 cat >> confdefs.h
<<\EOF
4739 #define HAVE_PRFPREGSET32_T 1
4743 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
4745 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4746 echo "configure:4747: checking for lwpid_t in sys/procfs.h" >&5
4747 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4755 #include <sys/procfs.h>
4760 if { (eval echo configure
:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4762 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4764 echo "configure: failed program was:" >&5
4765 cat conftest.
$ac_ext >&5
4767 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4773 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4774 cat >> confdefs.h
<<\EOF
4775 #define HAVE_LWPID_T 1
4779 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4781 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4782 echo "configure:4783: checking for psaddr_t in sys/procfs.h" >&5
4783 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 cat > conftest.
$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4791 #include <sys/procfs.h>
4796 if { (eval echo configure
:4797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4798 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4800 echo "configure: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4803 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4809 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4810 cat >> confdefs.h
<<\EOF
4811 #define HAVE_PSADDR_T 1
4815 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4819 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
4820 echo "configure:4821: checking for struct link_map32 in sys/link.h" >&5
4821 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4828 #include <sys/link.h>
4830 struct link_map32 l;
4833 if { (eval echo configure
:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 gdb_cv_have_struct_link_map32
=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.
$ac_ext >&5
4840 gdb_cv_have_struct_link_map32
=no
4845 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
4846 if test $gdb_cv_have_struct_link_map32 = yes; then
4847 cat >> confdefs.h
<<\EOF
4848 #define HAVE_STRUCT_LINK_MAP32 1
4855 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4856 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
4857 echo "configure:4858: checking whether prfpregset_t type is broken" >&5
4858 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 if test "$cross_compiling" = yes; then
4862 gdb_cv_prfpregset_t_broken
=yes
4864 cat > conftest.
$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 #include <sys/procfs.h>
4870 if (sizeof (prfpregset_t) == sizeof (void *))
4875 if { (eval echo configure
:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4877 gdb_cv_prfpregset_t_broken
=no
4879 echo "configure: failed program was:" >&5
4880 cat conftest.
$ac_ext >&5
4882 gdb_cv_prfpregset_t_broken
=yes
4889 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
4890 if test $gdb_cv_prfpregset_t_broken = yes; then
4891 cat >> confdefs.h
<<\EOF
4892 #define PRFPREGSET_T_BROKEN 1
4899 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4900 echo "configure:4901: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4901 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4908 #include <sys/types.h>
4909 #include <sys/procfs.h>
4914 dummy = ioctl(0, PIOCSET, &dummy);
4918 if { (eval echo configure
:4919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4920 gdb_cv_have_procfs_piocset
=yes
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4925 gdb_cv_have_procfs_piocset
=no
4930 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4931 if test $gdb_cv_have_procfs_piocset = yes; then
4932 cat >> confdefs.h
<<\EOF
4933 #define HAVE_PROCFS_PIOCSET 1
4939 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4940 echo "configure:4941: checking for main in -lm" >&5
4941 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 ac_save_LIBS
="$LIBS"
4947 cat > conftest.
$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4955 if { (eval echo configure
:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4957 eval "ac_cv_lib_$ac_lib_var=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.
$ac_ext >&5
4962 eval "ac_cv_lib_$ac_lib_var=no"
4965 LIBS
="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4970 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4972 cat >> confdefs.h
<<EOF
4973 #define $ac_tr_lib 1
4979 echo "$ac_t""no" 1>&6
4983 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4984 echo "configure:4985: checking for wctype in -lc" >&5
4985 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 ac_save_LIBS
="$LIBS"
4991 cat > conftest.
$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4994 /* Override any gcc2 internal prototype to avoid an error. */
4995 /* We use char because int might match the return type of a gcc2
4996 builtin and then its argument prototype would still apply. */
5003 if { (eval echo configure
:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5005 eval "ac_cv_lib_$ac_lib_var=yes"
5007 echo "configure: failed program was:" >&5
5008 cat conftest.
$ac_ext >&5
5010 eval "ac_cv_lib_$ac_lib_var=no"
5013 LIBS
="$ac_save_LIBS"
5016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5020 echo "$ac_t""no" 1>&6
5021 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5022 echo "configure:5023: checking for wctype in -lw" >&5
5023 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5027 ac_save_LIBS
="$LIBS"
5029 cat > conftest.
$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5032 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5041 if { (eval echo configure
:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5043 eval "ac_cv_lib_$ac_lib_var=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5048 eval "ac_cv_lib_$ac_lib_var=no"
5051 LIBS
="$ac_save_LIBS"
5054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5058 cat >> confdefs.h
<<EOF
5059 #define $ac_tr_lib 1
5065 echo "$ac_t""no" 1>&6
5072 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5073 echo "configure:5074: checking for long long support in compiler" >&5
5074 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5077 cat > conftest.
$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5083 extern long long foo;
5084 switch (foo & 2) { case 0: return 1; }
5088 if { (eval echo configure
:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5090 gdb_cv_c_long_long
=yes
5092 echo "configure: failed program was:" >&5
5093 cat conftest.
$ac_ext >&5
5095 gdb_cv_c_long_long
=no
5100 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5101 if test $gdb_cv_c_long_long = yes; then
5102 cat >> confdefs.h
<<\EOF
5103 #define CC_HAS_LONG_LONG 1
5109 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5110 echo "configure:5111: checking for long long support in printf" >&5
5111 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5114 if test "$cross_compiling" = yes; then
5115 gdb_cv_printf_has_long_long
=no
5117 cat > conftest.
$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5124 l = (l << 16) + 0x0123;
5125 l = (l << 16) + 0x4567;
5126 l = (l << 16) + 0x89ab;
5127 l = (l << 16) + 0xcdef;
5128 sprintf (buf, "0x%016llx", l);
5129 return (strcmp ("0x0123456789abcdef", buf));
5132 if { (eval echo configure
:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5134 gdb_cv_printf_has_long_long
=yes
5136 echo "configure: failed program was:" >&5
5137 cat conftest.
$ac_ext >&5
5139 gdb_cv_printf_has_long_long
=no
5146 if test $gdb_cv_printf_has_long_long = yes; then
5147 cat >> confdefs.h
<<\EOF
5148 #define PRINTF_HAS_LONG_LONG 1
5152 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5155 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5156 echo "configure:5157: checking for long double support in compiler" >&5
5157 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 cat > conftest.
$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5168 if { (eval echo configure
:5169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5170 ac_cv_c_long_double
=yes
5172 echo "configure: failed program was:" >&5
5173 cat conftest.
$ac_ext >&5
5175 ac_cv_c_long_double
=no
5180 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5181 if test $ac_cv_c_long_double = yes; then
5182 cat >> confdefs.h
<<\EOF
5183 #define HAVE_LONG_DOUBLE 1
5189 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5190 echo "configure:5191: checking for long double support in printf" >&5
5191 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 if test "$cross_compiling" = yes; then
5195 gdb_cv_printf_has_long_double
=no
5197 cat > conftest.
$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5203 long double f = 3.141592653;
5204 sprintf (buf, "%Lg", f);
5205 return (strncmp ("3.14159", buf, 7));
5208 if { (eval echo configure
:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5210 gdb_cv_printf_has_long_double
=yes
5212 echo "configure: failed program was:" >&5
5213 cat conftest.
$ac_ext >&5
5215 gdb_cv_printf_has_long_double
=no
5222 if test $gdb_cv_printf_has_long_double = yes; then
5223 cat >> confdefs.h
<<\EOF
5224 #define PRINTF_HAS_LONG_DOUBLE 1
5228 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
5231 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
5232 echo "configure:5233: checking for long double support in scanf" >&5
5233 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 if test "$cross_compiling" = yes; then
5237 gdb_cv_scanf_has_long_double
=no
5239 cat > conftest.
$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5244 char *buf = "3.141592653";
5246 sscanf (buf, "%Lg", &f);
5247 return !(f > 3.14159 && f < 3.14160);
5250 if { (eval echo configure
:5251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5252 gdb_cv_scanf_has_long_double
=yes
5254 echo "configure: failed program was:" >&5
5255 cat conftest.
$ac_ext >&5
5257 gdb_cv_scanf_has_long_double
=no
5264 if test $gdb_cv_scanf_has_long_double = yes; then
5265 cat >> confdefs.h
<<\EOF
5266 #define SCANF_HAS_LONG_DOUBLE 1
5270 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
5272 for ac_hdr
in unistd.h
5274 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5276 echo "configure:5277: checking for $ac_hdr" >&5
5277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 cat > conftest.
$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5285 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5286 { (eval echo configure
:5287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5287 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5288 if test -z "$ac_err"; then
5290 eval "ac_cv_header_$ac_safe=yes"
5293 echo "configure: failed program was:" >&5
5294 cat conftest.
$ac_ext >&5
5296 eval "ac_cv_header_$ac_safe=no"
5300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5303 cat >> confdefs.h
<<EOF
5304 #define $ac_tr_hdr 1
5308 echo "$ac_t""no" 1>&6
5312 for ac_func
in getpagesize
5314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5315 echo "configure:5316: checking for $ac_func" >&5
5316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.
$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 /* System header to define __stub macros and hopefully few prototypes,
5323 which can conflict with char $ac_func(); below. */
5325 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5332 /* The GNU C library defines this for functions which it implements
5333 to always fail with ENOSYS. Some functions are actually named
5334 something starting with __ and the normal name is an alias. */
5335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5343 if { (eval echo configure
:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5345 eval "ac_cv_func_$ac_func=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.
$ac_ext >&5
5350 eval "ac_cv_func_$ac_func=no"
5355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5358 cat >> confdefs.h
<<EOF
5359 #define $ac_tr_func 1
5363 echo "$ac_t""no" 1>&6
5367 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5368 echo "configure:5369: checking for working mmap" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 if test "$cross_compiling" = yes; then
5373 ac_cv_func_mmap_fixed_mapped
=no
5375 cat > conftest.
$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5379 /* Thanks to Mike Haertel and Jim Avera for this test.
5380 Here is a matrix of mmap possibilities:
5381 mmap private not fixed
5382 mmap private fixed at somewhere currently unmapped
5383 mmap private fixed at somewhere already mapped
5384 mmap shared not fixed
5385 mmap shared fixed at somewhere currently unmapped
5386 mmap shared fixed at somewhere already mapped
5387 For private mappings, we should verify that changes cannot be read()
5388 back from the file, nor mmap's back from the file at a different
5389 address. (There have been systems where private was not correctly
5390 implemented like the infamous i386 svr4.0, and systems where the
5391 VM page cache was not coherent with the filesystem buffer cache
5392 like early versions of FreeBSD and possibly contemporary NetBSD.)
5393 For shared mappings, we should conversely verify that changes get
5394 propogated back to all the places they're supposed to be.
5396 Grep wants private fixed already mapped.
5397 The main things grep needs to know about mmap are:
5398 * does it exist and is it safe to write into the mmap'd area
5399 * how to use it (BSD variants) */
5400 #include <sys/types.h>
5402 #include <sys/mman.h>
5404 /* This mess was copied from the GNU getpagesize.h. */
5405 #ifndef HAVE_GETPAGESIZE
5406 # ifdef HAVE_UNISTD_H
5407 # include <unistd.h>
5410 /* Assume that all systems that can run configure have sys/param.h. */
5411 # ifndef HAVE_SYS_PARAM_H
5412 # define HAVE_SYS_PARAM_H 1
5415 # ifdef _SC_PAGESIZE
5416 # define getpagesize() sysconf(_SC_PAGESIZE)
5417 # else /* no _SC_PAGESIZE */
5418 # ifdef HAVE_SYS_PARAM_H
5419 # include <sys/param.h>
5420 # ifdef EXEC_PAGESIZE
5421 # define getpagesize() EXEC_PAGESIZE
5422 # else /* no EXEC_PAGESIZE */
5424 # define getpagesize() NBPG * CLSIZE
5427 # endif /* no CLSIZE */
5428 # else /* no NBPG */
5430 # define getpagesize() NBPC
5431 # else /* no NBPC */
5433 # define getpagesize() PAGESIZE
5434 # endif /* PAGESIZE */
5435 # endif /* no NBPC */
5436 # endif /* no NBPG */
5437 # endif /* no EXEC_PAGESIZE */
5438 # else /* no HAVE_SYS_PARAM_H */
5439 # define getpagesize() 8192 /* punt totally */
5440 # endif /* no HAVE_SYS_PARAM_H */
5441 # endif /* no _SC_PAGESIZE */
5443 #endif /* no HAVE_GETPAGESIZE */
5446 extern "C" { void *malloc(unsigned); }
5454 char *data, *data2, *data3;
5458 pagesize = getpagesize();
5461 * First, make a file with some known garbage in it.
5463 data = malloc(pagesize);
5466 for (i = 0; i < pagesize; ++i)
5467 *(data + i) = rand();
5469 fd = creat("conftestmmap", 0600);
5472 if (write(fd, data, pagesize) != pagesize)
5477 * Next, try to mmap the file at a fixed address which
5478 * already has something else allocated at it. If we can,
5479 * also make sure that we see the same garbage.
5481 fd = open("conftestmmap", O_RDWR);
5484 data2 = malloc(2 * pagesize);
5487 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5488 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5489 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5491 for (i = 0; i < pagesize; ++i)
5492 if (*(data + i) != *(data2 + i))
5496 * Finally, make sure that changes to the mapped area
5497 * do not percolate back to the file as seen by read().
5498 * (This is a bug on some variants of i386 svr4.0.)
5500 for (i = 0; i < pagesize; ++i)
5501 *(data2 + i) = *(data2 + i) + 1;
5502 data3 = malloc(pagesize);
5505 if (read(fd, data3, pagesize) != pagesize)
5507 for (i = 0; i < pagesize; ++i)
5508 if (*(data + i) != *(data3 + i))
5511 unlink("conftestmmap");
5516 if { (eval echo configure
:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5518 ac_cv_func_mmap_fixed_mapped
=yes
5520 echo "configure: failed program was:" >&5
5521 cat conftest.
$ac_ext >&5
5523 ac_cv_func_mmap_fixed_mapped
=no
5530 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5531 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5532 cat >> confdefs.h
<<\EOF
5541 if test ${build} = ${host} -a ${host} = ${target} ; then
5544 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5545 echo "configure:5546: checking for HPUX/OSF thread support" >&5
5546 if test -f /usr
/include
/dce
/cma_config.h
; then
5547 if test "$GCC" = "yes" ; then
5548 echo "$ac_t""yes" 1>&6
5549 cat >> confdefs.h
<<\EOF
5550 #define HAVE_HPUX_THREAD_SUPPORT 1
5553 CONFIG_LOBS
="${CONFIG_LOBS} hpux-thread.o"
5554 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
5556 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5559 echo "$ac_t""no" 1>&6
5563 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5564 echo "configure:5565: checking for Solaris thread debugging library" >&5
5565 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5566 echo "$ac_t""yes" 1>&6
5567 cat >> confdefs.h
<<\EOF
5568 #define HAVE_THREAD_DB_LIB 1
5571 CONFIG_LOBS
="${CONFIG_LOBS} sol-thread.o"
5572 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5573 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5574 echo "configure:5575: checking for dlopen in -ldl" >&5
5575 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5579 ac_save_LIBS
="$LIBS"
5581 cat > conftest.
$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5593 if { (eval echo configure
:5594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5595 eval "ac_cv_lib_$ac_lib_var=yes"
5597 echo "configure: failed program was:" >&5
5598 cat conftest.
$ac_ext >&5
5600 eval "ac_cv_lib_$ac_lib_var=no"
5603 LIBS
="$ac_save_LIBS"
5606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5610 cat >> confdefs.h
<<EOF
5611 #define $ac_tr_lib 1
5617 echo "$ac_t""no" 1>&6
5620 if test "$GCC" = "yes" ; then
5621 # The GNU linker requires the -export-dynamic option to make
5622 # all symbols visible in the dynamic symbol table.
5623 hold_ldflags
=$LDFLAGS
5624 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5625 echo "configure:5626: checking for the ld -export-dynamic flag" >&5
5626 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5627 cat > conftest.
$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5635 if { (eval echo configure
:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5639 echo "configure: failed program was:" >&5
5640 cat conftest.
$ac_ext >&5
5645 LDFLAGS
=$hold_ldflags
5646 echo "$ac_t""$found" 1>&6
5647 if test $found = yes; then
5648 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5651 # Sun randomly tweaked the prototypes in <proc_service.h>
5653 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5654 echo "configure:5655: checking if <proc_service.h> is old" >&5
5655 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5659 cat > conftest.
$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5663 #include <proc_service.h>
5665 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5671 if { (eval echo configure
:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673 gdb_cv_proc_service_is_old
=no
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 gdb_cv_proc_service_is_old
=yes
5684 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5685 if test $gdb_cv_proc_service_is_old = yes; then
5686 cat >> confdefs.h
<<\EOF
5687 #define PROC_SERVICE_IS_OLD 1
5692 echo "$ac_t""no" 1>&6
5700 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5701 if test "${enable_gdbcli+set}" = set; then
5702 enableval
="$enable_gdbcli"
5704 case "${enableval}" in
5705 yes) enable_gdbcli
=yes ;;
5706 "") enable_gdbcli
=yes ;;
5708 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
5711 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
5719 case ${enable_gdbcli} in
5721 if test -d "${srcdir}/cli" ; then
5722 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
5723 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
5724 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
5725 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
5726 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
5727 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
5728 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
5729 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
5730 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
5736 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5737 if test "${enable_gdbmi+set}" = set; then
5738 enableval
="$enable_gdbmi"
5740 case "${enable_gdbmi}" in
5742 "") enable_gdbmi
=yes ;;
5744 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5750 case ${enable_gdbmi} in
5752 if test -d "${srcdir}/mi" ; then
5753 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5754 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5755 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
5756 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5757 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5758 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
5759 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
5760 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5761 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5766 # Check whether --enable-tui or --disable-tui was given.
5767 if test "${enable_tui+set}" = set; then
5768 enableval
="$enable_tui"
5770 case "${enable_tui}" in
5772 "") enable_tui
=yes ;;
5774 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5780 case ${enable_tui} in
5782 if test -d "${srcdir}/tui" ; then
5783 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
5784 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
5785 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
5786 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
5787 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
5788 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
5789 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
5790 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
5791 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
5796 # Check whether --enable-netrom or --disable-netrom was given.
5797 if test "${enable_netrom+set}" = set; then
5798 enableval
="$enable_netrom"
5799 case "${enableval}" in
5800 yes) enable_netrom
=yes ;;
5801 no
) enable_netrom
=no
;;
5802 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5807 if test "${enable_netrom}" = "yes"; then
5808 CONFIG_LOBS
="${CONFIG_LOBS} remote-nrom.o"
5809 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5813 # NOTE: Don't add -Wall or -Wunused, they both include
5814 # -Wunused-parameter which reports bogus warnings.
5815 # NOTE: If you add to this list, remember to update
5816 # gdb/doc/gdbint.texinfo.
5817 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5818 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
5819 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5820 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5821 # -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual
5822 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5823 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5824 # -Woverloaded-virtual -Winline -Werror"
5825 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5826 if test "${enable_build_warnings+set}" = set; then
5827 enableval
="$enable_build_warnings"
5828 case "${enableval}" in
5830 no
) build_warnings
="-w";;
5831 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5832 build_warnings
="${build_warnings} ${t}";;
5833 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5834 build_warnings
="${t} ${build_warnings}";;
5835 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5837 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5838 echo "Setting compiler warning flags = $build_warnings" 6>&1
5841 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
5842 if test "${enable_gdb_build_warnings+set}" = set; then
5843 enableval
="$enable_gdb_build_warnings"
5844 case "${enableval}" in
5846 no
) build_warnings
="-w";;
5847 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5848 build_warnings
="${build_warnings} ${t}";;
5849 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5850 build_warnings
="${t} ${build_warnings}";;
5851 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5853 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5854 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5859 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5861 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
5862 echo "configure:5863: checking compiler warning flags" >&5
5863 # Separate out the -Werror flag as some files just cannot be
5864 # compiled with it enabled.
5865 for w
in ${build_warnings}; do
5867 -Werr*) WERROR_CFLAGS
=-Werror ;;
5868 *) # Check that GCC accepts it
5869 if $CC $w 2>&1 |
grep 'unrecognized option' > /dev
/null
; then
5872 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5876 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
5886 # Check whether --with-mmalloc or --without-mmalloc was given.
5887 if test "${with_mmalloc+set}" = set; then
5888 withval
="$with_mmalloc"
5889 case "${withval}" in
5890 yes) want_mmalloc
=true
;;
5891 no
) want_mmalloc
=false
;;
5892 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5898 if test x
$want_mmalloc = xtrue
; then
5899 cat >> confdefs.h
<<\EOF
5900 #define USE_MMALLOC 1
5903 cat >> confdefs.h
<<\EOF
5904 #define MMCHECK_FORCE 1
5907 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5908 MMALLOC
='../mmalloc/libmmalloc.a'
5911 # Check whether --with-included-regex or --without-included-regex was given.
5912 if test "${with_included_regex+set}" = set; then
5913 withval
="$with_included_regex"
5914 case "${withval}" in
5915 yes) want_included_regex
=true
;;
5916 no
) want_included_regex
=false
;;
5917 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
5920 want_included_regex
=true
5923 if test $want_included_regex = false
; then
5924 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
5925 echo "configure:5926: checking for GNU regex" >&5
5926 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 cat > conftest.
$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5932 #include <gnu-versions.h>
5933 #include <sys/types.h>
5936 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
5937 #error No valid GNU regex.
5942 if { (eval echo configure
:5943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5944 gdb_cv_have_gnu_regex
=yes
5946 echo "configure: failed program was:" >&5
5947 cat conftest.
$ac_ext >&5
5949 gdb_cv_have_gnu_regex
=no
5954 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
5955 if test $gdb_cv_have_gnu_regex = no
; then
5956 want_included_regex
=true
5960 if test x
${want_included_regex} = xtrue
; then
5962 cat >> confdefs.h
<<\EOF
5963 #define USE_INCLUDED_REGEX 1
5969 # In the Cygwin environment, we need some additional flags.
5970 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5971 echo "configure:5972: checking for cygwin" >&5
5972 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 cat > conftest.
$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5979 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 egrep "lose" >/dev
/null
2>&1; then
5986 gdb_cv_os_cygwin
=yes
5995 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5998 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6000 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6001 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6006 if test x
$gdb_host = xgo32
; then
6009 if test x
$gdb_cv_os_cygwin = xyes
; then
6010 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6013 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6014 echo "configure:6015: checking for tgetent in -lncurses" >&5
6015 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6017 echo $ac_n "(cached) $ac_c" 1>&6
6019 ac_save_LIBS
="$LIBS"
6020 LIBS
="-lncurses $LIBS"
6021 cat > conftest.
$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6033 if { (eval echo configure
:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6035 eval "ac_cv_lib_$ac_lib_var=yes"
6037 echo "configure: failed program was:" >&5
6038 cat conftest.
$ac_ext >&5
6040 eval "ac_cv_lib_$ac_lib_var=no"
6043 LIBS
="$ac_save_LIBS"
6046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6050 echo "$ac_t""no" 1>&6
6051 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6052 echo "configure:6053: checking for tgetent in -lHcurses" >&5
6053 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 ac_save_LIBS
="$LIBS"
6058 LIBS
="-lHcurses $LIBS"
6059 cat > conftest.
$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6071 if { (eval echo configure
:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6073 eval "ac_cv_lib_$ac_lib_var=yes"
6075 echo "configure: failed program was:" >&5
6076 cat conftest.
$ac_ext >&5
6078 eval "ac_cv_lib_$ac_lib_var=no"
6081 LIBS
="$ac_save_LIBS"
6084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6085 echo "$ac_t""yes" 1>&6
6088 echo "$ac_t""no" 1>&6
6089 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6090 echo "configure:6091: checking for tgetent in -ltermlib" >&5
6091 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 ac_save_LIBS
="$LIBS"
6096 LIBS
="-ltermlib $LIBS"
6097 cat > conftest.
$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6109 if { (eval echo configure
:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6111 eval "ac_cv_lib_$ac_lib_var=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.
$ac_ext >&5
6116 eval "ac_cv_lib_$ac_lib_var=no"
6119 LIBS
="$ac_save_LIBS"
6122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6123 echo "$ac_t""yes" 1>&6
6126 echo "$ac_t""no" 1>&6
6127 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6128 echo "configure:6129: checking for tgetent in -ltermcap" >&5
6129 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 ac_save_LIBS
="$LIBS"
6134 LIBS
="-ltermcap $LIBS"
6135 cat > conftest.
$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6147 if { (eval echo configure
:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6149 eval "ac_cv_lib_$ac_lib_var=yes"
6151 echo "configure: failed program was:" >&5
6152 cat conftest.
$ac_ext >&5
6154 eval "ac_cv_lib_$ac_lib_var=no"
6157 LIBS
="$ac_save_LIBS"
6160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6161 echo "$ac_t""yes" 1>&6
6164 echo "$ac_t""no" 1>&6
6165 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6166 echo "configure:6167: checking for tgetent in -lcurses" >&5
6167 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6169 echo $ac_n "(cached) $ac_c" 1>&6
6171 ac_save_LIBS
="$LIBS"
6172 LIBS
="-lcurses $LIBS"
6173 cat > conftest.
$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6185 if { (eval echo configure
:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6187 eval "ac_cv_lib_$ac_lib_var=yes"
6189 echo "configure: failed program was:" >&5
6190 cat conftest.
$ac_ext >&5
6192 eval "ac_cv_lib_$ac_lib_var=no"
6195 LIBS
="$ac_save_LIBS"
6198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6199 echo "$ac_t""yes" 1>&6
6202 echo "$ac_t""no" 1>&6
6203 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
6204 echo "configure:6205: checking for tgetent in -lterminfo" >&5
6205 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
6206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6209 ac_save_LIBS
="$LIBS"
6210 LIBS
="-lterminfo $LIBS"
6211 cat > conftest.
$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6223 if { (eval echo configure
:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6225 eval "ac_cv_lib_$ac_lib_var=yes"
6227 echo "configure: failed program was:" >&5
6228 cat conftest.
$ac_ext >&5
6230 eval "ac_cv_lib_$ac_lib_var=no"
6233 LIBS
="$ac_save_LIBS"
6236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6240 echo "$ac_t""no" 1>&6
6254 if test "x$TERM_LIB" = x
6256 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
6262 # libreadline needs libuser32.a in a cygwin environment
6264 if test x
$gdb_cv_os_cygwin = xyes
; then
6265 WIN32LIBS
="-luser32"
6267 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
6273 LIBGUI
="../libgui/src/libgui.a"
6274 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
6278 # Check whether --with-cpu or --without-cpu was given.
6279 if test "${with_cpu+set}" = set; then
6282 powerpc-
* | powerpcle-
* )
6283 ## It would be nice to keep this table in sync with the one in
6285 case "${with_cpu}" in
6286 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
6288 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
6290 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
6291 ## These are all RS6000 variants, as far as GDB is concerned.
6301 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
6307 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
6310 cat >> confdefs.h
<<EOF
6311 #define TARGET_CPU_DEFAULT "${with_cpu}"
6319 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6320 if test "${enable_gdbtk+set}" = set; then
6321 enableval
="$enable_gdbtk"
6322 case "${enableval}" in
6326 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6329 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6337 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
6341 # Default is on for everything but go32 and Cygwin
6346 if test -d "${srcdir}/gdbtk" ; then
6362 if test "${enable_gdbtk}" = "yes"; then
6366 # Ok, lets find the tcl configuration
6367 # First, look for one uninstalled.
6368 # the alternative search directory is invoked by --with-tclconfig
6371 if test x
"${no_tcl}" = x
; then
6372 # we reset no_tcl in case something fails here
6374 # Check whether --with-tclconfig or --without-tclconfig was given.
6375 if test "${with_tclconfig+set}" = set; then
6376 withval
="$with_tclconfig"
6377 with_tclconfig
=${withval}
6380 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
6381 echo "configure:6382: checking for Tcl configuration" >&5
6382 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6387 # First check to see if --with-tclconfig was specified.
6388 if test x
"${with_tclconfig}" != x
; then
6389 if test -f "${with_tclconfig}/tclConfig.sh" ; then
6390 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
6392 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
6396 # then check for a private Tcl installation
6397 if test x
"${ac_cv_c_tclconfig}" = x
; then
6400 `ls -dr ../tcl[7-9]* 2>/dev/null` \
6402 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
6404 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
6405 if test -f "$i/${configdir}/tclConfig.sh" ; then
6406 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6411 # check in a few common install locations
6412 if test x
"${ac_cv_c_tclconfig}" = x
; then
6413 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6414 if test -f "$i/tclConfig.sh" ; then
6415 ac_cv_c_tclconfig
=`(cd $i; pwd)`
6420 # check in a few other private locations
6421 if test x
"${ac_cv_c_tclconfig}" = x
; then
6424 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
6425 if test -f "$i/${configdir}/tclConfig.sh" ; then
6426 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6434 if test x
"${ac_cv_c_tclconfig}" = x
; then
6435 TCLCONFIG
="# no Tcl configs found"
6436 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
6439 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
6440 echo "$ac_t""found $TCLCONFIG" 1>&6
6444 if test -z "${no_tcl}"; then
6474 # Ok, lets find the tk configuration
6475 # First, look for one uninstalled.
6476 # the alternative search directory is invoked by --with-tkconfig
6479 if test x
"${no_tk}" = x
; then
6480 # we reset no_tk in case something fails here
6482 # Check whether --with-tkconfig or --without-tkconfig was given.
6483 if test "${with_tkconfig+set}" = set; then
6484 withval
="$with_tkconfig"
6485 with_tkconfig
=${withval}
6488 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6489 echo "configure:6490: checking for Tk configuration" >&5
6490 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6495 # First check to see if --with-tkconfig was specified.
6496 if test x
"${with_tkconfig}" != x
; then
6497 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6498 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
6500 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
6504 # then check for a private Tk library
6505 if test x
"${ac_cv_c_tkconfig}" = x
; then
6508 `ls -dr ../tk[4-9]* 2>/dev/null` \
6510 `ls -dr ../../tk[4-9]* 2>/dev/null` \
6512 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
6513 if test -f "$i/${configdir}/tkConfig.sh" ; then
6514 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6519 # check in a few common install locations
6520 if test x
"${ac_cv_c_tkconfig}" = x
; then
6521 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6522 if test -f "$i/tkConfig.sh" ; then
6523 ac_cv_c_tkconfig
=`(cd $i; pwd)`
6528 # check in a few other private locations
6529 if test x
"${ac_cv_c_tkconfig}" = x
; then
6532 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
6533 if test -f "$i/${configdir}/tkConfig.sh" ; then
6534 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6542 if test x
"${ac_cv_c_tkconfig}" = x
; then
6543 TKCONFIG
="# no Tk configs found"
6544 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6547 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
6548 echo "$ac_t""found $TKCONFIG" 1>&6
6554 # If $no_tk is nonempty, then we can't do Tk, and there is no
6555 # point to doing Tcl.
6556 if test -z "${no_tk}"; then
6558 if test -f "$TKCONFIG" ; then
6576 # Ok, lets find the tcl source trees so we can use the headers
6577 # Warning: transition of version 9 to 10 will break this algorithm
6578 # because 10 sorts before 9. We also look for just tcl. We have to
6579 # be careful that we don't match stuff like tclX by accident.
6580 # the alternative search directory is involked by --with-tclinclude
6584 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6585 echo "configure:6586: checking for Tcl private headers. dir=${configdir}" >&5
6586 # Check whether --with-tclinclude or --without-tclinclude was given.
6587 if test "${with_tclinclude+set}" = set; then
6588 withval
="$with_tclinclude"
6589 with_tclinclude
=${withval}
6592 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6596 # first check to see if --with-tclinclude was specified
6597 if test x
"${with_tclinclude}" != x
; then
6598 if test -f ${with_tclinclude}/tclInt.h
; then
6599 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
6600 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
6601 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
6603 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6607 # next check if it came with Tcl configuration file
6608 if test x
"${ac_cv_c_tclconfig}" = x
; then
6609 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
6610 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
6614 # next check in private source directory
6616 # since ls returns lowest version numbers first, reverse its output
6617 if test x
"${ac_cv_c_tclh}" = x
; then
6620 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6621 ${srcdir}/..
/..
/tcl \
6622 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6623 ${srcdir}/..
/..
/..
/tcl \
6624 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6625 if test -f $i/generic
/tclInt.h
; then
6626 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6631 # finally check in a few common install locations
6633 # since ls returns lowest version numbers first, reverse its output
6634 if test x
"${ac_cv_c_tclh}" = x
; then
6636 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6637 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6638 /usr
/local
/src
/tcl \
6639 /usr
/local
/lib
/tcl \
6640 ${prefix}/include
; do
6641 if test -f $i/generic
/tclInt.h
; then
6642 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6647 # see if one is installed
6648 if test x
"${ac_cv_c_tclh}" = x
; then
6649 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6650 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6651 echo "configure:6652: checking for tclInt.h" >&5
6652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 cat > conftest.
$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6660 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6661 { (eval echo configure
:6662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6662 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6663 if test -z "$ac_err"; then
6665 eval "ac_cv_header_$ac_safe=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.
$ac_ext >&5
6671 eval "ac_cv_header_$ac_safe=no"
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_cv_c_tclh
=installed
6679 echo "$ac_t""no" 1>&6
6687 if test x
"${ac_cv_c_tclh}" = x
; then
6688 TCLHDIR
="# no Tcl private headers found"
6689 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6691 if test x
"${ac_cv_c_tclh}" != x
; then
6693 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
6694 echo "$ac_t""is installed" 1>&6
6697 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6698 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6699 TCLHDIR
="-I${ac_cv_c_tclh}"
6707 # Ok, lets find the tk source trees so we can use the headers
6708 # If the directory (presumably symlink) named "tk" exists, use that one
6709 # in preference to any others. Same logic is used when choosing library
6710 # and again with Tcl. The search order is the best place to look first, then in
6711 # decreasing significance. The loop breaks if the trigger file is found.
6712 # Note the gross little conversion here of srcdir by cd'ing to the found
6713 # directory. This converts the path from a relative to an absolute, so
6714 # recursive cache variables for the path will work right. We check all
6715 # the possible paths in one loop rather than many seperate loops to speed
6717 # the alternative search directory is involked by --with-tkinclude
6720 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6721 echo "configure:6722: checking for Tk private headers" >&5
6722 # Check whether --with-tkinclude or --without-tkinclude was given.
6723 if test "${with_tkinclude+set}" = set; then
6724 withval
="$with_tkinclude"
6725 with_tkinclude
=${withval}
6728 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6732 # first check to see if --with-tkinclude was specified
6733 if test x
"${with_tkinclude}" != x
; then
6734 if test -f ${with_tkinclude}/tk.h
; then
6735 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6736 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6737 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6739 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6743 # next check if it came with Tk configuration file
6744 if test x
"${ac_cv_c_tkconfig}" = x
; then
6745 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6746 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6750 # next check in private source directory
6752 # since ls returns lowest version numbers first, reverse its output
6753 if test x
"${ac_cv_c_tkh}" = x
; then
6756 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6757 ${srcdir}/..
/..
/tk \
6758 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6759 ${srcdir}/..
/..
/..
/tk \
6760 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6761 if test -f $i/generic
/tk.h
; then
6762 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6767 # finally check in a few common install locations
6769 # since ls returns lowest version numbers first, reverse its output
6770 if test x
"${ac_cv_c_tkh}" = x
; then
6772 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6773 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6776 ${prefix}/include
; do
6777 if test -f $i/generic
/tk.h
; then
6778 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6783 # see if one is installed
6784 if test x
"${ac_cv_c_tkh}" = x
; then
6785 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6786 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6787 echo "configure:6788: checking for tk.h" >&5
6788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6791 cat > conftest.
$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6796 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6797 { (eval echo configure
:6798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6798 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6799 if test -z "$ac_err"; then
6801 eval "ac_cv_header_$ac_safe=yes"
6804 echo "configure: failed program was:" >&5
6805 cat conftest.
$ac_ext >&5
6807 eval "ac_cv_header_$ac_safe=no"
6811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6812 echo "$ac_t""yes" 1>&6
6813 ac_cv_c_tkh
=installed
6815 echo "$ac_t""no" 1>&6
6823 if test x
"${ac_cv_c_tkh}" != x
; then
6825 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6826 echo "$ac_t""is installed" 1>&6
6829 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6830 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6831 TKHDIR
="-I${ac_cv_c_tkh}"
6834 TKHDIR
="# no Tk directory found"
6835 echo "configure: warning: Can't find Tk private headers" 1>&2
6842 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6843 echo "configure:6844: checking for Itcl private headers. srcdir=${srcdir}" >&5
6844 if test x
"${ac_cv_c_itclh}" = x
; then
6845 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6846 if test -f $i/generic
/itcl.h
; then
6847 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6852 if test x
"${ac_cv_c_itclh}" = x
; then
6853 ITCLHDIR
="# no Itcl private headers found"
6854 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6856 if test x
"${ac_cv_c_itclh}" != x
; then
6857 ITCLHDIR
="-I${ac_cv_c_itclh}"
6859 # should always be here
6860 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6865 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6866 echo "configure:6867: checking for Itk private headers. srcdir=${srcdir}" >&5
6867 if test x
"${ac_cv_c_itkh}" = x
; then
6868 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6869 if test -f $i/generic
/itk.h
; then
6870 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6875 if test x
"${ac_cv_c_itkh}" = x
; then
6876 ITKHDIR
="# no Itk private headers found"
6877 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6879 if test x
"${ac_cv_c_itkh}" != x
; then
6880 ITKHDIR
="-I${ac_cv_c_itkh}"
6882 # should always be here
6883 # ITKLIB="../itcl/itk/unix/libitk.a"
6888 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6889 echo "configure:6890: checking for Tix private headers. srcdir=${srcdir}" >&5
6890 if test x
"${ac_cv_c_tixh}" = x
; then
6891 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6892 if test -f $i/generic
/tix.h
; then
6893 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6898 if test x
"${ac_cv_c_tixh}" = x
; then
6899 TIXHDIR
="# no Tix private headers found"
6900 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6902 if test x
"${ac_cv_c_tixh}" != x
; then
6903 TIXHDIR
="-I${ac_cv_c_tixh}"
6908 # now look for Itcl library stuff
6912 # Ok, lets find the itcl configuration
6913 # First, look for one uninstalled.
6914 # the alternative search directory is invoked by --with-itclconfig
6917 if test x
"${no_itcl}" = x
; then
6918 # we reset no_itcl in case something fails here
6920 # Check whether --with-itclconfig or --without-itclconfig was given.
6921 if test "${with_itclconfig+set}" = set; then
6922 withval
="$with_itclconfig"
6923 with_itclconfig
=${withval}
6926 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6927 echo "configure:6928: checking for Itcl configuration" >&5
6928 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6933 # First check to see if --with-itclconfig was specified.
6934 if test x
"${with_itclconfig}" != x
; then
6935 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6936 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6938 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6942 # then check for a private Itcl library
6943 if test x
"${ac_cv_c_itclconfig}" = x
; then
6946 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6948 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6950 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6951 if test -f "$i/itclConfig.sh" ; then
6952 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6957 # check in a few common install locations
6958 if test x
"${ac_cv_c_itclconfig}" = x
; then
6959 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6960 if test -f "$i/itclConfig.sh" ; then
6961 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6966 # check in a few other private locations
6967 if test x
"${ac_cv_c_itclconfig}" = x
; then
6969 ${srcdir}/..
/itcl
/itcl \
6970 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6971 if test -f "$i/itclConfig.sh" ; then
6972 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6980 if test x
"${ac_cv_c_itclconfig}" = x
; then
6981 ITCLCONFIG
="# no Itcl configs found"
6982 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6985 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6986 echo "$ac_t""found $ITCLCONFIG" 1>&6
6990 if test -z "${no_itcl}"; then
6992 if test -f "$ITCLCONFIG" ; then
7008 itcldir
=..
/itcl
/itcl
/win
/
7011 itcldir
=..
/itcl
/itcl
/unix
/
7016 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7017 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
7021 # now look for Itk library stuff
7024 # Ok, lets find the itk configuration
7025 # First, look for one uninstalled.
7026 # the alternative search directory is invoked by --with-itkconfig
7029 if test x
"${no_itk}" = x
; then
7030 # we reset no_itk in case something fails here
7032 # Check whether --with-itkconfig or --without-itkconfig was given.
7033 if test "${with_itkconfig+set}" = set; then
7034 withval
="$with_itkconfig"
7035 with_itkconfig
=${withval}
7038 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7039 echo "configure:7040: checking for Itk configuration" >&5
7040 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7045 # First check to see if --with-itkconfig was specified.
7046 if test x
"${with_itkconfig}" != x
; then
7047 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7048 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7050 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7054 # then check for a private Itk library
7055 if test x
"${ac_cv_c_itkconfig}" = x
; then
7058 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7060 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7062 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7063 if test -f "$i/itkConfig.sh" ; then
7064 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7069 # check in a few common install locations
7070 if test x
"${ac_cv_c_itkconfig}" = x
; then
7071 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7072 if test -f "$i/itkConfig.sh" ; then
7073 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7078 # check in a few other private locations
7079 if test x
"${ac_cv_c_itkconfig}" = x
; then
7081 ${srcdir}/..
/itcl
/itk \
7082 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7083 if test -f "$i/itkConfig.sh" ; then
7084 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7092 if test x
"${ac_cv_c_itkconfig}" = x
; then
7093 ITKCONFIG
="# no Itk configs found"
7094 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
7097 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
7098 echo "$ac_t""found $ITKCONFIG" 1>&6
7103 if test -z "${no_itcl}"; then
7105 if test -f "$ITKCONFIG" ; then
7122 itkdir
=..
/itcl
/itk
/win
/
7125 itkdir
=..
/itcl
/itk
/unix
/
7129 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
7130 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
7133 # now look for Tix library stuff
7136 # Ok, lets find the tix configuration
7137 # First, look for one uninstalled.
7138 # the alternative search directory is invoked by --with-itkconfig
7141 if test x
"${no_tix}" = x
; then
7142 # we reset no_tix in case something fails here
7144 # Check whether --with-tixconfig or --without-tixconfig was given.
7145 if test "${with_tixconfig+set}" = set; then
7146 withval
="$with_tixconfig"
7147 with_tixconfig
=${withval}
7150 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
7151 echo "configure:7152: checking for Tix configuration" >&5
7152 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7157 # First check to see if --with-tixconfig was specified.
7158 if test x
"${with_tixconfig}" != x
; then
7159 if test -f "${with_tixconfig}/tixConfig.sh" ; then
7160 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
7162 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
7166 # then check for a private Tix library
7167 if test x
"${ac_cv_c_tixconfig}" = x
; then
7170 `ls -dr ../tix 2>/dev/null` \
7172 `ls -dr ../../tix 2>/dev/null` \
7174 `ls -dr ../../../tix 2>/dev/null` ; do
7175 echo "**** Looking at $i - with ${configdir}"
7176 if test -f "$i/tixConfig.sh" ; then
7177 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7182 # check in a few common install locations
7183 if test x
"${ac_cv_c_tixconfig}" = x
; then
7184 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7185 echo "**** Looking at $i"
7186 if test -f "$i/tixConfig.sh" ; then
7187 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7192 # check in a few other private locations
7193 echo "**** Other private locations"
7194 if test x
"${ac_cv_c_tixconfig}" = x
; then
7197 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
7198 echo "**** Looking at $i - with ${configdir}"
7199 if test -f "$i/${configdir}/tixConfig.sh" ; then
7200 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
7208 if test x
"${ac_cv_c_tixconfig}" = x
; then
7209 TIXCONFIG
="# no Tix configs found"
7210 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
7213 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
7214 echo "$ac_t""found $TIXCONFIG" 1>&6
7219 if test -z "${no_tix}"; then
7221 if test -f "$TIXCONFIG" ; then
7232 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
7233 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
7236 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
7237 # Tcl/Tk 8.1 require -fwritable strings. I don't
7238 # know whether 8.2 will or not, but I bet it will.
7239 # I don't have to worry about 7.x since we don't support it.
7241 if test "$GCC" = "yes"; then
7242 if test "$TCL_VERSION" != "8.0" ; then
7243 GDBTK_CFLAGS
="-fwritable-strings"
7247 # Include some libraries that Tcl and Tk want.
7248 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
7249 # Yes, the ordering seems wrong here. But it isn't.
7250 # TK_LIBS is the list of libraries that need to be linked
7251 # after Tcl/Tk. Note that this isn't put into LIBS. If it
7252 # were in LIBS then any link tests after this point would
7253 # try to include things like `$(LIBGUI)', which wouldn't work.
7254 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
7256 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
7257 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
7258 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
7259 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
7260 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
7261 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
7262 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
7263 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
7265 if test x
$gdb_cv_os_cygwin = xyes
; then
7266 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
7267 WIN32LDAPP
="-Wl,--subsystem,console"
7268 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
7286 # If we find X, set shell vars x_includes and x_libraries to the
7287 # paths, otherwise set no_x=yes.
7288 # Uses ac_ vars as temps to allow command line to override cache and checks.
7289 # --without-x overrides everything else, but does not touch the cache.
7290 echo $ac_n "checking for X""... $ac_c" 1>&6
7291 echo "configure:7292: checking for X" >&5
7293 # Check whether --with-x or --without-x was given.
7294 if test "${with_x+set}" = set; then
7299 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7300 if test "x$with_x" = xno
; then
7301 # The user explicitly disabled X.
7304 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7305 # Both variables are already set.
7308 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 # One or both of the vars are not set, and there is no cached value.
7312 ac_x_includes
=NO ac_x_libraries
=NO
7314 if mkdir conftestdir
; then
7316 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7317 cat > Imakefile
<<'EOF'
7319 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7321 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7323 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7324 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7325 for ac_extension
in a so sl
; do
7326 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7327 test -f $ac_im_libdir/libX11.
$ac_extension; then
7328 ac_im_usrlibdir
=$ac_im_libdir; break
7331 # Screen out bogus values from the imake configuration. They are
7332 # bogus both because they are the default anyway, and because
7333 # using them would break gcc on systems where it needs fixed includes.
7334 case "$ac_im_incroot" in
7336 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
7338 case "$ac_im_usrlibdir" in
7340 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
7347 if test "$ac_x_includes" = NO
; then
7348 # Guess where to find include files, by looking for this one X11 .h file.
7349 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
7351 # First, try using that file with no special directory specified.
7352 cat > conftest.
$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 #include <$x_direct_test_include>
7357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7358 { (eval echo configure
:7359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7360 if test -z "$ac_err"; then
7362 # We can compile using X headers with no special include directory.
7366 echo "configure: failed program was:" >&5
7367 cat conftest.
$ac_ext >&5
7369 # Look for the header file in a standard set of common directories.
7370 # Check X11 before X11Rn because it is often a symlink to the current release.
7373 /usr
/X11R
6/include \
7374 /usr
/X11R
5/include \
7375 /usr
/X11R
4/include \
7378 /usr
/include
/X11R6 \
7379 /usr
/include
/X11R5 \
7380 /usr
/include
/X11R4 \
7382 /usr
/local
/X11
/include \
7383 /usr
/local
/X11R
6/include \
7384 /usr
/local
/X11R
5/include \
7385 /usr
/local
/X11R
4/include \
7387 /usr
/local
/include
/X11 \
7388 /usr
/local
/include
/X11R6 \
7389 /usr
/local
/include
/X11R5 \
7390 /usr
/local
/include
/X11R4 \
7394 /usr
/XFree86
/include
/X11 \
7397 /usr
/local
/include \
7398 /usr
/unsupported
/include \
7399 /usr
/athena
/include \
7400 /usr
/local
/x11r
5/include \
7401 /usr
/lpp
/Xamples
/include \
7403 /usr
/openwin
/include \
7404 /usr
/openwin
/share
/include \
7407 if test -r "$ac_dir/$x_direct_test_include"; then
7408 ac_x_includes
=$ac_dir
7414 fi # $ac_x_includes = NO
7416 if test "$ac_x_libraries" = NO
; then
7417 # Check for the libraries.
7419 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
7420 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
7422 # See if we find them without any special options.
7423 # Don't add to $LIBS permanently.
7424 ac_save_LIBS
="$LIBS"
7425 LIBS
="-l$x_direct_test_library $LIBS"
7426 cat > conftest.
$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7431 ${x_direct_test_function}()
7434 if { (eval echo configure
:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7436 LIBS
="$ac_save_LIBS"
7437 # We can link X programs with no special library path.
7440 echo "configure: failed program was:" >&5
7441 cat conftest.
$ac_ext >&5
7443 LIBS
="$ac_save_LIBS"
7444 # First see if replacing the include by lib works.
7445 # Check X11 before X11Rn because it is often a symlink to the current release.
7446 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
7457 /usr
/local
/X11
/lib \
7458 /usr
/local
/X11R
6/lib \
7459 /usr
/local
/X11R
5/lib \
7460 /usr
/local
/X11R
4/lib \
7462 /usr
/local
/lib
/X11 \
7463 /usr
/local
/lib
/X11R6 \
7464 /usr
/local
/lib
/X11R5 \
7465 /usr
/local
/lib
/X11R4 \
7469 /usr
/XFree86
/lib
/X11 \
7473 /usr
/unsupported
/lib \
7475 /usr
/local
/x11r
5/lib \
7476 /usr
/lpp
/Xamples
/lib \
7480 /usr
/openwin
/share
/lib \
7483 for ac_extension
in a so sl
; do
7484 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
7485 ac_x_libraries
=$ac_dir
7492 fi # $ac_x_libraries = NO
7494 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
7495 # Didn't find X anywhere. Cache the known absence of X.
7496 ac_cv_have_x
="have_x=no"
7498 # Record where we found X for the cache.
7499 ac_cv_have_x
="have_x=yes \
7500 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7504 eval "$ac_cv_have_x"
7507 if test "$have_x" != yes; then
7508 echo "$ac_t""$have_x" 1>&6
7511 # If each of the values was on the command line, it overrides each guess.
7512 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7513 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7514 # Update the cache value to reflect the command line values.
7515 ac_cv_have_x
="have_x=yes \
7516 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7517 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7522 # Unlike the sim directory, whether a simulator is linked is controlled by
7523 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7524 # This code just checks for a few cases where we'd like to ignore those
7525 # definitions, even when they're present in the '.mt' file. These cases
7526 # are when --disable-sim is specified, or if the simulator directory is
7527 # not part of the soruce tree.
7529 # Check whether --enable-sim or --disable-sim was given.
7530 if test "${enable_sim+set}" = set; then
7531 enableval
="$enable_sim"
7532 echo "enable_sim = $enable_sim";
7533 echo "enableval = ${enableval}";
7534 case "${enableval}" in
7535 yes) ignore_sim
=false
;;
7536 no
) ignore_sim
=true
;;
7537 *) ignore_sim
=false
;;
7544 if test ! -d "${srcdir}/../sim"; then
7548 if test "${ignore_sim}" = "true"; then
7550 IGNORE_SIM_OBS
="SIM_OBS="
7554 cat >> confdefs.h
<<\EOF
7574 # Begin stuff to support --enable-shared
7575 # Check whether --enable-shared or --disable-shared was given.
7576 if test "${enable_shared+set}" = set; then
7577 enableval
="$enable_shared"
7578 case "${enableval}" in
7587 # If we have shared libraries, try to set rpath reasonably.
7588 if test "${shared}" = "true"; then
7591 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
7593 *-*-irix5* |
*-*-irix6*)
7594 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7598 *-*-linux* |
*-pc-linux-gnu*)
7599 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7602 HLDFLAGS
='-R $(libdir)'
7605 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;'
7610 # On SunOS, if the linker supports the -rpath option, use it to
7611 # prevent ../bfd and ../opcodes from being included in the run time
7615 echo 'main () { }' > conftest.c
7616 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
7617 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
7619 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
7621 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
7623 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
7625 elif test "${shared}" = "true"; then
7626 HLDFLAGS
='-Wl,-rpath=$(libdir)'
7628 HLDFLAGS
='-Wl,-rpath='
7630 rm -f conftest.t conftest.c conftest
7635 # End stuff to support --enable-shared
7637 # target_subdir is used by the testsuite to find the target libraries.
7639 if test "${host}" != "${target}"; then
7640 target_subdir
="${target_alias}/"
7645 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7646 if test ! -f ${host_makefile_frag}; then
7647 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
7649 frags
="$frags $host_makefile_frag"
7651 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7652 if test ! -f ${target_makefile_frag}; then
7653 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
7655 frags
="$frags $target_makefile_frag"
7662 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7663 ' ${host_makefile_frag}`
7665 targetfile
=`sed -n '
7666 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7667 ' ${target_makefile_frag}`
7669 GDB_MULTI_ARCH
=`sed -n '
7670 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
7671 ' ${target_makefile_frag}`
7673 # these really aren't orthogonal true/false values of the same condition,
7674 # but shells are slow enough that I like to reuse the test conditions
7676 if test "${target}" = "${host}"; then
7677 nativefile
=`sed -n '
7678 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7679 ' ${host_makefile_frag}`
7681 # GDBserver is only useful in a "native" enviroment
7682 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7686 # New targets should just set gdb_multi_arch=yes in configure.tgt.
7687 # Old targets being converted can either do that or set GDB_MULTI_ARCH
7688 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
7689 # will be the default.
7690 if test x
"${GDB_MULTI_ARCH}" = x
; then
7691 case "${gdb_multi_arch}" in
7692 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
7693 no
) GDB_MULTI_ARCH
=0 ;;
7694 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
7697 if test x
"${GDB_MULTI_ARCH}" != x
; then
7698 cat >> confdefs.h
<<EOF
7699 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
7703 # Warn the user when they use an old pratice
7704 case "${GDB_MULTI_ARCH}" in
7706 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
7707 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
7708 GDB_MULTI_ARCH_PURE
)
7709 if test x
"${targetfile}" != x
; then
7710 echo "configure: warning: "GDB
: Ingoring TM_FILE
in ${target_makefile_frag}"" 1>&2
7713 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
7717 SUBDIRS
="doc testsuite nlm"
7718 if test "${enable_multi_ice}" = "yes"; then
7719 SUBDIRS
="${SUBDIRS} multi-ice"
7724 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7725 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
7733 if test "${hostfile}" != ""; then
7735 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
7736 files
="${files} ${GDB_XM_FILE}"
7737 links
="${links} xm.h"
7738 cat >> confdefs.h
<<EOF
7739 #define GDB_XM_FILE ${GDB_XM_FILE}
7747 if test "${targetfile}" != ""; then
7749 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
7750 files
="${files} ${GDB_TM_FILE}"
7751 links
="${links} tm.h"
7752 cat >> confdefs.h
<<EOF
7753 #define GDB_TM_FILE ${GDB_TM_FILE}
7761 if test "${nativefile}" != ""; then
7763 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
7764 files
="${files} ${GDB_NM_FILE}"
7765 links
="${links} nm.h"
7766 cat >> confdefs.h
<<EOF
7767 #define GDB_NM_FILE ${GDB_NM_FILE}
7773 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7774 echo "configure:7775: checking whether ln -s works" >&5
7775 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7779 if ln -s X conftestdata
2>/dev
/null
7782 ac_cv_prog_LN_S
="ln -s"
7787 LN_S
="$ac_cv_prog_LN_S"
7788 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7789 echo "$ac_t""yes" 1>&6
7791 echo "$ac_t""no" 1>&6
7797 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7798 echo "configure:7799: checking for Cygwin environment" >&5
7799 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6
7802 cat > conftest.
$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7809 #define __CYGWIN__ __CYGWIN32__
7814 if { (eval echo configure
:7815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7818 echo "configure: failed program was:" >&5
7819 cat conftest.
$ac_ext >&5
7827 echo "$ac_t""$ac_cv_cygwin" 1>&6
7829 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7830 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7831 echo "configure:7832: checking for mingw32 environment" >&5
7832 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7835 cat > conftest.
$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7843 if { (eval echo configure
:7844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7847 echo "configure: failed program was:" >&5
7848 cat conftest.
$ac_ext >&5
7856 echo "$ac_t""$ac_cv_mingw32" 1>&6
7858 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7861 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7862 echo "configure:7863: checking for executable suffix" >&5
7863 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7864 echo $ac_n "(cached) $ac_c" 1>&6
7866 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7870 echo 'int main () { return 0; }' > conftest.
$ac_ext
7872 if { (eval echo configure
:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7873 for file in conftest.
*; do
7875 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
7876 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7880 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7883 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7888 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7889 echo "$ac_t""${ac_cv_exeext}" 1>&6
7893 subdirs
="$configdirs"
7896 cat > confcache
<<\EOF
7897 # This file is a shell script that caches the results of configure
7898 # tests run on this system so they can be shared between configure
7899 # scripts and configure runs. It is not useful on other systems.
7900 # If it contains results you don't want to keep, you may remove or edit it.
7902 # By default, configure uses ./config.cache as the cache file,
7903 # creating it if it does not exist already. You can give configure
7904 # the --cache-file=FILE option to use a different cache file; that is
7905 # what configure does when it calls configure scripts in
7906 # subdirectories, so they share the cache.
7907 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7908 # config.status only pays attention to the cache file if you give it the
7909 # --recheck option to rerun configure.
7912 # The following way of writing the cache mishandles newlines in values,
7913 # but we know of no workaround that is simple, portable, and efficient.
7914 # So, don't put newlines in cache variables' values.
7915 # Ultrix sh set writes to stderr and can't be redirected directly,
7916 # and sets the high bit in the cache file unless we assign to the vars.
7918 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7920 # `set' does not quote correctly, so add quotes (double-quote substitution
7921 # turns \\\\ into \\, and sed turns \\ into \).
7923 -e "s/'/'\\\\''/g" \
7924 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7927 # `set' quotes correctly as required by POSIX, so do not add quotes.
7928 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7931 if cmp -s $cache_file confcache
; then
7934 if test -w $cache_file; then
7935 echo "updating cache $cache_file"
7936 cat confcache
> $cache_file
7938 echo "not updating unwritable cache $cache_file"
7943 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7945 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7946 # Let make expand exec_prefix.
7947 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7949 # Any assignment to VPATH causes Sun make to only execute
7950 # the first set of double-colon rules, so remove it if not needed.
7951 # If there is a colon in the path, we need to keep it.
7952 if test "x$srcdir" = x.
; then
7953 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7956 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7958 DEFS
=-DHAVE_CONFIG_H
7960 # Without the "./", some shells look in PATH for config.status.
7961 : ${CONFIG_STATUS=./config.status}
7963 echo creating
$CONFIG_STATUS
7964 rm -f $CONFIG_STATUS
7965 cat > $CONFIG_STATUS <<EOF
7967 # Generated automatically by configure.
7968 # Run this file to recreate the current configuration.
7969 # This directory was configured as follows,
7970 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7972 # $0 $ac_configure_args
7974 # Compiler output produced by configure, useful for debugging
7975 # configure, is in ./config.log if it exists.
7977 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7980 case "\$ac_option" in
7981 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7982 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7983 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7984 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7985 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7987 -help | --help | --hel | --he | --h)
7988 echo "\$ac_cs_usage"; exit 0 ;;
7989 *) echo "\$ac_cs_usage"; exit 1 ;;
7993 ac_given_srcdir=$srcdir
7994 ac_given_INSTALL="$INSTALL"
7996 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7998 cat >> $CONFIG_STATUS <<EOF
8000 # Protect against being on the right side of a sed subst in config.status.
8001 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8002 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8006 s%@CFLAGS@%$CFLAGS%g
8007 s%@CPPFLAGS@%$CPPFLAGS%g
8008 s%@CXXFLAGS@%$CXXFLAGS%g
8009 s%@FFLAGS@%$FFLAGS%g
8011 s%@LDFLAGS@%$LDFLAGS%g
8013 s%@exec_prefix@%$exec_prefix%g
8014 s%@prefix@%$prefix%g
8015 s%@program_transform_name@%$program_transform_name%g
8016 s%@bindir@%$bindir%g
8017 s%@sbindir@%$sbindir%g
8018 s%@libexecdir@%$libexecdir%g
8019 s%@datadir@%$datadir%g
8020 s%@sysconfdir@%$sysconfdir%g
8021 s%@sharedstatedir@%$sharedstatedir%g
8022 s%@localstatedir@%$localstatedir%g
8023 s%@libdir@%$libdir%g
8024 s%@includedir@%$includedir%g
8025 s%@oldincludedir@%$oldincludedir%g
8026 s%@infodir@%$infodir%g
8027 s%@mandir@%$mandir%g
8028 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8029 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8034 s%@host_alias@%$host_alias%g
8035 s%@host_cpu@%$host_cpu%g
8036 s%@host_vendor@%$host_vendor%g
8037 s%@host_os@%$host_os%g
8038 s%@target@%$target%g
8039 s%@target_alias@%$target_alias%g
8040 s%@target_cpu@%$target_cpu%g
8041 s%@target_vendor@%$target_vendor%g
8042 s%@target_os@%$target_os%g
8044 s%@build_alias@%$build_alias%g
8045 s%@build_cpu@%$build_cpu%g
8046 s%@build_vendor@%$build_vendor%g
8047 s%@build_os@%$build_os%g
8048 s%@SET_MAKE@%$SET_MAKE%g
8049 s%@RANLIB@%$RANLIB%g
8050 s%@ALLOCA@%$ALLOCA%g
8051 s%@USE_NLS@%$USE_NLS%g
8052 s%@MSGFMT@%$MSGFMT%g
8053 s%@GMSGFMT@%$GMSGFMT%g
8054 s%@XGETTEXT@%$XGETTEXT%g
8055 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8056 s%@CATALOGS@%$CATALOGS%g
8057 s%@CATOBJEXT@%$CATOBJEXT%g
8058 s%@DATADIRNAME@%$DATADIRNAME%g
8059 s%@GMOFILES@%$GMOFILES%g
8060 s%@INSTOBJEXT@%$INSTOBJEXT%g
8061 s%@INTLDEPS@%$INTLDEPS%g
8062 s%@INTLLIBS@%$INTLLIBS%g
8063 s%@INTLOBJS@%$INTLOBJS%g
8064 s%@POFILES@%$POFILES%g
8066 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8068 s%@GT_YES@%$GT_YES%g
8069 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8072 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8073 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8074 s%@INSTALL_DATA@%$INSTALL_DATA%g
8076 s%@DLLTOOL@%$DLLTOOL%g
8077 s%@WINDRES@%$WINDRES%g
8080 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
8081 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
8082 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
8083 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
8084 s%@MMALLOC@%$MMALLOC%g
8086 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
8087 s%@TERM_LIB@%$TERM_LIB%g
8088 s%@WIN32LIBS@%$WIN32LIBS%g
8089 s%@LIBGUI@%$LIBGUI%g
8090 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
8091 s%@WIN32LDAPP@%$WIN32LDAPP%g
8092 s%@TCL_VERSION@%$TCL_VERSION%g
8093 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
8094 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
8095 s%@TCL_CC@%$TCL_CC%g
8096 s%@TCL_DEFS@%$TCL_DEFS%g
8097 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
8098 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
8099 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
8100 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
8101 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
8102 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
8103 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
8104 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
8105 s%@TCL_RANLIB@%$TCL_RANLIB%g
8106 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
8107 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
8108 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
8109 s%@TK_VERSION@%$TK_VERSION%g
8110 s%@TK_DEFS@%$TK_DEFS%g
8111 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
8112 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
8113 s%@TK_XLIBSW@%$TK_XLIBSW%g
8114 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
8115 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
8116 s%@TCLHDIR@%$TCLHDIR%g
8117 s%@TKHDIR@%$TKHDIR%g
8118 s%@ITCLHDIR@%$ITCLHDIR%g
8119 s%@ITKHDIR@%$ITKHDIR%g
8120 s%@TIXHDIR@%$TIXHDIR%g
8121 s%@ITCL_VERSION@%$ITCL_VERSION%g
8122 s%@ITCL_DEFS@%$ITCL_DEFS%g
8123 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
8124 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
8125 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
8126 s%@ITK_VERSION@%$ITK_VERSION%g
8127 s%@ITK_DEFS@%$ITK_DEFS%g
8128 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
8129 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
8130 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
8131 s%@TIX_VERSION@%$TIX_VERSION%g
8132 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
8133 s%@X_CFLAGS@%$X_CFLAGS%g
8134 s%@X_LDFLAGS@%$X_LDFLAGS%g
8135 s%@X_LIBS@%$X_LIBS%g
8136 s%@ITCLLIB@%$ITCLLIB%g
8137 s%@ITCL_DEPS@%$ITCL_DEPS%g
8138 s%@ITKLIB@%$ITKLIB%g
8139 s%@ITK_DEPS@%$ITK_DEPS%g
8140 s%@TIXLIB@%$TIXLIB%g
8141 s%@TIX_DEPS@%$TIX_DEPS%g
8142 s%@GDBTKLIBS@%$GDBTKLIBS%g
8143 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
8144 s%@IGNORE_SIM@%$IGNORE_SIM%g
8145 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
8146 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
8147 s%@CONFIG_OBS@%$CONFIG_OBS%g
8148 s%@CONFIG_LOBS@%$CONFIG_LOBS%g
8149 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
8150 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
8151 s%@CONFIG_INITS@%$CONFIG_INITS%g
8152 s%@CONFIG_ALL@%$CONFIG_ALL%g
8153 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
8154 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
8155 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
8156 s%@HLDFLAGS@%$HLDFLAGS%g
8157 s%@HLDENV@%$HLDENV%g
8158 s%@target_subdir@%$target_subdir%g
8159 /@host_makefile_frag@/r $host_makefile_frag
8160 s%@host_makefile_frag@%%g
8161 /@target_makefile_frag@/r $target_makefile_frag
8162 s%@target_makefile_frag@%%g
8164 s%@SUBDIRS@%$SUBDIRS%g
8169 s%@EXEEXT@%$EXEEXT%g
8170 s%@subdirs@%$subdirs%g
8175 cat >> $CONFIG_STATUS <<\EOF
8177 # Split the substitutions into bite-sized pieces for seds with
8178 # small command number limits, like on Digital OSF/1 and HP-UX.
8179 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8180 ac_file
=1 # Number of current file.
8181 ac_beg
=1 # First line for current file.
8182 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8185 while $ac_more_lines; do
8186 if test $ac_beg -gt 1; then
8187 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8189 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8191 if test ! -s conftest.s
$ac_file; then
8193 rm -f conftest.s
$ac_file
8195 if test -z "$ac_sed_cmds"; then
8196 ac_sed_cmds
="sed -f conftest.s$ac_file"
8198 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8200 ac_file
=`expr $ac_file + 1`
8202 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8205 if test -z "$ac_sed_cmds"; then
8210 cat >> $CONFIG_STATUS <<EOF
8212 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
8214 cat >> $CONFIG_STATUS <<\EOF
8215 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8218 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8219 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8220 *) ac_file_in
="${ac_file}.in" ;;
8223 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8225 # Remove last slash and all that follows it. Not all systems have dirname.
8226 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8227 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8228 # The file is in a subdirectory.
8229 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8230 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8231 # A "../" for each directory in $ac_dir_suffix.
8232 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8234 ac_dir_suffix
= ac_dots
=
8237 case "$ac_given_srcdir" in
8239 if test -z "$ac_dots"; then top_srcdir
=.
8240 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8241 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8243 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8244 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8247 case "$ac_given_INSTALL" in
8248 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8249 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8252 echo creating
"$ac_file"
8254 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8256 *Makefile
*) ac_comsub
="1i\\
8257 # $configure_input" ;;
8261 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8263 s%@configure_input@%$configure_input%g
8264 s%@srcdir@%$srcdir%g
8265 s%@top_srcdir@%$top_srcdir%g
8266 s%@INSTALL@%$INSTALL%g
8267 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8274 # ac_d sets the value in "#define NAME VALUE" lines.
8275 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8276 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8279 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8280 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8281 ac_uB
='\([ ]\)%\1#\2define\3'
8284 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8285 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8286 ac_eB
='$%\1#\2define\3'
8290 if test "${CONFIG_HEADERS+set}" != set; then
8292 cat >> $CONFIG_STATUS <<EOF
8293 CONFIG_HEADERS="config.h:config.in"
8295 cat >> $CONFIG_STATUS <<\EOF
8297 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8300 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8301 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8302 *) ac_file_in
="${ac_file}.in" ;;
8305 echo creating
$ac_file
8307 rm -f conftest.frag conftest.
in conftest.out
8308 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8309 cat $ac_file_inputs > conftest.
in
8313 # Transform confdefs.h into a sed script conftest.vals that substitutes
8314 # the proper values into config.h.in to produce config.h. And first:
8315 # Protect against being on the right side of a sed subst in config.status.
8316 # Protect against being in an unquoted here document in config.status.
8318 cat > conftest.hdr
<<\EOF
8321 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8325 sed -n -f conftest.hdr confdefs.h > conftest.vals
8328 # This sed command replaces #undef with comments. This is necessary, for
8329 # example, in the case of _POSIX_SOURCE, which is predefined and required
8330 # on some systems where configure will not decide to define it.
8331 cat >> conftest.vals <<\EOF
8332 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8335 # Break up conftest.vals because some shells have a limit on
8336 # the size of here documents, and old seds have small limits too.
8341 ac_lines=`grep -c . conftest.vals
`
8342 # grep -c gives empty output for an empty file on some AIX systems.
8343 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8344 # Write a limited-size here document to conftest.frag.
8345 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8346 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8348 sed -f conftest.frag conftest.in > conftest.out
8350 mv conftest.out conftest.in
8352 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8354 mv conftest.tail conftest.vals
8358 cat >> $CONFIG_STATUS <<\EOF
8359 rm -f conftest.frag conftest.h
8360 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8361 cat conftest.in >> conftest.h
8363 if cmp -s $ac_file conftest.h 2>/dev/null; then
8364 echo "$ac_file is unchanged"
8367 # Remove last slash and all that follows it. Not all systems have dirname.
8368 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8369 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8370 # The file is in a subdirectory.
8371 test ! -d "$ac_dir" && mkdir "$ac_dir"
8374 mv conftest.h $ac_file
8380 cat >> $CONFIG_STATUS <<EOF
8385 cat >> $CONFIG_STATUS <<\EOF
8386 srcdir=$ac_given_srcdir
8387 while test -n "$ac_sources"; do
8388 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8389 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8391 echo "linking $srcdir/$ac_source to $ac_dest"
8393 if test ! -r $srcdir/$ac_source; then
8394 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8398 # Make relative symlinks.
8399 # Remove last slash and all that follows it. Not all systems have dirname.
8400 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
8401 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8402 # The dest file is in a subdirectory.
8403 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8404 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
8405 # A "../" for each directory in $ac_dest_dir_suffix.
8406 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
8408 ac_dest_dir_suffix= ac_dots=
8412 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8413 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8416 # Make a symlink if possible; otherwise try a hard link.
8417 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8418 ln $srcdir/$ac_source $ac_dest; then :
8420 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8424 cat >> $CONFIG_STATUS <<EOF
8426 gdb_host_cpu=$gdb_host_cpu
8427 gdb_target_cpu=$gdb_target_cpu
8428 nativefile=$nativefile
8431 cat >> $CONFIG_STATUS <<\EOF
8433 if test "${nativefile}" = ""; then
8434 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
8435 < Makefile > Makefile.tem
8436 mv -f Makefile.tem Makefile
8439 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
8440 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
8441 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
8442 mv -f Makefile.tmp Makefile
8445 case x$CONFIG_HEADERS in
8446 xconfig.h:config.in)
8452 chmod +x $CONFIG_STATUS
8453 rm -fr confdefs* $ac_clean_files
8454 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8456 if test "$no_recursion" != yes; then
8458 # Remove --cache-file and --srcdir arguments so they do not pile up.
8459 ac_sub_configure_args=
8461 for ac_arg in $ac_configure_args; do
8462 if test -n "$ac_prev"; then
8467 -cache-file | --cache-file | --cache-fil | --cache-fi \
8468 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8469 ac_prev=cache_file ;;
8470 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8471 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8473 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8475 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8477 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8481 for ac_config_dir in $configdirs; do
8483 # Do not complain, so a configure script can configure whichever
8484 # parts of a large source tree are present.
8485 if test ! -d $srcdir/$ac_config_dir; then
8489 echo configuring in $ac_config_dir
8494 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8496 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8504 # A "../" for each directory in /$ac_config_dir.
8505 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8508 .) # No --srcdir option. We are building in place.
8509 ac_sub_srcdir=$srcdir ;;
8510 /*) # Absolute path.
8511 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8513 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8516 # Check for guested configure; otherwise get Cygnus style configure.
8517 if test -f $ac_sub_srcdir/configure; then
8518 ac_sub_configure=$ac_sub_srcdir/configure
8519 elif test -f $ac_sub_srcdir/configure.in; then
8520 ac_sub_configure=$ac_configure
8522 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8526 # The recursion is here.
8527 if test -n "$ac_sub_configure"; then
8529 # Make the cache file name correct relative to the subdirectory.
8530 case "$cache_file" in
8531 /*) ac_sub_cache_file=$cache_file ;;
8533 ac_sub_cache_file="$ac_dots$cache_file" ;;
8535 case "$ac_given_INSTALL" in
8536 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8537 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8540 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8541 # The eval makes quoting arguments work.
8542 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8545 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }