3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbcli Enable GDB-CLI interface"
26 --enable-gdbmi Enable GDB-MI interface"
28 --with-uiout Use new uiout functions instead of *printf's"
30 --enable-tui Enable full-screen terminal user interface"
32 --enable-netrom Enable NetROM support"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
38 --with-mmalloc Use memory mapped malloc package"
40 --with-included-regex Use included regex"
42 --with-cpu=CPU Set the default CPU variant to debug"
44 --enable-gdbtk Enable GDBTK GUI front end"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
60 --with-x use the X Window System"
62 --enable-sim Link gdb with simulator"
64 --enable-shared Use shared libraries"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file
=.
/config.cache
79 program_transform_name
=s
,x
,x
,
87 bindir
='${exec_prefix}/bin'
88 sbindir
='${exec_prefix}/sbin'
89 libexecdir
='${exec_prefix}/libexec'
90 datadir
='${prefix}/share'
91 sysconfdir
='${prefix}/etc'
92 sharedstatedir
='${prefix}/com'
93 localstatedir
='${prefix}/var'
94 libdir
='${exec_prefix}/lib'
95 includedir
='${prefix}/include'
96 oldincludedir
='/usr/include'
97 infodir
='${prefix}/info'
98 mandir
='${prefix}/man'
100 # Initialize some other variables.
103 SHELL
=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
129 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
130 bindir
="$ac_optarg" ;;
132 -build |
--build |
--buil |
--bui |
--bu)
134 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
135 build
="$ac_optarg" ;;
137 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
138 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
139 ac_prev
=cache_file
;;
140 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
141 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
142 cache_file
="$ac_optarg" ;;
144 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
146 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
148 datadir
="$ac_optarg" ;;
150 -disable-* |
--disable-*)
151 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* |
--enable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
173 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
174 |
--exec |
--exe |
--ex)
175 ac_prev
=exec_prefix
;;
176 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
177 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
178 |
--exec=* |
--exe=* |
--ex=*)
179 exec_prefix
="$ac_optarg" ;;
181 -gas |
--gas |
--ga |
--g)
182 # Obsolete; use --with-gas.
185 -help |
--help |
--hel |
--he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host |
--host |
--hos |
--ho)
242 -host=* |
--host=* |
--hos=* |
--ho=*)
245 -includedir |
--includedir |
--includedi |
--included |
--include \
246 |
--includ |
--inclu |
--incl |
--inc)
247 ac_prev
=includedir
;;
248 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
249 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
250 includedir
="$ac_optarg" ;;
252 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
254 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
255 infodir
="$ac_optarg" ;;
257 -libdir |
--libdir |
--libdi |
--libd)
259 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
260 libdir
="$ac_optarg" ;;
262 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
263 |
--libexe |
--libex |
--libe)
264 ac_prev
=libexecdir
;;
265 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
266 |
--libexe=* |
--libex=* |
--libe=*)
267 libexecdir
="$ac_optarg" ;;
269 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
270 |
--localstate |
--localstat |
--localsta |
--localst \
271 |
--locals |
--local |
--loca |
--loc |
--lo)
272 ac_prev
=localstatedir
;;
273 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
274 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
275 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
276 localstatedir
="$ac_optarg" ;;
278 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
280 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
281 mandir
="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
291 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
292 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
295 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
296 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
297 |
--oldin |
--oldi |
--old |
--ol |
--o)
298 ac_prev
=oldincludedir
;;
299 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
300 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
301 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
302 oldincludedir
="$ac_optarg" ;;
304 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
306 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
307 prefix
="$ac_optarg" ;;
309 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
310 |
--program-pre |
--program-pr |
--program-p)
311 ac_prev
=program_prefix
;;
312 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
313 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
314 program_prefix
="$ac_optarg" ;;
316 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
317 |
--program-suf |
--program-su |
--program-s)
318 ac_prev
=program_suffix
;;
319 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
320 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
321 program_suffix
="$ac_optarg" ;;
323 -program-transform-name |
--program-transform-name \
324 |
--program-transform-nam |
--program-transform-na \
325 |
--program-transform-n |
--program-transform- \
326 |
--program-transform |
--program-transfor \
327 |
--program-transfo |
--program-transf \
328 |
--program-trans |
--program-tran \
329 |
--progr-tra |
--program-tr |
--program-t)
330 ac_prev
=program_transform_name
;;
331 -program-transform-name=* |
--program-transform-name=* \
332 |
--program-transform-nam=* |
--program-transform-na=* \
333 |
--program-transform-n=* |
--program-transform-=* \
334 |
--program-transform=* |
--program-transfor=* \
335 |
--program-transfo=* |
--program-transf=* \
336 |
--program-trans=* |
--program-tran=* \
337 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
338 program_transform_name
="$ac_optarg" ;;
340 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
341 |
-silent |
--silent |
--silen |
--sile |
--sil)
344 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
346 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
348 sbindir
="$ac_optarg" ;;
350 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
351 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
352 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
354 ac_prev
=sharedstatedir
;;
355 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
356 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
357 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
359 sharedstatedir
="$ac_optarg" ;;
361 -site |
--site |
--sit)
363 -site=* |
--site=* |
--sit=*)
366 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
368 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
369 srcdir
="$ac_optarg" ;;
371 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
372 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
373 ac_prev
=sysconfdir
;;
374 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
375 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
376 sysconfdir
="$ac_optarg" ;;
378 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
380 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
381 target
="$ac_optarg" ;;
383 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
386 -version |
--version |
--versio |
--versi |
--vers)
387 echo "configure generated by autoconf version 2.13"
391 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* |
--without-*)
404 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
413 # Obsolete; use --with-x.
416 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
417 |
--x-incl |
--x-inc |
--x-in |
--x-i)
418 ac_prev
=x_includes
;;
419 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
420 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
421 x_includes
="$ac_optarg" ;;
423 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
424 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
425 ac_prev
=x_libraries
;;
426 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
427 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
428 x_libraries
="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE
; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
478 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
479 |
--no-cr |
--no-c) ;;
480 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
481 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
482 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest
* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file
=main.c
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted
=yes
510 # Try the directory containing this script, then its parent.
512 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
515 if test ! -r $srcdir/$ac_unique_file; then
519 ac_srcdir_defaulted
=no
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE
; then
533 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
535 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 for ac_site_file
in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp
='$CPP $CPPFLAGS'
556 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling
=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
571 ac_n
= ac_c
='\c' ac_t
=
576 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
577 echo "configure:578: checking whether to enable maintainer-specific portions of Makefiles" >&5
578 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
579 if test "${enable_maintainer_mode+set}" = set; then
580 enableval
="$enable_maintainer_mode"
581 USE_MAINTAINER_MODE
=$enableval
583 USE_MAINTAINER_MODE
=no
586 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
589 if test $USE_MAINTAINER_MODE = yes; then
590 MAINTAINER_MODE_TRUE
=
591 MAINTAINER_MODE_FALSE
='#'
593 MAINTAINER_MODE_TRUE
='#'
594 MAINTAINER_MODE_FALSE
=
596 MAINT
=$MAINTAINER_MODE_TRUE
600 # Extract the first word of "gcc", so it can be a program name with args.
601 set dummy gcc
; ac_word
=$2
602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
603 echo "configure:604: checking for $ac_word" >&5
604 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
605 echo $ac_n "(cached) $ac_c" 1>&6
607 if test -n "$CC"; then
608 ac_cv_prog_CC
="$CC" # Let the user override the test.
610 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
612 for ac_dir
in $ac_dummy; do
613 test -z "$ac_dir" && ac_dir
=.
614 if test -f $ac_dir/$ac_word; then
623 if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
626 echo "$ac_t""no" 1>&6
629 if test -z "$CC"; then
630 # Extract the first word of "cc", so it can be a program name with args.
631 set dummy cc
; ac_word
=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 if test -n "$CC"; then
638 ac_cv_prog_CC
="$CC" # Let the user override the test.
640 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
643 for ac_dir
in $ac_dummy; do
644 test -z "$ac_dir" && ac_dir
=.
645 if test -f $ac_dir/$ac_word; then
646 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
655 if test $ac_prog_rejected = yes; then
656 # We found a bogon in the path, so make sure we never use it.
657 set dummy
$ac_cv_prog_CC
659 if test $# -gt 0; then
660 # We chose a different compiler from the bogus one.
661 # However, it has the same basename, so the bogon will be chosen
662 # first if we set CC to just the basename; use the full file name.
664 set dummy
"$ac_dir/$ac_word" "$@"
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
675 echo "$ac_t""no" 1>&6
678 if test -z "$CC"; then
681 # Extract the first word of "cl", so it can be a program name with args.
682 set dummy cl
; ac_word
=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC
="$CC" # Let the user override the test.
691 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
693 for ac_dir
in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir
=.
695 if test -f $ac_dir/$ac_word; then
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
707 echo "$ac_t""no" 1>&6
712 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
715 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
716 echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
720 ac_cpp
='$CPP $CPPFLAGS'
721 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
722 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
723 cross_compiling
=$ac_cv_prog_cc_cross
725 cat > conftest.
$ac_ext << EOF
727 #line 728 "configure"
728 #include "confdefs.h"
732 if { (eval echo configure
:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
733 ac_cv_prog_cc_works
=yes
734 # If we can't run a trivial program, we are probably using a cross compiler.
735 if (.
/conftest
; exit) 2>/dev
/null
; then
736 ac_cv_prog_cc_cross
=no
738 ac_cv_prog_cc_cross
=yes
741 echo "configure: failed program was:" >&5
742 cat conftest.
$ac_ext >&5
743 ac_cv_prog_cc_works
=no
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp
='$CPP $CPPFLAGS'
749 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling
=$ac_cv_prog_cc_cross
753 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
754 if test $ac_cv_prog_cc_works = no
; then
755 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
759 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
760 cross_compiling
=$ac_cv_prog_cc_cross
762 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
763 echo "configure:764: checking whether we are using GNU C" >&5
764 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 cat > conftest.c
<<EOF
772 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
779 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
781 if test $ac_cv_prog_gcc = yes; then
787 ac_test_CFLAGS
="${CFLAGS+set}"
788 ac_save_CFLAGS
="$CFLAGS"
790 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
791 echo "configure:792: checking whether ${CC-cc} accepts -g" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 echo 'void f(){}' > conftest.c
796 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
805 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
806 if test "$ac_test_CFLAGS" = set; then
807 CFLAGS
="$ac_save_CFLAGS"
808 elif test $ac_cv_prog_cc_g = yes; then
809 if test "$GCC" = yes; then
815 if test "$GCC" = yes; then
822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
823 echo "configure:824: checking how to run the C preprocessor" >&5
824 # On Suns, sometimes $CPP names a directory.
825 if test -n "$CPP" && test -d "$CPP"; then
828 if test -z "$CPP"; then
829 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 # This must be in double quotes, not single quotes, because CPP may get
833 # substituted into the Makefile and "${CC-cc}" will confuse make.
835 # On the NeXT, cc -E runs the code through the compiler's parser,
836 # not just through cpp.
837 cat > conftest.
$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure
:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
853 CPP
="${CC-cc} -E -traditional-cpp"
854 cat > conftest.
$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
860 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure
:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 if test -z "$ac_err"; then
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
870 CPP
="${CC-cc} -nologo -E"
871 cat > conftest.
$ac_ext <<EOF
872 #line 873 "configure"
873 #include "confdefs.h"
877 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
878 { (eval echo configure
:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
879 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
880 if test -z "$ac_err"; then
884 echo "configure: failed program was:" >&5
885 cat conftest.
$ac_ext >&5
894 ac_cv_prog_CPP
="$CPP"
896 CPP
="$ac_cv_prog_CPP"
898 ac_cv_prog_CPP
="$CPP"
900 echo "$ac_t""$CPP" 1>&6
902 echo $ac_n "checking for AIX""... $ac_c" 1>&6
903 echo "configure:904: checking for AIX" >&5
904 cat > conftest.
$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
913 egrep "yes" >/dev
/null
2>&1; then
915 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
916 #define _ALL_SOURCE 1
921 echo "$ac_t""no" 1>&6
926 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
927 echo "configure:928: checking for POSIXized ISC" >&5
928 if test -d /etc
/conf
/kconfig.d
&&
929 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
931 echo "$ac_t""yes" 1>&6
932 ISC
=yes # If later tests want to check for ISC.
933 cat >> confdefs.h
<<\EOF
934 #define _POSIX_SOURCE 1
937 if test "$GCC" = yes; then
943 echo "$ac_t""no" 1>&6
950 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
951 echo "configure:952: checking for ${CC-cc} option to accept ANSI C" >&5
952 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 am_cv_prog_cc_stdc
=no
957 # Don't try gcc -ansi; that turns off useful extensions and
958 # breaks some systems' header files.
960 # Ultrix and OSF/1 -std1
961 # HP-UX -Aa -D_HPUX_SOURCE
962 # SVR4 -Xc -D__EXTENSIONS__
963 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
965 CC
="$ac_save_CC $ac_arg"
966 cat > conftest.
$ac_ext <<EOF
967 #line 968 "configure"
968 #include "confdefs.h"
971 #include <sys/types.h>
972 #include <sys/stat.h>
973 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
974 struct buf { int x; };
975 FILE * (*rcsopen) (struct buf *, struct stat *, int);
976 static char *e (p, i)
982 static char *f (char * (*g) (char **, int), char **p, ...)
987 s = g (p, va_arg (v,int));
991 int test (int i, double x);
992 struct s1 {int (*f) (int a);};
993 struct s2 {int (*f) (double a);};
994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1000 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1004 if { (eval echo configure
:1005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1006 am_cv_prog_cc_stdc
="$ac_arg"; break
1008 echo "configure: failed program was:" >&5
1009 cat conftest.
$ac_ext >&5
1017 if test -z "$am_cv_prog_cc_stdc"; then
1018 echo "$ac_t""none needed" 1>&6
1020 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1022 case "x$am_cv_prog_cc_stdc" in
1024 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1029 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1030 if test -f $ac_dir/install-sh
; then
1032 ac_install_sh
="$ac_aux_dir/install-sh -c"
1034 elif test -f $ac_dir/install.sh
; then
1036 ac_install_sh
="$ac_aux_dir/install.sh -c"
1040 if test -z "$ac_aux_dir"; then
1041 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1043 ac_config_guess
=$ac_aux_dir/config.guess
1044 ac_config_sub
=$ac_aux_dir/config.sub
1045 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1048 # Do some error checking and defaulting for the host and target type.
1050 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1053 # 1. You are not allowed to specify --host, --target, and nonopt at the
1055 # 2. Host defaults to nonopt.
1056 # 3. If nonopt is not specified, then host defaults to the current host,
1057 # as determined by config.guess.
1058 # 4. Target and build default to nonopt.
1059 # 5. If nonopt is not specified, then target and build default to host.
1061 # The aliases save the names the user supplied, while $host etc.
1062 # will get canonicalized.
1063 case $host---$target---$nonopt in
1064 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1065 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1069 # Make sure we can run config.sub.
1070 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1071 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1074 echo $ac_n "checking host system type""... $ac_c" 1>&6
1075 echo "configure:1076: checking host system type" >&5
1078 case "$host_alias" in
1082 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1083 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1085 *) host_alias
=$nonopt ;;
1089 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1090 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093 echo "$ac_t""$host" 1>&6
1095 echo $ac_n "checking target system type""... $ac_c" 1>&6
1096 echo "configure:1097: checking target system type" >&5
1098 target_alias
=$target
1099 case "$target_alias" in
1102 NONE
) target_alias
=$host_alias ;;
1103 *) target_alias
=$nonopt ;;
1107 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1108 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1109 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1110 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1111 echo "$ac_t""$target" 1>&6
1113 echo $ac_n "checking build system type""... $ac_c" 1>&6
1114 echo "configure:1115: checking build system type" >&5
1117 case "$build_alias" in
1120 NONE
) build_alias
=$host_alias ;;
1121 *) build_alias
=$nonopt ;;
1125 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1126 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1127 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1128 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1129 echo "$ac_t""$build" 1>&6
1131 test "$host_alias" != "$target_alias" &&
1132 test "$program_prefix$program_suffix$program_transform_name" = \
1134 program_prefix
=${target_alias}-
1138 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1139 echo "configure:1140: checking whether ${MAKE-make} sets \${MAKE}" >&5
1140 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1141 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 cat > conftestmake
<<\EOF
1146 @
echo 'ac_maketemp="${MAKE}"'
1148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1149 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1150 if test -n "$ac_maketemp"; then
1151 eval ac_cv_prog_make_
${ac_make}_set
=yes
1153 eval ac_cv_prog_make_
${ac_make}_set
=no
1157 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1161 echo "$ac_t""no" 1>&6
1162 SET_MAKE
="MAKE=${MAKE-make}"
1165 # Extract the first word of "ranlib", so it can be a program name with args.
1166 set dummy ranlib
; ac_word
=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -n "$RANLIB"; then
1173 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1177 for ac_dir
in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir
=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_RANLIB
="ranlib"
1185 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1188 RANLIB
="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1195 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1196 echo "configure:1197: checking for ANSI C header files" >&5
1197 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.
$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1208 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1209 { (eval echo configure
:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1210 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1211 if test -z "$ac_err"; then
1213 ac_cv_header_stdc
=yes
1216 echo "configure: failed program was:" >&5
1217 cat conftest.
$ac_ext >&5
1219 ac_cv_header_stdc
=no
1223 if test $ac_cv_header_stdc = yes; then
1224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1225 cat > conftest.
$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1231 egrep "memchr" >/dev
/null
2>&1; then
1235 ac_cv_header_stdc
=no
1241 if test $ac_cv_header_stdc = yes; then
1242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1243 cat > conftest.
$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1249 egrep "free" >/dev
/null
2>&1; then
1253 ac_cv_header_stdc
=no
1259 if test $ac_cv_header_stdc = yes; then
1260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1261 if test "$cross_compiling" = yes; then
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1268 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1269 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1271 int main () { int i; for (i = 0; i < 256; i++)
1272 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1276 if { (eval echo configure
:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1280 echo "configure: failed program was:" >&5
1281 cat conftest.
$ac_ext >&5
1283 ac_cv_header_stdc
=no
1291 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1292 if test $ac_cv_header_stdc = yes; then
1293 cat >> confdefs.h
<<\EOF
1294 #define STDC_HEADERS 1
1299 echo $ac_n "checking for working const""... $ac_c" 1>&6
1300 echo "configure:1301: checking for working const" >&5
1301 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.
$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1310 /* Ultrix mips cc rejects this. */
1311 typedef int charset[2]; const charset x;
1312 /* SunOS 4.1.1 cc rejects this. */
1313 char const *const *ccp;
1315 /* NEC SVR4.0.2 mips cc rejects this. */
1316 struct point {int x, y;};
1317 static struct point const zero = {0,0};
1318 /* AIX XL C 1.02.0.0 rejects this.
1319 It does not let you subtract one const X* pointer from another in an arm
1320 of an if-expression whose if-part is not a constant expression */
1321 const char *g = "string";
1322 ccp = &g + (g ? g-g : 0);
1323 /* HPUX 7.0 cc rejects these. */
1326 ccp = (char const *const *) p;
1327 { /* SCO 3.2v4 cc rejects this. */
1329 char const *s = 0 ? (char *) 0 : (char const *) 0;
1333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1335 const int *foo = &x[0];
1338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1339 typedef const int *iptr;
1343 { /* AIX XL C 1.02.0.0 rejects this saying
1344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1345 struct s { int j; const int *ap[3]; };
1346 struct s *b; b->j = 5;
1348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1354 if { (eval echo configure
:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 echo "configure: failed program was:" >&5
1359 cat conftest.
$ac_ext >&5
1366 echo "$ac_t""$ac_cv_c_const" 1>&6
1367 if test $ac_cv_c_const = no
; then
1368 cat >> confdefs.h
<<\EOF
1374 echo $ac_n "checking for inline""... $ac_c" 1>&6
1375 echo "configure:1376: checking for inline" >&5
1376 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1380 for ac_kw
in inline __inline__ __inline
; do
1381 cat > conftest.
$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1389 if { (eval echo configure
:1390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1391 ac_cv_c_inline
=$ac_kw; break
1393 echo "configure: failed program was:" >&5
1394 cat conftest.
$ac_ext >&5
1401 echo "$ac_t""$ac_cv_c_inline" 1>&6
1402 case "$ac_cv_c_inline" in
1404 no
) cat >> confdefs.h
<<\EOF
1408 *) cat >> confdefs.h
<<EOF
1409 #define inline $ac_cv_c_inline
1414 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1415 echo "configure:1416: checking for off_t" >&5
1416 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.
$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 #include <sys/types.h>
1428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1429 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1431 ac_cv_type_off_t
=yes
1439 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1440 if test $ac_cv_type_off_t = no
; then
1441 cat >> confdefs.h
<<\EOF
1447 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1448 echo "configure:1449: checking for size_t" >&5
1449 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.
$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 #include <sys/types.h>
1461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1464 ac_cv_type_size_t
=yes
1467 ac_cv_type_size_t
=no
1472 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1473 if test $ac_cv_type_size_t = no
; then
1474 cat >> confdefs.h
<<\EOF
1475 #define size_t unsigned
1480 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1481 # for constant arguments. Useless!
1482 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1483 echo "configure:1484: checking for working alloca.h" >&5
1484 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 cat > conftest.
$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1492 char *p = alloca(2 * sizeof(int));
1495 if { (eval echo configure
:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1497 ac_cv_header_alloca_h
=yes
1499 echo "configure: failed program was:" >&5
1500 cat conftest.
$ac_ext >&5
1502 ac_cv_header_alloca_h
=no
1507 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1508 if test $ac_cv_header_alloca_h = yes; then
1509 cat >> confdefs.h
<<\EOF
1510 #define HAVE_ALLOCA_H 1
1515 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1516 echo "configure:1517: checking for alloca" >&5
1517 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1520 cat > conftest.
$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1525 # define alloca __builtin_alloca
1528 # include <malloc.h>
1529 # define alloca _alloca
1532 # include <alloca.h>
1537 # ifndef alloca /* predefined by HP cc +Olibcalls */
1546 char *p = (char *) alloca(1);
1549 if { (eval echo configure
:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1551 ac_cv_func_alloca_works
=yes
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 ac_cv_func_alloca_works
=no
1561 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1562 if test $ac_cv_func_alloca_works = yes; then
1563 cat >> confdefs.h
<<\EOF
1564 #define HAVE_ALLOCA 1
1569 if test $ac_cv_func_alloca_works = no
; then
1570 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1571 # that cause trouble. Some versions do not even contain alloca or
1572 # contain a buggy version. If you still want to use their alloca,
1573 # use ar to extract alloca.o from them instead of compiling alloca.c.
1574 ALLOCA
=alloca.
${ac_objext}
1575 cat >> confdefs.h
<<\EOF
1580 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether alloca needs Cray hooks" >&5
1582 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 cat > conftest.
$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1588 #if defined(CRAY) && ! defined(CRAY2)
1595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1596 egrep "webecray" >/dev
/null
2>&1; then
1607 echo "$ac_t""$ac_cv_os_cray" 1>&6
1608 if test $ac_cv_os_cray = yes; then
1609 for ac_func
in _getb67 GETB67 getb67
; do
1610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1611 echo "configure:1612: checking for $ac_func" >&5
1612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 cat > conftest.
$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1618 /* System header to define __stub macros and hopefully few prototypes,
1619 which can conflict with char $ac_func(); below. */
1621 /* Override any gcc2 internal prototype to avoid an error. */
1622 /* We use char because int might match the return type of a gcc2
1623 builtin and then its argument prototype would still apply. */
1628 /* The GNU C library defines this for functions which it implements
1629 to always fail with ENOSYS. Some functions are actually named
1630 something starting with __ and the normal name is an alias. */
1631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1639 if { (eval echo configure
:1640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1641 eval "ac_cv_func_$ac_func=yes"
1643 echo "configure: failed program was:" >&5
1644 cat conftest.
$ac_ext >&5
1646 eval "ac_cv_func_$ac_func=no"
1651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1652 echo "$ac_t""yes" 1>&6
1653 cat >> confdefs.h
<<EOF
1654 #define CRAY_STACKSEG_END $ac_func
1659 echo "$ac_t""no" 1>&6
1665 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1666 echo "configure:1667: checking stack direction for C alloca" >&5
1667 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 if test "$cross_compiling" = yes; then
1671 ac_cv_c_stack_direction
=0
1673 cat > conftest.
$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 find_stack_direction ()
1678 static char *addr = 0;
1683 return find_stack_direction ();
1686 return (&dummy > addr) ? 1 : -1;
1690 exit (find_stack_direction() < 0);
1693 if { (eval echo configure
:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1695 ac_cv_c_stack_direction
=1
1697 echo "configure: failed program was:" >&5
1698 cat conftest.
$ac_ext >&5
1700 ac_cv_c_stack_direction
=-1
1707 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1708 cat >> confdefs.h
<<EOF
1709 #define STACK_DIRECTION $ac_cv_c_stack_direction
1714 for ac_hdr
in unistd.h
1716 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1718 echo "configure:1719: checking for $ac_hdr" >&5
1719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.
$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1728 { (eval echo configure
:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1730 if test -z "$ac_err"; then
1732 eval "ac_cv_header_$ac_safe=yes"
1735 echo "configure: failed program was:" >&5
1736 cat conftest.
$ac_ext >&5
1738 eval "ac_cv_header_$ac_safe=no"
1742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1744 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1745 cat >> confdefs.h
<<EOF
1746 #define $ac_tr_hdr 1
1750 echo "$ac_t""no" 1>&6
1754 for ac_func
in getpagesize
1756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1757 echo "configure:1758: checking for $ac_func" >&5
1758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 cat > conftest.
$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 /* System header to define __stub macros and hopefully few prototypes,
1765 which can conflict with char $ac_func(); below. */
1767 /* Override any gcc2 internal prototype to avoid an error. */
1768 /* We use char because int might match the return type of a gcc2
1769 builtin and then its argument prototype would still apply. */
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1785 if { (eval echo configure
:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1787 eval "ac_cv_func_$ac_func=yes"
1789 echo "configure: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 eval "ac_cv_func_$ac_func=no"
1797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1798 echo "$ac_t""yes" 1>&6
1799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1800 cat >> confdefs.h
<<EOF
1801 #define $ac_tr_func 1
1805 echo "$ac_t""no" 1>&6
1809 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1810 echo "configure:1811: checking for working mmap" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 if test "$cross_compiling" = yes; then
1815 ac_cv_func_mmap_fixed_mapped
=no
1817 cat > conftest.
$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1821 /* Thanks to Mike Haertel and Jim Avera for this test.
1822 Here is a matrix of mmap possibilities:
1823 mmap private not fixed
1824 mmap private fixed at somewhere currently unmapped
1825 mmap private fixed at somewhere already mapped
1826 mmap shared not fixed
1827 mmap shared fixed at somewhere currently unmapped
1828 mmap shared fixed at somewhere already mapped
1829 For private mappings, we should verify that changes cannot be read()
1830 back from the file, nor mmap's back from the file at a different
1831 address. (There have been systems where private was not correctly
1832 implemented like the infamous i386 svr4.0, and systems where the
1833 VM page cache was not coherent with the filesystem buffer cache
1834 like early versions of FreeBSD and possibly contemporary NetBSD.)
1835 For shared mappings, we should conversely verify that changes get
1836 propogated back to all the places they're supposed to be.
1838 Grep wants private fixed already mapped.
1839 The main things grep needs to know about mmap are:
1840 * does it exist and is it safe to write into the mmap'd area
1841 * how to use it (BSD variants) */
1842 #include <sys/types.h>
1844 #include <sys/mman.h>
1846 /* This mess was copied from the GNU getpagesize.h. */
1847 #ifndef HAVE_GETPAGESIZE
1848 # ifdef HAVE_UNISTD_H
1849 # include <unistd.h>
1852 /* Assume that all systems that can run configure have sys/param.h. */
1853 # ifndef HAVE_SYS_PARAM_H
1854 # define HAVE_SYS_PARAM_H 1
1857 # ifdef _SC_PAGESIZE
1858 # define getpagesize() sysconf(_SC_PAGESIZE)
1859 # else /* no _SC_PAGESIZE */
1860 # ifdef HAVE_SYS_PARAM_H
1861 # include <sys/param.h>
1862 # ifdef EXEC_PAGESIZE
1863 # define getpagesize() EXEC_PAGESIZE
1864 # else /* no EXEC_PAGESIZE */
1866 # define getpagesize() NBPG * CLSIZE
1869 # endif /* no CLSIZE */
1870 # else /* no NBPG */
1872 # define getpagesize() NBPC
1873 # else /* no NBPC */
1875 # define getpagesize() PAGESIZE
1876 # endif /* PAGESIZE */
1877 # endif /* no NBPC */
1878 # endif /* no NBPG */
1879 # endif /* no EXEC_PAGESIZE */
1880 # else /* no HAVE_SYS_PARAM_H */
1881 # define getpagesize() 8192 /* punt totally */
1882 # endif /* no HAVE_SYS_PARAM_H */
1883 # endif /* no _SC_PAGESIZE */
1885 #endif /* no HAVE_GETPAGESIZE */
1888 extern "C" { void *malloc(unsigned); }
1896 char *data, *data2, *data3;
1900 pagesize = getpagesize();
1903 * First, make a file with some known garbage in it.
1905 data = malloc(pagesize);
1908 for (i = 0; i < pagesize; ++i)
1909 *(data + i) = rand();
1911 fd = creat("conftestmmap", 0600);
1914 if (write(fd, data, pagesize) != pagesize)
1919 * Next, try to mmap the file at a fixed address which
1920 * already has something else allocated at it. If we can,
1921 * also make sure that we see the same garbage.
1923 fd = open("conftestmmap", O_RDWR);
1926 data2 = malloc(2 * pagesize);
1929 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1930 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1931 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1933 for (i = 0; i < pagesize; ++i)
1934 if (*(data + i) != *(data2 + i))
1938 * Finally, make sure that changes to the mapped area
1939 * do not percolate back to the file as seen by read().
1940 * (This is a bug on some variants of i386 svr4.0.)
1942 for (i = 0; i < pagesize; ++i)
1943 *(data2 + i) = *(data2 + i) + 1;
1944 data3 = malloc(pagesize);
1947 if (read(fd, data3, pagesize) != pagesize)
1949 for (i = 0; i < pagesize; ++i)
1950 if (*(data + i) != *(data3 + i))
1953 unlink("conftestmmap");
1958 if { (eval echo configure
:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1960 ac_cv_func_mmap_fixed_mapped
=yes
1962 echo "configure: failed program was:" >&5
1963 cat conftest.
$ac_ext >&5
1965 ac_cv_func_mmap_fixed_mapped
=no
1972 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1973 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1974 cat >> confdefs.h
<<\EOF
1981 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1982 unistd.h values.h sys
/param.h
1984 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_hdr" >&5
1987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 cat > conftest.
$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1995 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1996 { (eval echo configure
:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1997 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998 if test -z "$ac_err"; then
2000 eval "ac_cv_header_$ac_safe=yes"
2003 echo "configure: failed program was:" >&5
2004 cat conftest.
$ac_ext >&5
2006 eval "ac_cv_header_$ac_safe=no"
2010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2011 echo "$ac_t""yes" 1>&6
2012 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2013 cat >> confdefs.h
<<EOF
2014 #define $ac_tr_hdr 1
2018 echo "$ac_t""no" 1>&6
2022 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2023 __argz_count __argz_stringify __argz_next
2025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_func" >&5
2027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.
$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $ac_func(); below. */
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 /* We use char because int might match the return type of a gcc2
2038 builtin and then its argument prototype would still apply. */
2043 /* The GNU C library defines this for functions which it implements
2044 to always fail with ENOSYS. Some functions are actually named
2045 something starting with __ and the normal name is an alias. */
2046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2054 if { (eval echo configure
:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2056 eval "ac_cv_func_$ac_func=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2061 eval "ac_cv_func_$ac_func=no"
2066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2069 cat >> confdefs.h
<<EOF
2070 #define $ac_tr_func 1
2074 echo "$ac_t""no" 1>&6
2079 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2080 for ac_func
in stpcpy
2082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_func" >&5
2084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $ac_func(); below. */
2093 /* Override any gcc2 internal prototype to avoid an error. */
2094 /* We use char because int might match the return type of a gcc2
2095 builtin and then its argument prototype would still apply. */
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2111 if { (eval echo configure
:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2113 eval "ac_cv_func_$ac_func=yes"
2115 echo "configure: failed program was:" >&5
2116 cat conftest.
$ac_ext >&5
2118 eval "ac_cv_func_$ac_func=no"
2123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2126 cat >> confdefs.h
<<EOF
2127 #define $ac_tr_func 1
2131 echo "$ac_t""no" 1>&6
2136 if test "${ac_cv_func_stpcpy}" = "yes"; then
2137 cat >> confdefs.h
<<\EOF
2138 #define HAVE_STPCPY 1
2143 if test $ac_cv_header_locale_h = yes; then
2144 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2145 echo "configure:2146: checking for LC_MESSAGES" >&5
2146 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2157 if { (eval echo configure
:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2159 am_cv_val_LC_MESSAGES
=yes
2161 echo "configure: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 am_cv_val_LC_MESSAGES
=no
2169 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2170 if test $am_cv_val_LC_MESSAGES = yes; then
2171 cat >> confdefs.h
<<\EOF
2172 #define HAVE_LC_MESSAGES 1
2177 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2178 echo "configure:2179: checking whether NLS is requested" >&5
2179 # Check whether --enable-nls or --disable-nls was given.
2180 if test "${enable_nls+set}" = set; then
2181 enableval
="$enable_nls"
2187 echo "$ac_t""$USE_NLS" 1>&6
2190 USE_INCLUDED_LIBINTL
=no
2192 if test "$USE_NLS" = "yes"; then
2193 cat >> confdefs.h
<<\EOF
2194 #define ENABLE_NLS 1
2197 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether included gettext is requested" >&5
2199 # Check whether --with-included-gettext or --without-included-gettext was given.
2200 if test "${with_included_gettext+set}" = set; then
2201 withval
="$with_included_gettext"
2202 nls_cv_force_use_gnu_gettext
=$withval
2204 nls_cv_force_use_gnu_gettext
=no
2207 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2209 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2210 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2212 nls_cv_header_libgt
=
2215 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2216 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2217 echo "configure:2218: checking for libintl.h" >&5
2218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 cat > conftest.
$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 #include <libintl.h>
2226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2227 { (eval echo configure
:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2229 if test -z "$ac_err"; then
2231 eval "ac_cv_header_$ac_safe=yes"
2234 echo "configure: failed program was:" >&5
2235 cat conftest.
$ac_ext >&5
2237 eval "ac_cv_header_$ac_safe=no"
2241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2244 echo "configure:2245: checking for gettext in libc" >&5
2245 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.
$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2251 #include <libintl.h>
2253 return (int) gettext ("")
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2258 gt_cv_func_gettext_libc
=yes
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 gt_cv_func_gettext_libc
=no
2268 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2270 if test "$gt_cv_func_gettext_libc" != "yes"; then
2271 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2272 echo "configure:2273: checking for bindtextdomain in -lintl" >&5
2273 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 ac_save_LIBS
="$LIBS"
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 /* Override any gcc2 internal prototype to avoid an error. */
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2285 char bindtextdomain();
2291 if { (eval echo configure
:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2293 eval "ac_cv_lib_$ac_lib_var=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2298 eval "ac_cv_lib_$ac_lib_var=no"
2301 LIBS
="$ac_save_LIBS"
2304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2307 echo "configure:2308: checking for gettext in libintl" >&5
2308 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 cat > conftest.
$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2316 return (int) gettext ("")
2319 if { (eval echo configure
:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2321 gt_cv_func_gettext_libintl
=yes
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2326 gt_cv_func_gettext_libintl
=no
2331 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2333 echo "$ac_t""no" 1>&6
2338 if test "$gt_cv_func_gettext_libc" = "yes" \
2339 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2340 cat >> confdefs.h
<<\EOF
2341 #define HAVE_GETTEXT 1
2344 # Extract the first word of "msgfmt", so it can be a program name with args.
2345 set dummy msgfmt
; ac_word
=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2353 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2356 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2357 for ac_dir
in $PATH; do
2358 test -z "$ac_dir" && ac_dir
=.
2359 if test -f $ac_dir/$ac_word; then
2360 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2361 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2367 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2371 MSGFMT
="$ac_cv_path_MSGFMT"
2372 if test -n "$MSGFMT"; then
2373 echo "$ac_t""$MSGFMT" 1>&6
2375 echo "$ac_t""no" 1>&6
2377 if test "$MSGFMT" != "no"; then
2378 for ac_func
in dcgettext
2380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_func" >&5
2382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 cat > conftest.
$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* System header to define __stub macros and hopefully few prototypes,
2389 which can conflict with char $ac_func(); below. */
2391 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2398 /* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2409 if { (eval echo configure
:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2411 eval "ac_cv_func_$ac_func=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.
$ac_ext >&5
2416 eval "ac_cv_func_$ac_func=no"
2421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2422 echo "$ac_t""yes" 1>&6
2423 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2424 cat >> confdefs.h
<<EOF
2425 #define $ac_tr_func 1
2429 echo "$ac_t""no" 1>&6
2433 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2434 set dummy gmsgfmt
; ac_word
=$2
2435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_word" >&5
2437 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2442 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2445 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2450 for ac_dir
in $ac_dummy; do
2451 test -z "$ac_dir" && ac_dir
=.
2452 if test -f $ac_dir/$ac_word; then
2453 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2458 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2462 GMSGFMT
="$ac_cv_path_GMSGFMT"
2463 if test -n "$GMSGFMT"; then
2464 echo "$ac_t""$GMSGFMT" 1>&6
2466 echo "$ac_t""no" 1>&6
2469 # Extract the first word of "xgettext", so it can be a program name with args.
2470 set dummy xgettext
; ac_word
=$2
2471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_word" >&5
2473 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2478 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2481 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2482 for ac_dir
in $PATH; do
2483 test -z "$ac_dir" && ac_dir
=.
2484 if test -f $ac_dir/$ac_word; then
2485 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2486 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2492 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2496 XGETTEXT
="$ac_cv_path_XGETTEXT"
2497 if test -n "$XGETTEXT"; then
2498 echo "$ac_t""$XGETTEXT" 1>&6
2500 echo "$ac_t""no" 1>&6
2503 cat > conftest.
$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2508 extern int _nl_msg_cat_cntr;
2509 return _nl_msg_cat_cntr
2512 if { (eval echo configure
:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2529 echo "$ac_t""no" 1>&6
2534 if test "$CATOBJEXT" = "NONE"; then
2535 nls_cv_use_gnu_gettext
=yes
2539 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2540 INTLOBJS
="\$(GETTOBJS)"
2541 # Extract the first word of "msgfmt", so it can be a program name with args.
2542 set dummy msgfmt
; ac_word
=$2
2543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_word" >&5
2545 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2550 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2554 for ac_dir
in $PATH; do
2555 test -z "$ac_dir" && ac_dir
=.
2556 if test -f $ac_dir/$ac_word; then
2557 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2558 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2564 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2568 MSGFMT
="$ac_cv_path_MSGFMT"
2569 if test -n "$MSGFMT"; then
2570 echo "$ac_t""$MSGFMT" 1>&6
2572 echo "$ac_t""no" 1>&6
2575 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2576 set dummy gmsgfmt
; ac_word
=$2
2577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_word" >&5
2579 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2584 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2587 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2592 for ac_dir
in $ac_dummy; do
2593 test -z "$ac_dir" && ac_dir
=.
2594 if test -f $ac_dir/$ac_word; then
2595 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2600 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2604 GMSGFMT
="$ac_cv_path_GMSGFMT"
2605 if test -n "$GMSGFMT"; then
2606 echo "$ac_t""$GMSGFMT" 1>&6
2608 echo "$ac_t""no" 1>&6
2611 # Extract the first word of "xgettext", so it can be a program name with args.
2612 set dummy xgettext
; ac_word
=$2
2613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_word" >&5
2615 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2620 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2624 for ac_dir
in $PATH; do
2625 test -z "$ac_dir" && ac_dir
=.
2626 if test -f $ac_dir/$ac_word; then
2627 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2628 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2634 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2638 XGETTEXT
="$ac_cv_path_XGETTEXT"
2639 if test -n "$XGETTEXT"; then
2640 echo "$ac_t""$XGETTEXT" 1>&6
2642 echo "$ac_t""no" 1>&6
2646 USE_INCLUDED_LIBINTL
=yes
2650 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2652 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2653 nls_cv_header_intl
=libintl.h
2654 nls_cv_header_libgt
=libgettext.h
2657 if test "$XGETTEXT" != ":"; then
2658 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2661 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2666 # We need to process the po/ directory.
2670 nls_cv_header_intl
=libintl.h
2671 nls_cv_header_libgt
=libgettext.h
2674 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2675 # because some of the sources are only built for this goal.
2676 if test "$PACKAGE" = gettext; then
2678 USE_INCLUDED_LIBINTL
=yes
2681 for lang
in $ALL_LINGUAS; do
2682 GMOFILES
="$GMOFILES $lang.gmo"
2683 POFILES
="$POFILES $lang.po"
2699 if test "x$CATOBJEXT" != "x"; then
2700 if test "x$ALL_LINGUAS" = "x"; then
2703 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2704 echo "configure:2705: checking for catalogs to be installed" >&5
2706 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2707 case "$ALL_LINGUAS" in
2708 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2711 LINGUAS
=$NEW_LINGUAS
2712 echo "$ac_t""$LINGUAS" 1>&6
2715 if test -n "$LINGUAS"; then
2716 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2720 if test $ac_cv_header_locale_h = yes; then
2721 INCLUDE_LOCALE_H
="#include <locale.h>"
2724 /* The system does not provide the header <locale.h>. Take care yourself. */"
2728 if test -f $srcdir/po2tbl.
sed.
in; then
2729 if test "$CATOBJEXT" = ".cat"; then
2730 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2731 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2732 echo "configure:2733: checking for linux/version.h" >&5
2733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 cat > conftest.
$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <linux/version.h>
2741 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2742 { (eval echo configure
:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2743 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2744 if test -z "$ac_err"; then
2746 eval "ac_cv_header_$ac_safe=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.
$ac_ext >&5
2752 eval "ac_cv_header_$ac_safe=no"
2756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2757 echo "$ac_t""yes" 1>&6
2760 echo "$ac_t""no" 1>&6
2765 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2767 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2768 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2771 if test "$PACKAGE" = "gettext"; then
2781 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2787 if test -d $srcdir/po
; then
2788 test -d po || mkdir po
2789 if test "x$srcdir" != "x."; then
2790 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2791 posrcprefix
="$srcdir/"
2793 posrcprefix
="../$srcdir/"
2799 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2800 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2816 configdirs
="doc testsuite"
2818 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2819 if test "${enable_multi_ice+set}" = set; then
2820 enableval
="$enable_multi_ice"
2821 case "${enableval}" in
2822 yes ) enable_multi_ice
="yes" ;;
2823 no
) enable_multi_ice
="no" ;;
2824 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2830 if test "${enable_multi_ice}" = "yes"; then
2831 configdirs
="${configdirs} multi-ice"
2835 .
${srcdir}/configure.
host
2837 .
${srcdir}/configure.tgt
2839 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2843 .
${srcdir}/..
/bfd
/config.bfd
2845 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2847 if test x
"${targ_archs}" != x
; then
2848 cat >> confdefs.h
<<EOF
2849 #define DEFAULT_BFD_ARCH ${targ_archs}
2853 if test x
"${targ_defvec}" != x
; then
2854 cat >> confdefs.h
<<EOF
2855 #define DEFAULT_BFD_VEC ${targ_defvec}
2860 for ac_prog
in mawk gawk nawk
awk
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy
$ac_prog; ac_word
=$2
2864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_word" >&5
2866 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2872 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2874 for ac_dir
in $ac_dummy; do
2875 test -z "$ac_dir" && ac_dir
=.
2876 if test -f $ac_dir/$ac_word; then
2877 ac_cv_prog_AWK
="$ac_prog"
2884 AWK
="$ac_cv_prog_AWK"
2885 if test -n "$AWK"; then
2886 echo "$ac_t""$AWK" 1>&6
2888 echo "$ac_t""no" 1>&6
2891 test -n "$AWK" && break
2894 # Find a good install program. We prefer a C program (faster),
2895 # so one script is as good as another. But avoid the broken or
2896 # incompatible versions:
2897 # SysV /etc/install, /usr/sbin/install
2898 # SunOS /usr/etc/install
2899 # IRIX /sbin/install
2901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904 # ./install, which can be erroneously created by make from ./install.sh.
2905 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2906 echo "configure:2907: checking for a BSD compatible install" >&5
2907 if test -z "$INSTALL"; then
2908 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2912 for ac_dir
in $PATH; do
2913 # Account for people who put trailing slashes in PATH elements.
2915 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2917 # OSF1 and SCO ODT 3.0 have their own names for install.
2918 # Don't use installbsd from OSF since it installs stuff as root
2920 for ac_prog
in ginstall scoinst
install; do
2921 if test -f $ac_dir/$ac_prog; then
2922 if test $ac_prog = install &&
2923 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2924 # AIX install. It has an incompatible calling convention.
2927 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2938 if test "${ac_cv_path_install+set}" = set; then
2939 INSTALL
="$ac_cv_path_install"
2941 # As a last resort, use the slow shell script. We don't cache a
2942 # path for INSTALL within a source directory, because that will
2943 # break other packages using the cache if that directory is
2944 # removed, or if the path is relative.
2945 INSTALL
="$ac_install_sh"
2948 echo "$ac_t""$INSTALL" 1>&6
2950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2951 # It thinks the first close brace ends the variable substitution.
2952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2956 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2958 if test $host != $build; then
2959 ac_tool_prefix
=${host_alias}-
2964 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2965 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2967 echo "configure:2968: checking for $ac_word" >&5
2968 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 if test -n "$AR"; then
2972 ac_cv_prog_AR
="$AR" # Let the user override the test.
2974 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2976 for ac_dir
in $ac_dummy; do
2977 test -z "$ac_dir" && ac_dir
=.
2978 if test -f $ac_dir/$ac_word; then
2979 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2984 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2988 if test -n "$AR"; then
2989 echo "$ac_t""$AR" 1>&6
2991 echo "$ac_t""no" 1>&6
2996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2997 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2999 echo "configure:3000: checking for $ac_word" >&5
3000 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 if test -n "$RANLIB"; then
3004 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3006 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3008 for ac_dir
in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir
=.
3010 if test -f $ac_dir/$ac_word; then
3011 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3018 RANLIB
="$ac_cv_prog_RANLIB"
3019 if test -n "$RANLIB"; then
3020 echo "$ac_t""$RANLIB" 1>&6
3022 echo "$ac_t""no" 1>&6
3026 if test -z "$ac_cv_prog_RANLIB"; then
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "ranlib", so it can be a program name with args.
3029 set dummy ranlib
; ac_word
=$2
3030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3031 echo "configure:3032: checking for $ac_word" >&5
3032 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 if test -n "$RANLIB"; then
3036 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3038 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3040 for ac_dir
in $ac_dummy; do
3041 test -z "$ac_dir" && ac_dir
=.
3042 if test -f $ac_dir/$ac_word; then
3043 ac_cv_prog_RANLIB
="ranlib"
3048 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3051 RANLIB
="$ac_cv_prog_RANLIB"
3052 if test -n "$RANLIB"; then
3053 echo "$ac_t""$RANLIB" 1>&6
3055 echo "$ac_t""no" 1>&6
3063 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3064 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_word" >&5
3067 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 if test -n "$DLLTOOL"; then
3071 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3075 for ac_dir
in $ac_dummy; do
3076 test -z "$ac_dir" && ac_dir
=.
3077 if test -f $ac_dir/$ac_word; then
3078 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3083 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3086 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3087 if test -n "$DLLTOOL"; then
3088 echo "$ac_t""$DLLTOOL" 1>&6
3090 echo "$ac_t""no" 1>&6
3095 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3096 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3098 echo "configure:3099: checking for $ac_word" >&5
3099 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 if test -n "$WINDRES"; then
3103 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3105 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3107 for ac_dir
in $ac_dummy; do
3108 test -z "$ac_dir" && ac_dir
=.
3109 if test -f $ac_dir/$ac_word; then
3110 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3115 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3118 WINDRES
="$ac_cv_prog_WINDRES"
3119 if test -n "$WINDRES"; then
3120 echo "$ac_t""$WINDRES" 1>&6
3122 echo "$ac_t""no" 1>&6
3127 for ac_prog
in 'bison -y' byacc
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy
$ac_prog; ac_word
=$2
3131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_word" >&5
3133 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 if test -n "$YACC"; then
3137 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3141 for ac_dir
in $ac_dummy; do
3142 test -z "$ac_dir" && ac_dir
=.
3143 if test -f $ac_dir/$ac_word; then
3144 ac_cv_prog_YACC
="$ac_prog"
3151 YACC
="$ac_cv_prog_YACC"
3152 if test -n "$YACC"; then
3153 echo "$ac_t""$YACC" 1>&6
3155 echo "$ac_t""no" 1>&6
3158 test -n "$YACC" && break
3160 test -n "$YACC" || YACC
="yacc"
3163 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3164 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3166 echo "configure:3167: checking for $ac_word" >&5
3167 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 if test -n "$MIG"; then
3171 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3175 for ac_dir
in $ac_dummy; do
3176 test -z "$ac_dir" && ac_dir
=.
3177 if test -f $ac_dir/$ac_word; then
3178 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3183 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3186 MIG
="$ac_cv_prog_MIG"
3187 if test -n "$MIG"; then
3188 echo "$ac_t""$MIG" 1>&6
3190 echo "$ac_t""no" 1>&6
3196 if test "$program_transform_name" = s
,x
,x
,; then
3197 program_transform_name
=
3199 # Double any \ or $. echo might interpret backslashes.
3200 cat <<\EOF_SED
> conftestsed
3201 s
,\\,\\\\,g
; s
,\$
,$$
,g
3203 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3206 test "$program_prefix" != NONE
&&
3207 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3208 # Use a double $ so make ignores it.
3209 test "$program_suffix" != NONE
&&
3210 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3212 # sed with no file args requires a program.
3213 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3216 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3217 echo "configure:3218: checking return type of signal handlers" >&5
3218 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 cat > conftest.
$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 #include <sys/types.h>
3230 extern "C" void (*signal (int, void (*)(int)))(int);
3232 void (*signal ()) ();
3239 if { (eval echo configure
:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 ac_cv_type_signal
=void
3243 echo "configure: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3246 ac_cv_type_signal
=int
3251 echo "$ac_t""$ac_cv_type_signal" 1>&6
3252 cat >> confdefs.h
<<EOF
3253 #define RETSIGTYPE $ac_cv_type_signal
3258 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3259 echo "configure:3260: checking for ANSI C header files" >&5
3260 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 cat > conftest.
$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3271 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3272 { (eval echo configure
:3273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3273 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3274 if test -z "$ac_err"; then
3276 ac_cv_header_stdc
=yes
3279 echo "configure: failed program was:" >&5
3280 cat conftest.
$ac_ext >&5
3282 ac_cv_header_stdc
=no
3286 if test $ac_cv_header_stdc = yes; then
3287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294 egrep "memchr" >/dev
/null
2>&1; then
3298 ac_cv_header_stdc
=no
3304 if test $ac_cv_header_stdc = yes; then
3305 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then
3316 ac_cv_header_stdc
=no
3322 if test $ac_cv_header_stdc = yes; then
3323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3324 if test "$cross_compiling" = yes; then
3327 cat > conftest.
$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3331 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3332 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3334 int main () { int i; for (i = 0; i < 256; i++)
3335 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3339 if { (eval echo configure
:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3343 echo "configure: failed program was:" >&5
3344 cat conftest.
$ac_ext >&5
3346 ac_cv_header_stdc
=no
3354 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3355 if test $ac_cv_header_stdc = yes; then
3356 cat >> confdefs.h
<<\EOF
3357 #define STDC_HEADERS 1
3364 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3365 cat >> confdefs.h
<<\EOF
3366 #define _MSE_INT_H 1
3371 for ac_hdr
in ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
3372 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3373 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3374 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3375 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3376 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3377 dirent.h sys
/ndir.h sys
/dir.h ndir.h \
3378 curses.h ncurses.h \
3381 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3383 echo "configure:3384: checking for $ac_hdr" >&5
3384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.
$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3393 { (eval echo configure
:3394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3394 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3395 if test -z "$ac_err"; then
3397 eval "ac_cv_header_$ac_safe=yes"
3400 echo "configure: failed program was:" >&5
3401 cat conftest.
$ac_ext >&5
3403 eval "ac_cv_header_$ac_safe=no"
3407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3410 cat >> confdefs.h
<<EOF
3411 #define $ac_tr_hdr 1
3415 echo "$ac_t""no" 1>&6
3419 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3420 echo "configure:3421: checking whether stat file-mode macros are broken" >&5
3421 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 cat > conftest.
$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3430 #if defined(S_ISBLK) && defined(S_IFDIR)
3431 # if S_ISBLK (S_IFDIR)
3436 #if defined(S_ISBLK) && defined(S_IFCHR)
3437 # if S_ISBLK (S_IFCHR)
3442 #if defined(S_ISLNK) && defined(S_IFREG)
3443 # if S_ISLNK (S_IFREG)
3448 #if defined(S_ISSOCK) && defined(S_IFREG)
3449 # if S_ISSOCK (S_IFREG)
3455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3456 egrep "You lose" >/dev
/null
2>&1; then
3458 ac_cv_header_stat_broken
=yes
3461 ac_cv_header_stat_broken
=no
3467 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3468 if test $ac_cv_header_stat_broken = yes; then
3469 cat >> confdefs.h
<<\EOF
3470 #define STAT_MACROS_BROKEN 1
3476 echo $ac_n "checking for working const""... $ac_c" 1>&6
3477 echo "configure:3478: checking for working const" >&5
3478 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 cat > conftest.
$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3487 /* Ultrix mips cc rejects this. */
3488 typedef int charset[2]; const charset x;
3489 /* SunOS 4.1.1 cc rejects this. */
3490 char const *const *ccp;
3492 /* NEC SVR4.0.2 mips cc rejects this. */
3493 struct point {int x, y;};
3494 static struct point const zero = {0,0};
3495 /* AIX XL C 1.02.0.0 rejects this.
3496 It does not let you subtract one const X* pointer from another in an arm
3497 of an if-expression whose if-part is not a constant expression */
3498 const char *g = "string";
3499 ccp = &g + (g ? g-g : 0);
3500 /* HPUX 7.0 cc rejects these. */
3503 ccp = (char const *const *) p;
3504 { /* SCO 3.2v4 cc rejects this. */
3506 char const *s = 0 ? (char *) 0 : (char const *) 0;
3510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3512 const int *foo = &x[0];
3515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3516 typedef const int *iptr;
3520 { /* AIX XL C 1.02.0.0 rejects this saying
3521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3522 struct s { int j; const int *ap[3]; };
3523 struct s *b; b->j = 5;
3525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3531 if { (eval echo configure
:3532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 echo "configure: failed program was:" >&5
3536 cat conftest.
$ac_ext >&5
3543 echo "$ac_t""$ac_cv_c_const" 1>&6
3544 if test $ac_cv_c_const = no
; then
3545 cat >> confdefs.h
<<\EOF
3552 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_func" >&5
3556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 cat > conftest.
$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* System header to define __stub macros and hopefully few prototypes,
3563 which can conflict with char $ac_func(); below. */
3565 /* Override any gcc2 internal prototype to avoid an error. */
3566 /* We use char because int might match the return type of a gcc2
3567 builtin and then its argument prototype would still apply. */
3572 /* The GNU C library defines this for functions which it implements
3573 to always fail with ENOSYS. Some functions are actually named
3574 something starting with __ and the normal name is an alias. */
3575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3583 if { (eval echo configure
:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3585 eval "ac_cv_func_$ac_func=yes"
3587 echo "configure: failed program was:" >&5
3588 cat conftest.
$ac_ext >&5
3590 eval "ac_cv_func_$ac_func=no"
3595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3596 echo "$ac_t""yes" 1>&6
3597 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3598 cat >> confdefs.h
<<EOF
3599 #define $ac_tr_func 1
3603 echo "$ac_t""no" 1>&6
3607 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3608 echo "configure:3609: checking for pid_t" >&5
3609 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.
$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <sys/types.h>
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3624 ac_cv_type_pid_t
=yes
3632 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3633 if test $ac_cv_type_pid_t = no
; then
3634 cat >> confdefs.h
<<\EOF
3640 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3641 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3642 echo "configure:3643: checking for vfork.h" >&5
3643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.
$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3651 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3652 { (eval echo configure
:3653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3653 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3654 if test -z "$ac_err"; then
3656 eval "ac_cv_header_$ac_safe=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 eval "ac_cv_header_$ac_safe=no"
3666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 cat >> confdefs.h
<<\EOF
3669 #define HAVE_VFORK_H 1
3673 echo "$ac_t""no" 1>&6
3676 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3677 echo "configure:3678: checking for working vfork" >&5
3678 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 if test "$cross_compiling" = yes; then
3682 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3683 echo "configure:3684: checking for vfork" >&5
3684 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.
$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* System header to define __stub macros and hopefully few prototypes,
3691 which can conflict with char vfork(); below. */
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3700 /* The GNU C library defines this for functions which it implements
3701 to always fail with ENOSYS. Some functions are actually named
3702 something starting with __ and the normal name is an alias. */
3703 #if defined (__stub_vfork) || defined (__stub___vfork)
3711 if { (eval echo configure
:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3713 eval "ac_cv_func_vfork=yes"
3715 echo "configure: failed program was:" >&5
3716 cat conftest.
$ac_ext >&5
3718 eval "ac_cv_func_vfork=no"
3723 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3727 echo "$ac_t""no" 1>&6
3730 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3732 cat > conftest.
$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* Thanks to Paul Eggert for this test. */
3737 #include <sys/types.h>
3738 #include <sys/stat.h>
3739 #ifdef HAVE_UNISTD_H
3745 /* On some sparc systems, changes by the child to local and incoming
3746 argument registers are propagated back to the parent.
3747 The compiler is told about this with #include <vfork.h>,
3748 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3749 Test for this by using a static variable whose address
3750 is put into a register that is clobbered by the vfork. */
3753 sparc_address_test (int arg)
3755 sparc_address_test (arg) int arg;
3773 pid_t parent = getpid ();
3776 sparc_address_test ();
3781 /* Here is another test for sparc vfork register problems.
3782 This test uses lots of local variables, at least
3783 as many local variables as main has allocated so far
3784 including compiler temporaries. 4 locals are enough for
3785 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3786 A buggy compiler should reuse the register of parent
3787 for one of the local variables, since it will think that
3788 parent can't possibly be used any more in this routine.
3789 Assigning to the local variable will thus munge parent
3790 in the parent process. */
3792 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3793 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3794 /* Convince the compiler that p..p7 are live; otherwise, it might
3795 use the same hardware register for all 8 local variables. */
3796 if (p != p1 || p != p2 || p != p3 || p != p4
3797 || p != p5 || p != p6 || p != p7)
3800 /* On some systems (e.g. IRIX 3.3),
3801 vfork doesn't separate parent from child file descriptors.
3802 If the child closes a descriptor before it execs or exits,
3803 this munges the parent's descriptor as well.
3804 Test for this by closing stdout in the child. */
3805 _exit(close(fileno(stdout)) != 0);
3810 while (wait(&status) != child)
3813 /* Was there some problem with vforking? */
3816 /* Did the child fail? (This shouldn't happen.) */
3819 /* Did the vfork/compiler bug occur? */
3820 || parent != getpid()
3822 /* Did the file descriptor bug occur? */
3823 || fstat(fileno(stdout), &st) != 0
3828 if { (eval echo configure
:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3830 ac_cv_func_vfork_works
=yes
3832 echo "configure: failed program was:" >&5
3833 cat conftest.
$ac_ext >&5
3835 ac_cv_func_vfork_works
=no
3842 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3843 if test $ac_cv_func_vfork_works = no
; then
3844 cat >> confdefs.h
<<\EOF
3850 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3851 # for constant arguments. Useless!
3852 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3853 echo "configure:3854: checking for working alloca.h" >&5
3854 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 cat > conftest.
$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3862 char *p = alloca(2 * sizeof(int));
3865 if { (eval echo configure
:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3867 ac_cv_header_alloca_h
=yes
3869 echo "configure: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3872 ac_cv_header_alloca_h
=no
3877 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3878 if test $ac_cv_header_alloca_h = yes; then
3879 cat >> confdefs.h
<<\EOF
3880 #define HAVE_ALLOCA_H 1
3885 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3886 echo "configure:3887: checking for alloca" >&5
3887 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 cat > conftest.
$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3895 # define alloca __builtin_alloca
3898 # include <malloc.h>
3899 # define alloca _alloca
3902 # include <alloca.h>
3907 # ifndef alloca /* predefined by HP cc +Olibcalls */
3916 char *p = (char *) alloca(1);
3919 if { (eval echo configure
:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3921 ac_cv_func_alloca_works
=yes
3923 echo "configure: failed program was:" >&5
3924 cat conftest.
$ac_ext >&5
3926 ac_cv_func_alloca_works
=no
3931 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3932 if test $ac_cv_func_alloca_works = yes; then
3933 cat >> confdefs.h
<<\EOF
3934 #define HAVE_ALLOCA 1
3939 if test $ac_cv_func_alloca_works = no
; then
3940 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3941 # that cause trouble. Some versions do not even contain alloca or
3942 # contain a buggy version. If you still want to use their alloca,
3943 # use ar to extract alloca.o from them instead of compiling alloca.c.
3944 ALLOCA
=alloca.
${ac_objext}
3945 cat >> confdefs.h
<<\EOF
3950 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3951 echo "configure:3952: checking whether alloca needs Cray hooks" >&5
3952 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 #if defined(CRAY) && ! defined(CRAY2)
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "webecray" >/dev
/null
2>&1; then
3977 echo "$ac_t""$ac_cv_os_cray" 1>&6
3978 if test $ac_cv_os_cray = yes; then
3979 for ac_func
in _getb67 GETB67 getb67
; do
3980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3981 echo "configure:3982: checking for $ac_func" >&5
3982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 /* System header to define __stub macros and hopefully few prototypes,
3989 which can conflict with char $ac_func(); below. */
3991 /* Override any gcc2 internal prototype to avoid an error. */
3992 /* We use char because int might match the return type of a gcc2
3993 builtin and then its argument prototype would still apply. */
3998 /* The GNU C library defines this for functions which it implements
3999 to always fail with ENOSYS. Some functions are actually named
4000 something starting with __ and the normal name is an alias. */
4001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4009 if { (eval echo configure
:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4011 eval "ac_cv_func_$ac_func=yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 eval "ac_cv_func_$ac_func=no"
4021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4022 echo "$ac_t""yes" 1>&6
4023 cat >> confdefs.h
<<EOF
4024 #define CRAY_STACKSEG_END $ac_func
4029 echo "$ac_t""no" 1>&6
4035 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4036 echo "configure:4037: checking stack direction for C alloca" >&5
4037 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 if test "$cross_compiling" = yes; then
4041 ac_cv_c_stack_direction
=0
4043 cat > conftest.
$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 find_stack_direction ()
4048 static char *addr = 0;
4053 return find_stack_direction ();
4056 return (&dummy > addr) ? 1 : -1;
4060 exit (find_stack_direction() < 0);
4063 if { (eval echo configure
:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4065 ac_cv_c_stack_direction
=1
4067 echo "configure: failed program was:" >&5
4068 cat conftest.
$ac_ext >&5
4070 ac_cv_c_stack_direction
=-1
4077 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4078 cat >> confdefs.h
<<EOF
4079 #define STACK_DIRECTION $ac_cv_c_stack_direction
4085 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4086 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4087 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4088 echo "configure:4089: checking for r_fs in struct reg" >&5
4089 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 cat > conftest.
$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 #include <machine/reg.h>
4097 struct reg r; r.r_fs;
4100 if { (eval echo configure
:4101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4102 gdb_cv_struct_reg_r_fs
=yes
4104 echo "configure: failed program was:" >&5
4105 cat conftest.
$ac_ext >&5
4107 gdb_cv_struct_reg_r_fs
=no
4112 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4113 if test $gdb_cv_struct_reg_r_fs = yes; then
4114 cat >> confdefs.h
<<\EOF
4115 #define HAVE_STRUCT_REG_R_FS 1
4119 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4120 echo "configure:4121: checking for r_gs in struct reg" >&5
4121 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 cat > conftest.
$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 #include <machine/reg.h>
4129 struct reg r; r.r_gs;
4132 if { (eval echo configure
:4133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4134 gdb_cv_struct_reg_r_gs
=yes
4136 echo "configure: failed program was:" >&5
4137 cat conftest.
$ac_ext >&5
4139 gdb_cv_struct_reg_r_gs
=no
4144 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4145 if test $gdb_cv_struct_reg_r_gs = yes; then
4146 cat >> confdefs.h
<<\EOF
4147 #define HAVE_STRUCT_REG_R_GS 1
4152 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4153 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4154 echo "configure:4155: checking for PTRACE_GETREGS" >&5
4155 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.
$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4161 #include <sys/ptrace.h>
4166 if { (eval echo configure
:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 gdb_cv_have_ptrace_getregs
=yes
4170 echo "configure: failed program was:" >&5
4171 cat conftest.
$ac_ext >&5
4173 gdb_cv_have_ptrace_getregs
=no
4178 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4179 if test $gdb_cv_have_ptrace_getregs = yes; then
4180 cat >> confdefs.h
<<\EOF
4181 #define HAVE_PTRACE_GETREGS 1
4186 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4187 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4188 echo "configure:4189: checking for PTRACE_GETFPXREGS" >&5
4189 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.
$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 #include <sys/ptrace.h>
4200 if { (eval echo configure
:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 gdb_cv_have_ptrace_getfpxregs
=yes
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 gdb_cv_have_ptrace_getfpxregs
=no
4212 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4213 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4214 cat >> confdefs.h
<<\EOF
4215 #define HAVE_PTRACE_GETFPXREGS 1
4220 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4221 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4222 echo "configure:4223: checking for PT_GETDBREGS" >&5
4223 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 cat > conftest.
$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 #include <sys/types.h>
4230 #include <sys/ptrace.h>
4235 if { (eval echo configure
:4236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4237 gdb_cv_have_pt_getdbregs
=yes
4239 echo "configure: failed program was:" >&5
4240 cat conftest.
$ac_ext >&5
4242 gdb_cv_have_pt_getdbregs
=no
4247 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4248 if test $gdb_cv_have_pt_getdbregs = yes; then
4249 cat >> confdefs.h
<<\EOF
4250 #define HAVE_PT_GETDBREGS 1
4256 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4257 echo "configure:4258: checking for socketpair in -lsocket" >&5
4258 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 ac_save_LIBS
="$LIBS"
4263 LIBS
="-lsocket $LIBS"
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 /* We use char because int might match the return type of a gcc2
4269 builtin and then its argument prototype would still apply. */
4276 if { (eval echo configure
:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4278 eval "ac_cv_lib_$ac_lib_var=yes"
4280 echo "configure: failed program was:" >&5
4281 cat conftest.
$ac_ext >&5
4283 eval "ac_cv_lib_$ac_lib_var=no"
4286 LIBS
="$ac_save_LIBS"
4289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4290 echo "$ac_t""yes" 1>&6
4291 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4293 cat >> confdefs.h
<<EOF
4294 #define $ac_tr_lib 1
4297 LIBS
="-lsocket $LIBS"
4300 echo "$ac_t""no" 1>&6
4303 for ac_func
in socketpair
4305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4306 echo "configure:4307: checking for $ac_func" >&5
4307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 cat > conftest.
$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* System header to define __stub macros and hopefully few prototypes,
4314 which can conflict with char $ac_func(); below. */
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4323 /* The GNU C library defines this for functions which it implements
4324 to always fail with ENOSYS. Some functions are actually named
4325 something starting with __ and the normal name is an alias. */
4326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4334 if { (eval echo configure
:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4336 eval "ac_cv_func_$ac_func=yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 eval "ac_cv_func_$ac_func=no"
4346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4347 echo "$ac_t""yes" 1>&6
4348 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4349 cat >> confdefs.h
<<EOF
4350 #define $ac_tr_func 1
4354 echo "$ac_t""no" 1>&6
4360 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4361 echo "configure:4362: checking whether malloc must be declared" >&5
4362 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 cat > conftest.
$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4370 #ifdef HAVE_STRING_H
4373 #ifdef HAVE_STRINGS_H
4374 #include <strings.h>
4377 #ifdef HAVE_STDLIB_H
4380 #ifdef HAVE_UNISTD_H
4384 char *(*pfn) = (char *(*)) malloc
4387 if { (eval echo configure
:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4389 bfd_cv_decl_needed_malloc
=no
4391 echo "configure: failed program was:" >&5
4392 cat conftest.
$ac_ext >&5
4394 bfd_cv_decl_needed_malloc
=yes
4399 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4400 if test $bfd_cv_decl_needed_malloc = yes; then
4401 cat >> confdefs.h
<<\EOF
4402 #define NEED_DECLARATION_MALLOC 1
4407 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether realloc must be declared" >&5
4409 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 cat > conftest.
$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4417 #ifdef HAVE_STRING_H
4420 #ifdef HAVE_STRINGS_H
4421 #include <strings.h>
4424 #ifdef HAVE_STDLIB_H
4427 #ifdef HAVE_UNISTD_H
4431 char *(*pfn) = (char *(*)) realloc
4434 if { (eval echo configure
:4435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4436 bfd_cv_decl_needed_realloc
=no
4438 echo "configure: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4441 bfd_cv_decl_needed_realloc
=yes
4446 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4447 if test $bfd_cv_decl_needed_realloc = yes; then
4448 cat >> confdefs.h
<<\EOF
4449 #define NEED_DECLARATION_REALLOC 1
4454 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4455 echo "configure:4456: checking whether free must be declared" >&5
4456 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.
$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4464 #ifdef HAVE_STRING_H
4467 #ifdef HAVE_STRINGS_H
4468 #include <strings.h>
4471 #ifdef HAVE_STDLIB_H
4474 #ifdef HAVE_UNISTD_H
4478 char *(*pfn) = (char *(*)) free
4481 if { (eval echo configure
:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4483 bfd_cv_decl_needed_free
=no
4485 echo "configure: failed program was:" >&5
4486 cat conftest.
$ac_ext >&5
4488 bfd_cv_decl_needed_free
=yes
4493 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4494 if test $bfd_cv_decl_needed_free = yes; then
4495 cat >> confdefs.h
<<\EOF
4496 #define NEED_DECLARATION_FREE 1
4501 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4502 echo "configure:4503: checking whether strerror must be declared" >&5
4503 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 cat > conftest.
$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4511 #ifdef HAVE_STRING_H
4514 #ifdef HAVE_STRINGS_H
4515 #include <strings.h>
4518 #ifdef HAVE_STDLIB_H
4521 #ifdef HAVE_UNISTD_H
4525 char *(*pfn) = (char *(*)) strerror
4528 if { (eval echo configure
:4529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4530 bfd_cv_decl_needed_strerror
=no
4532 echo "configure: failed program was:" >&5
4533 cat conftest.
$ac_ext >&5
4535 bfd_cv_decl_needed_strerror
=yes
4540 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4541 if test $bfd_cv_decl_needed_strerror = yes; then
4542 cat >> confdefs.h
<<\EOF
4543 #define NEED_DECLARATION_STRERROR 1
4548 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4549 echo "configure:4550: checking whether strdup must be declared" >&5
4550 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4558 #ifdef HAVE_STRING_H
4561 #ifdef HAVE_STRINGS_H
4562 #include <strings.h>
4565 #ifdef HAVE_STDLIB_H
4568 #ifdef HAVE_UNISTD_H
4572 char *(*pfn) = (char *(*)) strdup
4575 if { (eval echo configure
:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 bfd_cv_decl_needed_strdup
=no
4579 echo "configure: failed program was:" >&5
4580 cat conftest.
$ac_ext >&5
4582 bfd_cv_decl_needed_strdup
=yes
4587 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4588 if test $bfd_cv_decl_needed_strdup = yes; then
4589 cat >> confdefs.h
<<\EOF
4590 #define NEED_DECLARATION_STRDUP 1
4595 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4596 echo "configure:4597: checking whether strstr must be declared" >&5
4597 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 cat > conftest.
$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4605 #ifdef HAVE_STRING_H
4608 #ifdef HAVE_STRINGS_H
4609 #include <strings.h>
4612 #ifdef HAVE_STDLIB_H
4615 #ifdef HAVE_UNISTD_H
4619 char *(*pfn) = (char *(*)) strstr
4622 if { (eval echo configure
:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 bfd_cv_decl_needed_strstr
=no
4626 echo "configure: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4629 bfd_cv_decl_needed_strstr
=yes
4634 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4635 if test $bfd_cv_decl_needed_strstr = yes; then
4636 cat >> confdefs.h
<<\EOF
4637 #define NEED_DECLARATION_STRSTR 1
4644 # The following save_state_t checkery is only necessary for HPUX
4645 # versions earlier than 10.20. When those fade from memory, this
4646 # could be expunged. --jsm 1999-03-22
4648 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4649 echo "configure:4650: checking for HPUX save_state structure" >&5
4650 cat > conftest.
$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #include <machine/save_state.h>
4655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4656 egrep "save_state_t" >/dev
/null
2>&1; then
4658 gdb_cv_hpux_savestate
=yes
4661 gdb_cv_hpux_savestate
=no
4665 cat > conftest.
$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 #include <machine/save_state.h>
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 egrep "ss_wide" >/dev
/null
2>&1; then
4673 gdb_cv_hpux_sswide
=yes
4676 gdb_cv_hpux_sswide
=no
4680 if test $gdb_cv_hpux_savestate = yes
4682 cat >> confdefs.h
<<\EOF
4683 #define HAVE_STRUCT_SAVE_STATE_T 1
4687 if test $gdb_cv_hpux_sswide = yes
4689 cat >> confdefs.h
<<\EOF
4690 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4694 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4697 # If we are configured native on GNU/Linux, work around problems with
4699 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4701 if test "${target}" = "${host}"; then
4704 cat >> confdefs.h
<<\EOF
4705 #define START_INFERIOR_TRAPS_EXPECTED 2
4708 cat >> confdefs.h
<<\EOF
4709 #define sys_quotactl 1
4714 cat >> confdefs.h
<<\EOF
4715 #define NEW_PROC_API 1
4719 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4720 cat >> confdefs.h
<<\EOF
4721 #define NEW_PROC_API 1
4726 cat >> confdefs.h
<<\EOF
4727 #define NEW_PROC_API 1
4734 if test "$ac_cv_header_sys_procfs_h" = yes; then
4735 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4736 echo "configure:4737: checking for pstatus_t in sys/procfs.h" >&5
4737 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.
$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4745 #include <sys/procfs.h>
4750 if { (eval echo configure
:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4752 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4754 echo "configure: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4757 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4763 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4764 cat >> confdefs.h
<<\EOF
4765 #define HAVE_PSTATUS_T 1
4769 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4771 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4772 echo "configure:4773: checking for prrun_t in sys/procfs.h" >&5
4773 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.
$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4781 #include <sys/procfs.h>
4786 if { (eval echo configure
:4787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4788 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4790 echo "configure: failed program was:" >&5
4791 cat conftest.
$ac_ext >&5
4793 bfd_cv_have_sys_procfs_type_prrun_t
=no
4799 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4800 cat >> confdefs.h
<<\EOF
4801 #define HAVE_PRRUN_T 1
4805 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4807 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4808 echo "configure:4809: checking for gregset_t in sys/procfs.h" >&5
4809 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 cat > conftest.
$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4817 #include <sys/procfs.h>
4822 if { (eval echo configure
:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4824 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4826 echo "configure: failed program was:" >&5
4827 cat conftest.
$ac_ext >&5
4829 bfd_cv_have_sys_procfs_type_gregset_t
=no
4835 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4836 cat >> confdefs.h
<<\EOF
4837 #define HAVE_GREGSET_T 1
4841 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4843 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4844 echo "configure:4845: checking for fpregset_t in sys/procfs.h" >&5
4845 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4848 cat > conftest.
$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4853 #include <sys/procfs.h>
4858 if { (eval echo configure
:4859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4860 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4862 echo "configure: failed program was:" >&5
4863 cat conftest.
$ac_ext >&5
4865 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4871 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4872 cat >> confdefs.h
<<\EOF
4873 #define HAVE_FPREGSET_T 1
4877 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4879 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4880 echo "configure:4881: checking for prgregset_t in sys/procfs.h" >&5
4881 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4884 cat > conftest.
$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4889 #include <sys/procfs.h>
4894 if { (eval echo configure
:4895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4896 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4898 echo "configure: failed program was:" >&5
4899 cat conftest.
$ac_ext >&5
4901 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4907 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4908 cat >> confdefs.h
<<\EOF
4909 #define HAVE_PRGREGSET_T 1
4913 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4915 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4916 echo "configure:4917: checking for prfpregset_t in sys/procfs.h" >&5
4917 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.
$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4925 #include <sys/procfs.h>
4930 if { (eval echo configure
:4931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4932 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4934 echo "configure: failed program was:" >&5
4935 cat conftest.
$ac_ext >&5
4937 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4943 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4944 cat >> confdefs.h
<<\EOF
4945 #define HAVE_PRFPREGSET_T 1
4949 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4951 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
4952 echo "configure:4953: checking for prgregset32_t in sys/procfs.h" >&5
4953 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 cat > conftest.
$ac_ext <<EOF
4957 #line 4958 "configure"
4958 #include "confdefs.h"
4961 #include <sys/procfs.h>
4966 if { (eval echo configure
:4967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4968 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
4970 echo "configure: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4973 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
4979 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
4980 cat >> confdefs.h
<<\EOF
4981 #define HAVE_PRGREGSET32_T 1
4985 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
4987 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
4988 echo "configure:4989: checking for prfpregset32_t in sys/procfs.h" >&5
4989 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4992 cat > conftest.
$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4997 #include <sys/procfs.h>
5002 if { (eval echo configure
:5003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5004 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5006 echo "configure: failed program was:" >&5
5007 cat conftest.
$ac_ext >&5
5009 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5015 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5016 cat >> confdefs.h
<<\EOF
5017 #define HAVE_PRFPREGSET32_T 1
5021 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5023 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5024 echo "configure:5025: checking for lwpid_t in sys/procfs.h" >&5
5025 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5028 cat > conftest.
$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5033 #include <sys/procfs.h>
5038 if { (eval echo configure
:5039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5040 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5042 echo "configure: failed program was:" >&5
5043 cat conftest.
$ac_ext >&5
5045 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5051 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5052 cat >> confdefs.h
<<\EOF
5053 #define HAVE_LWPID_T 1
5057 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5059 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5060 echo "configure:5061: checking for psaddr_t in sys/procfs.h" >&5
5061 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 cat > conftest.
$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5069 #include <sys/procfs.h>
5074 if { (eval echo configure
:5075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5076 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5078 echo "configure: failed program was:" >&5
5079 cat conftest.
$ac_ext >&5
5081 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5087 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5088 cat >> confdefs.h
<<\EOF
5089 #define HAVE_PSADDR_T 1
5093 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5095 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5096 echo "configure:5097: checking for prsysent_t in sys/procfs.h" >&5
5097 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.
$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5105 #include <sys/procfs.h>
5110 if { (eval echo configure
:5111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5112 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5114 echo "configure: failed program was:" >&5
5115 cat conftest.
$ac_ext >&5
5117 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5123 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5124 cat >> confdefs.h
<<\EOF
5125 #define HAVE_PRSYSENT_T 1
5129 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5131 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5132 echo "configure:5133: checking for pr_sigset_t in sys/procfs.h" >&5
5133 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 cat > conftest.
$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5141 #include <sys/procfs.h>
5146 if { (eval echo configure
:5147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5148 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5150 echo "configure: failed program was:" >&5
5151 cat conftest.
$ac_ext >&5
5153 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5159 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5160 cat >> confdefs.h
<<\EOF
5161 #define HAVE_PR_SIGSET_T 1
5165 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5167 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5168 echo "configure:5169: checking for pr_sigaction64_t in sys/procfs.h" >&5
5169 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5172 cat > conftest.
$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5177 #include <sys/procfs.h>
5179 pr_sigaction64_t avar
5182 if { (eval echo configure
:5183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5184 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5186 echo "configure: failed program was:" >&5
5187 cat conftest.
$ac_ext >&5
5189 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5195 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5196 cat >> confdefs.h
<<\EOF
5197 #define HAVE_PR_SIGACTION64_T 1
5201 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5203 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5204 echo "configure:5205: checking for pr_siginfo64_t in sys/procfs.h" >&5
5205 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.
$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5213 #include <sys/procfs.h>
5218 if { (eval echo configure
:5219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5220 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5222 echo "configure: failed program was:" >&5
5223 cat conftest.
$ac_ext >&5
5225 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5231 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5232 cat >> confdefs.h
<<\EOF
5233 #define HAVE_PR_SIGINFO64_T 1
5237 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5243 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5244 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5245 echo "configure:5246: checking whether prfpregset_t type is broken" >&5
5246 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5249 if test "$cross_compiling" = yes; then
5250 gdb_cv_prfpregset_t_broken
=yes
5252 cat > conftest.
$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5255 #include <sys/procfs.h>
5258 if (sizeof (prfpregset_t) == sizeof (void *))
5263 if { (eval echo configure
:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5265 gdb_cv_prfpregset_t_broken
=no
5267 echo "configure: failed program was:" >&5
5268 cat conftest.
$ac_ext >&5
5270 gdb_cv_prfpregset_t_broken
=yes
5277 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5278 if test $gdb_cv_prfpregset_t_broken = yes; then
5279 cat >> confdefs.h
<<\EOF
5280 #define PRFPREGSET_T_BROKEN 1
5287 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5288 echo "configure:5289: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5289 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5290 echo $ac_n "(cached) $ac_c" 1>&6
5292 cat > conftest.
$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5296 #include <sys/types.h>
5297 #include <sys/procfs.h>
5302 dummy = ioctl(0, PIOCSET, &dummy);
5306 if { (eval echo configure
:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308 gdb_cv_have_procfs_piocset
=yes
5310 echo "configure: failed program was:" >&5
5311 cat conftest.
$ac_ext >&5
5313 gdb_cv_have_procfs_piocset
=no
5318 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5319 if test $gdb_cv_have_procfs_piocset = yes; then
5320 cat >> confdefs.h
<<\EOF
5321 #define HAVE_PROCFS_PIOCSET 1
5327 if test ${host} = ${target} ; then
5329 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5330 echo "configure:5331: checking for member l_addr in struct link_map" >&5
5331 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5334 cat > conftest.
$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5339 struct link_map lm; (void) lm.l_addr;
5342 if { (eval echo configure
:5343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5344 gdb_cv_have_struct_link_map_with_l_members
=yes
5346 echo "configure: failed program was:" >&5
5347 cat conftest.
$ac_ext >&5
5349 gdb_cv_have_struct_link_map_with_l_members
=no
5354 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5355 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5356 cat >> confdefs.h
<<\EOF
5357 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5363 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5364 echo "configure:5365: checking for member lm_addr in struct link_map" >&5
5365 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.
$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 #include <sys/types.h>
5374 struct link_map lm; (void) lm.lm_addr;
5377 if { (eval echo configure
:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5379 gdb_cv_have_struct_link_map_with_lm_members
=yes
5381 echo "configure: failed program was:" >&5
5382 cat conftest.
$ac_ext >&5
5384 gdb_cv_have_struct_link_map_with_lm_members
=no
5389 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5390 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5391 cat >> confdefs.h
<<\EOF
5392 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5398 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5399 echo "configure:5400: checking for member som_addr in struct so_map" >&5
5400 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 cat > conftest.
$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5406 #include <sys/types.h>
5409 struct so_map lm; (void) lm.som_addr;
5412 if { (eval echo configure
:5413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5414 gdb_cv_have_struct_so_map_with_som_members
=yes
5416 echo "configure: failed program was:" >&5
5417 cat conftest.
$ac_ext >&5
5419 gdb_cv_have_struct_so_map_with_som_members
=no
5424 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5425 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5426 cat >> confdefs.h
<<\EOF
5427 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5433 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5434 echo "configure:5435: checking for struct link_map32 in sys/link.h" >&5
5435 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5442 #include <sys/link.h>
5444 struct link_map32 l;
5447 if { (eval echo configure
:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5449 gdb_cv_have_struct_link_map32
=yes
5451 echo "configure: failed program was:" >&5
5452 cat conftest.
$ac_ext >&5
5454 gdb_cv_have_struct_link_map32
=no
5459 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5460 if test $gdb_cv_have_struct_link_map32 = yes; then
5461 cat >> confdefs.h
<<\EOF
5462 #define HAVE_STRUCT_LINK_MAP32 1
5468 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5469 echo "configure:5470: checking for main in -lm" >&5
5470 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5472 echo $ac_n "(cached) $ac_c" 1>&6
5474 ac_save_LIBS
="$LIBS"
5476 cat > conftest.
$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5484 if { (eval echo configure
:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5486 eval "ac_cv_lib_$ac_lib_var=yes"
5488 echo "configure: failed program was:" >&5
5489 cat conftest.
$ac_ext >&5
5491 eval "ac_cv_lib_$ac_lib_var=no"
5494 LIBS
="$ac_save_LIBS"
5497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5501 cat >> confdefs.h
<<EOF
5502 #define $ac_tr_lib 1
5508 echo "$ac_t""no" 1>&6
5512 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5513 echo "configure:5514: checking for wctype in -lc" >&5
5514 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5518 ac_save_LIBS
="$LIBS"
5520 cat > conftest.
$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5532 if { (eval echo configure
:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5534 eval "ac_cv_lib_$ac_lib_var=yes"
5536 echo "configure: failed program was:" >&5
5537 cat conftest.
$ac_ext >&5
5539 eval "ac_cv_lib_$ac_lib_var=no"
5542 LIBS
="$ac_save_LIBS"
5545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5546 echo "$ac_t""yes" 1>&6
5549 echo "$ac_t""no" 1>&6
5550 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5551 echo "configure:5552: checking for wctype in -lw" >&5
5552 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 ac_save_LIBS
="$LIBS"
5558 cat > conftest.
$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* Override any gcc2 internal prototype to avoid an error. */
5562 /* We use char because int might match the return type of a gcc2
5563 builtin and then its argument prototype would still apply. */
5570 if { (eval echo configure
:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5572 eval "ac_cv_lib_$ac_lib_var=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.
$ac_ext >&5
5577 eval "ac_cv_lib_$ac_lib_var=no"
5580 LIBS
="$ac_save_LIBS"
5583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5584 echo "$ac_t""yes" 1>&6
5585 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5586 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5587 cat >> confdefs.h
<<EOF
5588 #define $ac_tr_lib 1
5594 echo "$ac_t""no" 1>&6
5601 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5602 echo "configure:5603: checking for long long support in compiler" >&5
5603 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 cat > conftest.
$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5612 extern long long foo;
5613 switch (foo & 2) { case 0: return 1; }
5617 if { (eval echo configure
:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5619 gdb_cv_c_long_long
=yes
5621 echo "configure: failed program was:" >&5
5622 cat conftest.
$ac_ext >&5
5624 gdb_cv_c_long_long
=no
5629 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5630 if test $gdb_cv_c_long_long = yes; then
5631 cat >> confdefs.h
<<\EOF
5632 #define CC_HAS_LONG_LONG 1
5638 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5639 echo "configure:5640: checking for long long support in printf" >&5
5640 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5643 if test "$cross_compiling" = yes; then
5644 gdb_cv_printf_has_long_long
=no
5646 cat > conftest.
$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5653 l = (l << 16) + 0x0123;
5654 l = (l << 16) + 0x4567;
5655 l = (l << 16) + 0x89ab;
5656 l = (l << 16) + 0xcdef;
5657 sprintf (buf, "0x%016llx", l);
5658 return (strcmp ("0x0123456789abcdef", buf));
5661 if { (eval echo configure
:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5663 gdb_cv_printf_has_long_long
=yes
5665 echo "configure: failed program was:" >&5
5666 cat conftest.
$ac_ext >&5
5668 gdb_cv_printf_has_long_long
=no
5675 if test $gdb_cv_printf_has_long_long = yes; then
5676 cat >> confdefs.h
<<\EOF
5677 #define PRINTF_HAS_LONG_LONG 1
5681 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5684 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5685 echo "configure:5686: checking for long double support in compiler" >&5
5686 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 cat > conftest.
$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5697 if { (eval echo configure
:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 ac_cv_c_long_double
=yes
5701 echo "configure: failed program was:" >&5
5702 cat conftest.
$ac_ext >&5
5704 ac_cv_c_long_double
=no
5709 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5710 if test $ac_cv_c_long_double = yes; then
5711 cat >> confdefs.h
<<\EOF
5712 #define HAVE_LONG_DOUBLE 1
5718 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5719 echo "configure:5720: checking for long double support in printf" >&5
5720 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5723 if test "$cross_compiling" = yes; then
5724 gdb_cv_printf_has_long_double
=no
5726 cat > conftest.
$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5732 long double f = 3.141592653;
5733 sprintf (buf, "%Lg", f);
5734 return (strncmp ("3.14159", buf, 7));
5737 if { (eval echo configure
:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5739 gdb_cv_printf_has_long_double
=yes
5741 echo "configure: failed program was:" >&5
5742 cat conftest.
$ac_ext >&5
5744 gdb_cv_printf_has_long_double
=no
5751 if test $gdb_cv_printf_has_long_double = yes; then
5752 cat >> confdefs.h
<<\EOF
5753 #define PRINTF_HAS_LONG_DOUBLE 1
5757 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
5760 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
5761 echo "configure:5762: checking for long double support in scanf" >&5
5762 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5765 if test "$cross_compiling" = yes; then
5766 gdb_cv_scanf_has_long_double
=no
5768 cat > conftest.
$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 char *buf = "3.141592653";
5775 sscanf (buf, "%Lg", &f);
5776 return !(f > 3.14159 && f < 3.14160);
5779 if { (eval echo configure
:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5781 gdb_cv_scanf_has_long_double
=yes
5783 echo "configure: failed program was:" >&5
5784 cat conftest.
$ac_ext >&5
5786 gdb_cv_scanf_has_long_double
=no
5793 if test $gdb_cv_scanf_has_long_double = yes; then
5794 cat >> confdefs.h
<<\EOF
5795 #define SCANF_HAS_LONG_DOUBLE 1
5799 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
5801 for ac_hdr
in unistd.h
5803 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5805 echo "configure:5806: checking for $ac_hdr" >&5
5806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.
$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5814 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5815 { (eval echo configure
:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5816 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5817 if test -z "$ac_err"; then
5819 eval "ac_cv_header_$ac_safe=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.
$ac_ext >&5
5825 eval "ac_cv_header_$ac_safe=no"
5829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5831 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5832 cat >> confdefs.h
<<EOF
5833 #define $ac_tr_hdr 1
5837 echo "$ac_t""no" 1>&6
5841 for ac_func
in getpagesize
5843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5844 echo "configure:5845: checking for $ac_func" >&5
5845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5848 cat > conftest.
$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 /* System header to define __stub macros and hopefully few prototypes,
5852 which can conflict with char $ac_func(); below. */
5854 /* Override any gcc2 internal prototype to avoid an error. */
5855 /* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5861 /* The GNU C library defines this for functions which it implements
5862 to always fail with ENOSYS. Some functions are actually named
5863 something starting with __ and the normal name is an alias. */
5864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5872 if { (eval echo configure
:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5874 eval "ac_cv_func_$ac_func=yes"
5876 echo "configure: failed program was:" >&5
5877 cat conftest.
$ac_ext >&5
5879 eval "ac_cv_func_$ac_func=no"
5884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5885 echo "$ac_t""yes" 1>&6
5886 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5887 cat >> confdefs.h
<<EOF
5888 #define $ac_tr_func 1
5892 echo "$ac_t""no" 1>&6
5896 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5897 echo "configure:5898: checking for working mmap" >&5
5898 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5899 echo $ac_n "(cached) $ac_c" 1>&6
5901 if test "$cross_compiling" = yes; then
5902 ac_cv_func_mmap_fixed_mapped
=no
5904 cat > conftest.
$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5908 /* Thanks to Mike Haertel and Jim Avera for this test.
5909 Here is a matrix of mmap possibilities:
5910 mmap private not fixed
5911 mmap private fixed at somewhere currently unmapped
5912 mmap private fixed at somewhere already mapped
5913 mmap shared not fixed
5914 mmap shared fixed at somewhere currently unmapped
5915 mmap shared fixed at somewhere already mapped
5916 For private mappings, we should verify that changes cannot be read()
5917 back from the file, nor mmap's back from the file at a different
5918 address. (There have been systems where private was not correctly
5919 implemented like the infamous i386 svr4.0, and systems where the
5920 VM page cache was not coherent with the filesystem buffer cache
5921 like early versions of FreeBSD and possibly contemporary NetBSD.)
5922 For shared mappings, we should conversely verify that changes get
5923 propogated back to all the places they're supposed to be.
5925 Grep wants private fixed already mapped.
5926 The main things grep needs to know about mmap are:
5927 * does it exist and is it safe to write into the mmap'd area
5928 * how to use it (BSD variants) */
5929 #include <sys/types.h>
5931 #include <sys/mman.h>
5933 /* This mess was copied from the GNU getpagesize.h. */
5934 #ifndef HAVE_GETPAGESIZE
5935 # ifdef HAVE_UNISTD_H
5936 # include <unistd.h>
5939 /* Assume that all systems that can run configure have sys/param.h. */
5940 # ifndef HAVE_SYS_PARAM_H
5941 # define HAVE_SYS_PARAM_H 1
5944 # ifdef _SC_PAGESIZE
5945 # define getpagesize() sysconf(_SC_PAGESIZE)
5946 # else /* no _SC_PAGESIZE */
5947 # ifdef HAVE_SYS_PARAM_H
5948 # include <sys/param.h>
5949 # ifdef EXEC_PAGESIZE
5950 # define getpagesize() EXEC_PAGESIZE
5951 # else /* no EXEC_PAGESIZE */
5953 # define getpagesize() NBPG * CLSIZE
5956 # endif /* no CLSIZE */
5957 # else /* no NBPG */
5959 # define getpagesize() NBPC
5960 # else /* no NBPC */
5962 # define getpagesize() PAGESIZE
5963 # endif /* PAGESIZE */
5964 # endif /* no NBPC */
5965 # endif /* no NBPG */
5966 # endif /* no EXEC_PAGESIZE */
5967 # else /* no HAVE_SYS_PARAM_H */
5968 # define getpagesize() 8192 /* punt totally */
5969 # endif /* no HAVE_SYS_PARAM_H */
5970 # endif /* no _SC_PAGESIZE */
5972 #endif /* no HAVE_GETPAGESIZE */
5975 extern "C" { void *malloc(unsigned); }
5983 char *data, *data2, *data3;
5987 pagesize = getpagesize();
5990 * First, make a file with some known garbage in it.
5992 data = malloc(pagesize);
5995 for (i = 0; i < pagesize; ++i)
5996 *(data + i) = rand();
5998 fd = creat("conftestmmap", 0600);
6001 if (write(fd, data, pagesize) != pagesize)
6006 * Next, try to mmap the file at a fixed address which
6007 * already has something else allocated at it. If we can,
6008 * also make sure that we see the same garbage.
6010 fd = open("conftestmmap", O_RDWR);
6013 data2 = malloc(2 * pagesize);
6016 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6017 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6018 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6020 for (i = 0; i < pagesize; ++i)
6021 if (*(data + i) != *(data2 + i))
6025 * Finally, make sure that changes to the mapped area
6026 * do not percolate back to the file as seen by read().
6027 * (This is a bug on some variants of i386 svr4.0.)
6029 for (i = 0; i < pagesize; ++i)
6030 *(data2 + i) = *(data2 + i) + 1;
6031 data3 = malloc(pagesize);
6034 if (read(fd, data3, pagesize) != pagesize)
6036 for (i = 0; i < pagesize; ++i)
6037 if (*(data + i) != *(data3 + i))
6040 unlink("conftestmmap");
6045 if { (eval echo configure
:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6047 ac_cv_func_mmap_fixed_mapped
=yes
6049 echo "configure: failed program was:" >&5
6050 cat conftest.
$ac_ext >&5
6052 ac_cv_func_mmap_fixed_mapped
=no
6059 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6060 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6061 cat >> confdefs.h
<<\EOF
6070 if test ${build} = ${host} -a ${host} = ${target} ; then
6073 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6074 echo "configure:6075: checking for HPUX/OSF thread support" >&5
6075 if test -f /usr
/include
/dce
/cma_config.h
; then
6076 if test "$GCC" = "yes" ; then
6077 echo "$ac_t""yes" 1>&6
6078 cat >> confdefs.h
<<\EOF
6079 #define HAVE_HPUX_THREAD_SUPPORT 1
6082 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6083 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6085 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6088 echo "$ac_t""no" 1>&6
6092 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6093 echo "configure:6094: checking for Solaris thread debugging library" >&5
6094 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6095 echo "$ac_t""yes" 1>&6
6096 cat >> confdefs.h
<<\EOF
6097 #define HAVE_THREAD_DB_LIB 1
6100 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6101 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6102 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6103 echo "configure:6104: checking for dlopen in -ldl" >&5
6104 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 ac_save_LIBS
="$LIBS"
6110 cat > conftest.
$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6122 if { (eval echo configure
:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6124 eval "ac_cv_lib_$ac_lib_var=yes"
6126 echo "configure: failed program was:" >&5
6127 cat conftest.
$ac_ext >&5
6129 eval "ac_cv_lib_$ac_lib_var=no"
6132 LIBS
="$ac_save_LIBS"
6135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6136 echo "$ac_t""yes" 1>&6
6137 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6139 cat >> confdefs.h
<<EOF
6140 #define $ac_tr_lib 1
6146 echo "$ac_t""no" 1>&6
6149 if test "$GCC" = "yes" ; then
6150 # The GNU linker requires the -export-dynamic option to make
6151 # all symbols visible in the dynamic symbol table.
6152 hold_ldflags
=$LDFLAGS
6153 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6154 echo "configure:6155: checking for the ld -export-dynamic flag" >&5
6155 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6156 cat > conftest.
$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6164 if { (eval echo configure
:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6168 echo "configure: failed program was:" >&5
6169 cat conftest.
$ac_ext >&5
6174 LDFLAGS
=$hold_ldflags
6175 echo "$ac_t""$found" 1>&6
6176 if test $found = yes; then
6177 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6180 # Sun randomly tweaked the prototypes in <proc_service.h>
6182 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6183 echo "configure:6184: checking if <proc_service.h> is old" >&5
6184 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6188 cat > conftest.
$ac_ext <<EOF
6189 #line 6190 "configure"
6190 #include "confdefs.h"
6192 #include <proc_service.h>
6194 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6200 if { (eval echo configure
:6201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6202 gdb_cv_proc_service_is_old
=no
6204 echo "configure: failed program was:" >&5
6205 cat conftest.
$ac_ext >&5
6207 gdb_cv_proc_service_is_old
=yes
6213 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6214 if test $gdb_cv_proc_service_is_old = yes; then
6215 cat >> confdefs.h
<<\EOF
6216 #define PROC_SERVICE_IS_OLD 1
6221 echo "$ac_t""no" 1>&6
6229 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6230 if test "${enable_gdbcli+set}" = set; then
6231 enableval
="$enable_gdbcli"
6233 case "${enableval}" in
6234 yes) enable_gdbcli
=yes ;;
6235 "") enable_gdbcli
=yes ;;
6237 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6240 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6248 case ${enable_gdbcli} in
6250 if test -d "${srcdir}/cli" ; then
6251 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6252 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6253 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6254 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6255 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6256 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6257 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6258 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6259 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6265 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6266 if test "${enable_gdbmi+set}" = set; then
6267 enableval
="$enable_gdbmi"
6269 case "${enable_gdbmi}" in
6271 "") enable_gdbmi
=yes ;;
6273 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6279 case ${enable_gdbmi} in
6281 if test -d "${srcdir}/mi" ; then
6282 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6283 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6284 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6285 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6286 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6287 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6288 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6289 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6290 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6295 # Configure UI_OUT by default (before 5.2 it can be disabled)
6296 # It must be configured if gdbmi is configured
6301 # Check whether --with-uiout or --without-uiout was given.
6302 if test "${with_uiout+set}" = set; then
6303 withval
="$with_uiout"
6304 case "${withval}" in
6305 yes) want_uiout
=true
;;
6306 no
) if test $enable_gdbmi = yes; then
6307 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6311 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6317 if test $want_uiout = true
; then
6318 UIOUT_CFLAGS
="-DUI_OUT=1"
6321 # Check whether --enable-tui or --disable-tui was given.
6322 if test "${enable_tui+set}" = set; then
6323 enableval
="$enable_tui"
6325 case "${enable_tui}" in
6327 "") enable_tui
=yes ;;
6329 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6335 case ${enable_tui} in
6337 if test -d "${srcdir}/tui" ; then
6338 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6339 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6340 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6341 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6342 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6343 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6344 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6345 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6346 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6351 # Check whether --enable-netrom or --disable-netrom was given.
6352 if test "${enable_netrom+set}" = set; then
6353 enableval
="$enable_netrom"
6354 case "${enableval}" in
6355 yes) enable_netrom
=yes ;;
6356 no
) enable_netrom
=no
;;
6357 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6362 if test "${enable_netrom}" = "yes"; then
6363 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6364 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6368 # NOTE: Don't add -Wall or -Wunused, they both include
6369 # -Wunused-parameter which reports bogus warnings.
6370 # NOTE: If you add to this list, remember to update
6371 # gdb/doc/gdbint.texinfo.
6372 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6373 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6374 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6375 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6376 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6377 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6378 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6379 # -Woverloaded-virtual -Winline -Werror"
6380 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6381 if test "${enable_build_warnings+set}" = set; then
6382 enableval
="$enable_build_warnings"
6383 case "${enableval}" in
6385 no
) build_warnings
="-w";;
6386 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6387 build_warnings
="${build_warnings} ${t}";;
6388 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6389 build_warnings
="${t} ${build_warnings}";;
6390 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6392 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6393 echo "Setting compiler warning flags = $build_warnings" 6>&1
6396 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6397 if test "${enable_gdb_build_warnings+set}" = set; then
6398 enableval
="$enable_gdb_build_warnings"
6399 case "${enableval}" in
6401 no
) build_warnings
="-w";;
6402 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6403 build_warnings
="${build_warnings} ${t}";;
6404 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6405 build_warnings
="${t} ${build_warnings}";;
6406 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6408 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6409 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6414 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6416 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6417 echo "configure:6418: checking compiler warning flags" >&5
6418 # Separate out the -Werror flag as some files just cannot be
6419 # compiled with it enabled.
6420 for w
in ${build_warnings}; do
6422 -Werr*) WERROR_CFLAGS
=-Werror ;;
6423 *) # Check that GCC accepts it
6424 if $CC $w 2>&1 |
grep 'unrecognized option' > /dev
/null
; then
6427 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6431 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6441 # Check whether --with-mmalloc or --without-mmalloc was given.
6442 if test "${with_mmalloc+set}" = set; then
6443 withval
="$with_mmalloc"
6444 case "${withval}" in
6445 yes) want_mmalloc
=true
;;
6446 no
) want_mmalloc
=false
;;
6447 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6453 if test x
$want_mmalloc = xtrue
; then
6454 cat >> confdefs.h
<<\EOF
6455 #define USE_MMALLOC 1
6458 cat >> confdefs.h
<<\EOF
6459 #define MMCHECK_FORCE 1
6462 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6463 MMALLOC
='../mmalloc/libmmalloc.a'
6466 # Check whether --with-included-regex or --without-included-regex was given.
6467 if test "${with_included_regex+set}" = set; then
6468 withval
="$with_included_regex"
6469 case "${withval}" in
6470 yes) want_included_regex
=true
;;
6471 no
) want_included_regex
=false
;;
6472 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6475 want_included_regex
=true
6478 if test $want_included_regex = false
; then
6479 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6480 echo "configure:6481: checking for GNU regex" >&5
6481 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6484 cat > conftest.
$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 #include <gnu-versions.h>
6488 #include <sys/types.h>
6491 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6492 #error No valid GNU regex.
6497 if { (eval echo configure
:6498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6499 gdb_cv_have_gnu_regex
=yes
6501 echo "configure: failed program was:" >&5
6502 cat conftest.
$ac_ext >&5
6504 gdb_cv_have_gnu_regex
=no
6509 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6510 if test $gdb_cv_have_gnu_regex = no
; then
6511 want_included_regex
=true
6515 if test x
${want_included_regex} = xtrue
; then
6517 cat >> confdefs.h
<<\EOF
6518 #define USE_INCLUDED_REGEX 1
6524 # In the Cygwin environment, we need some additional flags.
6525 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6526 echo "configure:6527: checking for cygwin" >&5
6527 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6528 echo $ac_n "(cached) $ac_c" 1>&6
6530 cat > conftest.
$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6534 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6539 egrep "lose" >/dev
/null
2>&1; then
6541 gdb_cv_os_cygwin
=yes
6550 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6553 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6555 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6556 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6561 if test x
$gdb_host = xgo32
; then
6564 if test x
$gdb_cv_os_cygwin = xyes
; then
6565 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6568 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6569 echo "configure:6570: checking for tgetent in -lncurses" >&5
6570 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 ac_save_LIBS
="$LIBS"
6575 LIBS
="-lncurses $LIBS"
6576 cat > conftest.
$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6588 if { (eval echo configure
:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.
$ac_ext >&5
6595 eval "ac_cv_lib_$ac_lib_var=no"
6598 LIBS
="$ac_save_LIBS"
6601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6605 echo "$ac_t""no" 1>&6
6606 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6607 echo "configure:6608: checking for tgetent in -lHcurses" >&5
6608 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 ac_save_LIBS
="$LIBS"
6613 LIBS
="-lHcurses $LIBS"
6614 cat > conftest.
$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6626 if { (eval echo configure
:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6628 eval "ac_cv_lib_$ac_lib_var=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.
$ac_ext >&5
6633 eval "ac_cv_lib_$ac_lib_var=no"
6636 LIBS
="$ac_save_LIBS"
6639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6643 echo "$ac_t""no" 1>&6
6644 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6645 echo "configure:6646: checking for tgetent in -ltermlib" >&5
6646 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6648 echo $ac_n "(cached) $ac_c" 1>&6
6650 ac_save_LIBS
="$LIBS"
6651 LIBS
="-ltermlib $LIBS"
6652 cat > conftest.
$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6664 if { (eval echo configure
:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6666 eval "ac_cv_lib_$ac_lib_var=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.
$ac_ext >&5
6671 eval "ac_cv_lib_$ac_lib_var=no"
6674 LIBS
="$ac_save_LIBS"
6677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6681 echo "$ac_t""no" 1>&6
6682 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6683 echo "configure:6684: checking for tgetent in -ltermcap" >&5
6684 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 ac_save_LIBS
="$LIBS"
6689 LIBS
="-ltermcap $LIBS"
6690 cat > conftest.
$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6702 if { (eval echo configure
:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6704 eval "ac_cv_lib_$ac_lib_var=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.
$ac_ext >&5
6709 eval "ac_cv_lib_$ac_lib_var=no"
6712 LIBS
="$ac_save_LIBS"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6719 echo "$ac_t""no" 1>&6
6720 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6721 echo "configure:6722: checking for tgetent in -lcurses" >&5
6722 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6726 ac_save_LIBS
="$LIBS"
6727 LIBS
="-lcurses $LIBS"
6728 cat > conftest.
$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 /* Override any gcc2 internal prototype to avoid an error. */
6732 /* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6740 if { (eval echo configure
:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6742 eval "ac_cv_lib_$ac_lib_var=yes"
6744 echo "configure: failed program was:" >&5
6745 cat conftest.
$ac_ext >&5
6747 eval "ac_cv_lib_$ac_lib_var=no"
6750 LIBS
="$ac_save_LIBS"
6753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6754 echo "$ac_t""yes" 1>&6
6757 echo "$ac_t""no" 1>&6
6758 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
6759 echo "configure:6760: checking for tgetent in -lterminfo" >&5
6760 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
6761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 ac_save_LIBS
="$LIBS"
6765 LIBS
="-lterminfo $LIBS"
6766 cat > conftest.
$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6778 if { (eval echo configure
:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6780 eval "ac_cv_lib_$ac_lib_var=yes"
6782 echo "configure: failed program was:" >&5
6783 cat conftest.
$ac_ext >&5
6785 eval "ac_cv_lib_$ac_lib_var=no"
6788 LIBS
="$ac_save_LIBS"
6791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6792 echo "$ac_t""yes" 1>&6
6795 echo "$ac_t""no" 1>&6
6809 if test "x$TERM_LIB" = x
6811 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
6817 # libreadline needs libuser32.a in a cygwin environment
6819 if test x
$gdb_cv_os_cygwin = xyes
; then
6820 WIN32LIBS
="-luser32"
6822 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
6828 LIBGUI
="../libgui/src/libgui.a"
6829 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
6833 # Check whether --with-cpu or --without-cpu was given.
6834 if test "${with_cpu+set}" = set; then
6837 powerpc-
* | powerpcle-
* )
6838 ## It would be nice to keep this table in sync with the one in
6840 case "${with_cpu}" in
6841 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
6843 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
6845 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
6846 ## These are all RS6000 variants, as far as GDB is concerned.
6856 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
6862 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
6865 cat >> confdefs.h
<<EOF
6866 #define TARGET_CPU_DEFAULT "${with_cpu}"
6874 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6875 if test "${enable_gdbtk+set}" = set; then
6876 enableval
="$enable_gdbtk"
6877 case "${enableval}" in
6881 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6884 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6892 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
6896 # Default is on for everything but go32 and Cygwin
6901 if test -d "${srcdir}/gdbtk" ; then
6917 if test "${enable_gdbtk}" = "yes"; then
6921 # Ok, lets find the tcl configuration
6922 # First, look for one uninstalled.
6923 # the alternative search directory is invoked by --with-tclconfig
6926 if test x
"${no_tcl}" = x
; then
6927 # we reset no_tcl in case something fails here
6929 # Check whether --with-tclconfig or --without-tclconfig was given.
6930 if test "${with_tclconfig+set}" = set; then
6931 withval
="$with_tclconfig"
6932 with_tclconfig
=${withval}
6935 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
6936 echo "configure:6937: checking for Tcl configuration" >&5
6937 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6942 # First check to see if --with-tclconfig was specified.
6943 if test x
"${with_tclconfig}" != x
; then
6944 if test -f "${with_tclconfig}/tclConfig.sh" ; then
6945 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
6947 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
6951 # then check for a private Tcl installation
6952 if test x
"${ac_cv_c_tclconfig}" = x
; then
6955 `ls -dr ../tcl[7-9]* 2>/dev/null` \
6957 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
6959 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
6960 if test -f "$i/${configdir}/tclConfig.sh" ; then
6961 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6966 # check in a few common install locations
6967 if test x
"${ac_cv_c_tclconfig}" = x
; then
6968 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6969 if test -f "$i/tclConfig.sh" ; then
6970 ac_cv_c_tclconfig
=`(cd $i; pwd)`
6975 # check in a few other private locations
6976 if test x
"${ac_cv_c_tclconfig}" = x
; then
6979 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
6980 if test -f "$i/${configdir}/tclConfig.sh" ; then
6981 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6989 if test x
"${ac_cv_c_tclconfig}" = x
; then
6990 TCLCONFIG
="# no Tcl configs found"
6991 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
6994 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
6995 echo "$ac_t""found $TCLCONFIG" 1>&6
6999 if test -z "${no_tcl}"; then
7029 # Ok, lets find the tk configuration
7030 # First, look for one uninstalled.
7031 # the alternative search directory is invoked by --with-tkconfig
7034 if test x
"${no_tk}" = x
; then
7035 # we reset no_tk in case something fails here
7037 # Check whether --with-tkconfig or --without-tkconfig was given.
7038 if test "${with_tkconfig+set}" = set; then
7039 withval
="$with_tkconfig"
7040 with_tkconfig
=${withval}
7043 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7044 echo "configure:7045: checking for Tk configuration" >&5
7045 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7050 # First check to see if --with-tkconfig was specified.
7051 if test x
"${with_tkconfig}" != x
; then
7052 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7053 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7055 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7059 # then check for a private Tk library
7060 if test x
"${ac_cv_c_tkconfig}" = x
; then
7063 `ls -dr ../tk[4-9]* 2>/dev/null` \
7065 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7067 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7068 if test -f "$i/${configdir}/tkConfig.sh" ; then
7069 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7074 # check in a few common install locations
7075 if test x
"${ac_cv_c_tkconfig}" = x
; then
7076 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7077 if test -f "$i/tkConfig.sh" ; then
7078 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7083 # check in a few other private locations
7084 if test x
"${ac_cv_c_tkconfig}" = x
; then
7087 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7088 if test -f "$i/${configdir}/tkConfig.sh" ; then
7089 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7097 if test x
"${ac_cv_c_tkconfig}" = x
; then
7098 TKCONFIG
="# no Tk configs found"
7099 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7102 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7103 echo "$ac_t""found $TKCONFIG" 1>&6
7109 # If $no_tk is nonempty, then we can't do Tk, and there is no
7110 # point to doing Tcl.
7111 if test -z "${no_tk}"; then
7113 if test -f "$TKCONFIG" ; then
7131 # Ok, lets find the tcl source trees so we can use the headers
7132 # Warning: transition of version 9 to 10 will break this algorithm
7133 # because 10 sorts before 9. We also look for just tcl. We have to
7134 # be careful that we don't match stuff like tclX by accident.
7135 # the alternative search directory is involked by --with-tclinclude
7139 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7140 echo "configure:7141: checking for Tcl private headers. dir=${configdir}" >&5
7141 # Check whether --with-tclinclude or --without-tclinclude was given.
7142 if test "${with_tclinclude+set}" = set; then
7143 withval
="$with_tclinclude"
7144 with_tclinclude
=${withval}
7147 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7151 # first check to see if --with-tclinclude was specified
7152 if test x
"${with_tclinclude}" != x
; then
7153 if test -f ${with_tclinclude}/tclInt.h
; then
7154 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7155 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7156 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7158 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7162 # next check if it came with Tcl configuration file
7163 if test x
"${ac_cv_c_tclconfig}" = x
; then
7164 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7165 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7169 # next check in private source directory
7171 # since ls returns lowest version numbers first, reverse its output
7172 if test x
"${ac_cv_c_tclh}" = x
; then
7175 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7176 ${srcdir}/..
/..
/tcl \
7177 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7178 ${srcdir}/..
/..
/..
/tcl \
7179 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7180 if test -f $i/generic
/tclInt.h
; then
7181 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7186 # finally check in a few common install locations
7188 # since ls returns lowest version numbers first, reverse its output
7189 if test x
"${ac_cv_c_tclh}" = x
; then
7191 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7192 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7193 /usr
/local
/src
/tcl \
7194 /usr
/local
/lib
/tcl \
7195 ${prefix}/include
; do
7196 if test -f $i/generic
/tclInt.h
; then
7197 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7202 # see if one is installed
7203 if test x
"${ac_cv_c_tclh}" = x
; then
7204 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7205 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7206 echo "configure:7207: checking for tclInt.h" >&5
7207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7210 cat > conftest.
$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7216 { (eval echo configure
:7217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7218 if test -z "$ac_err"; then
7220 eval "ac_cv_header_$ac_safe=yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.
$ac_ext >&5
7226 eval "ac_cv_header_$ac_safe=no"
7230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7231 echo "$ac_t""yes" 1>&6
7232 ac_cv_c_tclh
=installed
7234 echo "$ac_t""no" 1>&6
7242 if test x
"${ac_cv_c_tclh}" = x
; then
7243 TCLHDIR
="# no Tcl private headers found"
7244 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7246 if test x
"${ac_cv_c_tclh}" != x
; then
7248 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7249 echo "$ac_t""is installed" 1>&6
7252 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7253 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7254 TCLHDIR
="-I${ac_cv_c_tclh}"
7262 # Ok, lets find the tk source trees so we can use the headers
7263 # If the directory (presumably symlink) named "tk" exists, use that one
7264 # in preference to any others. Same logic is used when choosing library
7265 # and again with Tcl. The search order is the best place to look first, then in
7266 # decreasing significance. The loop breaks if the trigger file is found.
7267 # Note the gross little conversion here of srcdir by cd'ing to the found
7268 # directory. This converts the path from a relative to an absolute, so
7269 # recursive cache variables for the path will work right. We check all
7270 # the possible paths in one loop rather than many seperate loops to speed
7272 # the alternative search directory is involked by --with-tkinclude
7275 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7276 echo "configure:7277: checking for Tk private headers" >&5
7277 # Check whether --with-tkinclude or --without-tkinclude was given.
7278 if test "${with_tkinclude+set}" = set; then
7279 withval
="$with_tkinclude"
7280 with_tkinclude
=${withval}
7283 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7287 # first check to see if --with-tkinclude was specified
7288 if test x
"${with_tkinclude}" != x
; then
7289 if test -f ${with_tkinclude}/tk.h
; then
7290 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7291 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7292 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7294 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7298 # next check if it came with Tk configuration file
7299 if test x
"${ac_cv_c_tkconfig}" = x
; then
7300 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7301 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7305 # next check in private source directory
7307 # since ls returns lowest version numbers first, reverse its output
7308 if test x
"${ac_cv_c_tkh}" = x
; then
7311 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7312 ${srcdir}/..
/..
/tk \
7313 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7314 ${srcdir}/..
/..
/..
/tk \
7315 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7316 if test -f $i/generic
/tk.h
; then
7317 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7322 # finally check in a few common install locations
7324 # since ls returns lowest version numbers first, reverse its output
7325 if test x
"${ac_cv_c_tkh}" = x
; then
7327 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7328 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7331 ${prefix}/include
; do
7332 if test -f $i/generic
/tk.h
; then
7333 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7338 # see if one is installed
7339 if test x
"${ac_cv_c_tkh}" = x
; then
7340 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7341 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7342 echo "configure:7343: checking for tk.h" >&5
7343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7344 echo $ac_n "(cached) $ac_c" 1>&6
7346 cat > conftest.
$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7351 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7352 { (eval echo configure
:7353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7353 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7354 if test -z "$ac_err"; then
7356 eval "ac_cv_header_$ac_safe=yes"
7359 echo "configure: failed program was:" >&5
7360 cat conftest.
$ac_ext >&5
7362 eval "ac_cv_header_$ac_safe=no"
7366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7368 ac_cv_c_tkh
=installed
7370 echo "$ac_t""no" 1>&6
7378 if test x
"${ac_cv_c_tkh}" != x
; then
7380 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7381 echo "$ac_t""is installed" 1>&6
7384 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7385 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7386 TKHDIR
="-I${ac_cv_c_tkh}"
7389 TKHDIR
="# no Tk directory found"
7390 echo "configure: warning: Can't find Tk private headers" 1>&2
7397 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7398 echo "configure:7399: checking for Itcl private headers. srcdir=${srcdir}" >&5
7399 if test x
"${ac_cv_c_itclh}" = x
; then
7400 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7401 if test -f $i/generic
/itcl.h
; then
7402 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7407 if test x
"${ac_cv_c_itclh}" = x
; then
7408 ITCLHDIR
="# no Itcl private headers found"
7409 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7411 if test x
"${ac_cv_c_itclh}" != x
; then
7412 ITCLHDIR
="-I${ac_cv_c_itclh}"
7414 # should always be here
7415 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7420 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7421 echo "configure:7422: checking for Itk private headers. srcdir=${srcdir}" >&5
7422 if test x
"${ac_cv_c_itkh}" = x
; then
7423 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7424 if test -f $i/generic
/itk.h
; then
7425 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7430 if test x
"${ac_cv_c_itkh}" = x
; then
7431 ITKHDIR
="# no Itk private headers found"
7432 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7434 if test x
"${ac_cv_c_itkh}" != x
; then
7435 ITKHDIR
="-I${ac_cv_c_itkh}"
7437 # should always be here
7438 # ITKLIB="../itcl/itk/unix/libitk.a"
7443 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7444 echo "configure:7445: checking for Tix private headers. srcdir=${srcdir}" >&5
7445 if test x
"${ac_cv_c_tixh}" = x
; then
7446 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
7447 if test -f $i/generic
/tix.h
; then
7448 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
7453 if test x
"${ac_cv_c_tixh}" = x
; then
7454 TIXHDIR
="# no Tix private headers found"
7455 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7457 if test x
"${ac_cv_c_tixh}" != x
; then
7458 TIXHDIR
="-I${ac_cv_c_tixh}"
7463 # now look for Itcl library stuff
7467 # Ok, lets find the itcl configuration
7468 # First, look for one uninstalled.
7469 # the alternative search directory is invoked by --with-itclconfig
7472 if test x
"${no_itcl}" = x
; then
7473 # we reset no_itcl in case something fails here
7475 # Check whether --with-itclconfig or --without-itclconfig was given.
7476 if test "${with_itclconfig+set}" = set; then
7477 withval
="$with_itclconfig"
7478 with_itclconfig
=${withval}
7481 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7482 echo "configure:7483: checking for Itcl configuration" >&5
7483 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7488 # First check to see if --with-itclconfig was specified.
7489 if test x
"${with_itclconfig}" != x
; then
7490 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7491 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7493 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7497 # then check for a private Itcl library
7498 if test x
"${ac_cv_c_itclconfig}" = x
; then
7501 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7503 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7505 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7506 if test -f "$i/itclConfig.sh" ; then
7507 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7512 # check in a few common install locations
7513 if test x
"${ac_cv_c_itclconfig}" = x
; then
7514 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7515 if test -f "$i/itclConfig.sh" ; then
7516 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7521 # check in a few other private locations
7522 if test x
"${ac_cv_c_itclconfig}" = x
; then
7524 ${srcdir}/..
/itcl
/itcl \
7525 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7526 if test -f "$i/itclConfig.sh" ; then
7527 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7535 if test x
"${ac_cv_c_itclconfig}" = x
; then
7536 ITCLCONFIG
="# no Itcl configs found"
7537 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7540 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7541 echo "$ac_t""found $ITCLCONFIG" 1>&6
7545 if test -z "${no_itcl}"; then
7547 if test -f "$ITCLCONFIG" ; then
7563 itcldir
=..
/itcl
/itcl
/win
/
7566 itcldir
=..
/itcl
/itcl
/unix
/
7571 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7572 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
7576 # now look for Itk library stuff
7579 # Ok, lets find the itk configuration
7580 # First, look for one uninstalled.
7581 # the alternative search directory is invoked by --with-itkconfig
7584 if test x
"${no_itk}" = x
; then
7585 # we reset no_itk in case something fails here
7587 # Check whether --with-itkconfig or --without-itkconfig was given.
7588 if test "${with_itkconfig+set}" = set; then
7589 withval
="$with_itkconfig"
7590 with_itkconfig
=${withval}
7593 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7594 echo "configure:7595: checking for Itk configuration" >&5
7595 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7600 # First check to see if --with-itkconfig was specified.
7601 if test x
"${with_itkconfig}" != x
; then
7602 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7603 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7605 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7609 # then check for a private Itk library
7610 if test x
"${ac_cv_c_itkconfig}" = x
; then
7613 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7615 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7617 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7618 if test -f "$i/itkConfig.sh" ; then
7619 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7624 # check in a few common install locations
7625 if test x
"${ac_cv_c_itkconfig}" = x
; then
7626 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7627 if test -f "$i/itkConfig.sh" ; then
7628 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7633 # check in a few other private locations
7634 if test x
"${ac_cv_c_itkconfig}" = x
; then
7636 ${srcdir}/..
/itcl
/itk \
7637 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7638 if test -f "$i/itkConfig.sh" ; then
7639 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7647 if test x
"${ac_cv_c_itkconfig}" = x
; then
7648 ITKCONFIG
="# no Itk configs found"
7649 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
7652 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
7653 echo "$ac_t""found $ITKCONFIG" 1>&6
7658 if test -z "${no_itcl}"; then
7660 if test -f "$ITKCONFIG" ; then
7677 itkdir
=..
/itcl
/itk
/win
/
7680 itkdir
=..
/itcl
/itk
/unix
/
7684 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
7685 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
7688 # now look for Tix library stuff
7691 # Ok, lets find the tix configuration
7692 # First, look for one uninstalled.
7693 # the alternative search directory is invoked by --with-itkconfig
7696 if test x
"${no_tix}" = x
; then
7697 # we reset no_tix in case something fails here
7699 # Check whether --with-tixconfig or --without-tixconfig was given.
7700 if test "${with_tixconfig+set}" = set; then
7701 withval
="$with_tixconfig"
7702 with_tixconfig
=${withval}
7705 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
7706 echo "configure:7707: checking for Tix configuration" >&5
7707 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7712 # First check to see if --with-tixconfig was specified.
7713 if test x
"${with_tixconfig}" != x
; then
7714 if test -f "${with_tixconfig}/tixConfig.sh" ; then
7715 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
7717 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
7721 # then check for a private Tix library
7722 if test x
"${ac_cv_c_tixconfig}" = x
; then
7725 `ls -dr ../tix 2>/dev/null` \
7727 `ls -dr ../../tix 2>/dev/null` \
7729 `ls -dr ../../../tix 2>/dev/null` ; do
7730 echo "**** Looking at $i - with ${configdir}"
7731 if test -f "$i/tixConfig.sh" ; then
7732 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7737 # check in a few common install locations
7738 if test x
"${ac_cv_c_tixconfig}" = x
; then
7739 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7740 echo "**** Looking at $i"
7741 if test -f "$i/tixConfig.sh" ; then
7742 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7747 # check in a few other private locations
7748 echo "**** Other private locations"
7749 if test x
"${ac_cv_c_tixconfig}" = x
; then
7752 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
7753 echo "**** Looking at $i - with ${configdir}"
7754 if test -f "$i/${configdir}/tixConfig.sh" ; then
7755 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
7763 if test x
"${ac_cv_c_tixconfig}" = x
; then
7764 TIXCONFIG
="# no Tix configs found"
7765 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
7768 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
7769 echo "$ac_t""found $TIXCONFIG" 1>&6
7774 if test -z "${no_tix}"; then
7776 if test -f "$TIXCONFIG" ; then
7787 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
7788 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
7791 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
7792 # Tcl/Tk 8.1 require -fwritable strings. I don't
7793 # know whether 8.2 will or not, but I bet it will.
7794 # I don't have to worry about 7.x since we don't support it.
7796 if test "$GCC" = "yes"; then
7797 if test "$TCL_VERSION" != "8.0" ; then
7798 GDBTK_CFLAGS
="-fwritable-strings"
7802 # Include some libraries that Tcl and Tk want.
7803 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
7804 # Yes, the ordering seems wrong here. But it isn't.
7805 # TK_LIBS is the list of libraries that need to be linked
7806 # after Tcl/Tk. Note that this isn't put into LIBS. If it
7807 # were in LIBS then any link tests after this point would
7808 # try to include things like `$(LIBGUI)', which wouldn't work.
7809 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
7811 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
7812 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
7813 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
7814 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
7815 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
7816 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
7817 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
7818 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
7820 if test x
$gdb_cv_os_cygwin = xyes
; then
7821 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
7822 WIN32LDAPP
="-Wl,--subsystem,console"
7823 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
7841 # If we find X, set shell vars x_includes and x_libraries to the
7842 # paths, otherwise set no_x=yes.
7843 # Uses ac_ vars as temps to allow command line to override cache and checks.
7844 # --without-x overrides everything else, but does not touch the cache.
7845 echo $ac_n "checking for X""... $ac_c" 1>&6
7846 echo "configure:7847: checking for X" >&5
7848 # Check whether --with-x or --without-x was given.
7849 if test "${with_x+set}" = set; then
7854 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7855 if test "x$with_x" = xno
; then
7856 # The user explicitly disabled X.
7859 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7860 # Both variables are already set.
7863 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7864 echo $ac_n "(cached) $ac_c" 1>&6
7866 # One or both of the vars are not set, and there is no cached value.
7867 ac_x_includes
=NO ac_x_libraries
=NO
7869 if mkdir conftestdir
; then
7871 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7872 cat > Imakefile
<<'EOF'
7874 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7876 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7877 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7878 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7879 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7880 for ac_extension
in a so sl
; do
7881 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7882 test -f $ac_im_libdir/libX11.
$ac_extension; then
7883 ac_im_usrlibdir
=$ac_im_libdir; break
7886 # Screen out bogus values from the imake configuration. They are
7887 # bogus both because they are the default anyway, and because
7888 # using them would break gcc on systems where it needs fixed includes.
7889 case "$ac_im_incroot" in
7891 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
7893 case "$ac_im_usrlibdir" in
7895 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
7902 if test "$ac_x_includes" = NO
; then
7903 # Guess where to find include files, by looking for this one X11 .h file.
7904 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
7906 # First, try using that file with no special directory specified.
7907 cat > conftest.
$ac_ext <<EOF
7908 #line 7909 "configure"
7909 #include "confdefs.h"
7910 #include <$x_direct_test_include>
7912 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7913 { (eval echo configure
:7914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7914 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7915 if test -z "$ac_err"; then
7917 # We can compile using X headers with no special include directory.
7921 echo "configure: failed program was:" >&5
7922 cat conftest.
$ac_ext >&5
7924 # Look for the header file in a standard set of common directories.
7925 # Check X11 before X11Rn because it is often a symlink to the current release.
7928 /usr
/X11R
6/include \
7929 /usr
/X11R
5/include \
7930 /usr
/X11R
4/include \
7933 /usr
/include
/X11R6 \
7934 /usr
/include
/X11R5 \
7935 /usr
/include
/X11R4 \
7937 /usr
/local
/X11
/include \
7938 /usr
/local
/X11R
6/include \
7939 /usr
/local
/X11R
5/include \
7940 /usr
/local
/X11R
4/include \
7942 /usr
/local
/include
/X11 \
7943 /usr
/local
/include
/X11R6 \
7944 /usr
/local
/include
/X11R5 \
7945 /usr
/local
/include
/X11R4 \
7949 /usr
/XFree86
/include
/X11 \
7952 /usr
/local
/include \
7953 /usr
/unsupported
/include \
7954 /usr
/athena
/include \
7955 /usr
/local
/x11r
5/include \
7956 /usr
/lpp
/Xamples
/include \
7958 /usr
/openwin
/include \
7959 /usr
/openwin
/share
/include \
7962 if test -r "$ac_dir/$x_direct_test_include"; then
7963 ac_x_includes
=$ac_dir
7969 fi # $ac_x_includes = NO
7971 if test "$ac_x_libraries" = NO
; then
7972 # Check for the libraries.
7974 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
7975 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
7977 # See if we find them without any special options.
7978 # Don't add to $LIBS permanently.
7979 ac_save_LIBS
="$LIBS"
7980 LIBS
="-l$x_direct_test_library $LIBS"
7981 cat > conftest.
$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7986 ${x_direct_test_function}()
7989 if { (eval echo configure
:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7991 LIBS
="$ac_save_LIBS"
7992 # We can link X programs with no special library path.
7995 echo "configure: failed program was:" >&5
7996 cat conftest.
$ac_ext >&5
7998 LIBS
="$ac_save_LIBS"
7999 # First see if replacing the include by lib works.
8000 # Check X11 before X11Rn because it is often a symlink to the current release.
8001 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8012 /usr
/local
/X11
/lib \
8013 /usr
/local
/X11R
6/lib \
8014 /usr
/local
/X11R
5/lib \
8015 /usr
/local
/X11R
4/lib \
8017 /usr
/local
/lib
/X11 \
8018 /usr
/local
/lib
/X11R6 \
8019 /usr
/local
/lib
/X11R5 \
8020 /usr
/local
/lib
/X11R4 \
8024 /usr
/XFree86
/lib
/X11 \
8028 /usr
/unsupported
/lib \
8030 /usr
/local
/x11r
5/lib \
8031 /usr
/lpp
/Xamples
/lib \
8035 /usr
/openwin
/share
/lib \
8038 for ac_extension
in a so sl
; do
8039 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8040 ac_x_libraries
=$ac_dir
8047 fi # $ac_x_libraries = NO
8049 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8050 # Didn't find X anywhere. Cache the known absence of X.
8051 ac_cv_have_x
="have_x=no"
8053 # Record where we found X for the cache.
8054 ac_cv_have_x
="have_x=yes \
8055 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8059 eval "$ac_cv_have_x"
8062 if test "$have_x" != yes; then
8063 echo "$ac_t""$have_x" 1>&6
8066 # If each of the values was on the command line, it overrides each guess.
8067 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8068 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8069 # Update the cache value to reflect the command line values.
8070 ac_cv_have_x
="have_x=yes \
8071 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8072 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8077 # Unlike the sim directory, whether a simulator is linked is controlled by
8078 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8079 # This code just checks for a few cases where we'd like to ignore those
8080 # definitions, even when they're present in the '.mt' file. These cases
8081 # are when --disable-sim is specified, or if the simulator directory is
8082 # not part of the source tree.
8084 # Check whether --enable-sim or --disable-sim was given.
8085 if test "${enable_sim+set}" = set; then
8086 enableval
="$enable_sim"
8087 echo "enable_sim = $enable_sim";
8088 echo "enableval = ${enableval}";
8089 case "${enableval}" in
8090 yes) ignore_sim
=false
;;
8091 no
) ignore_sim
=true
;;
8092 *) ignore_sim
=false
;;
8099 if test ! -d "${srcdir}/../sim"; then
8103 if test "${ignore_sim}" = "true"; then
8105 IGNORE_SIM_OBS
="SIM_OBS="
8109 cat >> confdefs.h
<<\EOF
8129 # Begin stuff to support --enable-shared
8130 # Check whether --enable-shared or --disable-shared was given.
8131 if test "${enable_shared+set}" = set; then
8132 enableval
="$enable_shared"
8133 case "${enableval}" in
8142 # If we have shared libraries, try to set rpath reasonably.
8143 if test "${shared}" = "true"; then
8146 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8148 *-*-irix5* |
*-*-irix6*)
8149 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8153 *-*-linux* |
*-pc-linux-gnu*)
8154 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8157 HLDFLAGS
='-R $(libdir)'
8160 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;'
8165 # On SunOS, if the linker supports the -rpath option, use it to
8166 # prevent ../bfd and ../opcodes from being included in the run time
8170 echo 'main () { }' > conftest.c
8171 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8172 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8174 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8176 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8178 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8180 elif test "${shared}" = "true"; then
8181 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8183 HLDFLAGS
='-Wl,-rpath='
8185 rm -f conftest.t conftest.c conftest
8190 # End stuff to support --enable-shared
8192 # target_subdir is used by the testsuite to find the target libraries.
8194 if test "${host}" != "${target}"; then
8195 target_subdir
="${target_alias}/"
8200 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8201 if test ! -f ${host_makefile_frag}; then
8202 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
8204 frags
="$frags $host_makefile_frag"
8206 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8207 if test ! -f ${target_makefile_frag}; then
8208 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8210 frags
="$frags $target_makefile_frag"
8217 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8218 ' ${host_makefile_frag}`
8220 targetfile
=`sed -n '
8221 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8222 ' ${target_makefile_frag}`
8224 GDB_MULTI_ARCH
=`sed -n '
8225 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8226 ' ${target_makefile_frag}`
8228 # these really aren't orthogonal true/false values of the same condition,
8229 # but shells are slow enough that I like to reuse the test conditions
8231 if test "${target}" = "${host}"; then
8232 nativefile
=`sed -n '
8233 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8234 ' ${host_makefile_frag}`
8236 # GDBserver is only useful in a "native" environment
8237 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
8241 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8242 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8243 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8244 # will be the default.
8245 if test x
"${GDB_MULTI_ARCH}" = x
; then
8246 case "${gdb_multi_arch}" in
8247 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8248 no
) GDB_MULTI_ARCH
=0 ;;
8249 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8252 if test x
"${GDB_MULTI_ARCH}" != x
; then
8253 cat >> confdefs.h
<<EOF
8254 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8258 # Warn the user when they use an old practice
8259 case "${GDB_MULTI_ARCH}" in
8261 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8262 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8263 GDB_MULTI_ARCH_PURE
)
8264 if test x
"${targetfile}" != x
; then
8265 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8268 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8272 SUBDIRS
="doc testsuite nlm"
8273 if test "${enable_multi_ice}" = "yes"; then
8274 SUBDIRS
="${SUBDIRS} multi-ice"
8279 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8280 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8288 if test "${hostfile}" != ""; then
8290 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8291 files
="${files} ${GDB_XM_FILE}"
8292 links
="${links} xm.h"
8293 cat >> confdefs.h
<<EOF
8294 #define GDB_XM_FILE ${GDB_XM_FILE}
8302 if test "${targetfile}" != ""; then
8304 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8305 files
="${files} ${GDB_TM_FILE}"
8306 links
="${links} tm.h"
8307 cat >> confdefs.h
<<EOF
8308 #define GDB_TM_FILE ${GDB_TM_FILE}
8316 if test "${nativefile}" != ""; then
8318 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8319 files
="${files} ${GDB_NM_FILE}"
8320 links
="${links} nm.h"
8321 cat >> confdefs.h
<<EOF
8322 #define GDB_NM_FILE ${GDB_NM_FILE}
8328 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8329 echo "configure:8330: checking whether ln -s works" >&5
8330 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8334 if ln -s X conftestdata
2>/dev
/null
8337 ac_cv_prog_LN_S
="ln -s"
8342 LN_S
="$ac_cv_prog_LN_S"
8343 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8344 echo "$ac_t""yes" 1>&6
8346 echo "$ac_t""no" 1>&6
8352 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8353 echo "configure:8354: checking for Cygwin environment" >&5
8354 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.
$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8364 #define __CYGWIN__ __CYGWIN32__
8369 if { (eval echo configure
:8370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8373 echo "configure: failed program was:" >&5
8374 cat conftest.
$ac_ext >&5
8382 echo "$ac_t""$ac_cv_cygwin" 1>&6
8384 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8385 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8386 echo "configure:8387: checking for mingw32 environment" >&5
8387 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8388 echo $ac_n "(cached) $ac_c" 1>&6
8390 cat > conftest.
$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8398 if { (eval echo configure
:8399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8402 echo "configure: failed program was:" >&5
8403 cat conftest.
$ac_ext >&5
8411 echo "$ac_t""$ac_cv_mingw32" 1>&6
8413 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8416 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8417 echo "configure:8418: checking for executable suffix" >&5
8418 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8421 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8425 echo 'int main () { return 0; }' > conftest.
$ac_ext
8427 if { (eval echo configure
:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8428 for file in conftest.
*; do
8430 *.c |
*.o |
*.obj
) ;;
8431 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8435 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8438 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8443 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8444 echo "$ac_t""${ac_cv_exeext}" 1>&6
8448 subdirs
="$configdirs"
8451 cat > confcache
<<\EOF
8452 # This file is a shell script that caches the results of configure
8453 # tests run on this system so they can be shared between configure
8454 # scripts and configure runs. It is not useful on other systems.
8455 # If it contains results you don't want to keep, you may remove or edit it.
8457 # By default, configure uses ./config.cache as the cache file,
8458 # creating it if it does not exist already. You can give configure
8459 # the --cache-file=FILE option to use a different cache file; that is
8460 # what configure does when it calls configure scripts in
8461 # subdirectories, so they share the cache.
8462 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8463 # config.status only pays attention to the cache file if you give it the
8464 # --recheck option to rerun configure.
8467 # The following way of writing the cache mishandles newlines in values,
8468 # but we know of no workaround that is simple, portable, and efficient.
8469 # So, don't put newlines in cache variables' values.
8470 # Ultrix sh set writes to stderr and can't be redirected directly,
8471 # and sets the high bit in the cache file unless we assign to the vars.
8473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8475 # `set' does not quote correctly, so add quotes (double-quote substitution
8476 # turns \\\\ into \\, and sed turns \\ into \).
8478 -e "s/'/'\\\\''/g" \
8479 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8482 # `set' quotes correctly as required by POSIX, so do not add quotes.
8483 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8486 if cmp -s $cache_file confcache
; then
8489 if test -w $cache_file; then
8490 echo "updating cache $cache_file"
8491 cat confcache
> $cache_file
8493 echo "not updating unwritable cache $cache_file"
8498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8500 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8501 # Let make expand exec_prefix.
8502 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8504 # Any assignment to VPATH causes Sun make to only execute
8505 # the first set of double-colon rules, so remove it if not needed.
8506 # If there is a colon in the path, we need to keep it.
8507 if test "x$srcdir" = x.
; then
8508 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8511 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8513 DEFS
=-DHAVE_CONFIG_H
8515 # Without the "./", some shells look in PATH for config.status.
8516 : ${CONFIG_STATUS=./config.status}
8518 echo creating
$CONFIG_STATUS
8519 rm -f $CONFIG_STATUS
8520 cat > $CONFIG_STATUS <<EOF
8522 # Generated automatically by configure.
8523 # Run this file to recreate the current configuration.
8524 # This directory was configured as follows,
8525 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8527 # $0 $ac_configure_args
8529 # Compiler output produced by configure, useful for debugging
8530 # configure, is in ./config.log if it exists.
8532 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8535 case "\$ac_option" in
8536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8537 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8538 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8539 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8540 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8542 -help | --help | --hel | --he | --h)
8543 echo "\$ac_cs_usage"; exit 0 ;;
8544 *) echo "\$ac_cs_usage"; exit 1 ;;
8548 ac_given_srcdir=$srcdir
8549 ac_given_INSTALL="$INSTALL"
8551 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8553 cat >> $CONFIG_STATUS <<EOF
8555 # Protect against being on the right side of a sed subst in config.status.
8556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8561 s%@CFLAGS@%$CFLAGS%g
8562 s%@CPPFLAGS@%$CPPFLAGS%g
8563 s%@CXXFLAGS@%$CXXFLAGS%g
8564 s%@FFLAGS@%$FFLAGS%g
8566 s%@LDFLAGS@%$LDFLAGS%g
8568 s%@exec_prefix@%$exec_prefix%g
8569 s%@prefix@%$prefix%g
8570 s%@program_transform_name@%$program_transform_name%g
8571 s%@bindir@%$bindir%g
8572 s%@sbindir@%$sbindir%g
8573 s%@libexecdir@%$libexecdir%g
8574 s%@datadir@%$datadir%g
8575 s%@sysconfdir@%$sysconfdir%g
8576 s%@sharedstatedir@%$sharedstatedir%g
8577 s%@localstatedir@%$localstatedir%g
8578 s%@libdir@%$libdir%g
8579 s%@includedir@%$includedir%g
8580 s%@oldincludedir@%$oldincludedir%g
8581 s%@infodir@%$infodir%g
8582 s%@mandir@%$mandir%g
8583 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8584 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8589 s%@host_alias@%$host_alias%g
8590 s%@host_cpu@%$host_cpu%g
8591 s%@host_vendor@%$host_vendor%g
8592 s%@host_os@%$host_os%g
8593 s%@target@%$target%g
8594 s%@target_alias@%$target_alias%g
8595 s%@target_cpu@%$target_cpu%g
8596 s%@target_vendor@%$target_vendor%g
8597 s%@target_os@%$target_os%g
8599 s%@build_alias@%$build_alias%g
8600 s%@build_cpu@%$build_cpu%g
8601 s%@build_vendor@%$build_vendor%g
8602 s%@build_os@%$build_os%g
8603 s%@SET_MAKE@%$SET_MAKE%g
8604 s%@RANLIB@%$RANLIB%g
8605 s%@ALLOCA@%$ALLOCA%g
8606 s%@USE_NLS@%$USE_NLS%g
8607 s%@MSGFMT@%$MSGFMT%g
8608 s%@GMSGFMT@%$GMSGFMT%g
8609 s%@XGETTEXT@%$XGETTEXT%g
8610 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8611 s%@CATALOGS@%$CATALOGS%g
8612 s%@CATOBJEXT@%$CATOBJEXT%g
8613 s%@DATADIRNAME@%$DATADIRNAME%g
8614 s%@GMOFILES@%$GMOFILES%g
8615 s%@INSTOBJEXT@%$INSTOBJEXT%g
8616 s%@INTLDEPS@%$INTLDEPS%g
8617 s%@INTLLIBS@%$INTLLIBS%g
8618 s%@INTLOBJS@%$INTLOBJS%g
8619 s%@POFILES@%$POFILES%g
8621 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8623 s%@GT_YES@%$GT_YES%g
8624 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8627 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8628 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8629 s%@INSTALL_DATA@%$INSTALL_DATA%g
8631 s%@DLLTOOL@%$DLLTOOL%g
8632 s%@WINDRES@%$WINDRES%g
8635 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
8636 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
8637 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
8638 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
8639 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
8640 s%@MMALLOC@%$MMALLOC%g
8642 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
8643 s%@TERM_LIB@%$TERM_LIB%g
8644 s%@WIN32LIBS@%$WIN32LIBS%g
8645 s%@LIBGUI@%$LIBGUI%g
8646 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
8647 s%@WIN32LDAPP@%$WIN32LDAPP%g
8648 s%@TCL_VERSION@%$TCL_VERSION%g
8649 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
8650 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
8651 s%@TCL_CC@%$TCL_CC%g
8652 s%@TCL_DEFS@%$TCL_DEFS%g
8653 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
8654 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
8655 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
8656 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
8657 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
8658 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
8659 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
8660 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
8661 s%@TCL_RANLIB@%$TCL_RANLIB%g
8662 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
8663 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
8664 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
8665 s%@TK_VERSION@%$TK_VERSION%g
8666 s%@TK_DEFS@%$TK_DEFS%g
8667 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
8668 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
8669 s%@TK_XLIBSW@%$TK_XLIBSW%g
8670 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
8671 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
8672 s%@TCLHDIR@%$TCLHDIR%g
8673 s%@TKHDIR@%$TKHDIR%g
8674 s%@ITCLHDIR@%$ITCLHDIR%g
8675 s%@ITKHDIR@%$ITKHDIR%g
8676 s%@TIXHDIR@%$TIXHDIR%g
8677 s%@ITCL_VERSION@%$ITCL_VERSION%g
8678 s%@ITCL_DEFS@%$ITCL_DEFS%g
8679 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
8680 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
8681 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
8682 s%@ITK_VERSION@%$ITK_VERSION%g
8683 s%@ITK_DEFS@%$ITK_DEFS%g
8684 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
8685 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
8686 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
8687 s%@TIX_VERSION@%$TIX_VERSION%g
8688 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
8689 s%@X_CFLAGS@%$X_CFLAGS%g
8690 s%@X_LDFLAGS@%$X_LDFLAGS%g
8691 s%@X_LIBS@%$X_LIBS%g
8692 s%@ITCLLIB@%$ITCLLIB%g
8693 s%@ITCL_DEPS@%$ITCL_DEPS%g
8694 s%@ITKLIB@%$ITKLIB%g
8695 s%@ITK_DEPS@%$ITK_DEPS%g
8696 s%@TIXLIB@%$TIXLIB%g
8697 s%@TIX_DEPS@%$TIX_DEPS%g
8698 s%@GDBTKLIBS@%$GDBTKLIBS%g
8699 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
8700 s%@IGNORE_SIM@%$IGNORE_SIM%g
8701 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
8702 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
8703 s%@CONFIG_OBS@%$CONFIG_OBS%g
8704 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
8705 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
8706 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
8707 s%@CONFIG_INITS@%$CONFIG_INITS%g
8708 s%@CONFIG_ALL@%$CONFIG_ALL%g
8709 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
8710 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
8711 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
8712 s%@HLDFLAGS@%$HLDFLAGS%g
8713 s%@HLDENV@%$HLDENV%g
8714 s%@target_subdir@%$target_subdir%g
8715 /@host_makefile_frag@/r $host_makefile_frag
8716 s%@host_makefile_frag@%%g
8717 /@target_makefile_frag@/r $target_makefile_frag
8718 s%@target_makefile_frag@%%g
8720 s%@SUBDIRS@%$SUBDIRS%g
8725 s%@EXEEXT@%$EXEEXT%g
8726 s%@subdirs@%$subdirs%g
8731 cat >> $CONFIG_STATUS <<\EOF
8733 # Split the substitutions into bite-sized pieces for seds with
8734 # small command number limits, like on Digital OSF/1 and HP-UX.
8735 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8736 ac_file
=1 # Number of current file.
8737 ac_beg
=1 # First line for current file.
8738 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8741 while $ac_more_lines; do
8742 if test $ac_beg -gt 1; then
8743 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8745 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8747 if test ! -s conftest.s
$ac_file; then
8749 rm -f conftest.s
$ac_file
8751 if test -z "$ac_sed_cmds"; then
8752 ac_sed_cmds
="sed -f conftest.s$ac_file"
8754 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8756 ac_file
=`expr $ac_file + 1`
8758 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8761 if test -z "$ac_sed_cmds"; then
8766 cat >> $CONFIG_STATUS <<EOF
8768 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
8770 cat >> $CONFIG_STATUS <<\EOF
8771 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8772 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8774 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8775 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8776 *) ac_file_in
="${ac_file}.in" ;;
8779 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8781 # Remove last slash and all that follows it. Not all systems have dirname.
8782 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8783 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8784 # The file is in a subdirectory.
8785 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8786 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8787 # A "../" for each directory in $ac_dir_suffix.
8788 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8790 ac_dir_suffix
= ac_dots
=
8793 case "$ac_given_srcdir" in
8795 if test -z "$ac_dots"; then top_srcdir
=.
8796 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8797 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8799 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8800 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8803 case "$ac_given_INSTALL" in
8804 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8805 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8808 echo creating
"$ac_file"
8810 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8812 *Makefile
*) ac_comsub
="1i\\
8813 # $configure_input" ;;
8817 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8819 s%@configure_input@%$configure_input%g
8820 s%@srcdir@%$srcdir%g
8821 s%@top_srcdir@%$top_srcdir%g
8822 s%@INSTALL@%$INSTALL%g
8823 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8827 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8828 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8830 # ac_d sets the value in "#define NAME VALUE" lines.
8831 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8832 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8835 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8836 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8837 ac_uB
='\([ ]\)%\1#\2define\3'
8840 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8841 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8842 ac_eB
='$%\1#\2define\3'
8846 if test "${CONFIG_HEADERS+set}" != set; then
8848 cat >> $CONFIG_STATUS <<EOF
8849 CONFIG_HEADERS="config.h:config.in"
8851 cat >> $CONFIG_STATUS <<\EOF
8853 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8854 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8856 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8857 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8858 *) ac_file_in
="${ac_file}.in" ;;
8861 echo creating
$ac_file
8863 rm -f conftest.frag conftest.
in conftest.out
8864 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8865 cat $ac_file_inputs > conftest.
in
8869 # Transform confdefs.h into a sed script conftest.vals that substitutes
8870 # the proper values into config.h.in to produce config.h. And first:
8871 # Protect against being on the right side of a sed subst in config.status.
8872 # Protect against being in an unquoted here document in config.status.
8874 cat > conftest.hdr
<<\EOF
8877 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8881 sed -n -f conftest.hdr confdefs.h > conftest.vals
8884 # This sed command replaces #undef with comments. This is necessary, for
8885 # example, in the case of _POSIX_SOURCE, which is predefined and required
8886 # on some systems where configure will not decide to define it.
8887 cat >> conftest.vals <<\EOF
8888 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8891 # Break up conftest.vals because some shells have a limit on
8892 # the size of here documents, and old seds have small limits too.
8897 ac_lines=`grep -c . conftest.vals
`
8898 # grep -c gives empty output for an empty file on some AIX systems.
8899 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8900 # Write a limited-size here document to conftest.frag.
8901 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8902 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8904 sed -f conftest.frag conftest.in > conftest.out
8906 mv conftest.out conftest.in
8908 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8910 mv conftest.tail conftest.vals
8914 cat >> $CONFIG_STATUS <<\EOF
8915 rm -f conftest.frag conftest.h
8916 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8917 cat conftest.in >> conftest.h
8919 if cmp -s $ac_file conftest.h 2>/dev/null; then
8920 echo "$ac_file is unchanged"
8923 # Remove last slash and all that follows it. Not all systems have dirname.
8924 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8925 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8926 # The file is in a subdirectory.
8927 test ! -d "$ac_dir" && mkdir "$ac_dir"
8930 mv conftest.h $ac_file
8936 cat >> $CONFIG_STATUS <<EOF
8941 cat >> $CONFIG_STATUS <<\EOF
8942 srcdir=$ac_given_srcdir
8943 while test -n "$ac_sources"; do
8944 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8945 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8947 echo "linking $srcdir/$ac_source to $ac_dest"
8949 if test ! -r $srcdir/$ac_source; then
8950 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8954 # Make relative symlinks.
8955 # Remove last slash and all that follows it. Not all systems have dirname.
8956 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
8957 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8958 # The dest file is in a subdirectory.
8959 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8960 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
8961 # A "../" for each directory in $ac_dest_dir_suffix.
8962 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
8964 ac_dest_dir_suffix= ac_dots=
8968 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8969 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8972 # Make a symlink if possible; otherwise try a hard link.
8973 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8974 ln $srcdir/$ac_source $ac_dest; then :
8976 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8980 cat >> $CONFIG_STATUS <<EOF
8982 gdb_host_cpu=$gdb_host_cpu
8983 gdb_target_cpu=$gdb_target_cpu
8984 nativefile=$nativefile
8987 cat >> $CONFIG_STATUS <<\EOF
8989 if test "${nativefile}" = ""; then
8990 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
8991 < Makefile > Makefile.tem
8992 mv -f Makefile.tem Makefile
8995 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
8996 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
8997 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
8998 mv -f Makefile.tmp Makefile
9001 case x$CONFIG_HEADERS in
9002 xconfig.h:config.in)
9008 chmod +x $CONFIG_STATUS
9009 rm -fr confdefs* $ac_clean_files
9010 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9012 if test "$no_recursion" != yes; then
9014 # Remove --cache-file and --srcdir arguments so they do not pile up.
9015 ac_sub_configure_args=
9017 for ac_arg in $ac_configure_args; do
9018 if test -n "$ac_prev"; then
9023 -cache-file | --cache-file | --cache-fil | --cache-fi \
9024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9025 ac_prev=cache_file ;;
9026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9033 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9037 for ac_config_dir in $configdirs; do
9039 # Do not complain, so a configure script can configure whichever
9040 # parts of a large source tree are present.
9041 if test ! -d $srcdir/$ac_config_dir; then
9045 echo configuring in $ac_config_dir
9050 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9052 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9060 # A "../" for each directory in /$ac_config_dir.
9061 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9064 .) # No --srcdir option. We are building in place.
9065 ac_sub_srcdir=$srcdir ;;
9066 /*) # Absolute path.
9067 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9069 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9072 # Check for guested configure; otherwise get Cygnus style configure.
9073 if test -f $ac_sub_srcdir/configure; then
9074 ac_sub_configure=$ac_sub_srcdir/configure
9075 elif test -f $ac_sub_srcdir/configure.in; then
9076 ac_sub_configure=$ac_configure
9078 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9082 # The recursion is here.
9083 if test -n "$ac_sub_configure"; then
9085 # Make the cache file name correct relative to the subdirectory.
9086 case "$cache_file" in
9087 /*) ac_sub_cache_file=$cache_file ;;
9089 ac_sub_cache_file="$ac_dots$cache_file" ;;
9091 case "$ac_given_INSTALL" in
9092 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9093 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9096 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9097 # The eval makes quoting arguments work.
9098 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9101 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }