3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbcli Enable GDB-CLI interface"
26 --enable-gdbmi Enable GDB-MI interface"
28 --with-uiout Use new uiout functions instead of *printf's"
30 --enable-tui Enable full-screen terminal user interface"
32 --enable-netrom Enable NetROM support"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
38 --with-mmalloc Use memory mapped malloc package"
40 --with-included-regex Use included regex"
42 --with-cpu=CPU Set the default CPU variant to debug"
44 --enable-gdbtk Enable GDBTK GUI front end"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-shared Use shared libraries"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file
=.
/config.cache
79 program_transform_name
=s
,x
,x
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host |
--host |
--hos |
--ho)
244 -host=* |
--host=* |
--hos=* |
--ho=*)
247 -includedir |
--includedir |
--includedi |
--included |
--include \
248 |
--includ |
--inclu |
--incl |
--inc)
249 ac_prev
=includedir
;;
250 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
251 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
252 includedir
="$ac_optarg" ;;
254 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
256 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
257 infodir
="$ac_optarg" ;;
259 -libdir |
--libdir |
--libdi |
--libd)
261 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
262 libdir
="$ac_optarg" ;;
264 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
265 |
--libexe |
--libex |
--libe)
266 ac_prev
=libexecdir
;;
267 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
268 |
--libexe=* |
--libex=* |
--libe=*)
269 libexecdir
="$ac_optarg" ;;
271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
272 |
--localstate |
--localstat |
--localsta |
--localst \
273 |
--locals |
--local |
--loca |
--loc |
--lo)
274 ac_prev
=localstatedir
;;
275 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
276 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
277 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
278 localstatedir
="$ac_optarg" ;;
280 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
282 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
283 mandir
="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
293 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
294 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
297 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
298 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
299 |
--oldin |
--oldi |
--old |
--ol |
--o)
300 ac_prev
=oldincludedir
;;
301 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
302 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
303 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
304 oldincludedir
="$ac_optarg" ;;
306 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
308 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
309 prefix
="$ac_optarg" ;;
311 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
312 |
--program-pre |
--program-pr |
--program-p)
313 ac_prev
=program_prefix
;;
314 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
315 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
316 program_prefix
="$ac_optarg" ;;
318 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
319 |
--program-suf |
--program-su |
--program-s)
320 ac_prev
=program_suffix
;;
321 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
322 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
323 program_suffix
="$ac_optarg" ;;
325 -program-transform-name |
--program-transform-name \
326 |
--program-transform-nam |
--program-transform-na \
327 |
--program-transform-n |
--program-transform- \
328 |
--program-transform |
--program-transfor \
329 |
--program-transfo |
--program-transf \
330 |
--program-trans |
--program-tran \
331 |
--progr-tra |
--program-tr |
--program-t)
332 ac_prev
=program_transform_name
;;
333 -program-transform-name=* |
--program-transform-name=* \
334 |
--program-transform-nam=* |
--program-transform-na=* \
335 |
--program-transform-n=* |
--program-transform-=* \
336 |
--program-transform=* |
--program-transfor=* \
337 |
--program-transfo=* |
--program-transf=* \
338 |
--program-trans=* |
--program-tran=* \
339 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
340 program_transform_name
="$ac_optarg" ;;
342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
343 |
-silent |
--silent |
--silen |
--sile |
--sil)
346 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
348 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
350 sbindir
="$ac_optarg" ;;
352 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
353 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
354 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
356 ac_prev
=sharedstatedir
;;
357 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
358 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
359 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
361 sharedstatedir
="$ac_optarg" ;;
363 -site |
--site |
--sit)
365 -site=* |
--site=* |
--sit=*)
368 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
370 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
371 sitefile
="$ac_optarg" ;;
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE
="$sitefile"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval
="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE
=$enableval
594 USE_MAINTAINER_MODE
=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE
=
602 MAINTAINER_MODE_FALSE
='#'
604 MAINTAINER_MODE_TRUE
='#'
605 MAINTAINER_MODE_FALSE
=
607 MAINT
=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc
; ac_word
=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc
; ac_word
=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC
="$CC" # Let the user override the test.
651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy
$ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy
"$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
704 for ac_dir
in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp
='$CPP $CPPFLAGS'
732 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling
=$ac_cv_prog_cc_cross
736 cat > conftest.
$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure
:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
744 ac_cv_prog_cc_works
=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (.
/conftest
; exit) 2>/dev
/null
; then
747 ac_cv_prog_cc_cross
=no
749 ac_cv_prog_cc_cross
=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.
$ac_ext >&5
754 ac_cv_prog_cc_works
=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp
='$CPP $CPPFLAGS'
760 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling
=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no
; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling
=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c
<<EOF
783 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS
="${CFLAGS+set}"
799 ac_save_CFLAGS
="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS
="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
864 CPP
="${CC-cc} -E -traditional-cpp"
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
881 CPP
="${CC-cc} -nologo -E"
882 cat > conftest.
$ac_ext <<EOF
883 #line 884 "configure"
884 #include "confdefs.h"
888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
889 { (eval echo configure
:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
891 if test -z "$ac_err"; then
895 echo "configure: failed program was:" >&5
896 cat conftest.
$ac_ext >&5
905 ac_cv_prog_CPP
="$CPP"
907 CPP
="$ac_cv_prog_CPP"
909 ac_cv_prog_CPP
="$CPP"
911 echo "$ac_t""$CPP" 1>&6
913 echo $ac_n "checking for AIX""... $ac_c" 1>&6
914 echo "configure:915: checking for AIX" >&5
915 cat > conftest.
$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
924 egrep "yes" >/dev
/null
2>&1; then
926 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
927 #define _ALL_SOURCE 1
932 echo "$ac_t""no" 1>&6
937 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
938 echo "configure:939: checking for POSIXized ISC" >&5
939 if test -d /etc
/conf
/kconfig.d
&&
940 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
942 echo "$ac_t""yes" 1>&6
943 ISC
=yes # If later tests want to check for ISC.
944 cat >> confdefs.h
<<\EOF
945 #define _POSIX_SOURCE 1
948 if test "$GCC" = yes; then
954 echo "$ac_t""no" 1>&6
961 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
962 echo "configure:963: checking for ${CC-cc} option to accept ANSI C" >&5
963 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 am_cv_prog_cc_stdc
=no
968 # Don't try gcc -ansi; that turns off useful extensions and
969 # breaks some systems' header files.
971 # Ultrix and OSF/1 -std1
972 # HP-UX 10.20 and later -Ae
973 # HP-UX older versions -Aa -D_HPUX_SOURCE
974 # SVR4 -Xc -D__EXTENSIONS__
975 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
977 CC
="$ac_save_CC $ac_arg"
978 cat > conftest.
$ac_ext <<EOF
979 #line 980 "configure"
980 #include "confdefs.h"
983 #include <sys/types.h>
984 #include <sys/stat.h>
985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
986 struct buf { int x; };
987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
988 static char *e (p, i)
994 static char *f (char * (*g) (char **, int), char **p, ...)
999 s = g (p, va_arg (v,int));
1003 int test (int i, double x);
1004 struct s1 {int (*f) (int a);};
1005 struct s2 {int (*f) (double a);};
1006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1016 if { (eval echo configure
:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1018 am_cv_prog_cc_stdc
="$ac_arg"; break
1020 echo "configure: failed program was:" >&5
1021 cat conftest.
$ac_ext >&5
1029 if test -z "$am_cv_prog_cc_stdc"; then
1030 echo "$ac_t""none needed" 1>&6
1032 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1034 case "x$am_cv_prog_cc_stdc" in
1036 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1041 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1042 if test -f $ac_dir/install-sh
; then
1044 ac_install_sh
="$ac_aux_dir/install-sh -c"
1046 elif test -f $ac_dir/install.sh
; then
1048 ac_install_sh
="$ac_aux_dir/install.sh -c"
1052 if test -z "$ac_aux_dir"; then
1053 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1055 ac_config_guess
=$ac_aux_dir/config.guess
1056 ac_config_sub
=$ac_aux_dir/config.sub
1057 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1060 # Do some error checking and defaulting for the host and target type.
1062 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1065 # 1. You are not allowed to specify --host, --target, and nonopt at the
1067 # 2. Host defaults to nonopt.
1068 # 3. If nonopt is not specified, then host defaults to the current host,
1069 # as determined by config.guess.
1070 # 4. Target and build default to nonopt.
1071 # 5. If nonopt is not specified, then target and build default to host.
1073 # The aliases save the names the user supplied, while $host etc.
1074 # will get canonicalized.
1075 case $host---$target---$nonopt in
1076 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1077 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1081 # Make sure we can run config.sub.
1082 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1083 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1086 echo $ac_n "checking host system type""... $ac_c" 1>&6
1087 echo "configure:1088: checking host system type" >&5
1090 case "$host_alias" in
1094 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1095 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1097 *) host_alias
=$nonopt ;;
1101 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1102 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105 echo "$ac_t""$host" 1>&6
1107 echo $ac_n "checking target system type""... $ac_c" 1>&6
1108 echo "configure:1109: checking target system type" >&5
1110 target_alias
=$target
1111 case "$target_alias" in
1114 NONE
) target_alias
=$host_alias ;;
1115 *) target_alias
=$nonopt ;;
1119 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1120 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 echo "$ac_t""$target" 1>&6
1125 echo $ac_n "checking build system type""... $ac_c" 1>&6
1126 echo "configure:1127: checking build system type" >&5
1129 case "$build_alias" in
1132 NONE
) build_alias
=$host_alias ;;
1133 *) build_alias
=$nonopt ;;
1137 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1138 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1139 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1140 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1141 echo "$ac_t""$build" 1>&6
1143 test "$host_alias" != "$target_alias" &&
1144 test "$program_prefix$program_suffix$program_transform_name" = \
1146 program_prefix
=${target_alias}-
1150 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether ${MAKE-make} sets \${MAKE}" >&5
1152 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1153 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 cat > conftestmake
<<\EOF
1158 @
echo 'ac_maketemp="${MAKE}"'
1160 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1161 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1162 if test -n "$ac_maketemp"; then
1163 eval ac_cv_prog_make_
${ac_make}_set
=yes
1165 eval ac_cv_prog_make_
${ac_make}_set
=no
1169 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1170 echo "$ac_t""yes" 1>&6
1173 echo "$ac_t""no" 1>&6
1174 SET_MAKE
="MAKE=${MAKE-make}"
1177 # Extract the first word of "ranlib", so it can be a program name with args.
1178 set dummy ranlib
; ac_word
=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$RANLIB"; then
1185 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1189 for ac_dir
in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir
=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_RANLIB
="ranlib"
1197 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1200 RANLIB
="$ac_cv_prog_RANLIB"
1201 if test -n "$RANLIB"; then
1202 echo "$ac_t""$RANLIB" 1>&6
1204 echo "$ac_t""no" 1>&6
1207 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1208 echo "configure:1209: checking for ANSI C header files" >&5
1209 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1221 { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1222 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1223 if test -z "$ac_err"; then
1225 ac_cv_header_stdc
=yes
1228 echo "configure: failed program was:" >&5
1229 cat conftest.
$ac_ext >&5
1231 ac_cv_header_stdc
=no
1235 if test $ac_cv_header_stdc = yes; then
1236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1243 egrep "memchr" >/dev
/null
2>&1; then
1247 ac_cv_header_stdc
=no
1253 if test $ac_cv_header_stdc = yes; then
1254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1255 cat > conftest.
$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261 egrep "free" >/dev
/null
2>&1; then
1265 ac_cv_header_stdc
=no
1271 if test $ac_cv_header_stdc = yes; then
1272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1273 if test "$cross_compiling" = yes; then
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1280 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1281 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1283 int main () { int i; for (i = 0; i < 256; i++)
1284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1288 if { (eval echo configure
:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1295 ac_cv_header_stdc
=no
1303 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1304 if test $ac_cv_header_stdc = yes; then
1305 cat >> confdefs.h
<<\EOF
1306 #define STDC_HEADERS 1
1311 echo $ac_n "checking for working const""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working const" >&5
1313 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 /* Ultrix mips cc rejects this. */
1323 typedef int charset[2]; const charset x;
1324 /* SunOS 4.1.1 cc rejects this. */
1325 char const *const *ccp;
1327 /* NEC SVR4.0.2 mips cc rejects this. */
1328 struct point {int x, y;};
1329 static struct point const zero = {0,0};
1330 /* AIX XL C 1.02.0.0 rejects this.
1331 It does not let you subtract one const X* pointer from another in an arm
1332 of an if-expression whose if-part is not a constant expression */
1333 const char *g = "string";
1334 ccp = &g + (g ? g-g : 0);
1335 /* HPUX 7.0 cc rejects these. */
1338 ccp = (char const *const *) p;
1339 { /* SCO 3.2v4 cc rejects this. */
1341 char const *s = 0 ? (char *) 0 : (char const *) 0;
1345 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1347 const int *foo = &x[0];
1350 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1351 typedef const int *iptr;
1355 { /* AIX XL C 1.02.0.0 rejects this saying
1356 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1357 struct s { int j; const int *ap[3]; };
1358 struct s *b; b->j = 5;
1360 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1366 if { (eval echo configure
:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1370 echo "configure: failed program was:" >&5
1371 cat conftest.
$ac_ext >&5
1378 echo "$ac_t""$ac_cv_c_const" 1>&6
1379 if test $ac_cv_c_const = no
; then
1380 cat >> confdefs.h
<<\EOF
1386 echo $ac_n "checking for inline""... $ac_c" 1>&6
1387 echo "configure:1388: checking for inline" >&5
1388 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1392 for ac_kw
in inline __inline__ __inline
; do
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1401 if { (eval echo configure
:1402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 ac_cv_c_inline
=$ac_kw; break
1405 echo "configure: failed program was:" >&5
1406 cat conftest.
$ac_ext >&5
1413 echo "$ac_t""$ac_cv_c_inline" 1>&6
1414 case "$ac_cv_c_inline" in
1416 no
) cat >> confdefs.h
<<\EOF
1420 *) cat >> confdefs.h
<<EOF
1421 #define inline $ac_cv_c_inline
1426 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1427 echo "configure:1428: checking for off_t" >&5
1428 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.
$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 #include <sys/types.h>
1440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1441 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1443 ac_cv_type_off_t
=yes
1451 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1452 if test $ac_cv_type_off_t = no
; then
1453 cat >> confdefs.h
<<\EOF
1459 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1460 echo "configure:1461: checking for size_t" >&5
1461 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.
$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <sys/types.h>
1473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1474 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1476 ac_cv_type_size_t
=yes
1479 ac_cv_type_size_t
=no
1484 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1485 if test $ac_cv_type_size_t = no
; then
1486 cat >> confdefs.h
<<\EOF
1487 #define size_t unsigned
1492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1493 # for constant arguments. Useless!
1494 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1495 echo "configure:1496: checking for working alloca.h" >&5
1496 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.
$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1504 char *p = alloca(2 * sizeof(int));
1507 if { (eval echo configure
:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1509 ac_cv_header_alloca_h
=yes
1511 echo "configure: failed program was:" >&5
1512 cat conftest.
$ac_ext >&5
1514 ac_cv_header_alloca_h
=no
1519 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1520 if test $ac_cv_header_alloca_h = yes; then
1521 cat >> confdefs.h
<<\EOF
1522 #define HAVE_ALLOCA_H 1
1527 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1528 echo "configure:1529: checking for alloca" >&5
1529 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.
$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1537 # define alloca __builtin_alloca
1540 # include <malloc.h>
1541 # define alloca _alloca
1544 # include <alloca.h>
1549 # ifndef alloca /* predefined by HP cc +Olibcalls */
1558 char *p = (char *) alloca(1);
1561 if { (eval echo configure
:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1563 ac_cv_func_alloca_works
=yes
1565 echo "configure: failed program was:" >&5
1566 cat conftest.
$ac_ext >&5
1568 ac_cv_func_alloca_works
=no
1573 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1574 if test $ac_cv_func_alloca_works = yes; then
1575 cat >> confdefs.h
<<\EOF
1576 #define HAVE_ALLOCA 1
1581 if test $ac_cv_func_alloca_works = no
; then
1582 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1583 # that cause trouble. Some versions do not even contain alloca or
1584 # contain a buggy version. If you still want to use their alloca,
1585 # use ar to extract alloca.o from them instead of compiling alloca.c.
1586 ALLOCA
=alloca.
${ac_objext}
1587 cat >> confdefs.h
<<\EOF
1592 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1593 echo "configure:1594: checking whether alloca needs Cray hooks" >&5
1594 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.
$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1600 #if defined(CRAY) && ! defined(CRAY2)
1607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1608 egrep "webecray" >/dev
/null
2>&1; then
1619 echo "$ac_t""$ac_cv_os_cray" 1>&6
1620 if test $ac_cv_os_cray = yes; then
1621 for ac_func
in _getb67 GETB67 getb67
; do
1622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_func" >&5
1624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.
$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 /* System header to define __stub macros and hopefully few prototypes,
1631 which can conflict with char $ac_func(); below. */
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1640 /* The GNU C library defines this for functions which it implements
1641 to always fail with ENOSYS. Some functions are actually named
1642 something starting with __ and the normal name is an alias. */
1643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1651 if { (eval echo configure
:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1653 eval "ac_cv_func_$ac_func=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.
$ac_ext >&5
1658 eval "ac_cv_func_$ac_func=no"
1663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1664 echo "$ac_t""yes" 1>&6
1665 cat >> confdefs.h
<<EOF
1666 #define CRAY_STACKSEG_END $ac_func
1671 echo "$ac_t""no" 1>&6
1677 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1678 echo "configure:1679: checking stack direction for C alloca" >&5
1679 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 if test "$cross_compiling" = yes; then
1683 ac_cv_c_stack_direction
=0
1685 cat > conftest.
$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 find_stack_direction ()
1690 static char *addr = 0;
1695 return find_stack_direction ();
1698 return (&dummy > addr) ? 1 : -1;
1702 exit (find_stack_direction() < 0);
1705 if { (eval echo configure
:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1707 ac_cv_c_stack_direction
=1
1709 echo "configure: failed program was:" >&5
1710 cat conftest.
$ac_ext >&5
1712 ac_cv_c_stack_direction
=-1
1719 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1720 cat >> confdefs.h
<<EOF
1721 #define STACK_DIRECTION $ac_cv_c_stack_direction
1726 for ac_hdr
in unistd.h
1728 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1730 echo "configure:1731: checking for $ac_hdr" >&5
1731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 cat > conftest.
$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1739 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1740 { (eval echo configure
:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1741 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1742 if test -z "$ac_err"; then
1744 eval "ac_cv_header_$ac_safe=yes"
1747 echo "configure: failed program was:" >&5
1748 cat conftest.
$ac_ext >&5
1750 eval "ac_cv_header_$ac_safe=no"
1754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1755 echo "$ac_t""yes" 1>&6
1756 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1757 cat >> confdefs.h
<<EOF
1758 #define $ac_tr_hdr 1
1762 echo "$ac_t""no" 1>&6
1766 for ac_func
in getpagesize
1768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1769 echo "configure:1770: checking for $ac_func" >&5
1770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 /* System header to define __stub macros and hopefully few prototypes,
1777 which can conflict with char $ac_func(); below. */
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1797 if { (eval echo configure
:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1799 eval "ac_cv_func_$ac_func=yes"
1801 echo "configure: failed program was:" >&5
1802 cat conftest.
$ac_ext >&5
1804 eval "ac_cv_func_$ac_func=no"
1809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1811 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1812 cat >> confdefs.h
<<EOF
1813 #define $ac_tr_func 1
1817 echo "$ac_t""no" 1>&6
1821 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1822 echo "configure:1823: checking for working mmap" >&5
1823 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 if test "$cross_compiling" = yes; then
1827 ac_cv_func_mmap_fixed_mapped
=no
1829 cat > conftest.
$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1833 /* Thanks to Mike Haertel and Jim Avera for this test.
1834 Here is a matrix of mmap possibilities:
1835 mmap private not fixed
1836 mmap private fixed at somewhere currently unmapped
1837 mmap private fixed at somewhere already mapped
1838 mmap shared not fixed
1839 mmap shared fixed at somewhere currently unmapped
1840 mmap shared fixed at somewhere already mapped
1841 For private mappings, we should verify that changes cannot be read()
1842 back from the file, nor mmap's back from the file at a different
1843 address. (There have been systems where private was not correctly
1844 implemented like the infamous i386 svr4.0, and systems where the
1845 VM page cache was not coherent with the filesystem buffer cache
1846 like early versions of FreeBSD and possibly contemporary NetBSD.)
1847 For shared mappings, we should conversely verify that changes get
1848 propogated back to all the places they're supposed to be.
1850 Grep wants private fixed already mapped.
1851 The main things grep needs to know about mmap are:
1852 * does it exist and is it safe to write into the mmap'd area
1853 * how to use it (BSD variants) */
1854 #include <sys/types.h>
1856 #include <sys/mman.h>
1858 /* This mess was copied from the GNU getpagesize.h. */
1859 #ifndef HAVE_GETPAGESIZE
1860 # ifdef HAVE_UNISTD_H
1861 # include <unistd.h>
1864 /* Assume that all systems that can run configure have sys/param.h. */
1865 # ifndef HAVE_SYS_PARAM_H
1866 # define HAVE_SYS_PARAM_H 1
1869 # ifdef _SC_PAGESIZE
1870 # define getpagesize() sysconf(_SC_PAGESIZE)
1871 # else /* no _SC_PAGESIZE */
1872 # ifdef HAVE_SYS_PARAM_H
1873 # include <sys/param.h>
1874 # ifdef EXEC_PAGESIZE
1875 # define getpagesize() EXEC_PAGESIZE
1876 # else /* no EXEC_PAGESIZE */
1878 # define getpagesize() NBPG * CLSIZE
1881 # endif /* no CLSIZE */
1882 # else /* no NBPG */
1884 # define getpagesize() NBPC
1885 # else /* no NBPC */
1887 # define getpagesize() PAGESIZE
1888 # endif /* PAGESIZE */
1889 # endif /* no NBPC */
1890 # endif /* no NBPG */
1891 # endif /* no EXEC_PAGESIZE */
1892 # else /* no HAVE_SYS_PARAM_H */
1893 # define getpagesize() 8192 /* punt totally */
1894 # endif /* no HAVE_SYS_PARAM_H */
1895 # endif /* no _SC_PAGESIZE */
1897 #endif /* no HAVE_GETPAGESIZE */
1900 extern "C" { void *malloc(unsigned); }
1908 char *data, *data2, *data3;
1912 pagesize = getpagesize();
1915 * First, make a file with some known garbage in it.
1917 data = malloc(pagesize);
1920 for (i = 0; i < pagesize; ++i)
1921 *(data + i) = rand();
1923 fd = creat("conftestmmap", 0600);
1926 if (write(fd, data, pagesize) != pagesize)
1931 * Next, try to mmap the file at a fixed address which
1932 * already has something else allocated at it. If we can,
1933 * also make sure that we see the same garbage.
1935 fd = open("conftestmmap", O_RDWR);
1938 data2 = malloc(2 * pagesize);
1941 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1942 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1943 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1945 for (i = 0; i < pagesize; ++i)
1946 if (*(data + i) != *(data2 + i))
1950 * Finally, make sure that changes to the mapped area
1951 * do not percolate back to the file as seen by read().
1952 * (This is a bug on some variants of i386 svr4.0.)
1954 for (i = 0; i < pagesize; ++i)
1955 *(data2 + i) = *(data2 + i) + 1;
1956 data3 = malloc(pagesize);
1959 if (read(fd, data3, pagesize) != pagesize)
1961 for (i = 0; i < pagesize; ++i)
1962 if (*(data + i) != *(data3 + i))
1965 unlink("conftestmmap");
1970 if { (eval echo configure
:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1972 ac_cv_func_mmap_fixed_mapped
=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 ac_cv_func_mmap_fixed_mapped
=no
1984 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1985 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1986 cat >> confdefs.h
<<\EOF
1993 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1994 unistd.h values.h sys
/param.h
1996 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1998 echo "configure:1999: checking for $ac_hdr" >&5
1999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure
:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2012 eval "ac_cv_header_$ac_safe=yes"
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2018 eval "ac_cv_header_$ac_safe=no"
2022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2024 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2025 cat >> confdefs.h
<<EOF
2026 #define $ac_tr_hdr 1
2030 echo "$ac_t""no" 1>&6
2034 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2035 __argz_count __argz_stringify __argz_next
2037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2038 echo "configure:2039: checking for $ac_func" >&5
2039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.
$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $ac_func(); below. */
2048 /* Override any gcc2 internal prototype to avoid an error. */
2049 /* We use char because int might match the return type of a gcc2
2050 builtin and then its argument prototype would still apply. */
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2066 if { (eval echo configure
:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2068 eval "ac_cv_func_$ac_func=yes"
2070 echo "configure: failed program was:" >&5
2071 cat conftest.
$ac_ext >&5
2073 eval "ac_cv_func_$ac_func=no"
2078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2079 echo "$ac_t""yes" 1>&6
2080 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2081 cat >> confdefs.h
<<EOF
2082 #define $ac_tr_func 1
2086 echo "$ac_t""no" 1>&6
2091 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2092 for ac_func
in stpcpy
2094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_func" >&5
2096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.
$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 /* System header to define __stub macros and hopefully few prototypes,
2103 which can conflict with char $ac_func(); below. */
2105 /* Override any gcc2 internal prototype to avoid an error. */
2106 /* We use char because int might match the return type of a gcc2
2107 builtin and then its argument prototype would still apply. */
2112 /* The GNU C library defines this for functions which it implements
2113 to always fail with ENOSYS. Some functions are actually named
2114 something starting with __ and the normal name is an alias. */
2115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2123 if { (eval echo configure
:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2125 eval "ac_cv_func_$ac_func=yes"
2127 echo "configure: failed program was:" >&5
2128 cat conftest.
$ac_ext >&5
2130 eval "ac_cv_func_$ac_func=no"
2135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2138 cat >> confdefs.h
<<EOF
2139 #define $ac_tr_func 1
2143 echo "$ac_t""no" 1>&6
2148 if test "${ac_cv_func_stpcpy}" = "yes"; then
2149 cat >> confdefs.h
<<\EOF
2150 #define HAVE_STPCPY 1
2155 if test $ac_cv_header_locale_h = yes; then
2156 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2157 echo "configure:2158: checking for LC_MESSAGES" >&5
2158 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 cat > conftest.
$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2169 if { (eval echo configure
:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2171 am_cv_val_LC_MESSAGES
=yes
2173 echo "configure: failed program was:" >&5
2174 cat conftest.
$ac_ext >&5
2176 am_cv_val_LC_MESSAGES
=no
2181 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2182 if test $am_cv_val_LC_MESSAGES = yes; then
2183 cat >> confdefs.h
<<\EOF
2184 #define HAVE_LC_MESSAGES 1
2189 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2190 echo "configure:2191: checking whether NLS is requested" >&5
2191 # Check whether --enable-nls or --disable-nls was given.
2192 if test "${enable_nls+set}" = set; then
2193 enableval
="$enable_nls"
2199 echo "$ac_t""$USE_NLS" 1>&6
2202 USE_INCLUDED_LIBINTL
=no
2204 if test "$USE_NLS" = "yes"; then
2205 cat >> confdefs.h
<<\EOF
2206 #define ENABLE_NLS 1
2209 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2210 echo "configure:2211: checking whether included gettext is requested" >&5
2211 # Check whether --with-included-gettext or --without-included-gettext was given.
2212 if test "${with_included_gettext+set}" = set; then
2213 withval
="$with_included_gettext"
2214 nls_cv_force_use_gnu_gettext
=$withval
2216 nls_cv_force_use_gnu_gettext
=no
2219 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2221 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2222 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2224 nls_cv_header_libgt
=
2227 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2228 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2229 echo "configure:2230: checking for libintl.h" >&5
2230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 #include <libintl.h>
2238 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure
:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2243 eval "ac_cv_header_$ac_safe=yes"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.
$ac_ext >&5
2249 eval "ac_cv_header_$ac_safe=no"
2253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2256 echo "configure:2257: checking for gettext in libc" >&5
2257 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 cat > conftest.
$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2263 #include <libintl.h>
2265 return (int) gettext ("")
2268 if { (eval echo configure
:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2270 gt_cv_func_gettext_libc
=yes
2272 echo "configure: failed program was:" >&5
2273 cat conftest.
$ac_ext >&5
2275 gt_cv_func_gettext_libc
=no
2280 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2282 if test "$gt_cv_func_gettext_libc" != "yes"; then
2283 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2284 echo "configure:2285: checking for bindtextdomain in -lintl" >&5
2285 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 ac_save_LIBS
="$LIBS"
2291 cat > conftest.
$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2297 char bindtextdomain();
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2305 eval "ac_cv_lib_$ac_lib_var=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 eval "ac_cv_lib_$ac_lib_var=no"
2313 LIBS
="$ac_save_LIBS"
2316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2317 echo "$ac_t""yes" 1>&6
2318 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2319 echo "configure:2320: checking for gettext in libintl" >&5
2320 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 cat > conftest.
$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2328 return (int) gettext ("")
2331 if { (eval echo configure
:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2333 gt_cv_func_gettext_libintl
=yes
2335 echo "configure: failed program was:" >&5
2336 cat conftest.
$ac_ext >&5
2338 gt_cv_func_gettext_libintl
=no
2343 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2345 echo "$ac_t""no" 1>&6
2350 if test "$gt_cv_func_gettext_libc" = "yes" \
2351 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2352 cat >> confdefs.h
<<\EOF
2353 #define HAVE_GETTEXT 1
2356 # Extract the first word of "msgfmt", so it can be a program name with args.
2357 set dummy msgfmt
; ac_word
=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2368 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2369 for ac_dir
in $PATH; do
2370 test -z "$ac_dir" && ac_dir
=.
2371 if test -f $ac_dir/$ac_word; then
2372 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2373 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2379 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2383 MSGFMT
="$ac_cv_path_MSGFMT"
2384 if test -n "$MSGFMT"; then
2385 echo "$ac_t""$MSGFMT" 1>&6
2387 echo "$ac_t""no" 1>&6
2389 if test "$MSGFMT" != "no"; then
2390 for ac_func
in dcgettext
2392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2393 echo "configure:2394: checking for $ac_func" >&5
2394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 /* System header to define __stub macros and hopefully few prototypes,
2401 which can conflict with char $ac_func(); below. */
2403 /* Override any gcc2 internal prototype to avoid an error. */
2404 /* We use char because int might match the return type of a gcc2
2405 builtin and then its argument prototype would still apply. */
2410 /* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2421 if { (eval echo configure
:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2423 eval "ac_cv_func_$ac_func=yes"
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2428 eval "ac_cv_func_$ac_func=no"
2433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2436 cat >> confdefs.h
<<EOF
2437 #define $ac_tr_func 1
2441 echo "$ac_t""no" 1>&6
2445 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2446 set dummy gmsgfmt
; ac_word
=$2
2447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_word" >&5
2449 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2454 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2457 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2462 for ac_dir
in $ac_dummy; do
2463 test -z "$ac_dir" && ac_dir
=.
2464 if test -f $ac_dir/$ac_word; then
2465 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2470 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2474 GMSGFMT
="$ac_cv_path_GMSGFMT"
2475 if test -n "$GMSGFMT"; then
2476 echo "$ac_t""$GMSGFMT" 1>&6
2478 echo "$ac_t""no" 1>&6
2481 # Extract the first word of "xgettext", so it can be a program name with args.
2482 set dummy xgettext
; ac_word
=$2
2483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2484 echo "configure:2485: checking for $ac_word" >&5
2485 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2490 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2493 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2494 for ac_dir
in $PATH; do
2495 test -z "$ac_dir" && ac_dir
=.
2496 if test -f $ac_dir/$ac_word; then
2497 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2498 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2504 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2508 XGETTEXT
="$ac_cv_path_XGETTEXT"
2509 if test -n "$XGETTEXT"; then
2510 echo "$ac_t""$XGETTEXT" 1>&6
2512 echo "$ac_t""no" 1>&6
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 extern int _nl_msg_cat_cntr;
2521 return _nl_msg_cat_cntr
2524 if { (eval echo configure
:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2541 echo "$ac_t""no" 1>&6
2546 if test "$CATOBJEXT" = "NONE"; then
2547 nls_cv_use_gnu_gettext
=yes
2551 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2552 INTLOBJS
="\$(GETTOBJS)"
2553 # Extract the first word of "msgfmt", so it can be a program name with args.
2554 set dummy msgfmt
; ac_word
=$2
2555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2556 echo "configure:2557: checking for $ac_word" >&5
2557 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2562 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2565 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2566 for ac_dir
in $PATH; do
2567 test -z "$ac_dir" && ac_dir
=.
2568 if test -f $ac_dir/$ac_word; then
2569 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2570 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2576 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2580 MSGFMT
="$ac_cv_path_MSGFMT"
2581 if test -n "$MSGFMT"; then
2582 echo "$ac_t""$MSGFMT" 1>&6
2584 echo "$ac_t""no" 1>&6
2587 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2588 set dummy gmsgfmt
; ac_word
=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2596 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2599 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2604 for ac_dir
in $ac_dummy; do
2605 test -z "$ac_dir" && ac_dir
=.
2606 if test -f $ac_dir/$ac_word; then
2607 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2616 GMSGFMT
="$ac_cv_path_GMSGFMT"
2617 if test -n "$GMSGFMT"; then
2618 echo "$ac_t""$GMSGFMT" 1>&6
2620 echo "$ac_t""no" 1>&6
2623 # Extract the first word of "xgettext", so it can be a program name with args.
2624 set dummy xgettext
; ac_word
=$2
2625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_word" >&5
2627 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2632 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2635 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2636 for ac_dir
in $PATH; do
2637 test -z "$ac_dir" && ac_dir
=.
2638 if test -f $ac_dir/$ac_word; then
2639 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2640 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2646 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2650 XGETTEXT
="$ac_cv_path_XGETTEXT"
2651 if test -n "$XGETTEXT"; then
2652 echo "$ac_t""$XGETTEXT" 1>&6
2654 echo "$ac_t""no" 1>&6
2658 USE_INCLUDED_LIBINTL
=yes
2662 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2664 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2665 nls_cv_header_intl
=libintl.h
2666 nls_cv_header_libgt
=libgettext.h
2669 if test "$XGETTEXT" != ":"; then
2670 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2673 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2678 # We need to process the po/ directory.
2682 nls_cv_header_intl
=libintl.h
2683 nls_cv_header_libgt
=libgettext.h
2686 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2687 # because some of the sources are only built for this goal.
2688 if test "$PACKAGE" = gettext; then
2690 USE_INCLUDED_LIBINTL
=yes
2693 for lang
in $ALL_LINGUAS; do
2694 GMOFILES
="$GMOFILES $lang.gmo"
2695 POFILES
="$POFILES $lang.po"
2711 if test "x$CATOBJEXT" != "x"; then
2712 if test "x$ALL_LINGUAS" = "x"; then
2715 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2716 echo "configure:2717: checking for catalogs to be installed" >&5
2718 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2719 case "$ALL_LINGUAS" in
2720 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2723 LINGUAS
=$NEW_LINGUAS
2724 echo "$ac_t""$LINGUAS" 1>&6
2727 if test -n "$LINGUAS"; then
2728 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2732 if test $ac_cv_header_locale_h = yes; then
2733 INCLUDE_LOCALE_H
="#include <locale.h>"
2736 /* The system does not provide the header <locale.h>. Take care yourself. */"
2740 if test -f $srcdir/po2tbl.
sed.
in; then
2741 if test "$CATOBJEXT" = ".cat"; then
2742 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2743 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2744 echo "configure:2745: checking for linux/version.h" >&5
2745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2748 cat > conftest.
$ac_ext <<EOF
2749 #line 2750 "configure"
2750 #include "confdefs.h"
2751 #include <linux/version.h>
2753 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2754 { (eval echo configure
:2755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2755 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2756 if test -z "$ac_err"; then
2758 eval "ac_cv_header_$ac_safe=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.
$ac_ext >&5
2764 eval "ac_cv_header_$ac_safe=no"
2768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2772 echo "$ac_t""no" 1>&6
2777 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2779 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2780 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2783 if test "$PACKAGE" = "gettext"; then
2793 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2799 if test -f $srcdir/po
/POTFILES.
in; then
2800 test -d po || mkdir po
2801 if test "x$srcdir" != "x."; then
2802 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2803 posrcprefix
="$srcdir/"
2805 posrcprefix
="../$srcdir/"
2811 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2812 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2815 cat >> confdefs.h
<<\EOF
2816 #define PACKAGE "gdb"
2833 SUBDIRS
="doc testsuite nlm"
2834 configdirs
="doc testsuite"
2836 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2837 if test "${enable_multi_ice+set}" = set; then
2838 enableval
="$enable_multi_ice"
2839 case "${enableval}" in
2840 yes ) enable_multi_ice
="yes" ;;
2841 no
) enable_multi_ice
="no" ;;
2842 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2848 if test "${enable_multi_ice}" = "yes"; then
2849 configdirs
="${configdirs} multi-ice"
2853 .
${srcdir}/configure.
host
2855 .
${srcdir}/configure.tgt
2857 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2861 .
${srcdir}/..
/bfd
/config.bfd
2863 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2865 if test x
"${targ_archs}" != x
; then
2866 cat >> confdefs.h
<<EOF
2867 #define DEFAULT_BFD_ARCH ${targ_archs}
2871 if test x
"${targ_defvec}" != x
; then
2872 cat >> confdefs.h
<<EOF
2873 #define DEFAULT_BFD_VEC ${targ_defvec}
2878 for ac_prog
in mawk gawk nawk
awk
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy
$ac_prog; ac_word
=$2
2882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2883 echo "configure:2884: checking for $ac_word" >&5
2884 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 if test -n "$AWK"; then
2888 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2892 for ac_dir
in $ac_dummy; do
2893 test -z "$ac_dir" && ac_dir
=.
2894 if test -f $ac_dir/$ac_word; then
2895 ac_cv_prog_AWK
="$ac_prog"
2902 AWK
="$ac_cv_prog_AWK"
2903 if test -n "$AWK"; then
2904 echo "$ac_t""$AWK" 1>&6
2906 echo "$ac_t""no" 1>&6
2909 test -n "$AWK" && break
2912 # Find a good install program. We prefer a C program (faster),
2913 # so one script is as good as another. But avoid the broken or
2914 # incompatible versions:
2915 # SysV /etc/install, /usr/sbin/install
2916 # SunOS /usr/etc/install
2917 # IRIX /sbin/install
2919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2922 # ./install, which can be erroneously created by make from ./install.sh.
2923 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2924 echo "configure:2925: checking for a BSD compatible install" >&5
2925 if test -z "$INSTALL"; then
2926 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2930 for ac_dir
in $PATH; do
2931 # Account for people who put trailing slashes in PATH elements.
2933 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2935 # OSF1 and SCO ODT 3.0 have their own names for install.
2936 # Don't use installbsd from OSF since it installs stuff as root
2938 for ac_prog
in ginstall scoinst
install; do
2939 if test -f $ac_dir/$ac_prog; then
2940 if test $ac_prog = install &&
2941 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2942 # AIX install. It has an incompatible calling convention.
2945 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2956 if test "${ac_cv_path_install+set}" = set; then
2957 INSTALL
="$ac_cv_path_install"
2959 # As a last resort, use the slow shell script. We don't cache a
2960 # path for INSTALL within a source directory, because that will
2961 # break other packages using the cache if that directory is
2962 # removed, or if the path is relative.
2963 INSTALL
="$ac_install_sh"
2966 echo "$ac_t""$INSTALL" 1>&6
2968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2969 # It thinks the first close brace ends the variable substitution.
2970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2974 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2976 if test $host != $build; then
2977 ac_tool_prefix
=${host_alias}-
2982 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2983 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_word" >&5
2986 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 if test -n "$AR"; then
2990 ac_cv_prog_AR
="$AR" # Let the user override the test.
2992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2994 for ac_dir
in $ac_dummy; do
2995 test -z "$ac_dir" && ac_dir
=.
2996 if test -f $ac_dir/$ac_word; then
2997 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3002 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3006 if test -n "$AR"; then
3007 echo "$ac_t""$AR" 1>&6
3009 echo "$ac_t""no" 1>&6
3014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3015 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3017 echo "configure:3018: checking for $ac_word" >&5
3018 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 if test -n "$RANLIB"; then
3022 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3026 for ac_dir
in $ac_dummy; do
3027 test -z "$ac_dir" && ac_dir
=.
3028 if test -f $ac_dir/$ac_word; then
3029 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3036 RANLIB
="$ac_cv_prog_RANLIB"
3037 if test -n "$RANLIB"; then
3038 echo "$ac_t""$RANLIB" 1>&6
3040 echo "$ac_t""no" 1>&6
3044 if test -z "$ac_cv_prog_RANLIB"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "ranlib", so it can be a program name with args.
3047 set dummy ranlib
; ac_word
=$2
3048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_word" >&5
3050 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 if test -n "$RANLIB"; then
3054 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3058 for ac_dir
in $ac_dummy; do
3059 test -z "$ac_dir" && ac_dir
=.
3060 if test -f $ac_dir/$ac_word; then
3061 ac_cv_prog_RANLIB
="ranlib"
3066 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3069 RANLIB
="$ac_cv_prog_RANLIB"
3070 if test -n "$RANLIB"; then
3071 echo "$ac_t""$RANLIB" 1>&6
3073 echo "$ac_t""no" 1>&6
3081 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3082 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3084 echo "configure:3085: checking for $ac_word" >&5
3085 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 if test -n "$DLLTOOL"; then
3089 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3091 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3093 for ac_dir
in $ac_dummy; do
3094 test -z "$ac_dir" && ac_dir
=.
3095 if test -f $ac_dir/$ac_word; then
3096 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3101 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3104 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3105 if test -n "$DLLTOOL"; then
3106 echo "$ac_t""$DLLTOOL" 1>&6
3108 echo "$ac_t""no" 1>&6
3113 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3114 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_word" >&5
3117 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 if test -n "$WINDRES"; then
3121 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3125 for ac_dir
in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir
=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3133 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3136 WINDRES
="$ac_cv_prog_WINDRES"
3137 if test -n "$WINDRES"; then
3138 echo "$ac_t""$WINDRES" 1>&6
3140 echo "$ac_t""no" 1>&6
3145 for ac_prog
in 'bison -y' byacc
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy
$ac_prog; ac_word
=$2
3149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_word" >&5
3151 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 if test -n "$YACC"; then
3155 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3159 for ac_dir
in $ac_dummy; do
3160 test -z "$ac_dir" && ac_dir
=.
3161 if test -f $ac_dir/$ac_word; then
3162 ac_cv_prog_YACC
="$ac_prog"
3169 YACC
="$ac_cv_prog_YACC"
3170 if test -n "$YACC"; then
3171 echo "$ac_t""$YACC" 1>&6
3173 echo "$ac_t""no" 1>&6
3176 test -n "$YACC" && break
3178 test -n "$YACC" || YACC
="yacc"
3181 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3182 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3184 echo "configure:3185: checking for $ac_word" >&5
3185 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 if test -n "$MIG"; then
3189 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3191 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3193 for ac_dir
in $ac_dummy; do
3194 test -z "$ac_dir" && ac_dir
=.
3195 if test -f $ac_dir/$ac_word; then
3196 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3201 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3204 MIG
="$ac_cv_prog_MIG"
3205 if test -n "$MIG"; then
3206 echo "$ac_t""$MIG" 1>&6
3208 echo "$ac_t""no" 1>&6
3214 if test "$program_transform_name" = s
,x
,x
,; then
3215 program_transform_name
=
3217 # Double any \ or $. echo might interpret backslashes.
3218 cat <<\EOF_SED
> conftestsed
3219 s
,\\,\\\\,g
; s
,\$
,$$
,g
3221 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3224 test "$program_prefix" != NONE
&&
3225 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3226 # Use a double $ so make ignores it.
3227 test "$program_suffix" != NONE
&&
3228 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3230 # sed with no file args requires a program.
3231 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3234 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3235 echo "configure:3236: checking return type of signal handlers" >&5
3236 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.
$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 #include <sys/types.h>
3248 extern "C" void (*signal (int, void (*)(int)))(int);
3250 void (*signal ()) ();
3257 if { (eval echo configure
:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259 ac_cv_type_signal
=void
3261 echo "configure: failed program was:" >&5
3262 cat conftest.
$ac_ext >&5
3264 ac_cv_type_signal
=int
3269 echo "$ac_t""$ac_cv_type_signal" 1>&6
3270 cat >> confdefs.h
<<EOF
3271 #define RETSIGTYPE $ac_cv_type_signal
3276 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3277 echo "configure:3278: checking for ANSI C header files" >&5
3278 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 cat > conftest.
$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3289 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3290 { (eval echo configure
:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3291 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3292 if test -z "$ac_err"; then
3294 ac_cv_header_stdc
=yes
3297 echo "configure: failed program was:" >&5
3298 cat conftest.
$ac_ext >&5
3300 ac_cv_header_stdc
=no
3304 if test $ac_cv_header_stdc = yes; then
3305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3306 cat > conftest.
$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3312 egrep "memchr" >/dev
/null
2>&1; then
3316 ac_cv_header_stdc
=no
3322 if test $ac_cv_header_stdc = yes; then
3323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3324 cat > conftest.
$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 egrep "free" >/dev
/null
2>&1; then
3334 ac_cv_header_stdc
=no
3340 if test $ac_cv_header_stdc = yes; then
3341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3342 if test "$cross_compiling" = yes; then
3345 cat > conftest.
$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3349 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3350 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352 int main () { int i; for (i = 0; i < 256; i++)
3353 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3357 if { (eval echo configure
:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3361 echo "configure: failed program was:" >&5
3362 cat conftest.
$ac_ext >&5
3364 ac_cv_header_stdc
=no
3372 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3373 if test $ac_cv_header_stdc = yes; then
3374 cat >> confdefs.h
<<\EOF
3375 #define STDC_HEADERS 1
3382 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3383 cat >> confdefs.h
<<\EOF
3384 #define _MSE_INT_H 1
3389 for ac_hdr
in ctype.h nlist.h link.h thread_db.h proc_service.h \
3390 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3391 string.h sys
/procfs.h sys
/proc.h sys
/ptrace.h sys
/reg.h stdint.h \
3392 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3393 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3394 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3395 dirent.h sys
/ndir.h sys
/dir.h ndir.h sys
/filio.h \
3396 curses.h ncurses.h \
3399 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_hdr" >&5
3402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3410 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3411 { (eval echo configure
:3412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3412 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3413 if test -z "$ac_err"; then
3415 eval "ac_cv_header_$ac_safe=yes"
3418 echo "configure: failed program was:" >&5
3419 cat conftest.
$ac_ext >&5
3421 eval "ac_cv_header_$ac_safe=no"
3425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3428 cat >> confdefs.h
<<EOF
3429 #define $ac_tr_hdr 1
3433 echo "$ac_t""no" 1>&6
3437 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3438 echo "configure:3439: checking whether stat file-mode macros are broken" >&5
3439 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 #include <sys/types.h>
3446 #include <sys/stat.h>
3448 #if defined(S_ISBLK) && defined(S_IFDIR)
3449 # if S_ISBLK (S_IFDIR)
3454 #if defined(S_ISBLK) && defined(S_IFCHR)
3455 # if S_ISBLK (S_IFCHR)
3460 #if defined(S_ISLNK) && defined(S_IFREG)
3461 # if S_ISLNK (S_IFREG)
3466 #if defined(S_ISSOCK) && defined(S_IFREG)
3467 # if S_ISSOCK (S_IFREG)
3473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3474 egrep "You lose" >/dev
/null
2>&1; then
3476 ac_cv_header_stat_broken
=yes
3479 ac_cv_header_stat_broken
=no
3485 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3486 if test $ac_cv_header_stat_broken = yes; then
3487 cat >> confdefs.h
<<\EOF
3488 #define STAT_MACROS_BROKEN 1
3494 echo $ac_n "checking for working const""... $ac_c" 1>&6
3495 echo "configure:3496: checking for working const" >&5
3496 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.
$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3505 /* Ultrix mips cc rejects this. */
3506 typedef int charset[2]; const charset x;
3507 /* SunOS 4.1.1 cc rejects this. */
3508 char const *const *ccp;
3510 /* NEC SVR4.0.2 mips cc rejects this. */
3511 struct point {int x, y;};
3512 static struct point const zero = {0,0};
3513 /* AIX XL C 1.02.0.0 rejects this.
3514 It does not let you subtract one const X* pointer from another in an arm
3515 of an if-expression whose if-part is not a constant expression */
3516 const char *g = "string";
3517 ccp = &g + (g ? g-g : 0);
3518 /* HPUX 7.0 cc rejects these. */
3521 ccp = (char const *const *) p;
3522 { /* SCO 3.2v4 cc rejects this. */
3524 char const *s = 0 ? (char *) 0 : (char const *) 0;
3528 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3530 const int *foo = &x[0];
3533 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3534 typedef const int *iptr;
3538 { /* AIX XL C 1.02.0.0 rejects this saying
3539 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3540 struct s { int j; const int *ap[3]; };
3541 struct s *b; b->j = 5;
3543 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3549 if { (eval echo configure
:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553 echo "configure: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3561 echo "$ac_t""$ac_cv_c_const" 1>&6
3562 if test $ac_cv_c_const = no
; then
3563 cat >> confdefs.h
<<\EOF
3569 echo $ac_n "checking for inline""... $ac_c" 1>&6
3570 echo "configure:3571: checking for inline" >&5
3571 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3575 for ac_kw
in inline __inline__ __inline
; do
3576 cat > conftest.
$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3584 if { (eval echo configure
:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 ac_cv_c_inline
=$ac_kw; break
3588 echo "configure: failed program was:" >&5
3589 cat conftest.
$ac_ext >&5
3596 echo "$ac_t""$ac_cv_c_inline" 1>&6
3597 case "$ac_cv_c_inline" in
3599 no
) cat >> confdefs.h
<<\EOF
3603 *) cat >> confdefs.h
<<EOF
3604 #define inline $ac_cv_c_inline
3610 for ac_func
in bcopy btowc bzero canonicalize_file_name isascii poll \
3611 realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
3613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_func" >&5
3615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* System header to define __stub macros and hopefully few prototypes,
3622 which can conflict with char $ac_func(); below. */
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3642 if { (eval echo configure
:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3644 eval "ac_cv_func_$ac_func=yes"
3646 echo "configure: failed program was:" >&5
3647 cat conftest.
$ac_ext >&5
3649 eval "ac_cv_func_$ac_func=no"
3654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3656 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3657 cat >> confdefs.h
<<EOF
3658 #define $ac_tr_func 1
3662 echo "$ac_t""no" 1>&6
3666 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3667 # for constant arguments. Useless!
3668 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3669 echo "configure:3670: checking for working alloca.h" >&5
3670 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.
$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3678 char *p = alloca(2 * sizeof(int));
3681 if { (eval echo configure
:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3683 ac_cv_header_alloca_h
=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3688 ac_cv_header_alloca_h
=no
3693 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3694 if test $ac_cv_header_alloca_h = yes; then
3695 cat >> confdefs.h
<<\EOF
3696 #define HAVE_ALLOCA_H 1
3701 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3702 echo "configure:3703: checking for alloca" >&5
3703 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 cat > conftest.
$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3711 # define alloca __builtin_alloca
3714 # include <malloc.h>
3715 # define alloca _alloca
3718 # include <alloca.h>
3723 # ifndef alloca /* predefined by HP cc +Olibcalls */
3732 char *p = (char *) alloca(1);
3735 if { (eval echo configure
:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3737 ac_cv_func_alloca_works
=yes
3739 echo "configure: failed program was:" >&5
3740 cat conftest.
$ac_ext >&5
3742 ac_cv_func_alloca_works
=no
3747 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3748 if test $ac_cv_func_alloca_works = yes; then
3749 cat >> confdefs.h
<<\EOF
3750 #define HAVE_ALLOCA 1
3755 if test $ac_cv_func_alloca_works = no
; then
3756 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3757 # that cause trouble. Some versions do not even contain alloca or
3758 # contain a buggy version. If you still want to use their alloca,
3759 # use ar to extract alloca.o from them instead of compiling alloca.c.
3760 ALLOCA
=alloca.
${ac_objext}
3761 cat >> confdefs.h
<<\EOF
3766 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3767 echo "configure:3768: checking whether alloca needs Cray hooks" >&5
3768 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 cat > conftest.
$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 #if defined(CRAY) && ! defined(CRAY2)
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 egrep "webecray" >/dev
/null
2>&1; then
3793 echo "$ac_t""$ac_cv_os_cray" 1>&6
3794 if test $ac_cv_os_cray = yes; then
3795 for ac_func
in _getb67 GETB67 getb67
; do
3796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_func" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.
$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func(); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3825 if { (eval echo configure
:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3827 eval "ac_cv_func_$ac_func=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 eval "ac_cv_func_$ac_func=no"
3837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 cat >> confdefs.h
<<EOF
3840 #define CRAY_STACKSEG_END $ac_func
3845 echo "$ac_t""no" 1>&6
3851 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3852 echo "configure:3853: checking stack direction for C alloca" >&5
3853 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 if test "$cross_compiling" = yes; then
3857 ac_cv_c_stack_direction
=0
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 find_stack_direction ()
3864 static char *addr = 0;
3869 return find_stack_direction ();
3872 return (&dummy > addr) ? 1 : -1;
3876 exit (find_stack_direction() < 0);
3879 if { (eval echo configure
:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3881 ac_cv_c_stack_direction
=1
3883 echo "configure: failed program was:" >&5
3884 cat conftest.
$ac_ext >&5
3886 ac_cv_c_stack_direction
=-1
3893 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3894 cat >> confdefs.h
<<EOF
3895 #define STACK_DIRECTION $ac_cv_c_stack_direction
3900 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3901 echo "configure:3902: checking for pid_t" >&5
3902 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 #include <sys/types.h>
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3917 ac_cv_type_pid_t
=yes
3925 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3926 if test $ac_cv_type_pid_t = no
; then
3927 cat >> confdefs.h
<<\EOF
3933 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3934 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3935 echo "configure:3936: checking for vfork.h" >&5
3936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 cat > conftest.
$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3944 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3945 { (eval echo configure
:3946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3946 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3947 if test -z "$ac_err"; then
3949 eval "ac_cv_header_$ac_safe=yes"
3952 echo "configure: failed program was:" >&5
3953 cat conftest.
$ac_ext >&5
3955 eval "ac_cv_header_$ac_safe=no"
3959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3960 echo "$ac_t""yes" 1>&6
3961 cat >> confdefs.h
<<\EOF
3962 #define HAVE_VFORK_H 1
3966 echo "$ac_t""no" 1>&6
3969 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3970 echo "configure:3971: checking for working vfork" >&5
3971 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 if test "$cross_compiling" = yes; then
3975 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3976 echo "configure:3977: checking for vfork" >&5
3977 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 cat > conftest.
$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 /* System header to define __stub macros and hopefully few prototypes,
3984 which can conflict with char vfork(); below. */
3986 /* Override any gcc2 internal prototype to avoid an error. */
3987 /* We use char because int might match the return type of a gcc2
3988 builtin and then its argument prototype would still apply. */
3993 /* The GNU C library defines this for functions which it implements
3994 to always fail with ENOSYS. Some functions are actually named
3995 something starting with __ and the normal name is an alias. */
3996 #if defined (__stub_vfork) || defined (__stub___vfork)
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_func_vfork=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.
$ac_ext >&5
4011 eval "ac_cv_func_vfork=no"
4016 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4017 echo "$ac_t""yes" 1>&6
4020 echo "$ac_t""no" 1>&6
4023 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4025 cat > conftest.
$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* Thanks to Paul Eggert for this test. */
4030 #include <sys/types.h>
4031 #include <sys/stat.h>
4032 #ifdef HAVE_UNISTD_H
4038 /* On some sparc systems, changes by the child to local and incoming
4039 argument registers are propagated back to the parent.
4040 The compiler is told about this with #include <vfork.h>,
4041 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4042 Test for this by using a static variable whose address
4043 is put into a register that is clobbered by the vfork. */
4046 sparc_address_test (int arg)
4048 sparc_address_test (arg) int arg;
4066 pid_t parent = getpid ();
4069 sparc_address_test ();
4074 /* Here is another test for sparc vfork register problems.
4075 This test uses lots of local variables, at least
4076 as many local variables as main has allocated so far
4077 including compiler temporaries. 4 locals are enough for
4078 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4079 A buggy compiler should reuse the register of parent
4080 for one of the local variables, since it will think that
4081 parent can't possibly be used any more in this routine.
4082 Assigning to the local variable will thus munge parent
4083 in the parent process. */
4085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4087 /* Convince the compiler that p..p7 are live; otherwise, it might
4088 use the same hardware register for all 8 local variables. */
4089 if (p != p1 || p != p2 || p != p3 || p != p4
4090 || p != p5 || p != p6 || p != p7)
4093 /* On some systems (e.g. IRIX 3.3),
4094 vfork doesn't separate parent from child file descriptors.
4095 If the child closes a descriptor before it execs or exits,
4096 this munges the parent's descriptor as well.
4097 Test for this by closing stdout in the child. */
4098 _exit(close(fileno(stdout)) != 0);
4103 while (wait(&status) != child)
4106 /* Was there some problem with vforking? */
4109 /* Did the child fail? (This shouldn't happen.) */
4112 /* Did the vfork/compiler bug occur? */
4113 || parent != getpid()
4115 /* Did the file descriptor bug occur? */
4116 || fstat(fileno(stdout), &st) != 0
4121 if { (eval echo configure
:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4123 ac_cv_func_vfork_works
=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 ac_cv_func_vfork_works
=no
4135 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4136 if test $ac_cv_func_vfork_works = no
; then
4137 cat >> confdefs.h
<<\EOF
4143 if test "$cross_compiling" = no
; then
4144 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4145 echo "configure:4146: checking whether setpgrp takes no argument" >&5
4146 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 if test "$cross_compiling" = yes; then
4150 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4156 #ifdef HAVE_UNISTD_H
4161 * If this system has a BSD-style setpgrp, which takes arguments, exit
4166 if (setpgrp(1,1) == -1)
4173 if { (eval echo configure
:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4175 ac_cv_func_setpgrp_void
=no
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4180 ac_cv_func_setpgrp_void
=yes
4188 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4189 if test $ac_cv_func_setpgrp_void = yes; then
4190 cat >> confdefs.h
<<\EOF
4191 #define SETPGRP_VOID 1
4197 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4198 echo "configure:4199: checking whether setpgrp takes no argument" >&5
4199 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 cat > conftest.
$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4210 if (setpgrp(1,1) == -1)
4217 if { (eval echo configure
:4218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4219 ac_cv_func_setpgrp_void
=no
4221 echo "configure: failed program was:" >&5
4222 cat conftest.
$ac_ext >&5
4224 ac_cv_func_setpgrp_void
=yes
4229 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4230 if test $ac_cv_func_setpgrp_void = yes; then
4231 cat >> confdefs.h
<<\EOF
4232 #define SETPGRP_VOID 1
4238 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4239 # since sigsetjmp might only be defined as a macro.
4240 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4241 echo "configure:4242: checking for sigsetjmp" >&5
4242 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 cat > conftest.
$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4252 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4255 if { (eval echo configure
:4256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4257 gdb_cv_func_sigsetjmp
=yes
4259 echo "configure: failed program was:" >&5
4260 cat conftest.
$ac_ext >&5
4262 gdb_cv_func_sigsetjmp
=no
4267 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4268 if test $gdb_cv_func_sigsetjmp = yes; then
4269 cat >> confdefs.h
<<\EOF
4270 #define HAVE_SIGSETJMP 1
4275 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4276 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4277 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4278 echo "configure:4279: checking for r_fs in struct reg" >&5
4279 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 #include <machine/reg.h>
4287 struct reg r; r.r_fs;
4290 if { (eval echo configure
:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4292 gdb_cv_struct_reg_r_fs
=yes
4294 echo "configure: failed program was:" >&5
4295 cat conftest.
$ac_ext >&5
4297 gdb_cv_struct_reg_r_fs
=no
4302 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4303 if test $gdb_cv_struct_reg_r_fs = yes; then
4304 cat >> confdefs.h
<<\EOF
4305 #define HAVE_STRUCT_REG_R_FS 1
4309 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4310 echo "configure:4311: checking for r_gs in struct reg" >&5
4311 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 cat > conftest.
$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 #include <machine/reg.h>
4319 struct reg r; r.r_gs;
4322 if { (eval echo configure
:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4324 gdb_cv_struct_reg_r_gs
=yes
4326 echo "configure: failed program was:" >&5
4327 cat conftest.
$ac_ext >&5
4329 gdb_cv_struct_reg_r_gs
=no
4334 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4335 if test $gdb_cv_struct_reg_r_gs = yes; then
4336 cat >> confdefs.h
<<\EOF
4337 #define HAVE_STRUCT_REG_R_GS 1
4342 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4343 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4344 echo "configure:4345: checking for PTRACE_GETREGS" >&5
4345 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 cat > conftest.
$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 #include <sys/ptrace.h>
4356 if { (eval echo configure
:4357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4358 gdb_cv_have_ptrace_getregs
=yes
4360 echo "configure: failed program was:" >&5
4361 cat conftest.
$ac_ext >&5
4363 gdb_cv_have_ptrace_getregs
=no
4368 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4369 if test $gdb_cv_have_ptrace_getregs = yes; then
4370 cat >> confdefs.h
<<\EOF
4371 #define HAVE_PTRACE_GETREGS 1
4376 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4377 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4378 echo "configure:4379: checking for PTRACE_GETFPXREGS" >&5
4379 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 cat > conftest.
$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 #include <sys/ptrace.h>
4390 if { (eval echo configure
:4391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4392 gdb_cv_have_ptrace_getfpxregs
=yes
4394 echo "configure: failed program was:" >&5
4395 cat conftest.
$ac_ext >&5
4397 gdb_cv_have_ptrace_getfpxregs
=no
4402 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4403 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4404 cat >> confdefs.h
<<\EOF
4405 #define HAVE_PTRACE_GETFPXREGS 1
4410 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4411 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4412 echo "configure:4413: checking for PT_GETDBREGS" >&5
4413 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 cat > conftest.
$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4419 #include <sys/types.h>
4420 #include <sys/ptrace.h>
4425 if { (eval echo configure
:4426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4427 gdb_cv_have_pt_getdbregs
=yes
4429 echo "configure: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4432 gdb_cv_have_pt_getdbregs
=no
4437 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4438 if test $gdb_cv_have_pt_getdbregs = yes; then
4439 cat >> confdefs.h
<<\EOF
4440 #define HAVE_PT_GETDBREGS 1
4445 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4446 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
4447 echo "configure:4448: checking for PT_GETXMMREGS" >&5
4448 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 cat > conftest.
$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 #include <sys/types.h>
4455 #include <sys/ptrace.h>
4460 if { (eval echo configure
:4461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4462 gdb_cv_have_pt_getxmmregs
=yes
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4467 gdb_cv_have_pt_getxmmregs
=no
4472 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
4473 if test $gdb_cv_have_pt_getxmmregs = yes; then
4474 cat >> confdefs.h
<<\EOF
4475 #define HAVE_PT_GETXMMREGS 1
4481 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4482 echo "configure:4483: checking for socketpair in -lsocket" >&5
4483 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 ac_save_LIBS
="$LIBS"
4488 LIBS
="-lsocket $LIBS"
4489 cat > conftest.
$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 /* Override any gcc2 internal prototype to avoid an error. */
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4501 if { (eval echo configure
:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4503 eval "ac_cv_lib_$ac_lib_var=yes"
4505 echo "configure: failed program was:" >&5
4506 cat conftest.
$ac_ext >&5
4508 eval "ac_cv_lib_$ac_lib_var=no"
4511 LIBS
="$ac_save_LIBS"
4514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4516 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4517 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4518 cat >> confdefs.h
<<EOF
4519 #define $ac_tr_lib 1
4522 LIBS
="-lsocket $LIBS"
4525 echo "$ac_t""no" 1>&6
4528 for ac_func
in socketpair
4530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_func" >&5
4532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.
$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func(); below. */
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 if { (eval echo configure
:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4561 eval "ac_cv_func_$ac_func=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.
$ac_ext >&5
4566 eval "ac_cv_func_$ac_func=no"
4571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4572 echo "$ac_t""yes" 1>&6
4573 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4574 cat >> confdefs.h
<<EOF
4575 #define $ac_tr_func 1
4579 echo "$ac_t""no" 1>&6
4585 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4586 echo "configure:4587: checking whether malloc must be declared" >&5
4587 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.
$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4595 #ifdef HAVE_STRING_H
4598 #ifdef HAVE_STRINGS_H
4599 #include <strings.h>
4602 #ifdef HAVE_STDLIB_H
4605 #ifdef HAVE_UNISTD_H
4609 char *(*pfn) = (char *(*)) malloc
4612 if { (eval echo configure
:4613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4614 bfd_cv_decl_needed_malloc
=no
4616 echo "configure: failed program was:" >&5
4617 cat conftest.
$ac_ext >&5
4619 bfd_cv_decl_needed_malloc
=yes
4624 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4625 if test $bfd_cv_decl_needed_malloc = yes; then
4626 cat >> confdefs.h
<<\EOF
4627 #define NEED_DECLARATION_MALLOC 1
4632 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4633 echo "configure:4634: checking whether realloc must be declared" >&5
4634 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 cat > conftest.
$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4642 #ifdef HAVE_STRING_H
4645 #ifdef HAVE_STRINGS_H
4646 #include <strings.h>
4649 #ifdef HAVE_STDLIB_H
4652 #ifdef HAVE_UNISTD_H
4656 char *(*pfn) = (char *(*)) realloc
4659 if { (eval echo configure
:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4661 bfd_cv_decl_needed_realloc
=no
4663 echo "configure: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4666 bfd_cv_decl_needed_realloc
=yes
4671 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4672 if test $bfd_cv_decl_needed_realloc = yes; then
4673 cat >> confdefs.h
<<\EOF
4674 #define NEED_DECLARATION_REALLOC 1
4679 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4680 echo "configure:4681: checking whether free must be declared" >&5
4681 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 cat > conftest.
$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4689 #ifdef HAVE_STRING_H
4692 #ifdef HAVE_STRINGS_H
4693 #include <strings.h>
4696 #ifdef HAVE_STDLIB_H
4699 #ifdef HAVE_UNISTD_H
4703 char *(*pfn) = (char *(*)) free
4706 if { (eval echo configure
:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4708 bfd_cv_decl_needed_free
=no
4710 echo "configure: failed program was:" >&5
4711 cat conftest.
$ac_ext >&5
4713 bfd_cv_decl_needed_free
=yes
4718 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4719 if test $bfd_cv_decl_needed_free = yes; then
4720 cat >> confdefs.h
<<\EOF
4721 #define NEED_DECLARATION_FREE 1
4726 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4727 echo "configure:4728: checking whether strerror must be declared" >&5
4728 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.
$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4736 #ifdef HAVE_STRING_H
4739 #ifdef HAVE_STRINGS_H
4740 #include <strings.h>
4743 #ifdef HAVE_STDLIB_H
4746 #ifdef HAVE_UNISTD_H
4750 char *(*pfn) = (char *(*)) strerror
4753 if { (eval echo configure
:4754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4755 bfd_cv_decl_needed_strerror
=no
4757 echo "configure: failed program was:" >&5
4758 cat conftest.
$ac_ext >&5
4760 bfd_cv_decl_needed_strerror
=yes
4765 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4766 if test $bfd_cv_decl_needed_strerror = yes; then
4767 cat >> confdefs.h
<<\EOF
4768 #define NEED_DECLARATION_STRERROR 1
4773 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4774 echo "configure:4775: checking whether strdup must be declared" >&5
4775 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.
$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4783 #ifdef HAVE_STRING_H
4786 #ifdef HAVE_STRINGS_H
4787 #include <strings.h>
4790 #ifdef HAVE_STDLIB_H
4793 #ifdef HAVE_UNISTD_H
4797 char *(*pfn) = (char *(*)) strdup
4800 if { (eval echo configure
:4801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4802 bfd_cv_decl_needed_strdup
=no
4804 echo "configure: failed program was:" >&5
4805 cat conftest.
$ac_ext >&5
4807 bfd_cv_decl_needed_strdup
=yes
4812 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4813 if test $bfd_cv_decl_needed_strdup = yes; then
4814 cat >> confdefs.h
<<\EOF
4815 #define NEED_DECLARATION_STRDUP 1
4820 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4821 echo "configure:4822: checking whether strstr must be declared" >&5
4822 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 cat > conftest.
$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4830 #ifdef HAVE_STRING_H
4833 #ifdef HAVE_STRINGS_H
4834 #include <strings.h>
4837 #ifdef HAVE_STDLIB_H
4840 #ifdef HAVE_UNISTD_H
4844 char *(*pfn) = (char *(*)) strstr
4847 if { (eval echo configure
:4848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4849 bfd_cv_decl_needed_strstr
=no
4851 echo "configure: failed program was:" >&5
4852 cat conftest.
$ac_ext >&5
4854 bfd_cv_decl_needed_strstr
=yes
4859 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4860 if test $bfd_cv_decl_needed_strstr = yes; then
4861 cat >> confdefs.h
<<\EOF
4862 #define NEED_DECLARATION_STRSTR 1
4867 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
4868 echo "configure:4869: checking whether canonicalize_file_name must be declared" >&5
4869 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4877 #ifdef HAVE_STRING_H
4880 #ifdef HAVE_STRINGS_H
4881 #include <strings.h>
4884 #ifdef HAVE_STDLIB_H
4887 #ifdef HAVE_UNISTD_H
4891 char *(*pfn) = (char *(*)) canonicalize_file_name
4894 if { (eval echo configure
:4895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4896 bfd_cv_decl_needed_canonicalize_file_name
=no
4898 echo "configure: failed program was:" >&5
4899 cat conftest.
$ac_ext >&5
4901 bfd_cv_decl_needed_canonicalize_file_name
=yes
4906 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
4907 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
4908 cat >> confdefs.h
<<\EOF
4909 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
4915 # The following save_state_t checkery is only necessary for HPUX
4916 # versions earlier than 10.20. When those fade from memory, this
4917 # could be expunged. --jsm 1999-03-22
4919 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4920 echo "configure:4921: checking for HPUX save_state structure" >&5
4921 cat > conftest.
$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 #include <machine/save_state.h>
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927 egrep "save_state_t" >/dev
/null
2>&1; then
4929 gdb_cv_hpux_savestate
=yes
4932 gdb_cv_hpux_savestate
=no
4936 cat > conftest.
$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4939 #include <machine/save_state.h>
4941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4942 egrep "ss_wide" >/dev
/null
2>&1; then
4944 gdb_cv_hpux_sswide
=yes
4947 gdb_cv_hpux_sswide
=no
4951 if test $gdb_cv_hpux_savestate = yes
4953 cat >> confdefs.h
<<\EOF
4954 #define HAVE_STRUCT_SAVE_STATE_T 1
4958 if test $gdb_cv_hpux_sswide = yes
4960 cat >> confdefs.h
<<\EOF
4961 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4965 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4968 # If we are configured native on GNU/Linux, work around problems with
4970 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4972 if test "${target}" = "${host}"; then
4975 cat >> confdefs.h
<<\EOF
4976 #define START_INFERIOR_TRAPS_EXPECTED 2
4979 cat >> confdefs.h
<<\EOF
4980 #define sys_quotactl 1
4985 cat >> confdefs.h
<<\EOF
4986 #define NEW_PROC_API 1
4990 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
4991 cat >> confdefs.h
<<\EOF
4992 #define NEW_PROC_API 1
4997 cat >> confdefs.h
<<\EOF
4998 #define NEW_PROC_API 1
5005 if test "$ac_cv_header_sys_procfs_h" = yes; then
5006 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5007 echo "configure:5008: checking for pstatus_t in sys/procfs.h" >&5
5008 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5009 echo $ac_n "(cached) $ac_c" 1>&6
5011 cat > conftest.
$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5016 #include <sys/procfs.h>
5021 if { (eval echo configure
:5022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5023 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5025 echo "configure: failed program was:" >&5
5026 cat conftest.
$ac_ext >&5
5028 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5034 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5035 cat >> confdefs.h
<<\EOF
5036 #define HAVE_PSTATUS_T 1
5040 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5042 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
5043 echo "configure:5044: checking for prrun_t in sys/procfs.h" >&5
5044 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5047 cat > conftest.
$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5052 #include <sys/procfs.h>
5057 if { (eval echo configure
:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5059 bfd_cv_have_sys_procfs_type_prrun_t
=yes
5061 echo "configure: failed program was:" >&5
5062 cat conftest.
$ac_ext >&5
5064 bfd_cv_have_sys_procfs_type_prrun_t
=no
5070 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
5071 cat >> confdefs.h
<<\EOF
5072 #define HAVE_PRRUN_T 1
5076 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
5078 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
5079 echo "configure:5080: checking for gregset_t in sys/procfs.h" >&5
5080 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
5081 echo $ac_n "(cached) $ac_c" 1>&6
5083 cat > conftest.
$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5088 #include <sys/procfs.h>
5093 if { (eval echo configure
:5094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5095 bfd_cv_have_sys_procfs_type_gregset_t
=yes
5097 echo "configure: failed program was:" >&5
5098 cat conftest.
$ac_ext >&5
5100 bfd_cv_have_sys_procfs_type_gregset_t
=no
5106 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
5107 cat >> confdefs.h
<<\EOF
5108 #define HAVE_GREGSET_T 1
5112 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
5114 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
5115 echo "configure:5116: checking for fpregset_t in sys/procfs.h" >&5
5116 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 cat > conftest.
$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5124 #include <sys/procfs.h>
5129 if { (eval echo configure
:5130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5131 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
5133 echo "configure: failed program was:" >&5
5134 cat conftest.
$ac_ext >&5
5136 bfd_cv_have_sys_procfs_type_fpregset_t
=no
5142 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
5143 cat >> confdefs.h
<<\EOF
5144 #define HAVE_FPREGSET_T 1
5148 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
5150 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
5151 echo "configure:5152: checking for prgregset_t in sys/procfs.h" >&5
5152 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5155 cat > conftest.
$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5160 #include <sys/procfs.h>
5165 if { (eval echo configure
:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5167 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5169 echo "configure: failed program was:" >&5
5170 cat conftest.
$ac_ext >&5
5172 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5178 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5179 cat >> confdefs.h
<<\EOF
5180 #define HAVE_PRGREGSET_T 1
5184 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5186 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5187 echo "configure:5188: checking for prfpregset_t in sys/procfs.h" >&5
5188 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5191 cat > conftest.
$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5196 #include <sys/procfs.h>
5201 if { (eval echo configure
:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5203 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
5205 echo "configure: failed program was:" >&5
5206 cat conftest.
$ac_ext >&5
5208 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
5214 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5215 cat >> confdefs.h
<<\EOF
5216 #define HAVE_PRFPREGSET_T 1
5220 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5222 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5223 echo "configure:5224: checking for prgregset32_t in sys/procfs.h" >&5
5224 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 cat > conftest.
$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5232 #include <sys/procfs.h>
5237 if { (eval echo configure
:5238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
5241 echo "configure: failed program was:" >&5
5242 cat conftest.
$ac_ext >&5
5244 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
5250 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5251 cat >> confdefs.h
<<\EOF
5252 #define HAVE_PRGREGSET32_T 1
5256 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5258 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5259 echo "configure:5260: checking for prfpregset32_t in sys/procfs.h" >&5
5260 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 cat > conftest.
$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5268 #include <sys/procfs.h>
5273 if { (eval echo configure
:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5275 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5277 echo "configure: failed program was:" >&5
5278 cat conftest.
$ac_ext >&5
5280 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5286 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5287 cat >> confdefs.h
<<\EOF
5288 #define HAVE_PRFPREGSET32_T 1
5292 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5294 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5295 echo "configure:5296: checking for lwpid_t in sys/procfs.h" >&5
5296 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.
$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5304 #include <sys/procfs.h>
5309 if { (eval echo configure
:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5311 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5313 echo "configure: failed program was:" >&5
5314 cat conftest.
$ac_ext >&5
5316 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5322 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5323 cat >> confdefs.h
<<\EOF
5324 #define HAVE_LWPID_T 1
5328 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5330 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5331 echo "configure:5332: checking for psaddr_t in sys/procfs.h" >&5
5332 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.
$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5340 #include <sys/procfs.h>
5345 if { (eval echo configure
:5346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5347 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5349 echo "configure: failed program was:" >&5
5350 cat conftest.
$ac_ext >&5
5352 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5358 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5359 cat >> confdefs.h
<<\EOF
5360 #define HAVE_PSADDR_T 1
5364 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5366 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5367 echo "configure:5368: checking for prsysent_t in sys/procfs.h" >&5
5368 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.
$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5376 #include <sys/procfs.h>
5381 if { (eval echo configure
:5382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5383 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5385 echo "configure: failed program was:" >&5
5386 cat conftest.
$ac_ext >&5
5388 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5394 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5395 cat >> confdefs.h
<<\EOF
5396 #define HAVE_PRSYSENT_T 1
5400 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5402 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5403 echo "configure:5404: checking for pr_sigset_t in sys/procfs.h" >&5
5404 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 cat > conftest.
$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5412 #include <sys/procfs.h>
5417 if { (eval echo configure
:5418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5419 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5421 echo "configure: failed program was:" >&5
5422 cat conftest.
$ac_ext >&5
5424 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5430 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5431 cat >> confdefs.h
<<\EOF
5432 #define HAVE_PR_SIGSET_T 1
5436 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5438 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5439 echo "configure:5440: checking for pr_sigaction64_t in sys/procfs.h" >&5
5440 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 cat > conftest.
$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5448 #include <sys/procfs.h>
5450 pr_sigaction64_t avar
5453 if { (eval echo configure
:5454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5455 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5457 echo "configure: failed program was:" >&5
5458 cat conftest.
$ac_ext >&5
5460 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5466 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5467 cat >> confdefs.h
<<\EOF
5468 #define HAVE_PR_SIGACTION64_T 1
5472 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5474 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5475 echo "configure:5476: checking for pr_siginfo64_t in sys/procfs.h" >&5
5476 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5479 cat > conftest.
$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5484 #include <sys/procfs.h>
5489 if { (eval echo configure
:5490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5491 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5493 echo "configure: failed program was:" >&5
5494 cat conftest.
$ac_ext >&5
5496 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5502 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5503 cat >> confdefs.h
<<\EOF
5504 #define HAVE_PR_SIGINFO64_T 1
5508 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5514 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5515 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5516 echo "configure:5517: checking whether prfpregset_t type is broken" >&5
5517 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5520 if test "$cross_compiling" = yes; then
5521 gdb_cv_prfpregset_t_broken
=yes
5523 cat > conftest.
$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 #include <sys/procfs.h>
5529 if (sizeof (prfpregset_t) == sizeof (void *))
5534 if { (eval echo configure
:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5536 gdb_cv_prfpregset_t_broken
=no
5538 echo "configure: failed program was:" >&5
5539 cat conftest.
$ac_ext >&5
5541 gdb_cv_prfpregset_t_broken
=yes
5548 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5549 if test $gdb_cv_prfpregset_t_broken = yes; then
5550 cat >> confdefs.h
<<\EOF
5551 #define PRFPREGSET_T_BROKEN 1
5558 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5559 echo "configure:5560: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5560 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 cat > conftest.
$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5567 #include <sys/types.h>
5568 #include <sys/procfs.h>
5573 dummy = ioctl(0, PIOCSET, &dummy);
5577 if { (eval echo configure
:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579 gdb_cv_have_procfs_piocset
=yes
5581 echo "configure: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
5584 gdb_cv_have_procfs_piocset
=no
5589 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5590 if test $gdb_cv_have_procfs_piocset = yes; then
5591 cat >> confdefs.h
<<\EOF
5592 #define HAVE_PROCFS_PIOCSET 1
5598 if test ${host} = ${target} ; then
5600 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5601 echo "configure:5602: checking for member l_addr in struct link_map" >&5
5602 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5603 echo $ac_n "(cached) $ac_c" 1>&6
5605 cat > conftest.
$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5610 struct link_map lm; (void) lm.l_addr;
5613 if { (eval echo configure
:5614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5615 gdb_cv_have_struct_link_map_with_l_members
=yes
5617 echo "configure: failed program was:" >&5
5618 cat conftest.
$ac_ext >&5
5620 gdb_cv_have_struct_link_map_with_l_members
=no
5625 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5626 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5627 cat >> confdefs.h
<<\EOF
5628 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5634 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5635 echo "configure:5636: checking for member lm_addr in struct link_map" >&5
5636 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6
5639 cat > conftest.
$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 #include <sys/types.h>
5645 struct link_map lm; (void) lm.lm_addr;
5648 if { (eval echo configure
:5649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5650 gdb_cv_have_struct_link_map_with_lm_members
=yes
5652 echo "configure: failed program was:" >&5
5653 cat conftest.
$ac_ext >&5
5655 gdb_cv_have_struct_link_map_with_lm_members
=no
5660 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5661 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5662 cat >> confdefs.h
<<\EOF
5663 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5669 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5670 echo "configure:5671: checking for member som_addr in struct so_map" >&5
5671 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5674 cat > conftest.
$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 #include <sys/types.h>
5683 struct so_map lm; (void) lm.som_addr;
5686 if { (eval echo configure
:5687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5688 gdb_cv_have_struct_so_map_with_som_members
=yes
5690 echo "configure: failed program was:" >&5
5691 cat conftest.
$ac_ext >&5
5693 gdb_cv_have_struct_so_map_with_som_members
=no
5698 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5699 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5700 cat >> confdefs.h
<<\EOF
5701 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5707 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5708 echo "configure:5709: checking for struct link_map32 in sys/link.h" >&5
5709 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5712 cat > conftest.
$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5716 #include <sys/link.h>
5718 struct link_map32 l;
5721 if { (eval echo configure
:5722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5723 gdb_cv_have_struct_link_map32
=yes
5725 echo "configure: failed program was:" >&5
5726 cat conftest.
$ac_ext >&5
5728 gdb_cv_have_struct_link_map32
=no
5733 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5734 if test $gdb_cv_have_struct_link_map32 = yes; then
5735 cat >> confdefs.h
<<\EOF
5736 #define HAVE_STRUCT_LINK_MAP32 1
5739 cat >> confdefs.h
<<\EOF
5740 #define _SYSCALL32 1
5746 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5747 echo "configure:5748: checking for main in -lm" >&5
5748 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5752 ac_save_LIBS
="$LIBS"
5754 cat > conftest.
$ac_ext <<EOF
5755 #line 5756 "configure"
5756 #include "confdefs.h"
5762 if { (eval echo configure
:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5764 eval "ac_cv_lib_$ac_lib_var=yes"
5766 echo "configure: failed program was:" >&5
5767 cat conftest.
$ac_ext >&5
5769 eval "ac_cv_lib_$ac_lib_var=no"
5772 LIBS
="$ac_save_LIBS"
5775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5779 cat >> confdefs.h
<<EOF
5780 #define $ac_tr_lib 1
5786 echo "$ac_t""no" 1>&6
5790 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5791 echo "configure:5792: checking for wctype in -lc" >&5
5792 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5796 ac_save_LIBS
="$LIBS"
5798 cat > conftest.
$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5801 /* Override any gcc2 internal prototype to avoid an error. */
5802 /* We use char because int might match the return type of a gcc2
5803 builtin and then its argument prototype would still apply. */
5810 if { (eval echo configure
:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5812 eval "ac_cv_lib_$ac_lib_var=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.
$ac_ext >&5
5817 eval "ac_cv_lib_$ac_lib_var=no"
5820 LIBS
="$ac_save_LIBS"
5823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5824 echo "$ac_t""yes" 1>&6
5827 echo "$ac_t""no" 1>&6
5828 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5829 echo "configure:5830: checking for wctype in -lw" >&5
5830 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 ac_save_LIBS
="$LIBS"
5836 cat > conftest.
$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5848 if { (eval echo configure
:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5850 eval "ac_cv_lib_$ac_lib_var=yes"
5852 echo "configure: failed program was:" >&5
5853 cat conftest.
$ac_ext >&5
5855 eval "ac_cv_lib_$ac_lib_var=no"
5858 LIBS
="$ac_save_LIBS"
5861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5862 echo "$ac_t""yes" 1>&6
5863 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5865 cat >> confdefs.h
<<EOF
5866 #define $ac_tr_lib 1
5872 echo "$ac_t""no" 1>&6
5879 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5880 echo "configure:5881: checking for long long support in compiler" >&5
5881 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 cat > conftest.
$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5890 extern long long foo;
5891 switch (foo & 2) { case 0: return 1; }
5895 if { (eval echo configure
:5896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5897 gdb_cv_c_long_long
=yes
5899 echo "configure: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 gdb_cv_c_long_long
=no
5907 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5908 if test $gdb_cv_c_long_long = yes; then
5909 cat >> confdefs.h
<<\EOF
5910 #define CC_HAS_LONG_LONG 1
5916 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5917 echo "configure:5918: checking for long long support in printf" >&5
5918 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5921 if test "$cross_compiling" = yes; then
5922 gdb_cv_printf_has_long_long
=no
5924 cat > conftest.
$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5931 l = (l << 16) + 0x0123;
5932 l = (l << 16) + 0x4567;
5933 l = (l << 16) + 0x89ab;
5934 l = (l << 16) + 0xcdef;
5935 sprintf (buf, "0x%016llx", l);
5936 return (strcmp ("0x0123456789abcdef", buf));
5939 if { (eval echo configure
:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5941 gdb_cv_printf_has_long_long
=yes
5943 echo "configure: failed program was:" >&5
5944 cat conftest.
$ac_ext >&5
5946 gdb_cv_printf_has_long_long
=no
5953 if test $gdb_cv_printf_has_long_long = yes; then
5954 cat >> confdefs.h
<<\EOF
5955 #define PRINTF_HAS_LONG_LONG 1
5959 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5962 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5963 echo "configure:5964: checking for long double support in compiler" >&5
5964 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5967 cat > conftest.
$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5975 if { (eval echo configure
:5976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5977 ac_cv_c_long_double
=yes
5979 echo "configure: failed program was:" >&5
5980 cat conftest.
$ac_ext >&5
5982 ac_cv_c_long_double
=no
5987 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5988 if test $ac_cv_c_long_double = yes; then
5989 cat >> confdefs.h
<<\EOF
5990 #define HAVE_LONG_DOUBLE 1
5996 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5997 echo "configure:5998: checking for long double support in printf" >&5
5998 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 if test "$cross_compiling" = yes; then
6002 gdb_cv_printf_has_long_double
=no
6004 cat > conftest.
$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6010 long double f = 3.141592653;
6011 sprintf (buf, "%Lg", f);
6012 return (strncmp ("3.14159", buf, 7));
6015 if { (eval echo configure
:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6017 gdb_cv_printf_has_long_double
=yes
6019 echo "configure: failed program was:" >&5
6020 cat conftest.
$ac_ext >&5
6022 gdb_cv_printf_has_long_double
=no
6029 if test $gdb_cv_printf_has_long_double = yes; then
6030 cat >> confdefs.h
<<\EOF
6031 #define PRINTF_HAS_LONG_DOUBLE 1
6035 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
6038 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
6039 echo "configure:6040: checking for long double support in scanf" >&5
6040 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6043 if test "$cross_compiling" = yes; then
6044 gdb_cv_scanf_has_long_double
=no
6046 cat > conftest.
$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6051 char *buf = "3.141592653";
6053 sscanf (buf, "%Lg", &f);
6054 return !(f > 3.14159 && f < 3.14160);
6057 if { (eval echo configure
:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6059 gdb_cv_scanf_has_long_double
=yes
6061 echo "configure: failed program was:" >&5
6062 cat conftest.
$ac_ext >&5
6064 gdb_cv_scanf_has_long_double
=no
6071 if test $gdb_cv_scanf_has_long_double = yes; then
6072 cat >> confdefs.h
<<\EOF
6073 #define SCANF_HAS_LONG_DOUBLE 1
6077 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
6079 for ac_hdr
in unistd.h
6081 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_hdr" >&5
6084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 cat > conftest.
$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6093 { (eval echo configure
:6094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6095 if test -z "$ac_err"; then
6097 eval "ac_cv_header_$ac_safe=yes"
6100 echo "configure: failed program was:" >&5
6101 cat conftest.
$ac_ext >&5
6103 eval "ac_cv_header_$ac_safe=no"
6107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6108 echo "$ac_t""yes" 1>&6
6109 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6110 cat >> confdefs.h
<<EOF
6111 #define $ac_tr_hdr 1
6115 echo "$ac_t""no" 1>&6
6119 for ac_func
in getpagesize
6121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6122 echo "configure:6123: checking for $ac_func" >&5
6123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6126 cat > conftest.
$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char $ac_func(); below. */
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6139 /* The GNU C library defines this for functions which it implements
6140 to always fail with ENOSYS. Some functions are actually named
6141 something starting with __ and the normal name is an alias. */
6142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6150 if { (eval echo configure
:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6152 eval "ac_cv_func_$ac_func=yes"
6154 echo "configure: failed program was:" >&5
6155 cat conftest.
$ac_ext >&5
6157 eval "ac_cv_func_$ac_func=no"
6162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6163 echo "$ac_t""yes" 1>&6
6164 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6165 cat >> confdefs.h
<<EOF
6166 #define $ac_tr_func 1
6170 echo "$ac_t""no" 1>&6
6174 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6175 echo "configure:6176: checking for working mmap" >&5
6176 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 if test "$cross_compiling" = yes; then
6180 ac_cv_func_mmap_fixed_mapped
=no
6182 cat > conftest.
$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6186 /* Thanks to Mike Haertel and Jim Avera for this test.
6187 Here is a matrix of mmap possibilities:
6188 mmap private not fixed
6189 mmap private fixed at somewhere currently unmapped
6190 mmap private fixed at somewhere already mapped
6191 mmap shared not fixed
6192 mmap shared fixed at somewhere currently unmapped
6193 mmap shared fixed at somewhere already mapped
6194 For private mappings, we should verify that changes cannot be read()
6195 back from the file, nor mmap's back from the file at a different
6196 address. (There have been systems where private was not correctly
6197 implemented like the infamous i386 svr4.0, and systems where the
6198 VM page cache was not coherent with the filesystem buffer cache
6199 like early versions of FreeBSD and possibly contemporary NetBSD.)
6200 For shared mappings, we should conversely verify that changes get
6201 propogated back to all the places they're supposed to be.
6203 Grep wants private fixed already mapped.
6204 The main things grep needs to know about mmap are:
6205 * does it exist and is it safe to write into the mmap'd area
6206 * how to use it (BSD variants) */
6207 #include <sys/types.h>
6209 #include <sys/mman.h>
6211 /* This mess was copied from the GNU getpagesize.h. */
6212 #ifndef HAVE_GETPAGESIZE
6213 # ifdef HAVE_UNISTD_H
6214 # include <unistd.h>
6217 /* Assume that all systems that can run configure have sys/param.h. */
6218 # ifndef HAVE_SYS_PARAM_H
6219 # define HAVE_SYS_PARAM_H 1
6222 # ifdef _SC_PAGESIZE
6223 # define getpagesize() sysconf(_SC_PAGESIZE)
6224 # else /* no _SC_PAGESIZE */
6225 # ifdef HAVE_SYS_PARAM_H
6226 # include <sys/param.h>
6227 # ifdef EXEC_PAGESIZE
6228 # define getpagesize() EXEC_PAGESIZE
6229 # else /* no EXEC_PAGESIZE */
6231 # define getpagesize() NBPG * CLSIZE
6234 # endif /* no CLSIZE */
6235 # else /* no NBPG */
6237 # define getpagesize() NBPC
6238 # else /* no NBPC */
6240 # define getpagesize() PAGESIZE
6241 # endif /* PAGESIZE */
6242 # endif /* no NBPC */
6243 # endif /* no NBPG */
6244 # endif /* no EXEC_PAGESIZE */
6245 # else /* no HAVE_SYS_PARAM_H */
6246 # define getpagesize() 8192 /* punt totally */
6247 # endif /* no HAVE_SYS_PARAM_H */
6248 # endif /* no _SC_PAGESIZE */
6250 #endif /* no HAVE_GETPAGESIZE */
6253 extern "C" { void *malloc(unsigned); }
6261 char *data, *data2, *data3;
6265 pagesize = getpagesize();
6268 * First, make a file with some known garbage in it.
6270 data = malloc(pagesize);
6273 for (i = 0; i < pagesize; ++i)
6274 *(data + i) = rand();
6276 fd = creat("conftestmmap", 0600);
6279 if (write(fd, data, pagesize) != pagesize)
6284 * Next, try to mmap the file at a fixed address which
6285 * already has something else allocated at it. If we can,
6286 * also make sure that we see the same garbage.
6288 fd = open("conftestmmap", O_RDWR);
6291 data2 = malloc(2 * pagesize);
6294 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6295 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6296 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6298 for (i = 0; i < pagesize; ++i)
6299 if (*(data + i) != *(data2 + i))
6303 * Finally, make sure that changes to the mapped area
6304 * do not percolate back to the file as seen by read().
6305 * (This is a bug on some variants of i386 svr4.0.)
6307 for (i = 0; i < pagesize; ++i)
6308 *(data2 + i) = *(data2 + i) + 1;
6309 data3 = malloc(pagesize);
6312 if (read(fd, data3, pagesize) != pagesize)
6314 for (i = 0; i < pagesize; ++i)
6315 if (*(data + i) != *(data3 + i))
6318 unlink("conftestmmap");
6323 if { (eval echo configure
:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6325 ac_cv_func_mmap_fixed_mapped
=yes
6327 echo "configure: failed program was:" >&5
6328 cat conftest.
$ac_ext >&5
6330 ac_cv_func_mmap_fixed_mapped
=no
6337 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6338 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6339 cat >> confdefs.h
<<\EOF
6348 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
6349 echo "configure:6350: checking for -bbigtoc option" >&5
6350 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6354 SAVE_LDFLAGS
=$LDFLAGS
6357 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
6358 *) gdb_cv_bigtoc
=-bbigtoc ;;
6361 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
6362 cat > conftest.
$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6370 if { (eval echo configure
:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6373 echo "configure: failed program was:" >&5
6374 cat conftest.
$ac_ext >&5
6382 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
6383 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
6389 if test ${build} = ${host} -a ${host} = ${target} ; then
6392 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6393 echo "configure:6394: checking for HPUX/OSF thread support" >&5
6394 if test -f /usr
/include
/dce
/cma_config.h
; then
6395 if test "$GCC" = "yes" ; then
6396 echo "$ac_t""yes" 1>&6
6397 cat >> confdefs.h
<<\EOF
6398 #define HAVE_HPUX_THREAD_SUPPORT 1
6401 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6402 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6404 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6407 echo "$ac_t""no" 1>&6
6411 # See if thread_db library is around for Solaris thread debugging.
6412 # Note that we must explicitly test for version 1 of the library
6413 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
6415 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6416 echo "configure:6417: checking for Solaris thread debugging library" >&5
6417 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6418 echo "$ac_t""yes" 1>&6
6419 cat >> confdefs.h
<<\EOF
6420 #define HAVE_THREAD_DB_LIB 1
6423 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6424 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6425 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6426 echo "configure:6427: checking for dlopen in -ldl" >&5
6427 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6431 ac_save_LIBS
="$LIBS"
6433 cat > conftest.
$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6445 if { (eval echo configure
:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6447 eval "ac_cv_lib_$ac_lib_var=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.
$ac_ext >&5
6452 eval "ac_cv_lib_$ac_lib_var=no"
6455 LIBS
="$ac_save_LIBS"
6458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6459 echo "$ac_t""yes" 1>&6
6460 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6462 cat >> confdefs.h
<<EOF
6463 #define $ac_tr_lib 1
6469 echo "$ac_t""no" 1>&6
6472 if test "$GCC" = "yes" ; then
6473 # The GNU linker requires the -export-dynamic option to make
6474 # all symbols visible in the dynamic symbol table.
6475 hold_ldflags
=$LDFLAGS
6476 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6477 echo "configure:6478: checking for the ld -export-dynamic flag" >&5
6478 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6479 cat > conftest.
$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6487 if { (eval echo configure
:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6491 echo "configure: failed program was:" >&5
6492 cat conftest.
$ac_ext >&5
6497 LDFLAGS
=$hold_ldflags
6498 echo "$ac_t""$found" 1>&6
6499 if test $found = yes; then
6500 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6503 # Sun randomly tweaked the prototypes in <proc_service.h>
6505 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6506 echo "configure:6507: checking if <proc_service.h> is old" >&5
6507 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6511 cat > conftest.
$ac_ext <<EOF
6512 #line 6513 "configure"
6513 #include "confdefs.h"
6515 #include <proc_service.h>
6517 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6523 if { (eval echo configure
:6524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6525 gdb_cv_proc_service_is_old
=no
6527 echo "configure: failed program was:" >&5
6528 cat conftest.
$ac_ext >&5
6530 gdb_cv_proc_service_is_old
=yes
6536 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6537 if test $gdb_cv_proc_service_is_old = yes; then
6538 cat >> confdefs.h
<<\EOF
6539 #define PROC_SERVICE_IS_OLD 1
6544 echo "$ac_t""no" 1>&6
6548 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
6549 echo "configure:6550: checking for AiX thread debugging library" >&5
6550 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 cat > conftest.
$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 #include <sys/pthdebug.h>
6558 #ifndef PTHDB_VERSION_3
6563 if { (eval echo configure
:6564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6565 gdb_cv_have_aix_thread_debug
=yes
6567 echo "configure: failed program was:" >&5
6568 cat conftest.
$ac_ext >&5
6570 gdb_cv_have_aix_thread_debug
=no
6575 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
6576 if test $gdb_cv_have_aix_thread_debug = yes; then
6577 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
6578 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
6579 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
6586 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
6587 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
6588 echo "configure:6589: checking whether <thread_db.h> has TD_NOTALLOC" >&5
6589 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.
$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 #include <thread_db.h>
6597 int i = TD_NOTALLOC;
6600 if { (eval echo configure
:6601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6602 gdb_cv_thread_db_h_has_td_notalloc
=yes
6604 echo "configure: failed program was:" >&5
6605 cat conftest.
$ac_ext >&5
6607 gdb_cv_thread_db_h_has_td_notalloc
=no
6614 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
6616 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
6617 cat >> confdefs.h
<<\EOF
6618 #define THREAD_DB_HAS_TD_NOTALLOC 1
6623 if test $host = $target; then
6627 CFLAGS
="$CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
6628 cat > conftest.
$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6633 pread64 (0, NULL, 0, 0);
6636 if { (eval echo configure
:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6638 ENABLE_CFLAGS
="$ENABLE_CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
6639 cat >> confdefs.h
<<\EOF
6640 #define HAVE_PREAD64 1
6644 echo "configure: failed program was:" >&5
6645 cat conftest.
$ac_ext >&5
6654 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6655 if test "${enable_gdbcli+set}" = set; then
6656 enableval
="$enable_gdbcli"
6658 case "${enableval}" in
6659 yes) enable_gdbcli
=yes ;;
6660 "") enable_gdbcli
=yes ;;
6662 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6665 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6673 case ${enable_gdbcli} in
6675 if test -d "${srcdir}/cli" ; then
6676 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6677 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6678 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6679 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6680 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6681 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6682 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6683 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6684 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6690 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6691 if test "${enable_gdbmi+set}" = set; then
6692 enableval
="$enable_gdbmi"
6694 case "${enable_gdbmi}" in
6696 "") enable_gdbmi
=yes ;;
6698 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6706 case ${enable_gdbmi} in
6708 if test -d "${srcdir}/mi" ; then
6709 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6710 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6711 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6712 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6713 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6714 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6715 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6716 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6717 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6722 # Configure UI_OUT by default (before 5.2 it can be disabled)
6723 # It must be configured if gdbmi is configured
6728 # Check whether --with-uiout or --without-uiout was given.
6729 if test "${with_uiout+set}" = set; then
6730 withval
="$with_uiout"
6731 case "${withval}" in
6732 yes) want_uiout
=true
;;
6733 no
) if test $enable_gdbmi = yes; then
6734 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6738 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6744 if test $want_uiout = true
; then
6745 UIOUT_CFLAGS
="-DUI_OUT=1"
6748 # Check whether --enable-tui or --disable-tui was given.
6749 if test "${enable_tui+set}" = set; then
6750 enableval
="$enable_tui"
6752 case "${enable_tui}" in
6754 "") enable_tui
=yes ;;
6756 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6762 case ${enable_tui} in
6764 if test -d "${srcdir}/tui" ; then
6765 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6766 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6767 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6768 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6769 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6770 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6771 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6772 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6773 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6778 # Check whether --enable-netrom or --disable-netrom was given.
6779 if test "${enable_netrom+set}" = set; then
6780 enableval
="$enable_netrom"
6781 case "${enableval}" in
6782 yes) enable_netrom
=yes ;;
6783 no
) enable_netrom
=no
;;
6784 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6789 if test "${enable_netrom}" = "yes"; then
6790 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6791 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6795 # NOTE: Don't add -Wall or -Wunused, they both include
6796 # -Wunused-parameter which reports bogus warnings.
6797 # NOTE: If you add to this list, remember to update
6798 # gdb/doc/gdbint.texinfo.
6799 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6800 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6801 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6802 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6803 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6804 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6805 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6806 # -Woverloaded-virtual -Winline -Werror"
6807 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6808 if test "${enable_build_warnings+set}" = set; then
6809 enableval
="$enable_build_warnings"
6810 case "${enableval}" in
6812 no
) build_warnings
="-w";;
6813 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6814 build_warnings
="${build_warnings} ${t}";;
6815 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6816 build_warnings
="${t} ${build_warnings}";;
6817 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6819 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6820 echo "Setting compiler warning flags = $build_warnings" 6>&1
6823 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6824 if test "${enable_gdb_build_warnings+set}" = set; then
6825 enableval
="$enable_gdb_build_warnings"
6826 case "${enableval}" in
6828 no
) build_warnings
="-w";;
6829 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6830 build_warnings
="${build_warnings} ${t}";;
6831 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6832 build_warnings
="${t} ${build_warnings}";;
6833 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6835 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6836 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6841 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6843 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6844 echo "configure:6845: checking compiler warning flags" >&5
6845 # Separate out the -Werror flag as some files just cannot be
6846 # compiled with it enabled.
6847 for w
in ${build_warnings}; do
6849 -Werr*) WERROR_CFLAGS
=-Werror ;;
6850 *) # Check that GCC accepts it
6851 saved_CFLAGS
="$CFLAGS"
6853 cat > conftest.
$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6861 if { (eval echo configure
:6862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6863 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6865 echo "configure: failed program was:" >&5
6866 cat conftest.
$ac_ext >&5
6869 CFLAGS
="$saved_CFLAGS"
6872 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6882 # Check whether --with-mmalloc or --without-mmalloc was given.
6883 if test "${with_mmalloc+set}" = set; then
6884 withval
="$with_mmalloc"
6885 case "${withval}" in
6886 yes) want_mmalloc
=true
;;
6887 no
) want_mmalloc
=false
;;
6888 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6894 if test x
$want_mmalloc = xtrue
; then
6895 cat >> confdefs.h
<<\EOF
6896 #define USE_MMALLOC 1
6899 cat >> confdefs.h
<<\EOF
6900 #define MMCHECK_FORCE 1
6903 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6904 MMALLOC
='../mmalloc/libmmalloc.a'
6907 # Check whether --with-included-regex or --without-included-regex was given.
6908 if test "${with_included_regex+set}" = set; then
6909 withval
="$with_included_regex"
6910 case "${withval}" in
6911 yes) want_included_regex
=true
;;
6912 no
) want_included_regex
=false
;;
6913 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6916 want_included_regex
=true
6919 if test $want_included_regex = false
; then
6920 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6921 echo "configure:6922: checking for GNU regex" >&5
6922 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6923 echo $ac_n "(cached) $ac_c" 1>&6
6925 cat > conftest.
$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 #include <gnu-versions.h>
6929 #include <sys/types.h>
6932 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6933 #error No valid GNU regex.
6938 if { (eval echo configure
:6939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6940 gdb_cv_have_gnu_regex
=yes
6942 echo "configure: failed program was:" >&5
6943 cat conftest.
$ac_ext >&5
6945 gdb_cv_have_gnu_regex
=no
6950 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6951 if test $gdb_cv_have_gnu_regex = no
; then
6952 want_included_regex
=true
6956 if test x
${want_included_regex} = xtrue
; then
6958 cat >> confdefs.h
<<\EOF
6959 #define USE_INCLUDED_REGEX 1
6965 # In the Cygwin environment, we need some additional flags.
6966 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6967 echo "configure:6968: checking for cygwin" >&5
6968 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.
$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6975 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980 egrep "lose" >/dev
/null
2>&1; then
6982 gdb_cv_os_cygwin
=yes
6991 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6994 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6996 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6997 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
7002 if test x
$gdb_host = xgo32
; then
7005 if test x
$gdb_cv_os_cygwin = xyes
; then
7006 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
7009 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
7010 echo "configure:7011: checking for tgetent in -lncurses" >&5
7011 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
7012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 ac_save_LIBS
="$LIBS"
7016 LIBS
="-lncurses $LIBS"
7017 cat > conftest.
$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 /* Override any gcc2 internal prototype to avoid an error. */
7021 /* We use char because int might match the return type of a gcc2
7022 builtin and then its argument prototype would still apply. */
7029 if { (eval echo configure
:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7031 eval "ac_cv_lib_$ac_lib_var=yes"
7033 echo "configure: failed program was:" >&5
7034 cat conftest.
$ac_ext >&5
7036 eval "ac_cv_lib_$ac_lib_var=no"
7039 LIBS
="$ac_save_LIBS"
7042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7043 echo "$ac_t""yes" 1>&6
7046 echo "$ac_t""no" 1>&6
7047 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
7048 echo "configure:7049: checking for tgetent in -lHcurses" >&5
7049 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
7050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 ac_save_LIBS
="$LIBS"
7054 LIBS
="-lHcurses $LIBS"
7055 cat > conftest.
$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7067 if { (eval echo configure
:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7069 eval "ac_cv_lib_$ac_lib_var=yes"
7071 echo "configure: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7074 eval "ac_cv_lib_$ac_lib_var=no"
7077 LIBS
="$ac_save_LIBS"
7080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7081 echo "$ac_t""yes" 1>&6
7084 echo "$ac_t""no" 1>&6
7085 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
7086 echo "configure:7087: checking for tgetent in -ltermlib" >&5
7087 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
7088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 ac_save_LIBS
="$LIBS"
7092 LIBS
="-ltermlib $LIBS"
7093 cat > conftest.
$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7096 /* Override any gcc2 internal prototype to avoid an error. */
7097 /* We use char because int might match the return type of a gcc2
7098 builtin and then its argument prototype would still apply. */
7105 if { (eval echo configure
:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7107 eval "ac_cv_lib_$ac_lib_var=yes"
7109 echo "configure: failed program was:" >&5
7110 cat conftest.
$ac_ext >&5
7112 eval "ac_cv_lib_$ac_lib_var=no"
7115 LIBS
="$ac_save_LIBS"
7118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7119 echo "$ac_t""yes" 1>&6
7122 echo "$ac_t""no" 1>&6
7123 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
7124 echo "configure:7125: checking for tgetent in -ltermcap" >&5
7125 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
7126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 ac_save_LIBS
="$LIBS"
7130 LIBS
="-ltermcap $LIBS"
7131 cat > conftest.
$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7143 if { (eval echo configure
:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7145 eval "ac_cv_lib_$ac_lib_var=yes"
7147 echo "configure: failed program was:" >&5
7148 cat conftest.
$ac_ext >&5
7150 eval "ac_cv_lib_$ac_lib_var=no"
7153 LIBS
="$ac_save_LIBS"
7156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7160 echo "$ac_t""no" 1>&6
7161 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
7162 echo "configure:7163: checking for tgetent in -lcurses" >&5
7163 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
7164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 ac_save_LIBS
="$LIBS"
7168 LIBS
="-lcurses $LIBS"
7169 cat > conftest.
$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* Override any gcc2 internal prototype to avoid an error. */
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7181 if { (eval echo configure
:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7183 eval "ac_cv_lib_$ac_lib_var=yes"
7185 echo "configure: failed program was:" >&5
7186 cat conftest.
$ac_ext >&5
7188 eval "ac_cv_lib_$ac_lib_var=no"
7191 LIBS
="$ac_save_LIBS"
7194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7198 echo "$ac_t""no" 1>&6
7199 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
7200 echo "configure:7201: checking for tgetent in -lterminfo" >&5
7201 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
7202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7205 ac_save_LIBS
="$LIBS"
7206 LIBS
="-lterminfo $LIBS"
7207 cat > conftest.
$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7210 /* Override any gcc2 internal prototype to avoid an error. */
7211 /* We use char because int might match the return type of a gcc2
7212 builtin and then its argument prototype would still apply. */
7219 if { (eval echo configure
:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7221 eval "ac_cv_lib_$ac_lib_var=yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.
$ac_ext >&5
7226 eval "ac_cv_lib_$ac_lib_var=no"
7229 LIBS
="$ac_save_LIBS"
7232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7236 echo "$ac_t""no" 1>&6
7250 if test "x$TERM_LIB" = x
7252 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
7258 # libreadline needs libuser32.a in a cygwin environment
7260 if test x
$gdb_cv_os_cygwin = xyes
; then
7261 WIN32LIBS
="-luser32"
7263 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
7269 LIBGUI
="../libgui/src/libgui.a"
7270 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
7274 # Check whether --with-cpu or --without-cpu was given.
7275 if test "${with_cpu+set}" = set; then
7278 powerpc-
* | powerpcle-
* )
7279 ## It would be nice to keep this table in sync with the one in
7281 case "${with_cpu}" in
7282 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
7284 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
7286 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
7287 ## These are all RS6000 variants, as far as GDB is concerned.
7297 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
7303 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
7306 cat >> confdefs.h
<<EOF
7307 #define TARGET_CPU_DEFAULT "${with_cpu}"
7315 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7316 if test "${enable_gdbtk+set}" = set; then
7317 enableval
="$enable_gdbtk"
7318 case "${enableval}" in
7322 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7325 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7333 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7337 # Default is on for everything but go32 and Cygwin
7342 if test -d "${srcdir}/gdbtk" ; then
7358 if test "${enable_gdbtk}" = "yes"; then
7360 # Gdbtk must have an absolute path to srcdir in order to run
7361 # properly when not installed.
7369 # Ok, lets find the tcl configuration
7370 # First, look for one uninstalled.
7371 # the alternative search directory is invoked by --with-tclconfig
7374 if test x
"${no_tcl}" = x
; then
7375 # we reset no_tcl in case something fails here
7377 # Check whether --with-tclconfig or --without-tclconfig was given.
7378 if test "${with_tclconfig+set}" = set; then
7379 withval
="$with_tclconfig"
7380 with_tclconfig
=${withval}
7383 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7384 echo "configure:7385: checking for Tcl configuration" >&5
7385 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7390 # First check to see if --with-tclconfig was specified.
7391 if test x
"${with_tclconfig}" != x
; then
7392 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7393 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
7395 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7399 # then check for a private Tcl installation
7400 if test x
"${ac_cv_c_tclconfig}" = x
; then
7403 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7405 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7407 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7408 if test -f "$i/${configdir}/tclConfig.sh" ; then
7409 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7414 # check in a few common install locations
7415 if test x
"${ac_cv_c_tclconfig}" = x
; then
7416 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7417 if test -f "$i/tclConfig.sh" ; then
7418 ac_cv_c_tclconfig
=`(cd $i; pwd)`
7423 # check in a few other private locations
7424 if test x
"${ac_cv_c_tclconfig}" = x
; then
7427 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7428 if test -f "$i/${configdir}/tclConfig.sh" ; then
7429 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7437 if test x
"${ac_cv_c_tclconfig}" = x
; then
7438 TCLCONFIG
="# no Tcl configs found"
7439 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7442 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
7443 echo "$ac_t""found $TCLCONFIG" 1>&6
7447 if test -z "${no_tcl}"; then
7477 # Ok, lets find the tk configuration
7478 # First, look for one uninstalled.
7479 # the alternative search directory is invoked by --with-tkconfig
7482 if test x
"${no_tk}" = x
; then
7483 # we reset no_tk in case something fails here
7485 # Check whether --with-tkconfig or --without-tkconfig was given.
7486 if test "${with_tkconfig+set}" = set; then
7487 withval
="$with_tkconfig"
7488 with_tkconfig
=${withval}
7491 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7492 echo "configure:7493: checking for Tk configuration" >&5
7493 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7498 # First check to see if --with-tkconfig was specified.
7499 if test x
"${with_tkconfig}" != x
; then
7500 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7501 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7503 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7507 # then check for a private Tk library
7508 if test x
"${ac_cv_c_tkconfig}" = x
; then
7511 `ls -dr ../tk[4-9]* 2>/dev/null` \
7513 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7515 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7516 if test -f "$i/${configdir}/tkConfig.sh" ; then
7517 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7522 # check in a few common install locations
7523 if test x
"${ac_cv_c_tkconfig}" = x
; then
7524 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7525 if test -f "$i/tkConfig.sh" ; then
7526 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7531 # check in a few other private locations
7532 if test x
"${ac_cv_c_tkconfig}" = x
; then
7535 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7536 if test -f "$i/${configdir}/tkConfig.sh" ; then
7537 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7545 if test x
"${ac_cv_c_tkconfig}" = x
; then
7546 TKCONFIG
="# no Tk configs found"
7547 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7550 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7551 echo "$ac_t""found $TKCONFIG" 1>&6
7557 # now look for Tcl library stuff
7568 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
7570 # If $no_tk is nonempty, then we can't do Tk, and there is no
7571 # point to doing Tcl.
7572 if test -z "${no_tk}"; then
7574 if test -f "$TKCONFIG" ; then
7592 # Ok, lets find the tcl source trees so we can use the headers
7593 # Warning: transition of version 9 to 10 will break this algorithm
7594 # because 10 sorts before 9. We also look for just tcl. We have to
7595 # be careful that we don't match stuff like tclX by accident.
7596 # the alternative search directory is involked by --with-tclinclude
7600 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7601 echo "configure:7602: checking for Tcl private headers. dir=${configdir}" >&5
7602 # Check whether --with-tclinclude or --without-tclinclude was given.
7603 if test "${with_tclinclude+set}" = set; then
7604 withval
="$with_tclinclude"
7605 with_tclinclude
=${withval}
7608 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7612 # first check to see if --with-tclinclude was specified
7613 if test x
"${with_tclinclude}" != x
; then
7614 if test -f ${with_tclinclude}/tclInt.h
; then
7615 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7616 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7617 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7619 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7623 # next check if it came with Tcl configuration file
7624 if test x
"${ac_cv_c_tclconfig}" = x
; then
7625 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7626 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7630 # next check in private source directory
7632 # since ls returns lowest version numbers first, reverse its output
7633 if test x
"${ac_cv_c_tclh}" = x
; then
7636 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7637 ${srcdir}/..
/..
/tcl \
7638 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7639 ${srcdir}/..
/..
/..
/tcl \
7640 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7641 if test -f $i/generic
/tclInt.h
; then
7642 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7647 # finally check in a few common install locations
7649 # since ls returns lowest version numbers first, reverse its output
7650 if test x
"${ac_cv_c_tclh}" = x
; then
7652 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7653 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7654 /usr
/local
/src
/tcl \
7655 /usr
/local
/lib
/tcl \
7656 ${prefix}/include
; do
7657 if test -f $i/generic
/tclInt.h
; then
7658 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7663 # see if one is installed
7664 if test x
"${ac_cv_c_tclh}" = x
; then
7665 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7666 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7667 echo "configure:7668: checking for tclInt.h" >&5
7668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7671 cat > conftest.
$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7676 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7677 { (eval echo configure
:7678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7678 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7679 if test -z "$ac_err"; then
7681 eval "ac_cv_header_$ac_safe=yes"
7684 echo "configure: failed program was:" >&5
7685 cat conftest.
$ac_ext >&5
7687 eval "ac_cv_header_$ac_safe=no"
7691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7692 echo "$ac_t""yes" 1>&6
7693 ac_cv_c_tclh
=installed
7695 echo "$ac_t""no" 1>&6
7703 if test x
"${ac_cv_c_tclh}" = x
; then
7704 TCLHDIR
="# no Tcl private headers found"
7705 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7707 if test x
"${ac_cv_c_tclh}" != x
; then
7709 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7710 echo "$ac_t""is installed" 1>&6
7713 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7714 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7715 TCLHDIR
="-I${ac_cv_c_tclh}"
7723 # Ok, lets find the tk source trees so we can use the headers
7724 # If the directory (presumably symlink) named "tk" exists, use that one
7725 # in preference to any others. Same logic is used when choosing library
7726 # and again with Tcl. The search order is the best place to look first, then in
7727 # decreasing significance. The loop breaks if the trigger file is found.
7728 # Note the gross little conversion here of srcdir by cd'ing to the found
7729 # directory. This converts the path from a relative to an absolute, so
7730 # recursive cache variables for the path will work right. We check all
7731 # the possible paths in one loop rather than many seperate loops to speed
7733 # the alternative search directory is involked by --with-tkinclude
7736 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7737 echo "configure:7738: checking for Tk private headers" >&5
7738 # Check whether --with-tkinclude or --without-tkinclude was given.
7739 if test "${with_tkinclude+set}" = set; then
7740 withval
="$with_tkinclude"
7741 with_tkinclude
=${withval}
7744 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7748 # first check to see if --with-tkinclude was specified
7749 if test x
"${with_tkinclude}" != x
; then
7750 if test -f ${with_tkinclude}/tk.h
; then
7751 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7752 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7753 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7755 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7759 # next check if it came with Tk configuration file
7760 if test x
"${ac_cv_c_tkconfig}" = x
; then
7761 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7762 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7766 # next check in private source directory
7768 # since ls returns lowest version numbers first, reverse its output
7769 if test x
"${ac_cv_c_tkh}" = x
; then
7772 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7773 ${srcdir}/..
/..
/tk \
7774 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7775 ${srcdir}/..
/..
/..
/tk \
7776 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7777 if test -f $i/generic
/tk.h
; then
7778 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7783 # finally check in a few common install locations
7785 # since ls returns lowest version numbers first, reverse its output
7786 if test x
"${ac_cv_c_tkh}" = x
; then
7788 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7789 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7792 ${prefix}/include
; do
7793 if test -f $i/generic
/tk.h
; then
7794 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7799 # see if one is installed
7800 if test x
"${ac_cv_c_tkh}" = x
; then
7801 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7802 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7803 echo "configure:7804: checking for tk.h" >&5
7804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7805 echo $ac_n "(cached) $ac_c" 1>&6
7807 cat > conftest.
$ac_ext <<EOF
7808 #line 7809 "configure"
7809 #include "confdefs.h"
7812 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7813 { (eval echo configure
:7814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7814 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7815 if test -z "$ac_err"; then
7817 eval "ac_cv_header_$ac_safe=yes"
7820 echo "configure: failed program was:" >&5
7821 cat conftest.
$ac_ext >&5
7823 eval "ac_cv_header_$ac_safe=no"
7827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 ac_cv_c_tkh
=installed
7831 echo "$ac_t""no" 1>&6
7839 if test x
"${ac_cv_c_tkh}" != x
; then
7841 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7842 echo "$ac_t""is installed" 1>&6
7845 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7846 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7847 TKHDIR
="-I${ac_cv_c_tkh}"
7850 TKHDIR
="# no Tk directory found"
7851 echo "configure: warning: Can't find Tk private headers" 1>&2
7858 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7859 echo "configure:7860: checking for Itcl private headers. srcdir=${srcdir}" >&5
7860 if test x
"${ac_cv_c_itclh}" = x
; then
7861 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7862 if test -f $i/generic
/itcl.h
; then
7863 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7868 if test x
"${ac_cv_c_itclh}" = x
; then
7869 ITCLHDIR
="# no Itcl private headers found"
7870 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7872 if test x
"${ac_cv_c_itclh}" != x
; then
7873 ITCLHDIR
="-I${ac_cv_c_itclh}"
7875 # should always be here
7876 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7881 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7882 echo "configure:7883: checking for Itk private headers. srcdir=${srcdir}" >&5
7883 if test x
"${ac_cv_c_itkh}" = x
; then
7884 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7885 if test -f $i/generic
/itk.h
; then
7886 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7891 if test x
"${ac_cv_c_itkh}" = x
; then
7892 ITKHDIR
="# no Itk private headers found"
7893 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7895 if test x
"${ac_cv_c_itkh}" != x
; then
7896 ITKHDIR
="-I${ac_cv_c_itkh}"
7898 # should always be here
7899 # ITKLIB="../itcl/itk/unix/libitk.a"
7905 # now look for Tk library stuff
7916 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
7918 # now look for Itcl library stuff
7922 # Ok, lets find the itcl configuration
7923 # First, look for one uninstalled.
7924 # the alternative search directory is invoked by --with-itclconfig
7927 if test x
"${no_itcl}" = x
; then
7928 # we reset no_itcl in case something fails here
7930 # Check whether --with-itclconfig or --without-itclconfig was given.
7931 if test "${with_itclconfig+set}" = set; then
7932 withval
="$with_itclconfig"
7933 with_itclconfig
=${withval}
7936 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7937 echo "configure:7938: checking for Itcl configuration" >&5
7938 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7943 # First check to see if --with-itclconfig was specified.
7944 if test x
"${with_itclconfig}" != x
; then
7945 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7946 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7948 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7952 # then check for a private Itcl library
7953 if test x
"${ac_cv_c_itclconfig}" = x
; then
7956 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7958 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7960 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7961 if test -f "$i/itclConfig.sh" ; then
7962 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7967 # check in a few common install locations
7968 if test x
"${ac_cv_c_itclconfig}" = x
; then
7969 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7970 if test -f "$i/itclConfig.sh" ; then
7971 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7976 # check in a few other private locations
7977 if test x
"${ac_cv_c_itclconfig}" = x
; then
7979 ${srcdir}/..
/itcl
/itcl \
7980 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7981 if test -f "$i/itclConfig.sh" ; then
7982 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7990 if test x
"${ac_cv_c_itclconfig}" = x
; then
7991 ITCLCONFIG
="# no Itcl configs found"
7992 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7995 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7996 echo "$ac_t""found $ITCLCONFIG" 1>&6
8000 if test -z "${no_itcl}"; then
8002 if test -f "$ITCLCONFIG" ; then
8017 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
8018 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
8022 # now look for Itk library stuff
8025 # Ok, lets find the itk configuration
8026 # First, look for one uninstalled.
8027 # the alternative search directory is invoked by --with-itkconfig
8030 if test x
"${no_itk}" = x
; then
8031 # we reset no_itk in case something fails here
8033 # Check whether --with-itkconfig or --without-itkconfig was given.
8034 if test "${with_itkconfig+set}" = set; then
8035 withval
="$with_itkconfig"
8036 with_itkconfig
=${withval}
8039 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
8040 echo "configure:8041: checking for Itk configuration" >&5
8041 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8046 # First check to see if --with-itkconfig was specified.
8047 if test x
"${with_itkconfig}" != x
; then
8048 if test -f "${with_itkconfig}/itkConfig.sh" ; then
8049 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
8051 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
8055 # then check for a private Itk library
8056 if test x
"${ac_cv_c_itkconfig}" = x
; then
8059 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
8061 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
8063 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
8064 if test -f "$i/itkConfig.sh" ; then
8065 ac_cv_c_itkconfig
=`(cd $i; pwd)`
8070 # check in a few common install locations
8071 if test x
"${ac_cv_c_itkconfig}" = x
; then
8072 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8073 if test -f "$i/itkConfig.sh" ; then
8074 ac_cv_c_itkconfig
=`(cd $i; pwd)`
8079 # check in a few other private locations
8080 if test x
"${ac_cv_c_itkconfig}" = x
; then
8082 ${srcdir}/..
/itcl
/itk \
8083 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
8084 if test -f "$i/itkConfig.sh" ; then
8085 ac_cv_c_itkconfig
=`(cd $i; pwd)`
8093 if test x
"${ac_cv_c_itkconfig}" = x
; then
8094 ITKCONFIG
="# no Itk configs found"
8095 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
8098 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
8099 echo "$ac_t""found $ITKCONFIG" 1>&6
8104 if test -z "${no_itcl}"; then
8106 if test -f "$ITKCONFIG" ; then
8121 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
8122 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
8125 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
8126 # Tcl/Tk 8.1 require -fwritable strings. I don't
8127 # know whether 8.2 will or not, but I bet it will.
8128 # I don't have to worry about 7.x since we don't support it.
8130 if test "$GCC" = "yes"; then
8131 if test "$TCL_VERSION" != "8.0" ; then
8132 GDBTK_CFLAGS
="-fwritable-strings"
8136 # Include some libraries that Tcl and Tk want.
8137 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
8138 # Yes, the ordering seems wrong here. But it isn't.
8139 # TK_LIBS is the list of libraries that need to be linked
8140 # after Tcl/Tk. Note that this isn't put into LIBS. If it
8141 # were in LIBS then any link tests after this point would
8142 # try to include things like `$(LIBGUI)', which wouldn't work.
8143 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
8145 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
8146 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
8147 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
8148 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
8149 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
8150 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
8151 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
8152 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
8154 if test x
$gdb_cv_os_cygwin = xyes
; then
8155 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
8156 WIN32LDAPP
="-Wl,--subsystem,console"
8157 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
8162 SUBDIRS
="${SUBDIRS} gdbtk"
8163 configdirs
="${configdirs} gdbtk"
8179 # If we find X, set shell vars x_includes and x_libraries to the
8180 # paths, otherwise set no_x=yes.
8181 # Uses ac_ vars as temps to allow command line to override cache and checks.
8182 # --without-x overrides everything else, but does not touch the cache.
8183 echo $ac_n "checking for X""... $ac_c" 1>&6
8184 echo "configure:8185: checking for X" >&5
8186 # Check whether --with-x or --without-x was given.
8187 if test "${with_x+set}" = set; then
8192 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8193 if test "x$with_x" = xno
; then
8194 # The user explicitly disabled X.
8197 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8198 # Both variables are already set.
8201 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8204 # One or both of the vars are not set, and there is no cached value.
8205 ac_x_includes
=NO ac_x_libraries
=NO
8207 if mkdir conftestdir
; then
8209 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8210 cat > Imakefile
<<'EOF'
8212 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8214 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8216 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8217 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8218 for ac_extension
in a so sl
; do
8219 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8220 test -f $ac_im_libdir/libX11.
$ac_extension; then
8221 ac_im_usrlibdir
=$ac_im_libdir; break
8224 # Screen out bogus values from the imake configuration. They are
8225 # bogus both because they are the default anyway, and because
8226 # using them would break gcc on systems where it needs fixed includes.
8227 case "$ac_im_incroot" in
8229 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
8231 case "$ac_im_usrlibdir" in
8233 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
8240 if test "$ac_x_includes" = NO
; then
8241 # Guess where to find include files, by looking for this one X11 .h file.
8242 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
8244 # First, try using that file with no special directory specified.
8245 cat > conftest.
$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 #include <$x_direct_test_include>
8250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8251 { (eval echo configure
:8252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8253 if test -z "$ac_err"; then
8255 # We can compile using X headers with no special include directory.
8259 echo "configure: failed program was:" >&5
8260 cat conftest.
$ac_ext >&5
8262 # Look for the header file in a standard set of common directories.
8263 # Check X11 before X11Rn because it is often a symlink to the current release.
8266 /usr
/X11R
6/include \
8267 /usr
/X11R
5/include \
8268 /usr
/X11R
4/include \
8271 /usr
/include
/X11R6 \
8272 /usr
/include
/X11R5 \
8273 /usr
/include
/X11R4 \
8275 /usr
/local
/X11
/include \
8276 /usr
/local
/X11R
6/include \
8277 /usr
/local
/X11R
5/include \
8278 /usr
/local
/X11R
4/include \
8280 /usr
/local
/include
/X11 \
8281 /usr
/local
/include
/X11R6 \
8282 /usr
/local
/include
/X11R5 \
8283 /usr
/local
/include
/X11R4 \
8287 /usr
/XFree86
/include
/X11 \
8290 /usr
/local
/include \
8291 /usr
/unsupported
/include \
8292 /usr
/athena
/include \
8293 /usr
/local
/x11r
5/include \
8294 /usr
/lpp
/Xamples
/include \
8296 /usr
/openwin
/include \
8297 /usr
/openwin
/share
/include \
8300 if test -r "$ac_dir/$x_direct_test_include"; then
8301 ac_x_includes
=$ac_dir
8307 fi # $ac_x_includes = NO
8309 if test "$ac_x_libraries" = NO
; then
8310 # Check for the libraries.
8312 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
8313 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
8315 # See if we find them without any special options.
8316 # Don't add to $LIBS permanently.
8317 ac_save_LIBS
="$LIBS"
8318 LIBS
="-l$x_direct_test_library $LIBS"
8319 cat > conftest.
$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8324 ${x_direct_test_function}()
8327 if { (eval echo configure
:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8329 LIBS
="$ac_save_LIBS"
8330 # We can link X programs with no special library path.
8333 echo "configure: failed program was:" >&5
8334 cat conftest.
$ac_ext >&5
8336 LIBS
="$ac_save_LIBS"
8337 # First see if replacing the include by lib works.
8338 # Check X11 before X11Rn because it is often a symlink to the current release.
8339 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8350 /usr
/local
/X11
/lib \
8351 /usr
/local
/X11R
6/lib \
8352 /usr
/local
/X11R
5/lib \
8353 /usr
/local
/X11R
4/lib \
8355 /usr
/local
/lib
/X11 \
8356 /usr
/local
/lib
/X11R6 \
8357 /usr
/local
/lib
/X11R5 \
8358 /usr
/local
/lib
/X11R4 \
8362 /usr
/XFree86
/lib
/X11 \
8366 /usr
/unsupported
/lib \
8368 /usr
/local
/x11r
5/lib \
8369 /usr
/lpp
/Xamples
/lib \
8373 /usr
/openwin
/share
/lib \
8376 for ac_extension
in a so sl
; do
8377 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8378 ac_x_libraries
=$ac_dir
8385 fi # $ac_x_libraries = NO
8387 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8388 # Didn't find X anywhere. Cache the known absence of X.
8389 ac_cv_have_x
="have_x=no"
8391 # Record where we found X for the cache.
8392 ac_cv_have_x
="have_x=yes \
8393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8397 eval "$ac_cv_have_x"
8400 if test "$have_x" != yes; then
8401 echo "$ac_t""$have_x" 1>&6
8404 # If each of the values was on the command line, it overrides each guess.
8405 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8406 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8407 # Update the cache value to reflect the command line values.
8408 ac_cv_have_x
="have_x=yes \
8409 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8410 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8415 # Unlike the sim directory, whether a simulator is linked is controlled by
8416 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8417 # This code just checks for a few cases where we'd like to ignore those
8418 # definitions, even when they're present in the '.mt' file. These cases
8419 # are when --disable-sim is specified, or if the simulator directory is
8420 # not part of the source tree.
8422 # Check whether --enable-sim or --disable-sim was given.
8423 if test "${enable_sim+set}" = set; then
8424 enableval
="$enable_sim"
8425 echo "enable_sim = $enable_sim";
8426 echo "enableval = ${enableval}";
8427 case "${enableval}" in
8428 yes) ignore_sim
=false
;;
8429 no
) ignore_sim
=true
;;
8430 *) ignore_sim
=false
;;
8437 if test ! -d "${srcdir}/../sim"; then
8441 if test "${ignore_sim}" = "true"; then
8443 IGNORE_SIM_OBS
="SIM_OBS="
8447 cat >> confdefs.h
<<\EOF
8467 # Begin stuff to support --enable-shared
8468 # Check whether --enable-shared or --disable-shared was given.
8469 if test "${enable_shared+set}" = set; then
8470 enableval
="$enable_shared"
8471 case "${enableval}" in
8480 # If we have shared libraries, try to set rpath reasonably.
8481 if test "${shared}" = "true"; then
8484 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8486 *-*-irix5* |
*-*-irix6*)
8487 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8491 *-*-linux* |
*-pc-linux-gnu*)
8492 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8495 HLDFLAGS
='-R $(libdir)'
8498 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;'
8503 # On SunOS, if the linker supports the -rpath option, use it to
8504 # prevent ../bfd and ../opcodes from being included in the run time
8508 echo 'main () { }' > conftest.c
8509 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8510 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8512 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8514 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8516 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8518 elif test "${shared}" = "true"; then
8519 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8521 HLDFLAGS
='-Wl,-rpath='
8523 rm -f conftest.t conftest.c conftest
8528 # End stuff to support --enable-shared
8530 # target_subdir is used by the testsuite to find the target libraries.
8532 if test "${host}" != "${target}"; then
8533 target_subdir
="${target_alias}/"
8538 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8539 if test ! -f ${host_makefile_frag}; then
8540 # When building a native debuger the .mh file containing things
8541 # like NATDEPFILES is needed. Cross debuggers don't need .mh
8542 # since it no longer contains anything useful.
8543 if test "${target}" = "${host}"; then
8544 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
8546 host_makefile_frag
=/dev
/null
8549 frags
="$frags $host_makefile_frag"
8551 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8552 if test ! -f ${target_makefile_frag}; then
8553 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8555 frags
="$frags $target_makefile_frag"
8562 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8563 ' ${host_makefile_frag}`
8565 targetfile
=`sed -n '
8566 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8567 ' ${target_makefile_frag}`
8569 GDB_MULTI_ARCH
=`sed -n '
8570 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8571 ' ${target_makefile_frag}`
8573 if test "${target}" = "${host}"; then
8574 # We pick this up from the host configuration file (.mh) because we
8575 # do not have a native configuration Makefile fragment.
8576 nativefile
=`sed -n '
8577 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8578 ' ${host_makefile_frag}`
8582 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8583 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8584 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8585 # will be the default.
8586 if test x
"${GDB_MULTI_ARCH}" = x
; then
8587 case "${gdb_multi_arch}" in
8588 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8589 no
) GDB_MULTI_ARCH
=0 ;;
8590 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8593 if test x
"${GDB_MULTI_ARCH}" != x
; then
8594 cat >> confdefs.h
<<EOF
8595 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8599 # Warn the user when they use an old practice
8600 case "${GDB_MULTI_ARCH}" in
8602 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8603 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8604 GDB_MULTI_ARCH_PURE
)
8605 if test x
"${targetfile}" != x
; then
8606 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8609 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8612 if test "${enable_multi_ice}" = "yes"; then
8613 SUBDIRS
="${SUBDIRS} multi-ice"
8616 # ``gdbserver'' can only be built in a native configuration.
8617 if test x
"${target}" = x
"${host}"; then
8618 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
8619 echo "configure:8620: checking whether gdbserver is supported on this host" >&5
8620 if test x
"${build_gdbserver}" = xyes
; then
8621 configdirs
="${configdirs} gdbserver"
8622 SUBDIRS
="${SUBDIRS} gdbserver"
8623 echo "$ac_t""yes" 1>&6
8625 echo "$ac_t""no" 1>&6
8631 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8632 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8640 if test "${hostfile}" != ""; then
8642 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8643 files
="${files} ${GDB_XM_FILE}"
8644 links
="${links} xm.h"
8645 cat >> confdefs.h
<<EOF
8646 #define GDB_XM_FILE ${GDB_XM_FILE}
8654 if test "${targetfile}" != ""; then
8656 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8657 files
="${files} ${GDB_TM_FILE}"
8658 links
="${links} tm.h"
8659 cat >> confdefs.h
<<EOF
8660 #define GDB_TM_FILE ${GDB_TM_FILE}
8668 if test "${nativefile}" != ""; then
8670 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8671 files
="${files} ${GDB_NM_FILE}"
8672 links
="${links} nm.h"
8673 cat >> confdefs.h
<<EOF
8674 #define GDB_NM_FILE ${GDB_NM_FILE}
8680 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8681 echo "configure:8682: checking whether ln -s works" >&5
8682 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8686 if ln -s X conftestdata
2>/dev
/null
8689 ac_cv_prog_LN_S
="ln -s"
8694 LN_S
="$ac_cv_prog_LN_S"
8695 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8696 echo "$ac_t""yes" 1>&6
8698 echo "$ac_t""no" 1>&6
8704 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8705 echo "configure:8706: checking for Cygwin environment" >&5
8706 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8709 cat > conftest.
$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8716 #define __CYGWIN__ __CYGWIN32__
8721 if { (eval echo configure
:8722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8725 echo "configure: failed program was:" >&5
8726 cat conftest.
$ac_ext >&5
8734 echo "$ac_t""$ac_cv_cygwin" 1>&6
8736 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8737 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8738 echo "configure:8739: checking for mingw32 environment" >&5
8739 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8742 cat > conftest.
$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8750 if { (eval echo configure
:8751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8754 echo "configure: failed program was:" >&5
8755 cat conftest.
$ac_ext >&5
8763 echo "$ac_t""$ac_cv_mingw32" 1>&6
8765 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8768 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8769 echo "configure:8770: checking for executable suffix" >&5
8770 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8773 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8777 echo 'int main () { return 0; }' > conftest.
$ac_ext
8779 if { (eval echo configure
:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8780 for file in conftest.
*; do
8782 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
8783 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8787 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8790 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8795 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8796 echo "$ac_t""${ac_cv_exeext}" 1>&6
8801 cat >> confdefs.h
<<\EOF
8802 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
8808 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8809 if test "${with_libiconv_prefix+set}" = set; then
8810 withval
="$with_libiconv_prefix"
8812 for dir
in `echo "$withval" | tr : ' '`; do
8813 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
8814 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
8820 echo $ac_n "checking for iconv""... $ac_c" 1>&6
8821 echo "configure:8822: checking for iconv" >&5
8822 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
8823 echo $ac_n "(cached) $ac_c" 1>&6
8826 am_cv_func_iconv
="no, consider installing GNU libiconv"
8828 cat > conftest.
$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8834 iconv_t cd = iconv_open("","");
8835 iconv(cd,NULL,NULL,NULL,NULL);
8839 if { (eval echo configure
:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8841 am_cv_func_iconv
=yes
8843 echo "configure: failed program was:" >&5
8844 cat conftest.
$ac_ext >&5
8847 if test "$am_cv_func_iconv" != yes; then
8848 am_save_LIBS
="$LIBS"
8849 LIBS
="$LIBS -liconv"
8850 cat > conftest.
$ac_ext <<EOF
8851 #line 8852 "configure"
8852 #include "confdefs.h"
8856 iconv_t cd = iconv_open("","");
8857 iconv(cd,NULL,NULL,NULL,NULL);
8861 if { (eval echo configure
:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8864 am_cv_func_iconv
=yes
8866 echo "configure: failed program was:" >&5
8867 cat conftest.
$ac_ext >&5
8870 LIBS
="$am_save_LIBS"
8875 echo "$ac_t""$am_cv_func_iconv" 1>&6
8876 if test "$am_cv_func_iconv" = yes; then
8877 cat >> confdefs.h
<<\EOF
8878 #define HAVE_ICONV 1
8881 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
8882 echo "configure:8883: checking for iconv declaration" >&5
8883 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8887 cat > conftest.
$ac_ext <<EOF
8888 #line 8889 "configure"
8889 #include "confdefs.h"
8897 #if defined(__STDC__) || defined(__cplusplus)
8898 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8907 if { (eval echo configure
:8908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8909 am_cv_proto_iconv_arg1
=""
8911 echo "configure: failed program was:" >&5
8912 cat conftest.
$ac_ext >&5
8914 am_cv_proto_iconv_arg1
="const"
8917 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8920 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8921 echo "$ac_t""${ac_t:-
8922 }$am_cv_proto_iconv" 1>&6
8923 cat >> confdefs.h
<<EOF
8924 #define ICONV_CONST $am_cv_proto_iconv_arg1
8929 if test "$am_cv_lib_iconv" = yes; then
8935 subdirs
="$configdirs"
8938 cat > confcache
<<\EOF
8939 # This file is a shell script that caches the results of configure
8940 # tests run on this system so they can be shared between configure
8941 # scripts and configure runs. It is not useful on other systems.
8942 # If it contains results you don't want to keep, you may remove or edit it.
8944 # By default, configure uses ./config.cache as the cache file,
8945 # creating it if it does not exist already. You can give configure
8946 # the --cache-file=FILE option to use a different cache file; that is
8947 # what configure does when it calls configure scripts in
8948 # subdirectories, so they share the cache.
8949 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8950 # config.status only pays attention to the cache file if you give it the
8951 # --recheck option to rerun configure.
8954 # The following way of writing the cache mishandles newlines in values,
8955 # but we know of no workaround that is simple, portable, and efficient.
8956 # So, don't put newlines in cache variables' values.
8957 # Ultrix sh set writes to stderr and can't be redirected directly,
8958 # and sets the high bit in the cache file unless we assign to the vars.
8960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8962 # `set' does not quote correctly, so add quotes (double-quote substitution
8963 # turns \\\\ into \\, and sed turns \\ into \).
8965 -e "s/'/'\\\\''/g" \
8966 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8969 # `set' quotes correctly as required by POSIX, so do not add quotes.
8970 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8973 if cmp -s $cache_file confcache
; then
8976 if test -w $cache_file; then
8977 echo "updating cache $cache_file"
8978 cat confcache
> $cache_file
8980 echo "not updating unwritable cache $cache_file"
8985 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8987 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8988 # Let make expand exec_prefix.
8989 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8991 # Any assignment to VPATH causes Sun make to only execute
8992 # the first set of double-colon rules, so remove it if not needed.
8993 # If there is a colon in the path, we need to keep it.
8994 if test "x$srcdir" = x.
; then
8995 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8998 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9000 DEFS
=-DHAVE_CONFIG_H
9002 # Without the "./", some shells look in PATH for config.status.
9003 : ${CONFIG_STATUS=./config.status}
9005 echo creating
$CONFIG_STATUS
9006 rm -f $CONFIG_STATUS
9007 cat > $CONFIG_STATUS <<EOF
9009 # Generated automatically by configure.
9010 # Run this file to recreate the current configuration.
9011 # This directory was configured as follows,
9012 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9014 # $0 $ac_configure_args
9016 # Compiler output produced by configure, useful for debugging
9017 # configure, is in ./config.log if it exists.
9019 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9022 case "\$ac_option" in
9023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9024 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9025 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9026 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9027 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9029 -help | --help | --hel | --he | --h)
9030 echo "\$ac_cs_usage"; exit 0 ;;
9031 *) echo "\$ac_cs_usage"; exit 1 ;;
9035 ac_given_srcdir=$srcdir
9036 ac_given_INSTALL="$INSTALL"
9038 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9040 cat >> $CONFIG_STATUS <<EOF
9042 # Protect against being on the right side of a sed subst in config.status.
9043 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9044 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9048 s%@CFLAGS@%$CFLAGS%g
9049 s%@CPPFLAGS@%$CPPFLAGS%g
9050 s%@CXXFLAGS@%$CXXFLAGS%g
9051 s%@FFLAGS@%$FFLAGS%g
9053 s%@LDFLAGS@%$LDFLAGS%g
9055 s%@exec_prefix@%$exec_prefix%g
9056 s%@prefix@%$prefix%g
9057 s%@program_transform_name@%$program_transform_name%g
9058 s%@bindir@%$bindir%g
9059 s%@sbindir@%$sbindir%g
9060 s%@libexecdir@%$libexecdir%g
9061 s%@datadir@%$datadir%g
9062 s%@sysconfdir@%$sysconfdir%g
9063 s%@sharedstatedir@%$sharedstatedir%g
9064 s%@localstatedir@%$localstatedir%g
9065 s%@libdir@%$libdir%g
9066 s%@includedir@%$includedir%g
9067 s%@oldincludedir@%$oldincludedir%g
9068 s%@infodir@%$infodir%g
9069 s%@mandir@%$mandir%g
9070 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
9071 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
9076 s%@host_alias@%$host_alias%g
9077 s%@host_cpu@%$host_cpu%g
9078 s%@host_vendor@%$host_vendor%g
9079 s%@host_os@%$host_os%g
9080 s%@target@%$target%g
9081 s%@target_alias@%$target_alias%g
9082 s%@target_cpu@%$target_cpu%g
9083 s%@target_vendor@%$target_vendor%g
9084 s%@target_os@%$target_os%g
9086 s%@build_alias@%$build_alias%g
9087 s%@build_cpu@%$build_cpu%g
9088 s%@build_vendor@%$build_vendor%g
9089 s%@build_os@%$build_os%g
9090 s%@SET_MAKE@%$SET_MAKE%g
9091 s%@RANLIB@%$RANLIB%g
9092 s%@ALLOCA@%$ALLOCA%g
9093 s%@USE_NLS@%$USE_NLS%g
9094 s%@MSGFMT@%$MSGFMT%g
9095 s%@GMSGFMT@%$GMSGFMT%g
9096 s%@XGETTEXT@%$XGETTEXT%g
9097 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9098 s%@CATALOGS@%$CATALOGS%g
9099 s%@CATOBJEXT@%$CATOBJEXT%g
9100 s%@DATADIRNAME@%$DATADIRNAME%g
9101 s%@GMOFILES@%$GMOFILES%g
9102 s%@INSTOBJEXT@%$INSTOBJEXT%g
9103 s%@INTLDEPS@%$INTLDEPS%g
9104 s%@INTLLIBS@%$INTLLIBS%g
9105 s%@INTLOBJS@%$INTLOBJS%g
9106 s%@POFILES@%$POFILES%g
9108 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9110 s%@GT_YES@%$GT_YES%g
9111 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9114 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9115 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9116 s%@INSTALL_DATA@%$INSTALL_DATA%g
9118 s%@DLLTOOL@%$DLLTOOL%g
9119 s%@WINDRES@%$WINDRES%g
9122 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
9123 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
9124 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
9125 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
9126 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
9127 s%@MMALLOC@%$MMALLOC%g
9129 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
9130 s%@TERM_LIB@%$TERM_LIB%g
9131 s%@WIN32LIBS@%$WIN32LIBS%g
9132 s%@LIBGUI@%$LIBGUI%g
9133 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
9134 s%@WIN32LDAPP@%$WIN32LDAPP%g
9135 s%@TCL_VERSION@%$TCL_VERSION%g
9136 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
9137 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
9138 s%@TCL_CC@%$TCL_CC%g
9139 s%@TCL_DEFS@%$TCL_DEFS%g
9140 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
9141 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
9142 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
9143 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
9144 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
9145 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
9146 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
9147 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
9148 s%@TCL_RANLIB@%$TCL_RANLIB%g
9149 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
9150 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
9151 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
9152 s%@TK_VERSION@%$TK_VERSION%g
9153 s%@TK_DEFS@%$TK_DEFS%g
9154 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
9155 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
9156 s%@TK_XLIBSW@%$TK_XLIBSW%g
9157 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
9158 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
9159 s%@TCLHDIR@%$TCLHDIR%g
9160 s%@TKHDIR@%$TKHDIR%g
9161 s%@ITCLHDIR@%$ITCLHDIR%g
9162 s%@ITKHDIR@%$ITKHDIR%g
9163 s%@ITCL_VERSION@%$ITCL_VERSION%g
9164 s%@ITCL_DEFS@%$ITCL_DEFS%g
9165 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
9166 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
9167 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
9168 s%@ITK_VERSION@%$ITK_VERSION%g
9169 s%@ITK_DEFS@%$ITK_DEFS%g
9170 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
9171 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
9172 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
9173 s%@X_CFLAGS@%$X_CFLAGS%g
9174 s%@X_LDFLAGS@%$X_LDFLAGS%g
9175 s%@X_LIBS@%$X_LIBS%g
9176 s%@TCL_DEPS@%$TCL_DEPS%g
9177 s%@TK_DEPS@%$TK_DEPS%g
9178 s%@ITCLLIB@%$ITCLLIB%g
9179 s%@ITCL_DEPS@%$ITCL_DEPS%g
9180 s%@ITKLIB@%$ITKLIB%g
9181 s%@ITK_DEPS@%$ITK_DEPS%g
9182 s%@GDBTKLIBS@%$GDBTKLIBS%g
9183 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
9184 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
9185 s%@IGNORE_SIM@%$IGNORE_SIM%g
9186 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
9187 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
9188 s%@CONFIG_OBS@%$CONFIG_OBS%g
9189 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
9190 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
9191 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
9192 s%@CONFIG_INITS@%$CONFIG_INITS%g
9193 s%@CONFIG_ALL@%$CONFIG_ALL%g
9194 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
9195 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
9196 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
9197 s%@HLDFLAGS@%$HLDFLAGS%g
9198 s%@HLDENV@%$HLDENV%g
9199 s%@target_subdir@%$target_subdir%g
9200 /@host_makefile_frag@/r $host_makefile_frag
9201 s%@host_makefile_frag@%%g
9202 /@target_makefile_frag@/r $target_makefile_frag
9203 s%@target_makefile_frag@%%g
9205 s%@SUBDIRS@%$SUBDIRS%g
9210 s%@EXEEXT@%$EXEEXT%g
9211 s%@LIBICONV@%$LIBICONV%g
9212 s%@subdirs@%$subdirs%g
9217 cat >> $CONFIG_STATUS <<\EOF
9219 # Split the substitutions into bite-sized pieces for seds with
9220 # small command number limits, like on Digital OSF/1 and HP-UX.
9221 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9222 ac_file
=1 # Number of current file.
9223 ac_beg
=1 # First line for current file.
9224 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9227 while $ac_more_lines; do
9228 if test $ac_beg -gt 1; then
9229 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9231 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9233 if test ! -s conftest.s
$ac_file; then
9235 rm -f conftest.s
$ac_file
9237 if test -z "$ac_sed_cmds"; then
9238 ac_sed_cmds
="sed -f conftest.s$ac_file"
9240 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9242 ac_file
=`expr $ac_file + 1`
9244 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9247 if test -z "$ac_sed_cmds"; then
9252 cat >> $CONFIG_STATUS <<EOF
9254 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
9256 cat >> $CONFIG_STATUS <<\EOF
9257 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9260 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9261 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9262 *) ac_file_in
="${ac_file}.in" ;;
9265 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9267 # Remove last slash and all that follows it. Not all systems have dirname.
9268 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9269 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9270 # The file is in a subdirectory.
9271 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9272 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9273 # A "../" for each directory in $ac_dir_suffix.
9274 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9276 ac_dir_suffix
= ac_dots
=
9279 case "$ac_given_srcdir" in
9281 if test -z "$ac_dots"; then top_srcdir
=.
9282 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9283 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9285 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9286 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9289 case "$ac_given_INSTALL" in
9290 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9291 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9294 echo creating
"$ac_file"
9296 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9298 *Makefile
*) ac_comsub
="1i\\
9299 # $configure_input" ;;
9303 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9305 s%@configure_input@%$configure_input%g
9306 s%@srcdir@%$srcdir%g
9307 s%@top_srcdir@%$top_srcdir%g
9308 s%@INSTALL@%$INSTALL%g
9309 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9313 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9314 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9316 # ac_d sets the value in "#define NAME VALUE" lines.
9317 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9318 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9321 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9322 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9323 ac_uB
='\([ ]\)%\1#\2define\3'
9326 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9327 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9328 ac_eB
='$%\1#\2define\3'
9332 if test "${CONFIG_HEADERS+set}" != set; then
9334 cat >> $CONFIG_STATUS <<EOF
9335 CONFIG_HEADERS="config.h:config.in"
9337 cat >> $CONFIG_STATUS <<\EOF
9339 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9340 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9342 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9343 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9344 *) ac_file_in
="${ac_file}.in" ;;
9347 echo creating
$ac_file
9349 rm -f conftest.frag conftest.
in conftest.out
9350 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9351 cat $ac_file_inputs > conftest.
in
9355 # Transform confdefs.h into a sed script conftest.vals that substitutes
9356 # the proper values into config.h.in to produce config.h. And first:
9357 # Protect against being on the right side of a sed subst in config.status.
9358 # Protect against being in an unquoted here document in config.status.
9360 cat > conftest.hdr
<<\EOF
9363 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9367 sed -n -f conftest.hdr confdefs.h > conftest.vals
9370 # This sed command replaces #undef with comments. This is necessary, for
9371 # example, in the case of _POSIX_SOURCE, which is predefined and required
9372 # on some systems where configure will not decide to define it.
9373 cat >> conftest.vals <<\EOF
9374 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9377 # Break up conftest.vals because some shells have a limit on
9378 # the size of here documents, and old seds have small limits too.
9383 ac_lines=`grep -c . conftest.vals
`
9384 # grep -c gives empty output for an empty file on some AIX systems.
9385 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9386 # Write a limited-size here document to conftest.frag.
9387 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9388 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9390 sed -f conftest.frag conftest.in > conftest.out
9392 mv conftest.out conftest.in
9394 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9396 mv conftest.tail conftest.vals
9400 cat >> $CONFIG_STATUS <<\EOF
9401 rm -f conftest.frag conftest.h
9402 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9403 cat conftest.in >> conftest.h
9405 if cmp -s $ac_file conftest.h 2>/dev/null; then
9406 echo "$ac_file is unchanged"
9409 # Remove last slash and all that follows it. Not all systems have dirname.
9410 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9411 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9412 # The file is in a subdirectory.
9413 test ! -d "$ac_dir" && mkdir "$ac_dir"
9416 mv conftest.h $ac_file
9422 cat >> $CONFIG_STATUS <<EOF
9427 cat >> $CONFIG_STATUS <<\EOF
9428 srcdir=$ac_given_srcdir
9429 while test -n "$ac_sources"; do
9430 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9431 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9433 echo "linking $srcdir/$ac_source to $ac_dest"
9435 if test ! -r $srcdir/$ac_source; then
9436 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9440 # Make relative symlinks.
9441 # Remove last slash and all that follows it. Not all systems have dirname.
9442 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9443 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9444 # The dest file is in a subdirectory.
9445 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9446 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9447 # A "../" for each directory in $ac_dest_dir_suffix.
9448 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9450 ac_dest_dir_suffix= ac_dots=
9454 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9455 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9458 # Make a symlink if possible; otherwise try a hard link.
9459 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9460 ln $srcdir/$ac_source $ac_dest; then :
9462 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9466 cat >> $CONFIG_STATUS <<EOF
9468 gdb_host_cpu=$gdb_host_cpu
9469 gdb_target_cpu=$gdb_target_cpu
9470 nativefile=$nativefile
9473 cat >> $CONFIG_STATUS <<\EOF
9475 if test "${nativefile}" = ""; then
9477 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
9478 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
9479 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
9481 mv -f Makefile.tem Makefile
9484 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9485 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9486 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9487 mv -f Makefile.tmp Makefile
9490 case x$CONFIG_HEADERS in
9491 xconfig.h:config.in)
9497 chmod +x $CONFIG_STATUS
9498 rm -fr confdefs* $ac_clean_files
9499 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9501 if test "$no_recursion" != yes; then
9503 # Remove --cache-file and --srcdir arguments so they do not pile up.
9504 ac_sub_configure_args=
9506 for ac_arg in $ac_configure_args; do
9507 if test -n "$ac_prev"; then
9512 -cache-file | --cache-file | --cache-fil | --cache-fi \
9513 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9514 ac_prev=cache_file ;;
9515 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9516 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9518 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9520 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9522 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9526 for ac_config_dir in $configdirs; do
9528 # Do not complain, so a configure script can configure whichever
9529 # parts of a large source tree are present.
9530 if test ! -d $srcdir/$ac_config_dir; then
9534 echo configuring in $ac_config_dir
9539 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9541 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9549 # A "../" for each directory in /$ac_config_dir.
9550 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9553 .) # No --srcdir option. We are building in place.
9554 ac_sub_srcdir=$srcdir ;;
9555 /*) # Absolute path.
9556 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9558 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9561 # Check for guested configure; otherwise get Cygnus style configure.
9562 if test -f $ac_sub_srcdir/configure; then
9563 ac_sub_configure=$ac_sub_srcdir/configure
9564 elif test -f $ac_sub_srcdir/configure.in; then
9565 ac_sub_configure=$ac_configure
9567 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9571 # The recursion is here.
9572 if test -n "$ac_sub_configure"; then
9574 # Make the cache file name correct relative to the subdirectory.
9575 case "$cache_file" in
9576 /*) ac_sub_cache_file=$cache_file ;;
9578 ac_sub_cache_file="$ac_dots$cache_file" ;;
9580 case "$ac_given_INSTALL" in
9581 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9582 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9585 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9586 # The eval makes quoting arguments work.
9587 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9590 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }