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 --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
24 --disable-gdbcli disable command-line interface (CLI)"
26 --disable-gdbmi disable machine-interface (MI)"
28 --enable-tui enable full-screen terminal user interface (TUI)"
30 --enable-gdbtk enable gdbtk graphical user interface (GUI)"
32 --with-libunwind Use libunwind frame unwinding support"
34 --enable-profiling enable profiling of GDB"
36 --without-included-regex don't use included regex; this is the default
37 on systems with version 2 of the GNU C library
38 (use with caution on other system)"
40 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
42 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
44 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-multi-ice build the multi-ice-gdb-server"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file
=.
/config.cache
79 program_transform_name
=s
,x
,x
,
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 cat >> confdefs.h
<<\EOF
823 #define _GNU_SOURCE 1
827 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
828 echo "configure:829: checking how to run the C preprocessor" >&5
829 # On Suns, sometimes $CPP names a directory.
830 if test -n "$CPP" && test -d "$CPP"; then
833 if test -z "$CPP"; then
834 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 # This must be in double quotes, not single quotes, because CPP may get
838 # substituted into the Makefile and "${CC-cc}" will confuse make.
840 # On the NeXT, cc -E runs the code through the compiler's parser,
841 # not just through cpp.
842 cat > conftest.
$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
848 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
849 { (eval echo configure
:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
850 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
851 if test -z "$ac_err"; then
855 echo "configure: failed program was:" >&5
856 cat conftest.
$ac_ext >&5
858 CPP
="${CC-cc} -E -traditional-cpp"
859 cat > conftest.
$ac_ext <<EOF
860 #line 861 "configure"
861 #include "confdefs.h"
865 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
866 { (eval echo configure
:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
867 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
868 if test -z "$ac_err"; then
872 echo "configure: failed program was:" >&5
873 cat conftest.
$ac_ext >&5
875 CPP
="${CC-cc} -nologo -E"
876 cat > conftest.
$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
882 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
883 { (eval echo configure
:884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
884 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
885 if test -z "$ac_err"; then
889 echo "configure: failed program was:" >&5
890 cat conftest.
$ac_ext >&5
899 ac_cv_prog_CPP
="$CPP"
901 CPP
="$ac_cv_prog_CPP"
903 ac_cv_prog_CPP
="$CPP"
905 echo "$ac_t""$CPP" 1>&6
907 echo $ac_n "checking for AIX""... $ac_c" 1>&6
908 echo "configure:909: checking for AIX" >&5
909 cat > conftest.
$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
918 egrep "yes" >/dev
/null
2>&1; then
920 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
921 #define _ALL_SOURCE 1
926 echo "$ac_t""no" 1>&6
931 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
932 echo "configure:933: checking for POSIXized ISC" >&5
933 if test -d /etc
/conf
/kconfig.d
&&
934 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
936 echo "$ac_t""yes" 1>&6
937 ISC
=yes # If later tests want to check for ISC.
938 cat >> confdefs.h
<<\EOF
939 #define _POSIX_SOURCE 1
942 if test "$GCC" = yes; then
948 echo "$ac_t""no" 1>&6
955 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
956 echo "configure:957: checking for ${CC-cc} option to accept ANSI C" >&5
957 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 am_cv_prog_cc_stdc
=no
962 # Don't try gcc -ansi; that turns off useful extensions and
963 # breaks some systems' header files.
965 # Ultrix and OSF/1 -std1
966 # HP-UX 10.20 and later -Ae
967 # HP-UX older versions -Aa -D_HPUX_SOURCE
968 # SVR4 -Xc -D__EXTENSIONS__
969 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
971 CC
="$ac_save_CC $ac_arg"
972 cat > conftest.
$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
977 #include <sys/types.h>
978 #include <sys/stat.h>
979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
980 struct buf { int x; };
981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
982 static char *e (p, i)
988 static char *f (char * (*g) (char **, int), char **p, ...)
993 s = g (p, va_arg (v,int));
997 int test (int i, double x);
998 struct s1 {int (*f) (int a);};
999 struct s2 {int (*f) (double a);};
1000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1010 if { (eval echo configure
:1011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1012 am_cv_prog_cc_stdc
="$ac_arg"; break
1014 echo "configure: failed program was:" >&5
1015 cat conftest.
$ac_ext >&5
1023 if test -z "$am_cv_prog_cc_stdc"; then
1024 echo "$ac_t""none needed" 1>&6
1026 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1028 case "x$am_cv_prog_cc_stdc" in
1030 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1035 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1036 if test -f $ac_dir/install-sh
; then
1038 ac_install_sh
="$ac_aux_dir/install-sh -c"
1040 elif test -f $ac_dir/install.sh
; then
1042 ac_install_sh
="$ac_aux_dir/install.sh -c"
1046 if test -z "$ac_aux_dir"; then
1047 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1049 ac_config_guess
=$ac_aux_dir/config.guess
1050 ac_config_sub
=$ac_aux_dir/config.sub
1051 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1054 # Do some error checking and defaulting for the host and target type.
1056 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1059 # 1. You are not allowed to specify --host, --target, and nonopt at the
1061 # 2. Host defaults to nonopt.
1062 # 3. If nonopt is not specified, then host defaults to the current host,
1063 # as determined by config.guess.
1064 # 4. Target and build default to nonopt.
1065 # 5. If nonopt is not specified, then target and build default to host.
1067 # The aliases save the names the user supplied, while $host etc.
1068 # will get canonicalized.
1069 case $host---$target---$nonopt in
1070 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1071 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1075 # Make sure we can run config.sub.
1076 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1077 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1080 echo $ac_n "checking host system type""... $ac_c" 1>&6
1081 echo "configure:1082: checking host system type" >&5
1084 case "$host_alias" in
1088 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1089 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1091 *) host_alias
=$nonopt ;;
1095 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1096 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1097 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1098 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1099 echo "$ac_t""$host" 1>&6
1101 echo $ac_n "checking target system type""... $ac_c" 1>&6
1102 echo "configure:1103: checking target system type" >&5
1104 target_alias
=$target
1105 case "$target_alias" in
1108 NONE
) target_alias
=$host_alias ;;
1109 *) target_alias
=$nonopt ;;
1113 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1114 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1115 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1116 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1117 echo "$ac_t""$target" 1>&6
1119 echo $ac_n "checking build system type""... $ac_c" 1>&6
1120 echo "configure:1121: checking build system type" >&5
1123 case "$build_alias" in
1126 NONE
) build_alias
=$host_alias ;;
1127 *) build_alias
=$nonopt ;;
1131 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1132 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1133 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1134 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1135 echo "$ac_t""$build" 1>&6
1137 test "$host_alias" != "$target_alias" &&
1138 test "$program_prefix$program_suffix$program_transform_name" = \
1140 program_prefix
=${target_alias}-
1143 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1144 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1145 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1146 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1147 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1149 if test $host != $build; then
1150 ac_tool_prefix
=${host_alias}-
1155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1156 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$RANLIB"; then
1163 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1165 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1167 for ac_dir
in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir
=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1177 RANLIB
="$ac_cv_prog_RANLIB"
1178 if test -n "$RANLIB"; then
1179 echo "$ac_t""$RANLIB" 1>&6
1181 echo "$ac_t""no" 1>&6
1185 if test -z "$ac_cv_prog_RANLIB"; then
1186 if test -n "$ac_tool_prefix"; then
1187 # Extract the first word of "ranlib", so it can be a program name with args.
1188 set dummy ranlib
; ac_word
=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1197 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1199 for ac_dir
in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir
=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB
="ranlib"
1207 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1210 RANLIB
="$ac_cv_prog_RANLIB"
1211 if test -n "$RANLIB"; then
1212 echo "$ac_t""$RANLIB" 1>&6
1214 echo "$ac_t""no" 1>&6
1224 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${MAKE-make} sets \${MAKE}" >&5
1226 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1227 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 cat > conftestmake
<<\EOF
1232 @
echo 'ac_maketemp="${MAKE}"'
1234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1235 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1236 if test -n "$ac_maketemp"; then
1237 eval ac_cv_prog_make_
${ac_make}_set
=yes
1239 eval ac_cv_prog_make_
${ac_make}_set
=no
1243 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1244 echo "$ac_t""yes" 1>&6
1247 echo "$ac_t""no" 1>&6
1248 SET_MAKE
="MAKE=${MAKE-make}"
1251 # Extract the first word of "ranlib", so it can be a program name with args.
1252 set dummy ranlib
; ac_word
=$2
1253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254 echo "configure:1255: checking for $ac_word" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test -n "$RANLIB"; then
1259 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1261 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1263 for ac_dir
in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir
=.
1265 if test -f $ac_dir/$ac_word; then
1266 ac_cv_prog_RANLIB
="ranlib"
1271 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1274 RANLIB
="$ac_cv_prog_RANLIB"
1275 if test -n "$RANLIB"; then
1276 echo "$ac_t""$RANLIB" 1>&6
1278 echo "$ac_t""no" 1>&6
1281 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1282 echo "configure:1283: checking for ANSI C header files" >&5
1283 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 cat > conftest.
$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1294 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1295 { (eval echo configure
:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1296 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1297 if test -z "$ac_err"; then
1299 ac_cv_header_stdc
=yes
1302 echo "configure: failed program was:" >&5
1303 cat conftest.
$ac_ext >&5
1305 ac_cv_header_stdc
=no
1309 if test $ac_cv_header_stdc = yes; then
1310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1311 cat > conftest.
$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1317 egrep "memchr" >/dev
/null
2>&1; then
1321 ac_cv_header_stdc
=no
1327 if test $ac_cv_header_stdc = yes; then
1328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1329 cat > conftest.
$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1335 egrep "free" >/dev
/null
2>&1; then
1339 ac_cv_header_stdc
=no
1345 if test $ac_cv_header_stdc = yes; then
1346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1347 if test "$cross_compiling" = yes; then
1350 cat > conftest.
$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1354 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1355 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1357 int main () { int i; for (i = 0; i < 256; i++)
1358 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1362 if { (eval echo configure
:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1366 echo "configure: failed program was:" >&5
1367 cat conftest.
$ac_ext >&5
1369 ac_cv_header_stdc
=no
1377 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1378 if test $ac_cv_header_stdc = yes; then
1379 cat >> confdefs.h
<<\EOF
1380 #define STDC_HEADERS 1
1385 echo $ac_n "checking for working const""... $ac_c" 1>&6
1386 echo "configure:1387: checking for working const" >&5
1387 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 cat > conftest.
$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1396 /* Ultrix mips cc rejects this. */
1397 typedef int charset[2]; const charset x;
1398 /* SunOS 4.1.1 cc rejects this. */
1399 char const *const *ccp;
1401 /* NEC SVR4.0.2 mips cc rejects this. */
1402 struct point {int x, y;};
1403 static struct point const zero = {0,0};
1404 /* AIX XL C 1.02.0.0 rejects this.
1405 It does not let you subtract one const X* pointer from another in an arm
1406 of an if-expression whose if-part is not a constant expression */
1407 const char *g = "string";
1408 ccp = &g + (g ? g-g : 0);
1409 /* HPUX 7.0 cc rejects these. */
1412 ccp = (char const *const *) p;
1413 { /* SCO 3.2v4 cc rejects this. */
1415 char const *s = 0 ? (char *) 0 : (char const *) 0;
1419 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1421 const int *foo = &x[0];
1424 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1425 typedef const int *iptr;
1429 { /* AIX XL C 1.02.0.0 rejects this saying
1430 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1431 struct s { int j; const int *ap[3]; };
1432 struct s *b; b->j = 5;
1434 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1440 if { (eval echo configure
:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1444 echo "configure: failed program was:" >&5
1445 cat conftest.
$ac_ext >&5
1452 echo "$ac_t""$ac_cv_c_const" 1>&6
1453 if test $ac_cv_c_const = no
; then
1454 cat >> confdefs.h
<<\EOF
1460 echo $ac_n "checking for inline""... $ac_c" 1>&6
1461 echo "configure:1462: checking for inline" >&5
1462 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1466 for ac_kw
in inline __inline__ __inline
; do
1467 cat > conftest.
$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1475 if { (eval echo configure
:1476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1477 ac_cv_c_inline
=$ac_kw; break
1479 echo "configure: failed program was:" >&5
1480 cat conftest.
$ac_ext >&5
1487 echo "$ac_t""$ac_cv_c_inline" 1>&6
1488 case "$ac_cv_c_inline" in
1490 no
) cat >> confdefs.h
<<\EOF
1494 *) cat >> confdefs.h
<<EOF
1495 #define inline $ac_cv_c_inline
1500 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1501 echo "configure:1502: checking for off_t" >&5
1502 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 #include <sys/types.h>
1514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1515 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1517 ac_cv_type_off_t
=yes
1525 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1526 if test $ac_cv_type_off_t = no
; then
1527 cat >> confdefs.h
<<\EOF
1533 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1534 echo "configure:1535: checking for size_t" >&5
1535 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 #include <sys/types.h>
1547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1548 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1550 ac_cv_type_size_t
=yes
1553 ac_cv_type_size_t
=no
1558 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1559 if test $ac_cv_type_size_t = no
; then
1560 cat >> confdefs.h
<<\EOF
1561 #define size_t unsigned
1566 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1567 # for constant arguments. Useless!
1568 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1569 echo "configure:1570: checking for working alloca.h" >&5
1570 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 cat > conftest.
$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1578 char *p = alloca(2 * sizeof(int));
1581 if { (eval echo configure
:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1583 ac_cv_header_alloca_h
=yes
1585 echo "configure: failed program was:" >&5
1586 cat conftest.
$ac_ext >&5
1588 ac_cv_header_alloca_h
=no
1593 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1594 if test $ac_cv_header_alloca_h = yes; then
1595 cat >> confdefs.h
<<\EOF
1596 #define HAVE_ALLOCA_H 1
1601 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1602 echo "configure:1603: checking for alloca" >&5
1603 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 cat > conftest.
$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1611 # define alloca __builtin_alloca
1614 # include <malloc.h>
1615 # define alloca _alloca
1618 # include <alloca.h>
1623 # ifndef alloca /* predefined by HP cc +Olibcalls */
1632 char *p = (char *) alloca(1);
1635 if { (eval echo configure
:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1637 ac_cv_func_alloca_works
=yes
1639 echo "configure: failed program was:" >&5
1640 cat conftest.
$ac_ext >&5
1642 ac_cv_func_alloca_works
=no
1647 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1648 if test $ac_cv_func_alloca_works = yes; then
1649 cat >> confdefs.h
<<\EOF
1650 #define HAVE_ALLOCA 1
1655 if test $ac_cv_func_alloca_works = no
; then
1656 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1657 # that cause trouble. Some versions do not even contain alloca or
1658 # contain a buggy version. If you still want to use their alloca,
1659 # use ar to extract alloca.o from them instead of compiling alloca.c.
1660 ALLOCA
=alloca.
${ac_objext}
1661 cat >> confdefs.h
<<\EOF
1666 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1667 echo "configure:1668: checking whether alloca needs Cray hooks" >&5
1668 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.
$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1674 #if defined(CRAY) && ! defined(CRAY2)
1681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1682 egrep "webecray" >/dev
/null
2>&1; then
1693 echo "$ac_t""$ac_cv_os_cray" 1>&6
1694 if test $ac_cv_os_cray = yes; then
1695 for ac_func
in _getb67 GETB67 getb67
; do
1696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1697 echo "configure:1698: checking for $ac_func" >&5
1698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 cat > conftest.
$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 /* System header to define __stub macros and hopefully few prototypes,
1705 which can conflict with char $ac_func(); below. */
1707 /* Override any gcc2 internal prototype to avoid an error. */
1708 /* We use char because int might match the return type of a gcc2
1709 builtin and then its argument prototype would still apply. */
1714 /* The GNU C library defines this for functions which it implements
1715 to always fail with ENOSYS. Some functions are actually named
1716 something starting with __ and the normal name is an alias. */
1717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1725 if { (eval echo configure
:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1727 eval "ac_cv_func_$ac_func=yes"
1729 echo "configure: failed program was:" >&5
1730 cat conftest.
$ac_ext >&5
1732 eval "ac_cv_func_$ac_func=no"
1737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1738 echo "$ac_t""yes" 1>&6
1739 cat >> confdefs.h
<<EOF
1740 #define CRAY_STACKSEG_END $ac_func
1745 echo "$ac_t""no" 1>&6
1751 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1752 echo "configure:1753: checking stack direction for C alloca" >&5
1753 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1756 if test "$cross_compiling" = yes; then
1757 ac_cv_c_stack_direction
=0
1759 cat > conftest.
$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 find_stack_direction ()
1764 static char *addr = 0;
1769 return find_stack_direction ();
1772 return (&dummy > addr) ? 1 : -1;
1776 exit (find_stack_direction() < 0);
1779 if { (eval echo configure
:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1781 ac_cv_c_stack_direction
=1
1783 echo "configure: failed program was:" >&5
1784 cat conftest.
$ac_ext >&5
1786 ac_cv_c_stack_direction
=-1
1793 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1794 cat >> confdefs.h
<<EOF
1795 #define STACK_DIRECTION $ac_cv_c_stack_direction
1800 for ac_hdr
in unistd.h
1802 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_hdr" >&5
1805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.
$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1814 { (eval echo configure
:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1816 if test -z "$ac_err"; then
1818 eval "ac_cv_header_$ac_safe=yes"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.
$ac_ext >&5
1824 eval "ac_cv_header_$ac_safe=no"
1828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1829 echo "$ac_t""yes" 1>&6
1830 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1831 cat >> confdefs.h
<<EOF
1832 #define $ac_tr_hdr 1
1836 echo "$ac_t""no" 1>&6
1840 for ac_func
in getpagesize
1842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_func" >&5
1844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $ac_func(); below. */
1853 /* Override any gcc2 internal prototype to avoid an error. */
1854 /* We use char because int might match the return type of a gcc2
1855 builtin and then its argument prototype would still apply. */
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1871 if { (eval echo configure
:1872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1873 eval "ac_cv_func_$ac_func=yes"
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1878 eval "ac_cv_func_$ac_func=no"
1883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1885 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1886 cat >> confdefs.h
<<EOF
1887 #define $ac_tr_func 1
1891 echo "$ac_t""no" 1>&6
1895 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1896 echo "configure:1897: checking for working mmap" >&5
1897 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 if test "$cross_compiling" = yes; then
1901 ac_cv_func_mmap_fixed_mapped
=no
1903 cat > conftest.
$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1907 /* Thanks to Mike Haertel and Jim Avera for this test.
1908 Here is a matrix of mmap possibilities:
1909 mmap private not fixed
1910 mmap private fixed at somewhere currently unmapped
1911 mmap private fixed at somewhere already mapped
1912 mmap shared not fixed
1913 mmap shared fixed at somewhere currently unmapped
1914 mmap shared fixed at somewhere already mapped
1915 For private mappings, we should verify that changes cannot be read()
1916 back from the file, nor mmap's back from the file at a different
1917 address. (There have been systems where private was not correctly
1918 implemented like the infamous i386 svr4.0, and systems where the
1919 VM page cache was not coherent with the filesystem buffer cache
1920 like early versions of FreeBSD and possibly contemporary NetBSD.)
1921 For shared mappings, we should conversely verify that changes get
1922 propogated back to all the places they're supposed to be.
1924 Grep wants private fixed already mapped.
1925 The main things grep needs to know about mmap are:
1926 * does it exist and is it safe to write into the mmap'd area
1927 * how to use it (BSD variants) */
1928 #include <sys/types.h>
1930 #include <sys/mman.h>
1932 /* This mess was copied from the GNU getpagesize.h. */
1933 #ifndef HAVE_GETPAGESIZE
1934 # ifdef HAVE_UNISTD_H
1935 # include <unistd.h>
1938 /* Assume that all systems that can run configure have sys/param.h. */
1939 # ifndef HAVE_SYS_PARAM_H
1940 # define HAVE_SYS_PARAM_H 1
1943 # ifdef _SC_PAGESIZE
1944 # define getpagesize() sysconf(_SC_PAGESIZE)
1945 # else /* no _SC_PAGESIZE */
1946 # ifdef HAVE_SYS_PARAM_H
1947 # include <sys/param.h>
1948 # ifdef EXEC_PAGESIZE
1949 # define getpagesize() EXEC_PAGESIZE
1950 # else /* no EXEC_PAGESIZE */
1952 # define getpagesize() NBPG * CLSIZE
1955 # endif /* no CLSIZE */
1956 # else /* no NBPG */
1958 # define getpagesize() NBPC
1959 # else /* no NBPC */
1961 # define getpagesize() PAGESIZE
1962 # endif /* PAGESIZE */
1963 # endif /* no NBPC */
1964 # endif /* no NBPG */
1965 # endif /* no EXEC_PAGESIZE */
1966 # else /* no HAVE_SYS_PARAM_H */
1967 # define getpagesize() 8192 /* punt totally */
1968 # endif /* no HAVE_SYS_PARAM_H */
1969 # endif /* no _SC_PAGESIZE */
1971 #endif /* no HAVE_GETPAGESIZE */
1974 extern "C" { void *malloc(unsigned); }
1982 char *data, *data2, *data3;
1986 pagesize = getpagesize();
1989 * First, make a file with some known garbage in it.
1991 data = malloc(pagesize);
1994 for (i = 0; i < pagesize; ++i)
1995 *(data + i) = rand();
1997 fd = creat("conftestmmap", 0600);
2000 if (write(fd, data, pagesize) != pagesize)
2005 * Next, try to mmap the file at a fixed address which
2006 * already has something else allocated at it. If we can,
2007 * also make sure that we see the same garbage.
2009 fd = open("conftestmmap", O_RDWR);
2012 data2 = malloc(2 * pagesize);
2015 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2016 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2017 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2019 for (i = 0; i < pagesize; ++i)
2020 if (*(data + i) != *(data2 + i))
2024 * Finally, make sure that changes to the mapped area
2025 * do not percolate back to the file as seen by read().
2026 * (This is a bug on some variants of i386 svr4.0.)
2028 for (i = 0; i < pagesize; ++i)
2029 *(data2 + i) = *(data2 + i) + 1;
2030 data3 = malloc(pagesize);
2033 if (read(fd, data3, pagesize) != pagesize)
2035 for (i = 0; i < pagesize; ++i)
2036 if (*(data + i) != *(data3 + i))
2039 unlink("conftestmmap");
2044 if { (eval echo configure
:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2046 ac_cv_func_mmap_fixed_mapped
=yes
2048 echo "configure: failed program was:" >&5
2049 cat conftest.
$ac_ext >&5
2051 ac_cv_func_mmap_fixed_mapped
=no
2058 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2059 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2060 cat >> confdefs.h
<<\EOF
2067 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2068 unistd.h values.h sys
/param.h
2070 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_hdr" >&5
2073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.
$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2081 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2082 { (eval echo configure
:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2083 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2084 if test -z "$ac_err"; then
2086 eval "ac_cv_header_$ac_safe=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 eval "ac_cv_header_$ac_safe=no"
2096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2099 cat >> confdefs.h
<<EOF
2100 #define $ac_tr_hdr 1
2104 echo "$ac_t""no" 1>&6
2108 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2109 __argz_count __argz_stringify __argz_next
2111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2112 echo "configure:2113: checking for $ac_func" >&5
2113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 cat > conftest.
$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 /* System header to define __stub macros and hopefully few prototypes,
2120 which can conflict with char $ac_func(); below. */
2122 /* Override any gcc2 internal prototype to avoid an error. */
2123 /* We use char because int might match the return type of a gcc2
2124 builtin and then its argument prototype would still apply. */
2129 /* The GNU C library defines this for functions which it implements
2130 to always fail with ENOSYS. Some functions are actually named
2131 something starting with __ and the normal name is an alias. */
2132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2140 if { (eval echo configure
:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2142 eval "ac_cv_func_$ac_func=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2147 eval "ac_cv_func_$ac_func=no"
2152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2154 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2155 cat >> confdefs.h
<<EOF
2156 #define $ac_tr_func 1
2160 echo "$ac_t""no" 1>&6
2165 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2166 for ac_func
in stpcpy
2168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_func" >&5
2170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 /* System header to define __stub macros and hopefully few prototypes,
2177 which can conflict with char $ac_func(); below. */
2179 /* Override any gcc2 internal prototype to avoid an error. */
2180 /* We use char because int might match the return type of a gcc2
2181 builtin and then its argument prototype would still apply. */
2186 /* The GNU C library defines this for functions which it implements
2187 to always fail with ENOSYS. Some functions are actually named
2188 something starting with __ and the normal name is an alias. */
2189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2197 if { (eval echo configure
:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2199 eval "ac_cv_func_$ac_func=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.
$ac_ext >&5
2204 eval "ac_cv_func_$ac_func=no"
2209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2211 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2212 cat >> confdefs.h
<<EOF
2213 #define $ac_tr_func 1
2217 echo "$ac_t""no" 1>&6
2222 if test "${ac_cv_func_stpcpy}" = "yes"; then
2223 cat >> confdefs.h
<<\EOF
2224 #define HAVE_STPCPY 1
2229 if test $ac_cv_header_locale_h = yes; then
2230 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2231 echo "configure:2232: checking for LC_MESSAGES" >&5
2232 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.
$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2243 if { (eval echo configure
:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2245 am_cv_val_LC_MESSAGES
=yes
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2250 am_cv_val_LC_MESSAGES
=no
2255 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2256 if test $am_cv_val_LC_MESSAGES = yes; then
2257 cat >> confdefs.h
<<\EOF
2258 #define HAVE_LC_MESSAGES 1
2263 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether NLS is requested" >&5
2265 # Check whether --enable-nls or --disable-nls was given.
2266 if test "${enable_nls+set}" = set; then
2267 enableval
="$enable_nls"
2273 echo "$ac_t""$USE_NLS" 1>&6
2276 USE_INCLUDED_LIBINTL
=no
2278 if test "$USE_NLS" = "yes"; then
2279 cat >> confdefs.h
<<\EOF
2280 #define ENABLE_NLS 1
2283 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2284 echo "configure:2285: checking whether included gettext is requested" >&5
2285 # Check whether --with-included-gettext or --without-included-gettext was given.
2286 if test "${with_included_gettext+set}" = set; then
2287 withval
="$with_included_gettext"
2288 nls_cv_force_use_gnu_gettext
=$withval
2290 nls_cv_force_use_gnu_gettext
=no
2293 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2295 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2296 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2298 nls_cv_header_libgt
=
2301 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2302 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2303 echo "configure:2304: checking for libintl.h" >&5
2304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 cat > conftest.
$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 #include <libintl.h>
2312 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2313 { (eval echo configure
:2314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2314 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2315 if test -z "$ac_err"; then
2317 eval "ac_cv_header_$ac_safe=yes"
2320 echo "configure: failed program was:" >&5
2321 cat conftest.
$ac_ext >&5
2323 eval "ac_cv_header_$ac_safe=no"
2327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2330 echo "configure:2331: checking for gettext in libc" >&5
2331 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <libintl.h>
2339 return (int) gettext ("")
2342 if { (eval echo configure
:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2344 gt_cv_func_gettext_libc
=yes
2346 echo "configure: failed program was:" >&5
2347 cat conftest.
$ac_ext >&5
2349 gt_cv_func_gettext_libc
=no
2354 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2356 if test "$gt_cv_func_gettext_libc" != "yes"; then
2357 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2358 echo "configure:2359: checking for bindtextdomain in -lintl" >&5
2359 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 ac_save_LIBS
="$LIBS"
2365 cat > conftest.
$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2368 /* Override any gcc2 internal prototype to avoid an error. */
2369 /* We use char because int might match the return type of a gcc2
2370 builtin and then its argument prototype would still apply. */
2371 char bindtextdomain();
2377 if { (eval echo configure
:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2379 eval "ac_cv_lib_$ac_lib_var=yes"
2381 echo "configure: failed program was:" >&5
2382 cat conftest.
$ac_ext >&5
2384 eval "ac_cv_lib_$ac_lib_var=no"
2387 LIBS
="$ac_save_LIBS"
2390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2391 echo "$ac_t""yes" 1>&6
2392 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2393 echo "configure:2394: checking for gettext in libintl" >&5
2394 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2402 return (int) gettext ("")
2405 if { (eval echo configure
:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2407 gt_cv_func_gettext_libintl
=yes
2409 echo "configure: failed program was:" >&5
2410 cat conftest.
$ac_ext >&5
2412 gt_cv_func_gettext_libintl
=no
2417 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2419 echo "$ac_t""no" 1>&6
2424 if test "$gt_cv_func_gettext_libc" = "yes" \
2425 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2426 cat >> confdefs.h
<<\EOF
2427 #define HAVE_GETTEXT 1
2430 # Extract the first word of "msgfmt", so it can be a program name with args.
2431 set dummy msgfmt
; ac_word
=$2
2432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2433 echo "configure:2434: checking for $ac_word" >&5
2434 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2439 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2442 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2443 for ac_dir
in $PATH; do
2444 test -z "$ac_dir" && ac_dir
=.
2445 if test -f $ac_dir/$ac_word; then
2446 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2447 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2453 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2457 MSGFMT
="$ac_cv_path_MSGFMT"
2458 if test -n "$MSGFMT"; then
2459 echo "$ac_t""$MSGFMT" 1>&6
2461 echo "$ac_t""no" 1>&6
2463 if test "$MSGFMT" != "no"; then
2464 for ac_func
in dcgettext
2466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2467 echo "configure:2468: checking for $ac_func" >&5
2468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.
$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 /* System header to define __stub macros and hopefully few prototypes,
2475 which can conflict with char $ac_func(); below. */
2477 /* Override any gcc2 internal prototype to avoid an error. */
2478 /* We use char because int might match the return type of a gcc2
2479 builtin and then its argument prototype would still apply. */
2484 /* The GNU C library defines this for functions which it implements
2485 to always fail with ENOSYS. Some functions are actually named
2486 something starting with __ and the normal name is an alias. */
2487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2495 if { (eval echo configure
:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2497 eval "ac_cv_func_$ac_func=yes"
2499 echo "configure: failed program was:" >&5
2500 cat conftest.
$ac_ext >&5
2502 eval "ac_cv_func_$ac_func=no"
2507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2509 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2510 cat >> confdefs.h
<<EOF
2511 #define $ac_tr_func 1
2515 echo "$ac_t""no" 1>&6
2519 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2520 set dummy gmsgfmt
; ac_word
=$2
2521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2522 echo "configure:2523: checking for $ac_word" >&5
2523 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2528 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2531 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2534 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2536 for ac_dir
in $ac_dummy; do
2537 test -z "$ac_dir" && ac_dir
=.
2538 if test -f $ac_dir/$ac_word; then
2539 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2544 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2548 GMSGFMT
="$ac_cv_path_GMSGFMT"
2549 if test -n "$GMSGFMT"; then
2550 echo "$ac_t""$GMSGFMT" 1>&6
2552 echo "$ac_t""no" 1>&6
2555 # Extract the first word of "xgettext", so it can be a program name with args.
2556 set dummy xgettext
; ac_word
=$2
2557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2558 echo "configure:2559: checking for $ac_word" >&5
2559 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2568 for ac_dir
in $PATH; do
2569 test -z "$ac_dir" && ac_dir
=.
2570 if test -f $ac_dir/$ac_word; then
2571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2572 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2578 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2582 XGETTEXT
="$ac_cv_path_XGETTEXT"
2583 if test -n "$XGETTEXT"; then
2584 echo "$ac_t""$XGETTEXT" 1>&6
2586 echo "$ac_t""no" 1>&6
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2594 extern int _nl_msg_cat_cntr;
2595 return _nl_msg_cat_cntr
2598 if { (eval echo configure
:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2603 echo "configure: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2615 echo "$ac_t""no" 1>&6
2620 if test "$CATOBJEXT" = "NONE"; then
2621 nls_cv_use_gnu_gettext
=yes
2625 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2626 INTLOBJS
="\$(GETTOBJS)"
2627 # Extract the first word of "msgfmt", so it can be a program name with args.
2628 set dummy msgfmt
; ac_word
=$2
2629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_word" >&5
2631 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2636 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2639 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2640 for ac_dir
in $PATH; do
2641 test -z "$ac_dir" && ac_dir
=.
2642 if test -f $ac_dir/$ac_word; then
2643 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2644 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2650 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2654 MSGFMT
="$ac_cv_path_MSGFMT"
2655 if test -n "$MSGFMT"; then
2656 echo "$ac_t""$MSGFMT" 1>&6
2658 echo "$ac_t""no" 1>&6
2661 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2662 set dummy gmsgfmt
; ac_word
=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2670 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2673 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2678 for ac_dir
in $ac_dummy; do
2679 test -z "$ac_dir" && ac_dir
=.
2680 if test -f $ac_dir/$ac_word; then
2681 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2686 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2690 GMSGFMT
="$ac_cv_path_GMSGFMT"
2691 if test -n "$GMSGFMT"; then
2692 echo "$ac_t""$GMSGFMT" 1>&6
2694 echo "$ac_t""no" 1>&6
2697 # Extract the first word of "xgettext", so it can be a program name with args.
2698 set dummy xgettext
; ac_word
=$2
2699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_word" >&5
2701 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2706 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2710 for ac_dir
in $PATH; do
2711 test -z "$ac_dir" && ac_dir
=.
2712 if test -f $ac_dir/$ac_word; then
2713 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2714 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2720 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2724 XGETTEXT
="$ac_cv_path_XGETTEXT"
2725 if test -n "$XGETTEXT"; then
2726 echo "$ac_t""$XGETTEXT" 1>&6
2728 echo "$ac_t""no" 1>&6
2732 USE_INCLUDED_LIBINTL
=yes
2736 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2738 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2739 nls_cv_header_intl
=libintl.h
2740 nls_cv_header_libgt
=libgettext.h
2743 if test "$XGETTEXT" != ":"; then
2744 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2747 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2752 # We need to process the po/ directory.
2756 nls_cv_header_intl
=libintl.h
2757 nls_cv_header_libgt
=libgettext.h
2760 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2761 # because some of the sources are only built for this goal.
2762 if test "$PACKAGE" = gettext; then
2764 USE_INCLUDED_LIBINTL
=yes
2767 for lang
in $ALL_LINGUAS; do
2768 GMOFILES
="$GMOFILES $lang.gmo"
2769 POFILES
="$POFILES $lang.po"
2785 if test "x$CATOBJEXT" != "x"; then
2786 if test "x$ALL_LINGUAS" = "x"; then
2789 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2790 echo "configure:2791: checking for catalogs to be installed" >&5
2792 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2793 case "$ALL_LINGUAS" in
2794 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2797 LINGUAS
=$NEW_LINGUAS
2798 echo "$ac_t""$LINGUAS" 1>&6
2801 if test -n "$LINGUAS"; then
2802 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2806 if test $ac_cv_header_locale_h = yes; then
2807 INCLUDE_LOCALE_H
="#include <locale.h>"
2810 /* The system does not provide the header <locale.h>. Take care yourself. */"
2814 if test -f $srcdir/po2tbl.
sed.
in; then
2815 if test "$CATOBJEXT" = ".cat"; then
2816 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2817 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2818 echo "configure:2819: checking for linux/version.h" >&5
2819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.
$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 #include <linux/version.h>
2827 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2828 { (eval echo configure
:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2829 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2830 if test -z "$ac_err"; then
2832 eval "ac_cv_header_$ac_safe=yes"
2835 echo "configure: failed program was:" >&5
2836 cat conftest.
$ac_ext >&5
2838 eval "ac_cv_header_$ac_safe=no"
2842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2846 echo "$ac_t""no" 1>&6
2851 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2853 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2854 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2857 if test "$PACKAGE" = "gettext"; then
2867 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2873 if test -f $srcdir/po
/POTFILES.
in; then
2874 test -d po || mkdir po
2875 if test "x$srcdir" != "x."; then
2876 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2877 posrcprefix
="$srcdir/"
2879 posrcprefix
="../$srcdir/"
2885 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2886 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2889 cat >> confdefs.h
<<\EOF
2890 #define PACKAGE "gdb"
2894 debugdir
=${libdir}/debug
2896 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2897 if test "${with_separate_debug_dir+set}" = set; then
2898 withval
="$with_separate_debug_dir"
2899 debugdir
="${withval}"
2904 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
2905 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2906 ac_define_dir
=`eval echo $debugdir`
2907 ac_define_dir
=`eval echo $ac_define_dir`
2908 cat >> confdefs.h
<<EOF
2909 #define DEBUGDIR "$ac_define_dir"
2913 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2925 subdirs
="doc testsuite"
2929 .
$srcdir/configure.
host
2931 .
$srcdir/configure.tgt
2933 # Fetch the default architecture and default target vector from BFD.
2934 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2936 # We only want the first architecture, so strip off the others if
2937 # there is more than one.
2938 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2940 if test "x$targ_archs" != x
; then
2941 cat >> confdefs.h
<<EOF
2942 #define DEFAULT_BFD_ARCH $targ_archs
2946 if test "x$targ_defvec" != x
; then
2947 cat >> confdefs.h
<<EOF
2948 #define DEFAULT_BFD_VEC $targ_defvec
2953 if test "$program_transform_name" = s
,x
,x
,; then
2954 program_transform_name
=
2956 # Double any \ or $. echo might interpret backslashes.
2957 cat <<\EOF_SED
> conftestsed
2958 s
,\\,\\\\,g
; s
,\$
,$$
,g
2960 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2963 test "$program_prefix" != NONE
&&
2964 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2965 # Use a double $ so make ignores it.
2966 test "$program_suffix" != NONE
&&
2967 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2969 # sed with no file args requires a program.
2970 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2973 # The CLI cannot be disabled yet, but may be in the future.
2976 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2977 if test "${enable_gdbcli+set}" = set; then
2978 enableval
="$enable_gdbcli"
2983 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2985 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
2991 if test x
"$enable_gdbcli" = xyes
; then
2992 if test -d $srcdir/cli
; then
2993 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
2994 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
2995 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
2996 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3001 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3002 if test "${enable_gdbmi+set}" = set; then
3003 enableval
="$enable_gdbmi"
3008 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3014 if test x
"$enable_gdbmi" = xyes
; then
3015 if test -d $srcdir/mi
; then
3016 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3017 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3018 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3019 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3024 # Check whether --enable-tui or --disable-tui was given.
3025 if test "${enable_tui+set}" = set; then
3026 enableval
="$enable_tui"
3031 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3037 if test x
"$enable_tui" = xyes
; then
3038 if test -d $srcdir/tui
; then
3039 if test "$ac_cv_search_initscr" != no
-a "$ac_cv_search_wborder" != no
; then
3040 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3041 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3042 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3043 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3044 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3045 CONFIG_ALL
="${CONFIG_ALL} all-tui"
3046 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
3047 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
3048 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
3054 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3055 if test "${enable_gdbtk+set}" = set; then
3056 enableval
="$enable_gdbtk"
3061 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3064 if test -d $srcdir/gdbtk
; then
3071 # We unconditionally disable gdbtk tests on selected platforms.
3074 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3078 # Libunwind support.
3079 # Check whether --with-libunwind or --without-libunwind was given.
3080 if test "${with_libunwind+set}" = set; then
3081 withval
="$with_libunwind"
3082 case "${withval}" in
3083 yes) enable_libunwind
=yes ;;
3084 no
) enable_libunwind
=no
;;
3085 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3089 for ac_hdr
in libunwind.h
3091 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_hdr" >&5
3094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3103 { (eval echo configure
:3104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3105 if test -z "$ac_err"; then
3107 eval "ac_cv_header_$ac_safe=yes"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.
$ac_ext >&5
3113 eval "ac_cv_header_$ac_safe=no"
3117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3120 cat >> confdefs.h
<<EOF
3121 #define $ac_tr_hdr 1
3125 echo "$ac_t""no" 1>&6
3129 for ac_hdr
in libunwind-ia64.h
3131 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_hdr" >&5
3134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.
$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3142 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3143 { (eval echo configure
:3144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3144 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3145 if test -z "$ac_err"; then
3147 eval "ac_cv_header_$ac_safe=yes"
3150 echo "configure: failed program was:" >&5
3151 cat conftest.
$ac_ext >&5
3153 eval "ac_cv_header_$ac_safe=no"
3157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3160 cat >> confdefs.h
<<EOF
3161 #define $ac_tr_hdr 1
3165 echo "$ac_t""no" 1>&6
3169 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
3170 enable_libunwind
=yes;
3176 if test x
"$enable_libunwind" = xyes
; then
3177 for ac_hdr
in libunwind.h
3179 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3180 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3181 echo "configure:3182: checking for $ac_hdr" >&5
3182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 cat > conftest.
$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3190 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3191 { (eval echo configure
:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3192 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3193 if test -z "$ac_err"; then
3195 eval "ac_cv_header_$ac_safe=yes"
3198 echo "configure: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3201 eval "ac_cv_header_$ac_safe=no"
3205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3208 cat >> confdefs.h
<<EOF
3209 #define $ac_tr_hdr 1
3213 echo "$ac_t""no" 1>&6
3217 for ac_hdr
in libunwind-ia64.h
3219 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3221 echo "configure:3222: checking for $ac_hdr" >&5
3222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3225 cat > conftest.
$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3230 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3231 { (eval echo configure
:3232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3232 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3233 if test -z "$ac_err"; then
3235 eval "ac_cv_header_$ac_safe=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3241 eval "ac_cv_header_$ac_safe=no"
3245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3247 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3248 cat >> confdefs.h
<<EOF
3249 #define $ac_tr_hdr 1
3253 echo "$ac_t""no" 1>&6
3257 cat >> confdefs.h
<<\EOF
3258 #define HAVE_LIBUNWIND 1
3261 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
3262 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
3263 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
3266 # Profiling support.
3267 # Check whether --enable-profiling or --disable-profiling was given.
3268 if test "${enable_profiling+set}" = set; then
3269 enableval
="$enable_profiling"
3274 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3281 for ac_func
in monstartup _mcleanup
3283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_func" >&5
3285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* System header to define __stub macros and hopefully few prototypes,
3292 which can conflict with char $ac_func(); below. */
3294 /* Override any gcc2 internal prototype to avoid an error. */
3295 /* We use char because int might match the return type of a gcc2
3296 builtin and then its argument prototype would still apply. */
3301 /* The GNU C library defines this for functions which it implements
3302 to always fail with ENOSYS. Some functions are actually named
3303 something starting with __ and the normal name is an alias. */
3304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3312 if { (eval echo configure
:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3314 eval "ac_cv_func_$ac_func=yes"
3316 echo "configure: failed program was:" >&5
3317 cat conftest.
$ac_ext >&5
3319 eval "ac_cv_func_$ac_func=no"
3324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3327 cat >> confdefs.h
<<EOF
3328 #define $ac_tr_func 1
3332 echo "$ac_t""no" 1>&6
3336 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3337 echo "configure:3338: checking for _etext" >&5
3338 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.
$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3351 if { (eval echo configure
:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3353 ac_cv_var__etext
=yes
3355 echo "configure: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3363 echo "$ac_t""$ac_cv_var__etext" 1>&6
3364 if test $ac_cv_var__etext = yes; then
3365 cat >> confdefs.h
<<\EOF
3366 #define HAVE__ETEXT 1
3370 if test "$enable_profiling" = yes ; then
3371 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
3372 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3375 OLD_CFLAGS
="$CFLAGS"
3376 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
3378 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3379 echo "configure:3380: checking whether $CC supports -pg" >&5
3380 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 cat > conftest.
$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3391 if { (eval echo configure
:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 ac_cv_cc_supports_pg
=yes
3395 echo "configure: failed program was:" >&5
3396 cat conftest.
$ac_ext >&5
3398 ac_cv_cc_supports_pg
=no
3403 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3405 if test $ac_cv_cc_supports_pg = no
; then
3406 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3409 CFLAGS
="$OLD_CFLAGS"
3412 # --------------------- #
3413 # Checks for programs. #
3414 # --------------------- #
3416 for ac_prog
in mawk gawk nawk
awk
3418 # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy
$ac_prog; ac_word
=$2
3420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3421 echo "configure:3422: checking for $ac_word" >&5
3422 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 if test -n "$AWK"; then
3426 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3428 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3430 for ac_dir
in $ac_dummy; do
3431 test -z "$ac_dir" && ac_dir
=.
3432 if test -f $ac_dir/$ac_word; then
3433 ac_cv_prog_AWK
="$ac_prog"
3440 AWK
="$ac_cv_prog_AWK"
3441 if test -n "$AWK"; then
3442 echo "$ac_t""$AWK" 1>&6
3444 echo "$ac_t""no" 1>&6
3447 test -n "$AWK" && break
3450 # Find a good install program. We prefer a C program (faster),
3451 # so one script is as good as another. But avoid the broken or
3452 # incompatible versions:
3453 # SysV /etc/install, /usr/sbin/install
3454 # SunOS /usr/etc/install
3455 # IRIX /sbin/install
3457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3460 # ./install, which can be erroneously created by make from ./install.sh.
3461 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3462 echo "configure:3463: checking for a BSD compatible install" >&5
3463 if test -z "$INSTALL"; then
3464 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3468 for ac_dir
in $PATH; do
3469 # Account for people who put trailing slashes in PATH elements.
3471 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3473 # OSF1 and SCO ODT 3.0 have their own names for install.
3474 # Don't use installbsd from OSF since it installs stuff as root
3476 for ac_prog
in ginstall scoinst
install; do
3477 if test -f $ac_dir/$ac_prog; then
3478 if test $ac_prog = install &&
3479 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3480 # AIX install. It has an incompatible calling convention.
3483 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3494 if test "${ac_cv_path_install+set}" = set; then
3495 INSTALL
="$ac_cv_path_install"
3497 # As a last resort, use the slow shell script. We don't cache a
3498 # path for INSTALL within a source directory, because that will
3499 # break other packages using the cache if that directory is
3500 # removed, or if the path is relative.
3501 INSTALL
="$ac_install_sh"
3504 echo "$ac_t""$INSTALL" 1>&6
3506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3507 # It thinks the first close brace ends the variable substitution.
3508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3512 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3514 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3515 echo "configure:3516: checking whether ln -s works" >&5
3516 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3520 if ln -s X conftestdata
2>/dev
/null
3523 ac_cv_prog_LN_S
="ln -s"
3528 LN_S
="$ac_cv_prog_LN_S"
3529 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3530 echo "$ac_t""yes" 1>&6
3532 echo "$ac_t""no" 1>&6
3535 # Extract the first word of "ranlib", so it can be a program name with args.
3536 set dummy ranlib
; ac_word
=$2
3537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3538 echo "configure:3539: checking for $ac_word" >&5
3539 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 if test -n "$RANLIB"; then
3543 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3547 for ac_dir
in $ac_dummy; do
3548 test -z "$ac_dir" && ac_dir
=.
3549 if test -f $ac_dir/$ac_word; then
3550 ac_cv_prog_RANLIB
="ranlib"
3555 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3558 RANLIB
="$ac_cv_prog_RANLIB"
3559 if test -n "$RANLIB"; then
3560 echo "$ac_t""$RANLIB" 1>&6
3562 echo "$ac_t""no" 1>&6
3565 for ac_prog
in 'bison -y' byacc
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy
$ac_prog; ac_word
=$2
3569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3570 echo "configure:3571: checking for $ac_word" >&5
3571 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 if test -n "$YACC"; then
3575 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3577 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3579 for ac_dir
in $ac_dummy; do
3580 test -z "$ac_dir" && ac_dir
=.
3581 if test -f $ac_dir/$ac_word; then
3582 ac_cv_prog_YACC
="$ac_prog"
3589 YACC
="$ac_cv_prog_YACC"
3590 if test -n "$YACC"; then
3591 echo "$ac_t""$YACC" 1>&6
3593 echo "$ac_t""no" 1>&6
3596 test -n "$YACC" && break
3598 test -n "$YACC" || YACC
="yacc"
3601 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3602 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3604 echo "configure:3605: checking for $ac_word" >&5
3605 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 if test -n "$AR"; then
3609 ac_cv_prog_AR
="$AR" # Let the user override the test.
3611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3613 for ac_dir
in $ac_dummy; do
3614 test -z "$ac_dir" && ac_dir
=.
3615 if test -f $ac_dir/$ac_word; then
3616 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3621 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3625 if test -n "$AR"; then
3626 echo "$ac_t""$AR" 1>&6
3628 echo "$ac_t""no" 1>&6
3633 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3634 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3636 echo "configure:3637: checking for $ac_word" >&5
3637 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 if test -n "$DLLTOOL"; then
3641 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3643 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3645 for ac_dir
in $ac_dummy; do
3646 test -z "$ac_dir" && ac_dir
=.
3647 if test -f $ac_dir/$ac_word; then
3648 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3653 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3656 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3657 if test -n "$DLLTOOL"; then
3658 echo "$ac_t""$DLLTOOL" 1>&6
3660 echo "$ac_t""no" 1>&6
3665 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3666 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3668 echo "configure:3669: checking for $ac_word" >&5
3669 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 if test -n "$WINDRES"; then
3673 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3675 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3677 for ac_dir
in $ac_dummy; do
3678 test -z "$ac_dir" && ac_dir
=.
3679 if test -f $ac_dir/$ac_word; then
3680 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3685 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3688 WINDRES
="$ac_cv_prog_WINDRES"
3689 if test -n "$WINDRES"; then
3690 echo "$ac_t""$WINDRES" 1>&6
3692 echo "$ac_t""no" 1>&6
3698 # Needed for GNU/Hurd.
3699 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3700 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3702 echo "configure:3703: checking for $ac_word" >&5
3703 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 if test -n "$MIG"; then
3707 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3711 for ac_dir
in $ac_dummy; do
3712 test -z "$ac_dir" && ac_dir
=.
3713 if test -f $ac_dir/$ac_word; then
3714 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3719 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3722 MIG
="$ac_cv_prog_MIG"
3723 if test -n "$MIG"; then
3724 echo "$ac_t""$MIG" 1>&6
3726 echo "$ac_t""no" 1>&6
3732 # ---------------------- #
3733 # Checks for libraries. #
3734 # ---------------------- #
3736 # We might need to link with -lm; most simulators need it.
3737 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3738 echo "configure:3739: checking for main in -lm" >&5
3739 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 ac_save_LIBS
="$LIBS"
3745 cat > conftest.
$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3753 if { (eval echo configure
:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3755 eval "ac_cv_lib_$ac_lib_var=yes"
3757 echo "configure: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3760 eval "ac_cv_lib_$ac_lib_var=no"
3763 LIBS
="$ac_save_LIBS"
3766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3767 echo "$ac_t""yes" 1>&6
3768 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3770 cat >> confdefs.h
<<EOF
3771 #define $ac_tr_lib 1
3777 echo "$ac_t""no" 1>&6
3781 # We need to link with -lw to get `wctype' on Solaris before Solaris
3782 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3783 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3784 # is known to have this problem). Therefore we avoid libw if we can.
3785 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3786 echo "configure:3787: checking for wctype" >&5
3787 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* System header to define __stub macros and hopefully few prototypes,
3794 which can conflict with char wctype(); below. */
3796 /* Override any gcc2 internal prototype to avoid an error. */
3797 /* We use char because int might match the return type of a gcc2
3798 builtin and then its argument prototype would still apply. */
3803 /* The GNU C library defines this for functions which it implements
3804 to always fail with ENOSYS. Some functions are actually named
3805 something starting with __ and the normal name is an alias. */
3806 #if defined (__stub_wctype) || defined (__stub___wctype)
3814 if { (eval echo configure
:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3816 eval "ac_cv_func_wctype=yes"
3818 echo "configure: failed program was:" >&5
3819 cat conftest.
$ac_ext >&5
3821 eval "ac_cv_func_wctype=no"
3826 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3830 echo "$ac_t""no" 1>&6
3831 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3832 echo "configure:3833: checking for wctype in -lw" >&5
3833 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 ac_save_LIBS
="$LIBS"
3839 cat > conftest.
$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 /* Override any gcc2 internal prototype to avoid an error. */
3843 /* We use char because int might match the return type of a gcc2
3844 builtin and then its argument prototype would still apply. */
3851 if { (eval echo configure
:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3853 eval "ac_cv_lib_$ac_lib_var=yes"
3855 echo "configure: failed program was:" >&5
3856 cat conftest.
$ac_ext >&5
3858 eval "ac_cv_lib_$ac_lib_var=no"
3861 LIBS
="$ac_save_LIBS"
3864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3867 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3868 cat >> confdefs.h
<<EOF
3869 #define $ac_tr_lib 1
3875 echo "$ac_t""no" 1>&6
3881 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3883 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3884 echo "configure:3885: checking for library containing gethostbyname" >&5
3885 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 ac_func_search_save_LIBS
="$LIBS"
3889 ac_cv_search_gethostbyname
="no"
3890 cat > conftest.
$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 /* Override any gcc2 internal prototype to avoid an error. */
3894 /* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3896 char gethostbyname();
3902 if { (eval echo configure
:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3904 ac_cv_search_gethostbyname
="none required"
3906 echo "configure: failed program was:" >&5
3907 cat conftest.
$ac_ext >&5
3910 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl
; do
3911 LIBS
="-l$i $ac_func_search_save_LIBS"
3912 cat > conftest.
$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char gethostbyname();
3924 if { (eval echo configure
:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3926 ac_cv_search_gethostbyname
="-l$i"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.
$ac_ext >&5
3934 LIBS
="$ac_func_search_save_LIBS"
3937 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3938 if test "$ac_cv_search_gethostbyname" != "no"; then
3939 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3945 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3947 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3948 echo "configure:3949: checking for library containing socketpair" >&5
3949 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 ac_func_search_save_LIBS
="$LIBS"
3953 ac_cv_search_socketpair
="no"
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 /* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3966 if { (eval echo configure
:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3968 ac_cv_search_socketpair
="none required"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.
$ac_ext >&5
3974 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3975 LIBS
="-l$i $ac_func_search_save_LIBS"
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3988 if { (eval echo configure
:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3990 ac_cv_search_socketpair
="-l$i"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.
$ac_ext >&5
3998 LIBS
="$ac_func_search_save_LIBS"
4001 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4002 if test "$ac_cv_search_socketpair" != "no"; then
4003 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
4009 # Since GDB uses Readline, we need termcap functionality, so we need
4010 # to find a library that provides that. When GDB is configured with
4011 # the TUI, we need full curses functionality.
4015 if test -d $srcdir/libtermcap
; then
4016 LIBS
="../libtermcap/libtermcap.a $LIBS"
4017 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
4020 ac_cv_search_tgetent
="none required"
4023 # Readline prefers curses over termcap on AIX.
4026 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4027 echo "configure:4028: checking for library containing tgetent" >&5
4028 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_func_search_save_LIBS
="$LIBS"
4032 ac_cv_search_tgetent
="no"
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4045 if { (eval echo configure
:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4047 ac_cv_search_tgetent
="none required"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.
$ac_ext >&5
4053 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
4054 LIBS
="-l$i $ac_func_search_save_LIBS"
4055 cat > conftest.
$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4067 if { (eval echo configure
:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4069 ac_cv_search_tgetent
="-l$i"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.
$ac_ext >&5
4077 LIBS
="$ac_func_search_save_LIBS"
4080 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4081 if test "$ac_cv_search_tgetent" != "no"; then
4082 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4090 # Note: We used to check for libtermlib and libterminfo too, but
4091 # Readline doesn't, so I think we're safe with leaving them out.
4093 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4094 echo "configure:4095: checking for library containing tgetent" >&5
4095 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_func_search_save_LIBS
="$LIBS"
4099 ac_cv_search_tgetent
="no"
4100 cat > conftest.
$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4112 if { (eval echo configure
:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4114 ac_cv_search_tgetent
="none required"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.
$ac_ext >&5
4120 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
4121 LIBS
="-l$i $ac_func_search_save_LIBS"
4122 cat > conftest.
$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4134 if { (eval echo configure
:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4136 ac_cv_search_tgetent
="-l$i"
4139 echo "configure: failed program was:" >&5
4140 cat conftest.
$ac_ext >&5
4144 LIBS
="$ac_func_search_save_LIBS"
4147 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4148 if test "$ac_cv_search_tgetent" != "no"; then
4149 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4155 if test "$ac_cv_search_tgetent" = no
; then
4156 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4159 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4160 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4161 # Makefile fragments. That's why we need to have `Hcurses' before
4162 # `curses'. I don't see why we should use HP curses if a more
4163 # standard curses is available, except that according to HP's
4164 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4165 # HP-UX 10.10 and 10.20.
4167 # FIXME: ncurses does not work on native alphaev68-dec-osf5.1,
4168 # and probably other platforms. AC_SEARCH_LIBS finds the library
4169 # in a place such as /usr/local/lib/libncurses.a, but does not
4170 # do anything to look for the matching include files.
4171 # -- chastain 2004-05-01
4174 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4175 echo "configure:4176: checking for library containing initscr" >&5
4176 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 ac_func_search_save_LIBS
="$LIBS"
4180 ac_cv_search_initscr
="no"
4181 cat > conftest.
$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* Override any gcc2 internal prototype to avoid an error. */
4185 /* We use char because int might match the return type of a gcc2
4186 builtin and then its argument prototype would still apply. */
4193 if { (eval echo configure
:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4195 ac_cv_search_initscr
="none required"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.
$ac_ext >&5
4201 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses pdcurses
; do
4202 LIBS
="-l$i $ac_func_search_save_LIBS"
4203 cat > conftest.
$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4215 if { (eval echo configure
:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4217 ac_cv_search_initscr
="-l$i"
4220 echo "configure: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4225 LIBS
="$ac_func_search_save_LIBS"
4228 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4229 if test "$ac_cv_search_initscr" != "no"; then
4230 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
4233 echo "configure: warning: no curses library found" 1>&2
4236 # Check whether the wborder function is provided by the curses
4237 # library detected above. In certain implementations such as
4238 # the HP/UX Hcurses for instance, this function is provided by an
4239 # additional library. So if we did not find this function inside
4240 # the curses library, try some alternate libraries we know might
4243 echo $ac_n "checking for library containing wborder""... $ac_c" 1>&6
4244 echo "configure:4245: checking for library containing wborder" >&5
4245 if eval "test \"`echo '$''{'ac_cv_search_wborder'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_func_search_save_LIBS
="$LIBS"
4249 ac_cv_search_wborder
="no"
4250 cat > conftest.
$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure
:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4264 ac_cv_search_wborder
="none required"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4270 test "$ac_cv_search_wborder" = "no" && for i
in cur_colr
; do
4271 LIBS
="-l$i $ac_func_search_save_LIBS"
4272 cat > conftest.
$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* Override any gcc2 internal prototype to avoid an error. */
4276 /* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4284 if { (eval echo configure
:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4286 ac_cv_search_wborder
="-l$i"
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4294 LIBS
="$ac_func_search_save_LIBS"
4297 echo "$ac_t""$ac_cv_search_wborder" 1>&6
4298 if test "$ac_cv_search_wborder" != "no"; then
4299 test "$ac_cv_search_wborder" = "none required" || LIBS
="$ac_cv_search_wborder $LIBS"
4302 echo "configure: warning: wborder function not found, tui will be disabled" 1>&2
4305 # ------------------------- #
4306 # Checks for header files. #
4307 # ------------------------- #
4310 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4312 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4313 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4314 echo "configure:4315: checking for $ac_hdr that defines DIR" >&5
4315 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 #include <sys/types.h>
4327 if { (eval echo configure
:4328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4329 eval "ac_cv_header_dirent_$ac_safe=yes"
4331 echo "configure: failed program was:" >&5
4332 cat conftest.
$ac_ext >&5
4334 eval "ac_cv_header_dirent_$ac_safe=no"
4338 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4341 cat >> confdefs.h
<<EOF
4342 #define $ac_tr_hdr 1
4344 ac_header_dirent
=$ac_hdr; break
4346 echo "$ac_t""no" 1>&6
4349 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4350 if test $ac_header_dirent = dirent.h
; then
4351 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4352 echo "configure:4353: checking for opendir in -ldir" >&5
4353 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 ac_save_LIBS
="$LIBS"
4359 cat > conftest.
$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4362 /* Override any gcc2 internal prototype to avoid an error. */
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4371 if { (eval echo configure
:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4373 eval "ac_cv_lib_$ac_lib_var=yes"
4375 echo "configure: failed program was:" >&5
4376 cat conftest.
$ac_ext >&5
4378 eval "ac_cv_lib_$ac_lib_var=no"
4381 LIBS
="$ac_save_LIBS"
4384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4388 echo "$ac_t""no" 1>&6
4392 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4393 echo "configure:4394: checking for opendir in -lx" >&5
4394 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 ac_save_LIBS
="$LIBS"
4400 cat > conftest.
$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4412 if { (eval echo configure
:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4414 eval "ac_cv_lib_$ac_lib_var=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.
$ac_ext >&5
4419 eval "ac_cv_lib_$ac_lib_var=no"
4422 LIBS
="$ac_save_LIBS"
4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4429 echo "$ac_t""no" 1>&6
4434 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4435 echo "configure:4436: checking whether stat file-mode macros are broken" >&5
4436 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 cat > conftest.
$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 #include <sys/types.h>
4443 #include <sys/stat.h>
4445 #if defined(S_ISBLK) && defined(S_IFDIR)
4446 # if S_ISBLK (S_IFDIR)
4451 #if defined(S_ISBLK) && defined(S_IFCHR)
4452 # if S_ISBLK (S_IFCHR)
4457 #if defined(S_ISLNK) && defined(S_IFREG)
4458 # if S_ISLNK (S_IFREG)
4463 #if defined(S_ISSOCK) && defined(S_IFREG)
4464 # if S_ISSOCK (S_IFREG)
4470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 egrep "You lose" >/dev
/null
2>&1; then
4473 ac_cv_header_stat_broken
=yes
4476 ac_cv_header_stat_broken
=no
4482 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4483 if test $ac_cv_header_stat_broken = yes; then
4484 cat >> confdefs.h
<<\EOF
4485 #define STAT_MACROS_BROKEN 1
4490 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4491 echo "configure:4492: checking for ANSI C header files" >&5
4492 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.
$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4503 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4504 { (eval echo configure
:4505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4505 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4506 if test -z "$ac_err"; then
4508 ac_cv_header_stdc
=yes
4511 echo "configure: failed program was:" >&5
4512 cat conftest.
$ac_ext >&5
4514 ac_cv_header_stdc
=no
4518 if test $ac_cv_header_stdc = yes; then
4519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4520 cat > conftest.
$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526 egrep "memchr" >/dev
/null
2>&1; then
4530 ac_cv_header_stdc
=no
4536 if test $ac_cv_header_stdc = yes; then
4537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4538 cat > conftest.
$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 egrep "free" >/dev
/null
2>&1; then
4548 ac_cv_header_stdc
=no
4554 if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4559 cat > conftest.
$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4563 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4564 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4566 int main () { int i; for (i = 0; i < 256; i++)
4567 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4571 if { (eval echo configure
:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4575 echo "configure: failed program was:" >&5
4576 cat conftest.
$ac_ext >&5
4578 ac_cv_header_stdc
=no
4586 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4587 if test $ac_cv_header_stdc = yes; then
4588 cat >> confdefs.h
<<\EOF
4589 #define STDC_HEADERS 1
4594 for ac_hdr
in link.h
4596 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_hdr" >&5
4599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 cat > conftest.
$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4607 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4608 { (eval echo configure
:4609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4609 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4610 if test -z "$ac_err"; then
4612 eval "ac_cv_header_$ac_safe=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.
$ac_ext >&5
4618 eval "ac_cv_header_$ac_safe=no"
4622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4623 echo "$ac_t""yes" 1>&6
4624 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4625 cat >> confdefs.h
<<EOF
4626 #define $ac_tr_hdr 1
4630 echo "$ac_t""no" 1>&6
4634 for ac_hdr
in machine
/reg.h
4636 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4638 echo "configure:4639: checking for $ac_hdr" >&5
4639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 cat > conftest.
$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4648 { (eval echo configure
:4649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4649 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4650 if test -z "$ac_err"; then
4652 eval "ac_cv_header_$ac_safe=yes"
4655 echo "configure: failed program was:" >&5
4656 cat conftest.
$ac_ext >&5
4658 eval "ac_cv_header_$ac_safe=no"
4662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4664 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4665 cat >> confdefs.h
<<EOF
4666 #define $ac_tr_hdr 1
4670 echo "$ac_t""no" 1>&6
4674 for ac_hdr
in nlist.h
4676 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_hdr" >&5
4679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.
$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4688 { (eval echo configure
:4689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4690 if test -z "$ac_err"; then
4692 eval "ac_cv_header_$ac_safe=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4698 eval "ac_cv_header_$ac_safe=no"
4702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4705 cat >> confdefs.h
<<EOF
4706 #define $ac_tr_hdr 1
4710 echo "$ac_t""no" 1>&6
4714 for ac_hdr
in poll.h sys
/poll.h
4716 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_hdr" >&5
4719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 cat > conftest.
$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4728 { (eval echo configure
:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4730 if test -z "$ac_err"; then
4732 eval "ac_cv_header_$ac_safe=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.
$ac_ext >&5
4738 eval "ac_cv_header_$ac_safe=no"
4742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4745 cat >> confdefs.h
<<EOF
4746 #define $ac_tr_hdr 1
4750 echo "$ac_t""no" 1>&6
4754 for ac_hdr
in proc_service.h thread_db.h gnu
/libc-version.h
4756 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4758 echo "configure:4759: checking for $ac_hdr" >&5
4759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.
$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4768 { (eval echo configure
:4769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4769 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4770 if test -z "$ac_err"; then
4772 eval "ac_cv_header_$ac_safe=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.
$ac_ext >&5
4778 eval "ac_cv_header_$ac_safe=no"
4782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4785 cat >> confdefs.h
<<EOF
4786 #define $ac_tr_hdr 1
4790 echo "$ac_t""no" 1>&6
4794 for ac_hdr
in stddef.h
4796 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4798 echo "configure:4799: checking for $ac_hdr" >&5
4799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 cat > conftest.
$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4807 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4808 { (eval echo configure
:4809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4809 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4810 if test -z "$ac_err"; then
4812 eval "ac_cv_header_$ac_safe=yes"
4815 echo "configure: failed program was:" >&5
4816 cat conftest.
$ac_ext >&5
4818 eval "ac_cv_header_$ac_safe=no"
4822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4825 cat >> confdefs.h
<<EOF
4826 #define $ac_tr_hdr 1
4830 echo "$ac_t""no" 1>&6
4834 for ac_hdr
in stdlib.h
4836 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4838 echo "configure:4839: checking for $ac_hdr" >&5
4839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 cat > conftest.
$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4847 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4848 { (eval echo configure
:4849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4849 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4850 if test -z "$ac_err"; then
4852 eval "ac_cv_header_$ac_safe=yes"
4855 echo "configure: failed program was:" >&5
4856 cat conftest.
$ac_ext >&5
4858 eval "ac_cv_header_$ac_safe=no"
4862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4863 echo "$ac_t""yes" 1>&6
4864 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4865 cat >> confdefs.h
<<EOF
4866 #define $ac_tr_hdr 1
4870 echo "$ac_t""no" 1>&6
4874 for ac_hdr
in stdint.h
4876 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4878 echo "configure:4879: checking for $ac_hdr" >&5
4879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 cat > conftest.
$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4887 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4888 { (eval echo configure
:4889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4889 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4890 if test -z "$ac_err"; then
4892 eval "ac_cv_header_$ac_safe=yes"
4895 echo "configure: failed program was:" >&5
4896 cat conftest.
$ac_ext >&5
4898 eval "ac_cv_header_$ac_safe=no"
4902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4903 echo "$ac_t""yes" 1>&6
4904 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4905 cat >> confdefs.h
<<EOF
4906 #define $ac_tr_hdr 1
4910 echo "$ac_t""no" 1>&6
4914 for ac_hdr
in string.h memory.h
strings.h
4916 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4918 echo "configure:4919: checking for $ac_hdr" >&5
4919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 cat > conftest.
$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4928 { (eval echo configure
:4929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4929 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4930 if test -z "$ac_err"; then
4932 eval "ac_cv_header_$ac_safe=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.
$ac_ext >&5
4938 eval "ac_cv_header_$ac_safe=no"
4942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4945 cat >> confdefs.h
<<EOF
4946 #define $ac_tr_hdr 1
4950 echo "$ac_t""no" 1>&6
4954 for ac_hdr
in sys
/fault.h
4956 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4958 echo "configure:4959: checking for $ac_hdr" >&5
4959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.
$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4968 { (eval echo configure
:4969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4970 if test -z "$ac_err"; then
4972 eval "ac_cv_header_$ac_safe=yes"
4975 echo "configure: failed program was:" >&5
4976 cat conftest.
$ac_ext >&5
4978 eval "ac_cv_header_$ac_safe=no"
4982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4985 cat >> confdefs.h
<<EOF
4986 #define $ac_tr_hdr 1
4990 echo "$ac_t""no" 1>&6
4994 for ac_hdr
in sys
/file.h
4996 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4998 echo "configure:4999: checking for $ac_hdr" >&5
4999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.
$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure
:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5012 eval "ac_cv_header_$ac_safe=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.
$ac_ext >&5
5018 eval "ac_cv_header_$ac_safe=no"
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5025 cat >> confdefs.h
<<EOF
5026 #define $ac_tr_hdr 1
5030 echo "$ac_t""no" 1>&6
5034 for ac_hdr
in sys
/filio.h
5036 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5038 echo "configure:5039: checking for $ac_hdr" >&5
5039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.
$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5048 { (eval echo configure
:5049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5050 if test -z "$ac_err"; then
5052 eval "ac_cv_header_$ac_safe=yes"
5055 echo "configure: failed program was:" >&5
5056 cat conftest.
$ac_ext >&5
5058 eval "ac_cv_header_$ac_safe=no"
5062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5064 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5065 cat >> confdefs.h
<<EOF
5066 #define $ac_tr_hdr 1
5070 echo "$ac_t""no" 1>&6
5074 for ac_hdr
in sys
/ioctl.h
5076 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5078 echo "configure:5079: checking for $ac_hdr" >&5
5079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.
$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5088 { (eval echo configure
:5089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5090 if test -z "$ac_err"; then
5092 eval "ac_cv_header_$ac_safe=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.
$ac_ext >&5
5098 eval "ac_cv_header_$ac_safe=no"
5102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5105 cat >> confdefs.h
<<EOF
5106 #define $ac_tr_hdr 1
5110 echo "$ac_t""no" 1>&6
5114 for ac_hdr
in sys
/param.h
5116 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5117 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5118 echo "configure:5119: checking for $ac_hdr" >&5
5119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 cat > conftest.
$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5127 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5128 { (eval echo configure
:5129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5129 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5130 if test -z "$ac_err"; then
5132 eval "ac_cv_header_$ac_safe=yes"
5135 echo "configure: failed program was:" >&5
5136 cat conftest.
$ac_ext >&5
5138 eval "ac_cv_header_$ac_safe=no"
5142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5143 echo "$ac_t""yes" 1>&6
5144 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5145 cat >> confdefs.h
<<EOF
5146 #define $ac_tr_hdr 1
5150 echo "$ac_t""no" 1>&6
5154 for ac_hdr
in sys
/proc.h
5156 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5158 echo "configure:5159: checking for $ac_hdr" >&5
5159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5162 cat > conftest.
$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5167 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5168 { (eval echo configure
:5169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5169 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5170 if test -z "$ac_err"; then
5172 eval "ac_cv_header_$ac_safe=yes"
5175 echo "configure: failed program was:" >&5
5176 cat conftest.
$ac_ext >&5
5178 eval "ac_cv_header_$ac_safe=no"
5182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5183 echo "$ac_t""yes" 1>&6
5184 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5185 cat >> confdefs.h
<<EOF
5186 #define $ac_tr_hdr 1
5190 echo "$ac_t""no" 1>&6
5194 for ac_hdr
in sys
/procfs.h
5196 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5198 echo "configure:5199: checking for $ac_hdr" >&5
5199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 cat > conftest.
$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5207 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5208 { (eval echo configure
:5209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5209 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5210 if test -z "$ac_err"; then
5212 eval "ac_cv_header_$ac_safe=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.
$ac_ext >&5
5218 eval "ac_cv_header_$ac_safe=no"
5222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5225 cat >> confdefs.h
<<EOF
5226 #define $ac_tr_hdr 1
5230 echo "$ac_t""no" 1>&6
5234 for ac_hdr
in sys
/ptrace.h ptrace.h
5236 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5238 echo "configure:5239: checking for $ac_hdr" >&5
5239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 cat > conftest.
$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5247 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5248 { (eval echo configure
:5249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5249 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5250 if test -z "$ac_err"; then
5252 eval "ac_cv_header_$ac_safe=yes"
5255 echo "configure: failed program was:" >&5
5256 cat conftest.
$ac_ext >&5
5258 eval "ac_cv_header_$ac_safe=no"
5262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5264 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5265 cat >> confdefs.h
<<EOF
5266 #define $ac_tr_hdr 1
5270 echo "$ac_t""no" 1>&6
5274 for ac_hdr
in sys
/reg.h sys
/debugreg.h
5276 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5278 echo "configure:5279: checking for $ac_hdr" >&5
5279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5287 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5288 { (eval echo configure
:5289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5289 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5290 if test -z "$ac_err"; then
5292 eval "ac_cv_header_$ac_safe=yes"
5295 echo "configure: failed program was:" >&5
5296 cat conftest.
$ac_ext >&5
5298 eval "ac_cv_header_$ac_safe=no"
5302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5303 echo "$ac_t""yes" 1>&6
5304 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5305 cat >> confdefs.h
<<EOF
5306 #define $ac_tr_hdr 1
5310 echo "$ac_t""no" 1>&6
5314 for ac_hdr
in sys
/select.h
5316 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_hdr" >&5
5319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.
$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5327 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5328 { (eval echo configure
:5329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5329 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5330 if test -z "$ac_err"; then
5332 eval "ac_cv_header_$ac_safe=yes"
5335 echo "configure: failed program was:" >&5
5336 cat conftest.
$ac_ext >&5
5338 eval "ac_cv_header_$ac_safe=no"
5342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5345 cat >> confdefs.h
<<EOF
5346 #define $ac_tr_hdr 1
5350 echo "$ac_t""no" 1>&6
5354 for ac_hdr
in sys
/syscall.h
5356 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5358 echo "configure:5359: checking for $ac_hdr" >&5
5359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5362 cat > conftest.
$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5368 { (eval echo configure
:5369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5369 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5370 if test -z "$ac_err"; then
5372 eval "ac_cv_header_$ac_safe=yes"
5375 echo "configure: failed program was:" >&5
5376 cat conftest.
$ac_ext >&5
5378 eval "ac_cv_header_$ac_safe=no"
5382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5383 echo "$ac_t""yes" 1>&6
5384 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5385 cat >> confdefs.h
<<EOF
5386 #define $ac_tr_hdr 1
5390 echo "$ac_t""no" 1>&6
5394 for ac_hdr
in sys
/user.h
5396 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5397 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5398 echo "configure:5399: checking for $ac_hdr" >&5
5399 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5402 cat > conftest.
$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5407 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5408 { (eval echo configure
:5409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5409 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5410 if test -z "$ac_err"; then
5412 eval "ac_cv_header_$ac_safe=yes"
5415 echo "configure: failed program was:" >&5
5416 cat conftest.
$ac_ext >&5
5418 eval "ac_cv_header_$ac_safe=no"
5422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5423 echo "$ac_t""yes" 1>&6
5424 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5425 cat >> confdefs.h
<<EOF
5426 #define $ac_tr_hdr 1
5430 echo "$ac_t""no" 1>&6
5434 for ac_hdr
in sys
/wait.h
wait.h
5436 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5438 echo "configure:5439: checking for $ac_hdr" >&5
5439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 cat > conftest.
$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5447 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5448 { (eval echo configure
:5449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5449 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5450 if test -z "$ac_err"; then
5452 eval "ac_cv_header_$ac_safe=yes"
5455 echo "configure: failed program was:" >&5
5456 cat conftest.
$ac_ext >&5
5458 eval "ac_cv_header_$ac_safe=no"
5462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5465 cat >> confdefs.h
<<EOF
5466 #define $ac_tr_hdr 1
5470 echo "$ac_t""no" 1>&6
5474 for ac_hdr
in termios.h termio.h sgtty.h
5476 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_hdr" >&5
5479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.
$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5488 { (eval echo configure
:5489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5489 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5490 if test -z "$ac_err"; then
5492 eval "ac_cv_header_$ac_safe=yes"
5495 echo "configure: failed program was:" >&5
5496 cat conftest.
$ac_ext >&5
5498 eval "ac_cv_header_$ac_safe=no"
5502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5505 cat >> confdefs.h
<<EOF
5506 #define $ac_tr_hdr 1
5510 echo "$ac_t""no" 1>&6
5514 for ac_hdr
in unistd.h
5516 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5518 echo "configure:5519: checking for $ac_hdr" >&5
5519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5522 cat > conftest.
$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5527 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5528 { (eval echo configure
:5529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5529 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5530 if test -z "$ac_err"; then
5532 eval "ac_cv_header_$ac_safe=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 eval "ac_cv_header_$ac_safe=no"
5542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5543 echo "$ac_t""yes" 1>&6
5544 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5545 cat >> confdefs.h
<<EOF
5546 #define $ac_tr_hdr 1
5550 echo "$ac_t""no" 1>&6
5555 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5556 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5557 # think that we don't have <curses.h> if we're using GCC.
5560 if test "$GCC" = yes; then
5561 cat >> confdefs.h
<<\EOF
5562 #define _MSE_INT_H 1
5567 for ac_hdr
in curses.h ncurses.h term.h
5569 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5571 echo "configure:5572: checking for $ac_hdr" >&5
5572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 cat > conftest.
$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5580 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5581 { (eval echo configure
:5582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5582 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5583 if test -z "$ac_err"; then
5585 eval "ac_cv_header_$ac_safe=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.
$ac_ext >&5
5591 eval "ac_cv_header_$ac_safe=no"
5595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5596 echo "$ac_t""yes" 1>&6
5597 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5598 cat >> confdefs.h
<<EOF
5599 #define $ac_tr_hdr 1
5603 echo "$ac_t""no" 1>&6
5608 # FIXME: kettenis/20030102: In most cases we include these
5609 # unconditionally, so what's the point in checking these?
5610 for ac_hdr
in ctype.h
time.h
5612 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5614 echo "configure:5615: checking for $ac_hdr" >&5
5615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 cat > conftest.
$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5624 { (eval echo configure
:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5626 if test -z "$ac_err"; then
5628 eval "ac_cv_header_$ac_safe=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.
$ac_ext >&5
5634 eval "ac_cv_header_$ac_safe=no"
5638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5641 cat >> confdefs.h
<<EOF
5642 #define $ac_tr_hdr 1
5646 echo "$ac_t""no" 1>&6
5651 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5652 echo "configure:5653: checking for member st_blocks in struct stat" >&5
5653 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.
$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 #include <sys/types.h>
5660 #include <sys/stat.h>
5662 struct stat st; (void) st.st_blocks;
5665 if { (eval echo configure
:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5667 gdb_cv_have_struct_stat_with_st_blocks_member
=yes
5669 echo "configure: failed program was:" >&5
5670 cat conftest.
$ac_ext >&5
5672 gdb_cv_have_struct_stat_with_st_blocks_member
=no
5677 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5678 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5679 cat >> confdefs.h
<<\EOF
5680 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5684 # ------------------------- #
5685 # Checks for declarations. #
5686 # ------------------------- #
5688 for ac_func
in getopt
5690 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5691 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5692 echo "configure:5693: checking whether $ac_func is declared" >&5
5693 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5696 cat > conftest.
$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5700 #define $ac_tr_decl 1
5705 char *(*pfn) = (char *(*)) $ac_func ;
5709 if { (eval echo configure
:5710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5711 eval "gcc_cv_have_decl_$ac_func=yes"
5713 echo "configure: failed program was:" >&5
5714 cat conftest.
$ac_ext >&5
5716 eval "gcc_cv_have_decl_$ac_func=no"
5721 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5722 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
5723 #define $ac_tr_decl 1
5727 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
5728 #define $ac_tr_decl 0
5734 if test x
= y
; then
5735 cat >> confdefs.h
<<\EOF
5736 #define HAVE_DECL_GETOPT 1
5741 # ------------------ #
5742 # Checks for types. #
5743 # ------------------ #
5745 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5746 echo "configure:5747: checking return type of signal handlers" >&5
5747 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 cat > conftest.
$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 #include <sys/types.h>
5759 extern "C" void (*signal (int, void (*)(int)))(int);
5761 void (*signal ()) ();
5768 if { (eval echo configure
:5769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5770 ac_cv_type_signal
=void
5772 echo "configure: failed program was:" >&5
5773 cat conftest.
$ac_ext >&5
5775 ac_cv_type_signal
=int
5780 echo "$ac_t""$ac_cv_type_signal" 1>&6
5781 cat >> confdefs.h
<<EOF
5782 #define RETSIGTYPE $ac_cv_type_signal
5787 # ------------------------------------- #
5788 # Checks for compiler characteristics. #
5789 # ------------------------------------- #
5791 echo $ac_n "checking for working const""... $ac_c" 1>&6
5792 echo "configure:5793: checking for working const" >&5
5793 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5796 cat > conftest.
$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5802 /* Ultrix mips cc rejects this. */
5803 typedef int charset[2]; const charset x;
5804 /* SunOS 4.1.1 cc rejects this. */
5805 char const *const *ccp;
5807 /* NEC SVR4.0.2 mips cc rejects this. */
5808 struct point {int x, y;};
5809 static struct point const zero = {0,0};
5810 /* AIX XL C 1.02.0.0 rejects this.
5811 It does not let you subtract one const X* pointer from another in an arm
5812 of an if-expression whose if-part is not a constant expression */
5813 const char *g = "string";
5814 ccp = &g + (g ? g-g : 0);
5815 /* HPUX 7.0 cc rejects these. */
5818 ccp = (char const *const *) p;
5819 { /* SCO 3.2v4 cc rejects this. */
5821 char const *s = 0 ? (char *) 0 : (char const *) 0;
5825 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5827 const int *foo = &x[0];
5830 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5831 typedef const int *iptr;
5835 { /* AIX XL C 1.02.0.0 rejects this saying
5836 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5837 struct s { int j; const int *ap[3]; };
5838 struct s *b; b->j = 5;
5840 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5846 if { (eval echo configure
:5847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5850 echo "configure: failed program was:" >&5
5851 cat conftest.
$ac_ext >&5
5858 echo "$ac_t""$ac_cv_c_const" 1>&6
5859 if test $ac_cv_c_const = no
; then
5860 cat >> confdefs.h
<<\EOF
5866 echo $ac_n "checking for inline""... $ac_c" 1>&6
5867 echo "configure:5868: checking for inline" >&5
5868 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5872 for ac_kw
in inline __inline__ __inline
; do
5873 cat > conftest.
$ac_ext <<EOF
5874 #line 5875 "configure"
5875 #include "confdefs.h"
5881 if { (eval echo configure
:5882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5883 ac_cv_c_inline
=$ac_kw; break
5885 echo "configure: failed program was:" >&5
5886 cat conftest.
$ac_ext >&5
5893 echo "$ac_t""$ac_cv_c_inline" 1>&6
5894 case "$ac_cv_c_inline" in
5896 no
) cat >> confdefs.h
<<\EOF
5900 *) cat >> confdefs.h
<<EOF
5901 #define inline $ac_cv_c_inline
5907 # ------------------------------ #
5908 # Checks for library functions. #
5909 # ------------------------------ #
5911 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5912 # for constant arguments. Useless!
5913 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5914 echo "configure:5915: checking for working alloca.h" >&5
5915 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 cat > conftest.
$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5923 char *p = alloca(2 * sizeof(int));
5926 if { (eval echo configure
:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5928 ac_cv_header_alloca_h
=yes
5930 echo "configure: failed program was:" >&5
5931 cat conftest.
$ac_ext >&5
5933 ac_cv_header_alloca_h
=no
5938 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5939 if test $ac_cv_header_alloca_h = yes; then
5940 cat >> confdefs.h
<<\EOF
5941 #define HAVE_ALLOCA_H 1
5946 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5947 echo "configure:5948: checking for alloca" >&5
5948 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 cat > conftest.
$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5956 # define alloca __builtin_alloca
5959 # include <malloc.h>
5960 # define alloca _alloca
5963 # include <alloca.h>
5968 # ifndef alloca /* predefined by HP cc +Olibcalls */
5977 char *p = (char *) alloca(1);
5980 if { (eval echo configure
:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5982 ac_cv_func_alloca_works
=yes
5984 echo "configure: failed program was:" >&5
5985 cat conftest.
$ac_ext >&5
5987 ac_cv_func_alloca_works
=no
5992 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5993 if test $ac_cv_func_alloca_works = yes; then
5994 cat >> confdefs.h
<<\EOF
5995 #define HAVE_ALLOCA 1
6000 if test $ac_cv_func_alloca_works = no
; then
6001 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6002 # that cause trouble. Some versions do not even contain alloca or
6003 # contain a buggy version. If you still want to use their alloca,
6004 # use ar to extract alloca.o from them instead of compiling alloca.c.
6005 ALLOCA
=alloca.
${ac_objext}
6006 cat >> confdefs.h
<<\EOF
6011 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6012 echo "configure:6013: checking whether alloca needs Cray hooks" >&5
6013 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6016 cat > conftest.
$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #if defined(CRAY) && ! defined(CRAY2)
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 egrep "webecray" >/dev
/null
2>&1; then
6038 echo "$ac_t""$ac_cv_os_cray" 1>&6
6039 if test $ac_cv_os_cray = yes; then
6040 for ac_func
in _getb67 GETB67 getb67
; do
6041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6042 echo "configure:6043: checking for $ac_func" >&5
6043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 cat > conftest.
$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6049 /* System header to define __stub macros and hopefully few prototypes,
6050 which can conflict with char $ac_func(); below. */
6052 /* Override any gcc2 internal prototype to avoid an error. */
6053 /* We use char because int might match the return type of a gcc2
6054 builtin and then its argument prototype would still apply. */
6059 /* The GNU C library defines this for functions which it implements
6060 to always fail with ENOSYS. Some functions are actually named
6061 something starting with __ and the normal name is an alias. */
6062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6070 if { (eval echo configure
:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6072 eval "ac_cv_func_$ac_func=yes"
6074 echo "configure: failed program was:" >&5
6075 cat conftest.
$ac_ext >&5
6077 eval "ac_cv_func_$ac_func=no"
6082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6083 echo "$ac_t""yes" 1>&6
6084 cat >> confdefs.h
<<EOF
6085 #define CRAY_STACKSEG_END $ac_func
6090 echo "$ac_t""no" 1>&6
6096 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6097 echo "configure:6098: checking stack direction for C alloca" >&5
6098 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6101 if test "$cross_compiling" = yes; then
6102 ac_cv_c_stack_direction
=0
6104 cat > conftest.
$ac_ext <<EOF
6105 #line 6106 "configure"
6106 #include "confdefs.h"
6107 find_stack_direction ()
6109 static char *addr = 0;
6114 return find_stack_direction ();
6117 return (&dummy > addr) ? 1 : -1;
6121 exit (find_stack_direction() < 0);
6124 if { (eval echo configure
:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6126 ac_cv_c_stack_direction
=1
6128 echo "configure: failed program was:" >&5
6129 cat conftest.
$ac_ext >&5
6131 ac_cv_c_stack_direction
=-1
6138 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6139 cat >> confdefs.h
<<EOF
6140 #define STACK_DIRECTION $ac_cv_c_stack_direction
6145 for ac_hdr
in unistd.h
6147 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6149 echo "configure:6150: checking for $ac_hdr" >&5
6150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6153 cat > conftest.
$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6158 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6159 { (eval echo configure
:6160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6160 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6161 if test -z "$ac_err"; then
6163 eval "ac_cv_header_$ac_safe=yes"
6166 echo "configure: failed program was:" >&5
6167 cat conftest.
$ac_ext >&5
6169 eval "ac_cv_header_$ac_safe=no"
6173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6174 echo "$ac_t""yes" 1>&6
6175 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6176 cat >> confdefs.h
<<EOF
6177 #define $ac_tr_hdr 1
6181 echo "$ac_t""no" 1>&6
6185 for ac_func
in getpagesize
6187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6188 echo "configure:6189: checking for $ac_func" >&5
6189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 cat > conftest.
$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 /* System header to define __stub macros and hopefully few prototypes,
6196 which can conflict with char $ac_func(); below. */
6198 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6205 /* The GNU C library defines this for functions which it implements
6206 to always fail with ENOSYS. Some functions are actually named
6207 something starting with __ and the normal name is an alias. */
6208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6216 if { (eval echo configure
:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6218 eval "ac_cv_func_$ac_func=yes"
6220 echo "configure: failed program was:" >&5
6221 cat conftest.
$ac_ext >&5
6223 eval "ac_cv_func_$ac_func=no"
6228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6229 echo "$ac_t""yes" 1>&6
6230 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6231 cat >> confdefs.h
<<EOF
6232 #define $ac_tr_func 1
6236 echo "$ac_t""no" 1>&6
6240 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6241 echo "configure:6242: checking for working mmap" >&5
6242 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6
6245 if test "$cross_compiling" = yes; then
6246 ac_cv_func_mmap_fixed_mapped
=no
6248 cat > conftest.
$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6252 /* Thanks to Mike Haertel and Jim Avera for this test.
6253 Here is a matrix of mmap possibilities:
6254 mmap private not fixed
6255 mmap private fixed at somewhere currently unmapped
6256 mmap private fixed at somewhere already mapped
6257 mmap shared not fixed
6258 mmap shared fixed at somewhere currently unmapped
6259 mmap shared fixed at somewhere already mapped
6260 For private mappings, we should verify that changes cannot be read()
6261 back from the file, nor mmap's back from the file at a different
6262 address. (There have been systems where private was not correctly
6263 implemented like the infamous i386 svr4.0, and systems where the
6264 VM page cache was not coherent with the filesystem buffer cache
6265 like early versions of FreeBSD and possibly contemporary NetBSD.)
6266 For shared mappings, we should conversely verify that changes get
6267 propogated back to all the places they're supposed to be.
6269 Grep wants private fixed already mapped.
6270 The main things grep needs to know about mmap are:
6271 * does it exist and is it safe to write into the mmap'd area
6272 * how to use it (BSD variants) */
6273 #include <sys/types.h>
6275 #include <sys/mman.h>
6277 /* This mess was copied from the GNU getpagesize.h. */
6278 #ifndef HAVE_GETPAGESIZE
6279 # ifdef HAVE_UNISTD_H
6280 # include <unistd.h>
6283 /* Assume that all systems that can run configure have sys/param.h. */
6284 # ifndef HAVE_SYS_PARAM_H
6285 # define HAVE_SYS_PARAM_H 1
6288 # ifdef _SC_PAGESIZE
6289 # define getpagesize() sysconf(_SC_PAGESIZE)
6290 # else /* no _SC_PAGESIZE */
6291 # ifdef HAVE_SYS_PARAM_H
6292 # include <sys/param.h>
6293 # ifdef EXEC_PAGESIZE
6294 # define getpagesize() EXEC_PAGESIZE
6295 # else /* no EXEC_PAGESIZE */
6297 # define getpagesize() NBPG * CLSIZE
6300 # endif /* no CLSIZE */
6301 # else /* no NBPG */
6303 # define getpagesize() NBPC
6304 # else /* no NBPC */
6306 # define getpagesize() PAGESIZE
6307 # endif /* PAGESIZE */
6308 # endif /* no NBPC */
6309 # endif /* no NBPG */
6310 # endif /* no EXEC_PAGESIZE */
6311 # else /* no HAVE_SYS_PARAM_H */
6312 # define getpagesize() 8192 /* punt totally */
6313 # endif /* no HAVE_SYS_PARAM_H */
6314 # endif /* no _SC_PAGESIZE */
6316 #endif /* no HAVE_GETPAGESIZE */
6319 extern "C" { void *malloc(unsigned); }
6327 char *data, *data2, *data3;
6331 pagesize = getpagesize();
6334 * First, make a file with some known garbage in it.
6336 data = malloc(pagesize);
6339 for (i = 0; i < pagesize; ++i)
6340 *(data + i) = rand();
6342 fd = creat("conftestmmap", 0600);
6345 if (write(fd, data, pagesize) != pagesize)
6350 * Next, try to mmap the file at a fixed address which
6351 * already has something else allocated at it. If we can,
6352 * also make sure that we see the same garbage.
6354 fd = open("conftestmmap", O_RDWR);
6357 data2 = malloc(2 * pagesize);
6360 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6361 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6364 for (i = 0; i < pagesize; ++i)
6365 if (*(data + i) != *(data2 + i))
6369 * Finally, make sure that changes to the mapped area
6370 * do not percolate back to the file as seen by read().
6371 * (This is a bug on some variants of i386 svr4.0.)
6373 for (i = 0; i < pagesize; ++i)
6374 *(data2 + i) = *(data2 + i) + 1;
6375 data3 = malloc(pagesize);
6378 if (read(fd, data3, pagesize) != pagesize)
6380 for (i = 0; i < pagesize; ++i)
6381 if (*(data + i) != *(data3 + i))
6384 unlink("conftestmmap");
6389 if { (eval echo configure
:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6391 ac_cv_func_mmap_fixed_mapped
=yes
6393 echo "configure: failed program was:" >&5
6394 cat conftest.
$ac_ext >&5
6396 ac_cv_func_mmap_fixed_mapped
=no
6403 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6404 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6405 cat >> confdefs.h
<<\EOF
6411 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6412 echo "configure:6413: checking for pid_t" >&5
6413 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6416 cat > conftest.
$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 #include <sys/types.h>
6425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6426 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6428 ac_cv_type_pid_t
=yes
6436 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6437 if test $ac_cv_type_pid_t = no
; then
6438 cat >> confdefs.h
<<\EOF
6444 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6445 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6446 echo "configure:6447: checking for vfork.h" >&5
6447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6450 cat > conftest.
$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6455 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6456 { (eval echo configure
:6457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6457 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6458 if test -z "$ac_err"; then
6460 eval "ac_cv_header_$ac_safe=yes"
6463 echo "configure: failed program was:" >&5
6464 cat conftest.
$ac_ext >&5
6466 eval "ac_cv_header_$ac_safe=no"
6470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6471 echo "$ac_t""yes" 1>&6
6472 cat >> confdefs.h
<<\EOF
6473 #define HAVE_VFORK_H 1
6477 echo "$ac_t""no" 1>&6
6480 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6481 echo "configure:6482: checking for working vfork" >&5
6482 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 if test "$cross_compiling" = yes; then
6486 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6487 echo "configure:6488: checking for vfork" >&5
6488 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 cat > conftest.
$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* System header to define __stub macros and hopefully few prototypes,
6495 which can conflict with char vfork(); below. */
6497 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6504 /* The GNU C library defines this for functions which it implements
6505 to always fail with ENOSYS. Some functions are actually named
6506 something starting with __ and the normal name is an alias. */
6507 #if defined (__stub_vfork) || defined (__stub___vfork)
6515 if { (eval echo configure
:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6517 eval "ac_cv_func_vfork=yes"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.
$ac_ext >&5
6522 eval "ac_cv_func_vfork=no"
6527 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6528 echo "$ac_t""yes" 1>&6
6531 echo "$ac_t""no" 1>&6
6534 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6536 cat > conftest.
$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6539 /* Thanks to Paul Eggert for this test. */
6541 #include <sys/types.h>
6542 #include <sys/stat.h>
6543 #ifdef HAVE_UNISTD_H
6549 /* On some sparc systems, changes by the child to local and incoming
6550 argument registers are propagated back to the parent.
6551 The compiler is told about this with #include <vfork.h>,
6552 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6553 Test for this by using a static variable whose address
6554 is put into a register that is clobbered by the vfork. */
6557 sparc_address_test (int arg)
6559 sparc_address_test (arg) int arg;
6577 pid_t parent = getpid ();
6580 sparc_address_test ();
6585 /* Here is another test for sparc vfork register problems.
6586 This test uses lots of local variables, at least
6587 as many local variables as main has allocated so far
6588 including compiler temporaries. 4 locals are enough for
6589 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6590 A buggy compiler should reuse the register of parent
6591 for one of the local variables, since it will think that
6592 parent can't possibly be used any more in this routine.
6593 Assigning to the local variable will thus munge parent
6594 in the parent process. */
6596 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6597 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6598 /* Convince the compiler that p..p7 are live; otherwise, it might
6599 use the same hardware register for all 8 local variables. */
6600 if (p != p1 || p != p2 || p != p3 || p != p4
6601 || p != p5 || p != p6 || p != p7)
6604 /* On some systems (e.g. IRIX 3.3),
6605 vfork doesn't separate parent from child file descriptors.
6606 If the child closes a descriptor before it execs or exits,
6607 this munges the parent's descriptor as well.
6608 Test for this by closing stdout in the child. */
6609 _exit(close(fileno(stdout)) != 0);
6614 while (wait(&status) != child)
6617 /* Was there some problem with vforking? */
6620 /* Did the child fail? (This shouldn't happen.) */
6623 /* Did the vfork/compiler bug occur? */
6624 || parent != getpid()
6626 /* Did the file descriptor bug occur? */
6627 || fstat(fileno(stdout), &st) != 0
6632 if { (eval echo configure
:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6634 ac_cv_func_vfork_works
=yes
6636 echo "configure: failed program was:" >&5
6637 cat conftest.
$ac_ext >&5
6639 ac_cv_func_vfork_works
=no
6646 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6647 if test $ac_cv_func_vfork_works = no
; then
6648 cat >> confdefs.h
<<\EOF
6654 for ac_func
in canonicalize_file_name realpath
6656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6657 echo "configure:6658: checking for $ac_func" >&5
6658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6661 cat > conftest.
$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func(); below. */
6667 /* Override any gcc2 internal prototype to avoid an error. */
6668 /* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6674 /* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6685 if { (eval echo configure
:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6687 eval "ac_cv_func_$ac_func=yes"
6689 echo "configure: failed program was:" >&5
6690 cat conftest.
$ac_ext >&5
6692 eval "ac_cv_func_$ac_func=no"
6697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6700 cat >> confdefs.h
<<EOF
6701 #define $ac_tr_func 1
6705 echo "$ac_t""no" 1>&6
6711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6712 echo "configure:6713: checking for $ac_func" >&5
6713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 cat > conftest.
$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6719 /* System header to define __stub macros and hopefully few prototypes,
6720 which can conflict with char $ac_func(); below. */
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6729 /* The GNU C library defines this for functions which it implements
6730 to always fail with ENOSYS. Some functions are actually named
6731 something starting with __ and the normal name is an alias. */
6732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
6744 echo "configure: failed program was:" >&5
6745 cat conftest.
$ac_ext >&5
6747 eval "ac_cv_func_$ac_func=no"
6752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6753 echo "$ac_t""yes" 1>&6
6754 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6755 cat >> confdefs.h
<<EOF
6756 #define $ac_tr_func 1
6760 echo "$ac_t""no" 1>&6
6764 for ac_func
in pread64
6766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6767 echo "configure:6768: checking for $ac_func" >&5
6768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6771 cat > conftest.
$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char $ac_func(); below. */
6777 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6784 /* The GNU C library defines this for functions which it implements
6785 to always fail with ENOSYS. Some functions are actually named
6786 something starting with __ and the normal name is an alias. */
6787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6795 if { (eval echo configure
:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6797 eval "ac_cv_func_$ac_func=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.
$ac_ext >&5
6802 eval "ac_cv_func_$ac_func=no"
6807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6810 cat >> confdefs.h
<<EOF
6811 #define $ac_tr_func 1
6815 echo "$ac_t""no" 1>&6
6821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6822 echo "configure:6823: checking for $ac_func" >&5
6823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 cat > conftest.
$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 /* System header to define __stub macros and hopefully few prototypes,
6830 which can conflict with char $ac_func(); below. */
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6839 /* The GNU C library defines this for functions which it implements
6840 to always fail with ENOSYS. Some functions are actually named
6841 something starting with __ and the normal name is an alias. */
6842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6850 if { (eval echo configure
:6851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6852 eval "ac_cv_func_$ac_func=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.
$ac_ext >&5
6857 eval "ac_cv_func_$ac_func=no"
6862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6863 echo "$ac_t""yes" 1>&6
6864 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6865 cat >> confdefs.h
<<EOF
6866 #define $ac_tr_func 1
6870 echo "$ac_t""no" 1>&6
6874 for ac_func
in setpgid setpgrp
6876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6877 echo "configure:6878: checking for $ac_func" >&5
6878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 cat > conftest.
$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 /* System header to define __stub macros and hopefully few prototypes,
6885 which can conflict with char $ac_func(); below. */
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6894 /* The GNU C library defines this for functions which it implements
6895 to always fail with ENOSYS. Some functions are actually named
6896 something starting with __ and the normal name is an alias. */
6897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6905 if { (eval echo configure
:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6907 eval "ac_cv_func_$ac_func=yes"
6909 echo "configure: failed program was:" >&5
6910 cat conftest.
$ac_ext >&5
6912 eval "ac_cv_func_$ac_func=no"
6917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6918 echo "$ac_t""yes" 1>&6
6919 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6920 cat >> confdefs.h
<<EOF
6921 #define $ac_tr_func 1
6925 echo "$ac_t""no" 1>&6
6929 for ac_func
in sigaction sigprocmask sigsetmask
6931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6932 echo "configure:6933: checking for $ac_func" >&5
6933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6934 echo $ac_n "(cached) $ac_c" 1>&6
6936 cat > conftest.
$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 /* System header to define __stub macros and hopefully few prototypes,
6940 which can conflict with char $ac_func(); below. */
6942 /* Override any gcc2 internal prototype to avoid an error. */
6943 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6949 /* The GNU C library defines this for functions which it implements
6950 to always fail with ENOSYS. Some functions are actually named
6951 something starting with __ and the normal name is an alias. */
6952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6960 if { (eval echo configure
:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6962 eval "ac_cv_func_$ac_func=yes"
6964 echo "configure: failed program was:" >&5
6965 cat conftest.
$ac_ext >&5
6967 eval "ac_cv_func_$ac_func=no"
6972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6973 echo "$ac_t""yes" 1>&6
6974 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6975 cat >> confdefs.h
<<EOF
6976 #define $ac_tr_func 1
6980 echo "$ac_t""no" 1>&6
6984 for ac_func
in socketpair
6986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6987 echo "configure:6988: checking for $ac_func" >&5
6988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6989 echo $ac_n "(cached) $ac_c" 1>&6
6991 cat > conftest.
$ac_ext <<EOF
6992 #line 6993 "configure"
6993 #include "confdefs.h"
6994 /* System header to define __stub macros and hopefully few prototypes,
6995 which can conflict with char $ac_func(); below. */
6997 /* Override any gcc2 internal prototype to avoid an error. */
6998 /* We use char because int might match the return type of a gcc2
6999 builtin and then its argument prototype would still apply. */
7004 /* The GNU C library defines this for functions which it implements
7005 to always fail with ENOSYS. Some functions are actually named
7006 something starting with __ and the normal name is an alias. */
7007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7015 if { (eval echo configure
:7016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7017 eval "ac_cv_func_$ac_func=yes"
7019 echo "configure: failed program was:" >&5
7020 cat conftest.
$ac_ext >&5
7022 eval "ac_cv_func_$ac_func=no"
7027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7028 echo "$ac_t""yes" 1>&6
7029 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7030 cat >> confdefs.h
<<EOF
7031 #define $ac_tr_func 1
7035 echo "$ac_t""no" 1>&6
7039 for ac_func
in syscall
7041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7042 echo "configure:7043: checking for $ac_func" >&5
7043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7044 echo $ac_n "(cached) $ac_c" 1>&6
7046 cat > conftest.
$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7049 /* System header to define __stub macros and hopefully few prototypes,
7050 which can conflict with char $ac_func(); below. */
7052 /* Override any gcc2 internal prototype to avoid an error. */
7053 /* We use char because int might match the return type of a gcc2
7054 builtin and then its argument prototype would still apply. */
7059 /* The GNU C library defines this for functions which it implements
7060 to always fail with ENOSYS. Some functions are actually named
7061 something starting with __ and the normal name is an alias. */
7062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7070 if { (eval echo configure
:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7072 eval "ac_cv_func_$ac_func=yes"
7074 echo "configure: failed program was:" >&5
7075 cat conftest.
$ac_ext >&5
7077 eval "ac_cv_func_$ac_func=no"
7082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7085 cat >> confdefs.h
<<EOF
7086 #define $ac_tr_func 1
7090 echo "$ac_t""no" 1>&6
7095 if test "$cross_compiling" = no
; then
7096 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7097 echo "configure:7098: checking whether setpgrp takes no argument" >&5
7098 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7101 if test "$cross_compiling" = yes; then
7102 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7104 cat > conftest.
$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7108 #ifdef HAVE_UNISTD_H
7113 * If this system has a BSD-style setpgrp, which takes arguments, exit
7118 if (setpgrp(1,1) == -1)
7125 if { (eval echo configure
:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7127 ac_cv_func_setpgrp_void
=no
7129 echo "configure: failed program was:" >&5
7130 cat conftest.
$ac_ext >&5
7132 ac_cv_func_setpgrp_void
=yes
7140 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7141 if test $ac_cv_func_setpgrp_void = yes; then
7142 cat >> confdefs.h
<<\EOF
7143 #define SETPGRP_VOID 1
7149 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7150 echo "configure:7151: checking whether setpgrp takes no argument" >&5
7151 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7152 echo $ac_n "(cached) $ac_c" 1>&6
7154 cat > conftest.
$ac_ext <<EOF
7155 #line 7156 "configure"
7156 #include "confdefs.h"
7162 if (setpgrp(1,1) == -1)
7169 if { (eval echo configure
:7170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7171 ac_cv_func_setpgrp_void
=no
7173 echo "configure: failed program was:" >&5
7174 cat conftest.
$ac_ext >&5
7176 ac_cv_func_setpgrp_void
=yes
7181 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7182 if test $ac_cv_func_setpgrp_void = yes; then
7183 cat >> confdefs.h
<<\EOF
7184 #define SETPGRP_VOID 1
7190 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7191 # since sigsetjmp might only be defined as a macro.
7192 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7193 echo "configure:7194: checking for sigsetjmp" >&5
7194 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7197 cat > conftest.
$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7204 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7207 if { (eval echo configure
:7208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7209 gdb_cv_func_sigsetjmp
=yes
7211 echo "configure: failed program was:" >&5
7212 cat conftest.
$ac_ext >&5
7214 gdb_cv_func_sigsetjmp
=no
7219 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7220 if test $gdb_cv_func_sigsetjmp = yes; then
7221 cat >> confdefs.h
<<\EOF
7222 #define HAVE_SIGSETJMP 1
7227 # Assume we'll default to using the included libiberty regex.
7228 gdb_use_included_regex
=yes
7230 # However, if the system regex is GNU regex, then default to *not*
7231 # using the included regex.
7232 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7233 echo "configure:7234: checking for GNU regex" >&5
7234 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 cat > conftest.
$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 #include <gnu-versions.h>
7242 #define REGEX_INTERFACE_VERSION 1
7243 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7244 # error "Version mismatch"
7248 if { (eval echo configure
:7249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7250 gdb_cv_have_gnu_regex
=yes
7252 echo "configure: failed program was:" >&5
7253 cat conftest.
$ac_ext >&5
7255 gdb_cv_have_gnu_regex
=no
7260 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7261 if test $gdb_cv_have_gnu_regex = yes; then
7262 gdb_use_included_regex
=no
7265 # Check whether --with-included-regex or --without-included-regex was given.
7266 if test "${with_included_regex+set}" = set; then
7267 withval
="$with_included_regex"
7268 gdb_with_regex
=$withval
7270 gdb_with_regex
=$gdb_use_included_regex
7273 if test "$gdb_with_regex" = yes; then
7274 cat >> confdefs.h
<<\EOF
7275 #define USE_INCLUDED_REGEX 1
7280 # See if <sys/proc.h> defines `struct thread' with a td_pcb member.
7281 echo $ac_n "checking for td_pcb in struct thread""... $ac_c" 1>&6
7282 echo "configure:7283: checking for td_pcb in struct thread" >&5
7283 if eval "test \"`echo '$''{'gdb_cv_struct_thread_td_pcb'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 cat > conftest.
$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289 #include <sys/proc.h>
7291 struct thread td; td.td_pcb;
7294 if { (eval echo configure
:7295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7296 gdb_cv_struct_thread_td_pcb
=yes
7298 echo "configure: failed program was:" >&5
7299 cat conftest.
$ac_ext >&5
7301 gdb_cv_struct_thread_td_pcb
=no
7306 echo "$ac_t""$gdb_cv_struct_thread_td_pcb" 1>&6
7307 if test $gdb_cv_struct_thread_td_pcb = yes; then
7308 cat >> confdefs.h
<<\EOF
7309 #define HAVE_STRUCT_THREAD_TD_PCB 1
7314 # See if <machine/reg.h> degines `struct reg'.
7315 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7316 echo "configure:7317: checking for struct reg in machine/reg.h" >&5
7317 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
7318 echo $ac_n "(cached) $ac_c" 1>&6
7320 cat > conftest.
$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 #include <sys/types.h>
7324 #include <machine/reg.h>
7329 if { (eval echo configure
:7330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7331 gdb_cv_struct_reg
=yes
7333 echo "configure: failed program was:" >&5
7334 cat conftest.
$ac_ext >&5
7336 gdb_cv_struct_reg
=no
7341 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7342 if test $gdb_cv_struct_reg = yes; then
7343 cat >> confdefs.h
<<\EOF
7344 #define HAVE_STRUCT_REG 1
7349 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7350 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7351 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7352 echo "configure:7353: checking for r_fs in struct reg" >&5
7353 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 cat > conftest.
$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7359 #include <machine/reg.h>
7361 struct reg r; r.r_fs;
7364 if { (eval echo configure
:7365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7366 gdb_cv_struct_reg_r_fs
=yes
7368 echo "configure: failed program was:" >&5
7369 cat conftest.
$ac_ext >&5
7371 gdb_cv_struct_reg_r_fs
=no
7376 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7377 if test $gdb_cv_struct_reg_r_fs = yes; then
7378 cat >> confdefs.h
<<\EOF
7379 #define HAVE_STRUCT_REG_R_FS 1
7383 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7384 echo "configure:7385: checking for r_gs in struct reg" >&5
7385 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7388 cat > conftest.
$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7391 #include <machine/reg.h>
7393 struct reg r; r.r_gs;
7396 if { (eval echo configure
:7397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7398 gdb_cv_struct_reg_r_gs
=yes
7400 echo "configure: failed program was:" >&5
7401 cat conftest.
$ac_ext >&5
7403 gdb_cv_struct_reg_r_gs
=no
7408 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7409 if test $gdb_cv_struct_reg_r_gs = yes; then
7410 cat >> confdefs.h
<<\EOF
7411 #define HAVE_STRUCT_REG_R_GS 1
7416 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7417 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7418 echo "configure:7419: checking for PTRACE_GETREGS" >&5
7419 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 cat > conftest.
$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7425 #include <sys/ptrace.h>
7430 if { (eval echo configure
:7431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7432 gdb_cv_have_ptrace_getregs
=yes
7434 echo "configure: failed program was:" >&5
7435 cat conftest.
$ac_ext >&5
7437 gdb_cv_have_ptrace_getregs
=no
7442 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7443 if test $gdb_cv_have_ptrace_getregs = yes; then
7444 cat >> confdefs.h
<<\EOF
7445 #define HAVE_PTRACE_GETREGS 1
7450 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7451 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7452 echo "configure:7453: checking for PTRACE_GETFPXREGS" >&5
7453 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 cat > conftest.
$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 #include <sys/ptrace.h>
7464 if { (eval echo configure
:7465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7466 gdb_cv_have_ptrace_getfpxregs
=yes
7468 echo "configure: failed program was:" >&5
7469 cat conftest.
$ac_ext >&5
7471 gdb_cv_have_ptrace_getfpxregs
=no
7476 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7477 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7478 cat >> confdefs.h
<<\EOF
7479 #define HAVE_PTRACE_GETFPXREGS 1
7484 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7485 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7486 echo "configure:7487: checking for PT_GETDBREGS" >&5
7487 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7488 echo $ac_n "(cached) $ac_c" 1>&6
7490 cat > conftest.
$ac_ext <<EOF
7491 #line 7492 "configure"
7492 #include "confdefs.h"
7493 #include <sys/types.h>
7494 #include <sys/ptrace.h>
7499 if { (eval echo configure
:7500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7501 gdb_cv_have_pt_getdbregs
=yes
7503 echo "configure: failed program was:" >&5
7504 cat conftest.
$ac_ext >&5
7506 gdb_cv_have_pt_getdbregs
=no
7511 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7512 if test $gdb_cv_have_pt_getdbregs = yes; then
7513 cat >> confdefs.h
<<\EOF
7514 #define HAVE_PT_GETDBREGS 1
7519 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7520 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7521 echo "configure:7522: checking for PT_GETXMMREGS" >&5
7522 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7525 cat > conftest.
$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7528 #include <sys/types.h>
7529 #include <sys/ptrace.h>
7534 if { (eval echo configure
:7535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7536 gdb_cv_have_pt_getxmmregs
=yes
7538 echo "configure: failed program was:" >&5
7539 cat conftest.
$ac_ext >&5
7541 gdb_cv_have_pt_getxmmregs
=no
7546 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7547 if test $gdb_cv_have_pt_getxmmregs = yes; then
7548 cat >> confdefs.h
<<\EOF
7549 #define HAVE_PT_GETXMMREGS 1
7554 # See if stdint.h provides the uintptr_t type.
7555 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7556 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7557 echo "configure:7558: checking for uintptr_t in stdint.h" >&5
7558 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7561 cat > conftest.
$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7569 if { (eval echo configure
:7570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7571 gdb_cv_have_uintptr_t
=yes
7573 echo "configure: failed program was:" >&5
7574 cat conftest.
$ac_ext >&5
7576 gdb_cv_have_uintptr_t
=no
7581 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7582 if test $gdb_cv_have_uintptr_t = yes; then
7583 cat >> confdefs.h
<<\EOF
7584 #define HAVE_UINTPTR_T 1
7589 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7590 echo "configure:7591: checking whether malloc must be declared" >&5
7591 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7592 echo $ac_n "(cached) $ac_c" 1>&6
7594 cat > conftest.
$ac_ext <<EOF
7595 #line 7596 "configure"
7596 #include "confdefs.h"
7599 #ifdef HAVE_STRING_H
7602 #ifdef HAVE_STRINGS_H
7603 #include <strings.h>
7606 #ifdef HAVE_STDLIB_H
7609 #ifdef HAVE_UNISTD_H
7613 char *(*pfn) = (char *(*)) malloc
7616 if { (eval echo configure
:7617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7618 bfd_cv_decl_needed_malloc
=no
7620 echo "configure: failed program was:" >&5
7621 cat conftest.
$ac_ext >&5
7623 bfd_cv_decl_needed_malloc
=yes
7628 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7629 if test $bfd_cv_decl_needed_malloc = yes; then
7630 cat >> confdefs.h
<<\EOF
7631 #define NEED_DECLARATION_MALLOC 1
7636 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7637 echo "configure:7638: checking whether realloc must be declared" >&5
7638 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7641 cat > conftest.
$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7646 #ifdef HAVE_STRING_H
7649 #ifdef HAVE_STRINGS_H
7650 #include <strings.h>
7653 #ifdef HAVE_STDLIB_H
7656 #ifdef HAVE_UNISTD_H
7660 char *(*pfn) = (char *(*)) realloc
7663 if { (eval echo configure
:7664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7665 bfd_cv_decl_needed_realloc
=no
7667 echo "configure: failed program was:" >&5
7668 cat conftest.
$ac_ext >&5
7670 bfd_cv_decl_needed_realloc
=yes
7675 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7676 if test $bfd_cv_decl_needed_realloc = yes; then
7677 cat >> confdefs.h
<<\EOF
7678 #define NEED_DECLARATION_REALLOC 1
7683 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7684 echo "configure:7685: checking whether free must be declared" >&5
7685 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7688 cat > conftest.
$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7693 #ifdef HAVE_STRING_H
7696 #ifdef HAVE_STRINGS_H
7697 #include <strings.h>
7700 #ifdef HAVE_STDLIB_H
7703 #ifdef HAVE_UNISTD_H
7707 char *(*pfn) = (char *(*)) free
7710 if { (eval echo configure
:7711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7712 bfd_cv_decl_needed_free
=no
7714 echo "configure: failed program was:" >&5
7715 cat conftest.
$ac_ext >&5
7717 bfd_cv_decl_needed_free
=yes
7722 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7723 if test $bfd_cv_decl_needed_free = yes; then
7724 cat >> confdefs.h
<<\EOF
7725 #define NEED_DECLARATION_FREE 1
7730 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7731 echo "configure:7732: checking whether strerror must be declared" >&5
7732 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7735 cat > conftest.
$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7740 #ifdef HAVE_STRING_H
7743 #ifdef HAVE_STRINGS_H
7744 #include <strings.h>
7747 #ifdef HAVE_STDLIB_H
7750 #ifdef HAVE_UNISTD_H
7754 char *(*pfn) = (char *(*)) strerror
7757 if { (eval echo configure
:7758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7759 bfd_cv_decl_needed_strerror
=no
7761 echo "configure: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7764 bfd_cv_decl_needed_strerror
=yes
7769 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7770 if test $bfd_cv_decl_needed_strerror = yes; then
7771 cat >> confdefs.h
<<\EOF
7772 #define NEED_DECLARATION_STRERROR 1
7777 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7778 echo "configure:7779: checking whether strdup must be declared" >&5
7779 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7782 cat > conftest.
$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7787 #ifdef HAVE_STRING_H
7790 #ifdef HAVE_STRINGS_H
7791 #include <strings.h>
7794 #ifdef HAVE_STDLIB_H
7797 #ifdef HAVE_UNISTD_H
7801 char *(*pfn) = (char *(*)) strdup
7804 if { (eval echo configure
:7805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7806 bfd_cv_decl_needed_strdup
=no
7808 echo "configure: failed program was:" >&5
7809 cat conftest.
$ac_ext >&5
7811 bfd_cv_decl_needed_strdup
=yes
7816 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7817 if test $bfd_cv_decl_needed_strdup = yes; then
7818 cat >> confdefs.h
<<\EOF
7819 #define NEED_DECLARATION_STRDUP 1
7824 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7825 echo "configure:7826: checking whether strstr must be declared" >&5
7826 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6
7829 cat > conftest.
$ac_ext <<EOF
7830 #line 7831 "configure"
7831 #include "confdefs.h"
7834 #ifdef HAVE_STRING_H
7837 #ifdef HAVE_STRINGS_H
7838 #include <strings.h>
7841 #ifdef HAVE_STDLIB_H
7844 #ifdef HAVE_UNISTD_H
7848 char *(*pfn) = (char *(*)) strstr
7851 if { (eval echo configure
:7852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7853 bfd_cv_decl_needed_strstr
=no
7855 echo "configure: failed program was:" >&5
7856 cat conftest.
$ac_ext >&5
7858 bfd_cv_decl_needed_strstr
=yes
7863 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7864 if test $bfd_cv_decl_needed_strstr = yes; then
7865 cat >> confdefs.h
<<\EOF
7866 #define NEED_DECLARATION_STRSTR 1
7871 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7872 echo "configure:7873: checking whether canonicalize_file_name must be declared" >&5
7873 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7876 cat > conftest.
$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7881 #ifdef HAVE_STRING_H
7884 #ifdef HAVE_STRINGS_H
7885 #include <strings.h>
7888 #ifdef HAVE_STDLIB_H
7891 #ifdef HAVE_UNISTD_H
7895 char *(*pfn) = (char *(*)) canonicalize_file_name
7898 if { (eval echo configure
:7899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7900 bfd_cv_decl_needed_canonicalize_file_name
=no
7902 echo "configure: failed program was:" >&5
7903 cat conftest.
$ac_ext >&5
7905 bfd_cv_decl_needed_canonicalize_file_name
=yes
7910 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7911 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7912 cat >> confdefs.h
<<\EOF
7913 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7919 # The following save_state_t checkery is only necessary for HPUX
7920 # versions earlier than 10.20. When those fade from memory, this
7921 # could be expunged. --jsm 1999-03-22
7923 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7924 echo "configure:7925: checking for HPUX save_state structure" >&5
7925 cat > conftest.
$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7928 #include <machine/save_state.h>
7930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7931 egrep "save_state_t" >/dev
/null
2>&1; then
7933 gdb_cv_hpux_savestate
=yes
7936 gdb_cv_hpux_savestate
=no
7940 cat > conftest.
$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943 #include <machine/save_state.h>
7945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7946 egrep "ss_wide" >/dev
/null
2>&1; then
7948 gdb_cv_hpux_sswide
=yes
7951 gdb_cv_hpux_sswide
=no
7955 if test $gdb_cv_hpux_savestate = yes
7957 cat >> confdefs.h
<<\EOF
7958 #define HAVE_STRUCT_SAVE_STATE_T 1
7962 if test $gdb_cv_hpux_sswide = yes
7964 cat >> confdefs.h
<<\EOF
7965 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7969 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7972 # If we are configured native on GNU/Linux, work around problems with
7974 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7976 if test "${target}" = "${host}"; then
7979 cat >> confdefs.h
<<\EOF
7980 #define START_INFERIOR_TRAPS_EXPECTED 2
7983 cat >> confdefs.h
<<\EOF
7984 #define sys_quotactl 1
7989 cat >> confdefs.h
<<\EOF
7990 #define NEW_PROC_API 1
7994 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7995 cat >> confdefs.h
<<\EOF
7996 #define NEW_PROC_API 1
8000 *-*-solaris2.
[6789])
8001 cat >> confdefs.h
<<\EOF
8002 #define NEW_PROC_API 1
8007 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
8008 cat >> confdefs.h
<<\EOF
8016 if test "$ac_cv_header_sys_procfs_h" = yes; then
8017 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
8018 echo "configure:8019: checking for pstatus_t in sys/procfs.h" >&5
8019 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8022 cat > conftest.
$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8027 #include <sys/procfs.h>
8032 if { (eval echo configure
:8033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8034 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
8036 echo "configure: failed program was:" >&5
8037 cat conftest.
$ac_ext >&5
8039 bfd_cv_have_sys_procfs_type_pstatus_t
=no
8045 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
8046 cat >> confdefs.h
<<\EOF
8047 #define HAVE_PSTATUS_T 1
8051 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
8053 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
8054 echo "configure:8055: checking for prrun_t in sys/procfs.h" >&5
8055 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.
$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8063 #include <sys/procfs.h>
8068 if { (eval echo configure
:8069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8070 bfd_cv_have_sys_procfs_type_prrun_t
=yes
8072 echo "configure: failed program was:" >&5
8073 cat conftest.
$ac_ext >&5
8075 bfd_cv_have_sys_procfs_type_prrun_t
=no
8081 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
8082 cat >> confdefs.h
<<\EOF
8083 #define HAVE_PRRUN_T 1
8087 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
8089 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
8090 echo "configure:8091: checking for gregset_t in sys/procfs.h" >&5
8091 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8094 cat > conftest.
$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8099 #include <sys/procfs.h>
8104 if { (eval echo configure
:8105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8106 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8108 echo "configure: failed program was:" >&5
8109 cat conftest.
$ac_ext >&5
8111 bfd_cv_have_sys_procfs_type_gregset_t
=no
8117 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8118 cat >> confdefs.h
<<\EOF
8119 #define HAVE_GREGSET_T 1
8123 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8125 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8126 echo "configure:8127: checking for fpregset_t in sys/procfs.h" >&5
8127 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8130 cat > conftest.
$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8135 #include <sys/procfs.h>
8140 if { (eval echo configure
:8141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8142 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8144 echo "configure: failed program was:" >&5
8145 cat conftest.
$ac_ext >&5
8147 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8153 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8154 cat >> confdefs.h
<<\EOF
8155 #define HAVE_FPREGSET_T 1
8159 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8161 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8162 echo "configure:8163: checking for prgregset_t in sys/procfs.h" >&5
8163 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8166 cat > conftest.
$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8171 #include <sys/procfs.h>
8176 if { (eval echo configure
:8177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8178 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8180 echo "configure: failed program was:" >&5
8181 cat conftest.
$ac_ext >&5
8183 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8189 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8190 cat >> confdefs.h
<<\EOF
8191 #define HAVE_PRGREGSET_T 1
8195 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8197 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8198 echo "configure:8199: checking for prfpregset_t in sys/procfs.h" >&5
8199 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8202 cat > conftest.
$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8207 #include <sys/procfs.h>
8212 if { (eval echo configure
:8213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8214 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8216 echo "configure: failed program was:" >&5
8217 cat conftest.
$ac_ext >&5
8219 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8225 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8226 cat >> confdefs.h
<<\EOF
8227 #define HAVE_PRFPREGSET_T 1
8231 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8233 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8234 echo "configure:8235: checking for prgregset32_t in sys/procfs.h" >&5
8235 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8236 echo $ac_n "(cached) $ac_c" 1>&6
8238 cat > conftest.
$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8243 #include <sys/procfs.h>
8248 if { (eval echo configure
:8249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8250 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8252 echo "configure: failed program was:" >&5
8253 cat conftest.
$ac_ext >&5
8255 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8261 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8262 cat >> confdefs.h
<<\EOF
8263 #define HAVE_PRGREGSET32_T 1
8267 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8269 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8270 echo "configure:8271: checking for prfpregset32_t in sys/procfs.h" >&5
8271 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.
$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8279 #include <sys/procfs.h>
8284 if { (eval echo configure
:8285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8286 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
8288 echo "configure: failed program was:" >&5
8289 cat conftest.
$ac_ext >&5
8291 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
8297 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8298 cat >> confdefs.h
<<\EOF
8299 #define HAVE_PRFPREGSET32_T 1
8303 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8305 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8306 echo "configure:8307: checking for lwpid_t in sys/procfs.h" >&5
8307 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8310 cat > conftest.
$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8315 #include <sys/procfs.h>
8320 if { (eval echo configure
:8321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8322 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8324 echo "configure: failed program was:" >&5
8325 cat conftest.
$ac_ext >&5
8327 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8333 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8334 cat >> confdefs.h
<<\EOF
8335 #define HAVE_LWPID_T 1
8339 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8341 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8342 echo "configure:8343: checking for psaddr_t in sys/procfs.h" >&5
8343 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8346 cat > conftest.
$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8351 #include <sys/procfs.h>
8356 if { (eval echo configure
:8357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8358 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8360 echo "configure: failed program was:" >&5
8361 cat conftest.
$ac_ext >&5
8363 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8369 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8370 cat >> confdefs.h
<<\EOF
8371 #define HAVE_PSADDR_T 1
8375 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8377 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8378 echo "configure:8379: checking for prsysent_t in sys/procfs.h" >&5
8379 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8382 cat > conftest.
$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8387 #include <sys/procfs.h>
8392 if { (eval echo configure
:8393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8394 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
8396 echo "configure: failed program was:" >&5
8397 cat conftest.
$ac_ext >&5
8399 bfd_cv_have_sys_procfs_type_prsysent_t
=no
8405 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8406 cat >> confdefs.h
<<\EOF
8407 #define HAVE_PRSYSENT_T 1
8411 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8413 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8414 echo "configure:8415: checking for pr_sigset_t in sys/procfs.h" >&5
8415 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 cat > conftest.
$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8423 #include <sys/procfs.h>
8428 if { (eval echo configure
:8429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8430 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
8432 echo "configure: failed program was:" >&5
8433 cat conftest.
$ac_ext >&5
8435 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
8441 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8442 cat >> confdefs.h
<<\EOF
8443 #define HAVE_PR_SIGSET_T 1
8447 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8449 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8450 echo "configure:8451: checking for pr_sigaction64_t in sys/procfs.h" >&5
8451 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8452 echo $ac_n "(cached) $ac_c" 1>&6
8454 cat > conftest.
$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8459 #include <sys/procfs.h>
8461 pr_sigaction64_t avar
8464 if { (eval echo configure
:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8466 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
8468 echo "configure: failed program was:" >&5
8469 cat conftest.
$ac_ext >&5
8471 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
8477 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8478 cat >> confdefs.h
<<\EOF
8479 #define HAVE_PR_SIGACTION64_T 1
8483 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8485 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8486 echo "configure:8487: checking for pr_siginfo64_t in sys/procfs.h" >&5
8487 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8490 cat > conftest.
$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8495 #include <sys/procfs.h>
8500 if { (eval echo configure
:8501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8502 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
8504 echo "configure: failed program was:" >&5
8505 cat conftest.
$ac_ext >&5
8507 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
8513 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8514 cat >> confdefs.h
<<\EOF
8515 #define HAVE_PR_SIGINFO64_T 1
8519 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8525 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8526 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8527 echo "configure:8528: checking whether prfpregset_t type is broken" >&5
8528 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8531 if test "$cross_compiling" = yes; then
8532 gdb_cv_prfpregset_t_broken
=yes
8534 cat > conftest.
$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8537 #include <sys/procfs.h>
8540 if (sizeof (prfpregset_t) == sizeof (void *))
8545 if { (eval echo configure
:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8547 gdb_cv_prfpregset_t_broken
=no
8549 echo "configure: failed program was:" >&5
8550 cat conftest.
$ac_ext >&5
8552 gdb_cv_prfpregset_t_broken
=yes
8559 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8560 if test $gdb_cv_prfpregset_t_broken = yes; then
8561 cat >> confdefs.h
<<\EOF
8562 #define PRFPREGSET_T_BROKEN 1
8569 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8570 echo "configure:8571: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8571 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8574 cat > conftest.
$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8578 #include <sys/types.h>
8579 #include <sys/procfs.h>
8584 dummy = ioctl(0, PIOCSET, &dummy);
8588 if { (eval echo configure
:8589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8590 gdb_cv_have_procfs_piocset
=yes
8592 echo "configure: failed program was:" >&5
8593 cat conftest.
$ac_ext >&5
8595 gdb_cv_have_procfs_piocset
=no
8600 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8601 if test $gdb_cv_have_procfs_piocset = yes; then
8602 cat >> confdefs.h
<<\EOF
8603 #define HAVE_PROCFS_PIOCSET 1
8609 if test ${host} = ${target} ; then
8611 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8612 echo "configure:8613: checking for member l_addr in struct link_map" >&5
8613 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8616 cat > conftest.
$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8621 struct link_map lm; (void) lm.l_addr;
8624 if { (eval echo configure
:8625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8626 gdb_cv_have_struct_link_map_with_l_members
=yes
8628 echo "configure: failed program was:" >&5
8629 cat conftest.
$ac_ext >&5
8631 gdb_cv_have_struct_link_map_with_l_members
=no
8636 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8637 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8638 cat >> confdefs.h
<<\EOF
8639 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8645 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8646 echo "configure:8647: checking for member lm_addr in struct link_map" >&5
8647 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8650 cat > conftest.
$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8653 #include <sys/types.h>
8656 struct link_map lm; (void) lm.lm_addr;
8659 if { (eval echo configure
:8660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8661 gdb_cv_have_struct_link_map_with_lm_members
=yes
8663 echo "configure: failed program was:" >&5
8664 cat conftest.
$ac_ext >&5
8666 gdb_cv_have_struct_link_map_with_lm_members
=no
8671 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8672 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8673 cat >> confdefs.h
<<\EOF
8674 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8680 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8681 echo "configure:8682: checking for member som_addr in struct so_map" >&5
8682 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8685 cat > conftest.
$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 #include <sys/types.h>
8694 struct so_map lm; (void) lm.som_addr;
8697 if { (eval echo configure
:8698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8699 gdb_cv_have_struct_so_map_with_som_members
=yes
8701 echo "configure: failed program was:" >&5
8702 cat conftest.
$ac_ext >&5
8704 gdb_cv_have_struct_so_map_with_som_members
=no
8709 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8710 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8711 cat >> confdefs.h
<<\EOF
8712 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8718 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8719 echo "configure:8720: checking for struct link_map32 in sys/link.h" >&5
8720 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8723 cat > conftest.
$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8727 #include <sys/link.h>
8729 struct link_map32 l;
8732 if { (eval echo configure
:8733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8734 gdb_cv_have_struct_link_map32
=yes
8736 echo "configure: failed program was:" >&5
8737 cat conftest.
$ac_ext >&5
8739 gdb_cv_have_struct_link_map32
=no
8744 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8745 if test $gdb_cv_have_struct_link_map32 = yes; then
8746 cat >> confdefs.h
<<\EOF
8747 #define HAVE_STRUCT_LINK_MAP32 1
8750 cat >> confdefs.h
<<\EOF
8751 #define _SYSCALL32 1
8758 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8759 echo "configure:8760: checking for long long support in compiler" >&5
8760 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8763 cat > conftest.
$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8769 extern long long foo;
8770 switch (foo & 2) { case 0: return 1; }
8774 if { (eval echo configure
:8775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8776 gdb_cv_c_long_long
=yes
8778 echo "configure: failed program was:" >&5
8779 cat conftest.
$ac_ext >&5
8781 gdb_cv_c_long_long
=no
8786 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8787 if test $gdb_cv_c_long_long = yes; then
8788 cat >> confdefs.h
<<\EOF
8789 #define CC_HAS_LONG_LONG 1
8795 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8796 echo "configure:8797: checking for long long support in printf" >&5
8797 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8800 if test "$cross_compiling" = yes; then
8801 gdb_cv_printf_has_long_long
=no
8803 cat > conftest.
$ac_ext <<EOF
8804 #line 8805 "configure"
8805 #include "confdefs.h"
8810 l = (l << 16) + 0x0123;
8811 l = (l << 16) + 0x4567;
8812 l = (l << 16) + 0x89ab;
8813 l = (l << 16) + 0xcdef;
8814 sprintf (buf, "0x%016llx", l);
8815 return (strcmp ("0x0123456789abcdef", buf));
8818 if { (eval echo configure
:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8820 gdb_cv_printf_has_long_long
=yes
8822 echo "configure: failed program was:" >&5
8823 cat conftest.
$ac_ext >&5
8825 gdb_cv_printf_has_long_long
=no
8832 if test $gdb_cv_printf_has_long_long = yes; then
8833 cat >> confdefs.h
<<\EOF
8834 #define PRINTF_HAS_LONG_LONG 1
8838 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8841 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8842 echo "configure:8843: checking for long double support in compiler" >&5
8843 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8846 cat > conftest.
$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8854 if { (eval echo configure
:8855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8856 ac_cv_c_long_double
=yes
8858 echo "configure: failed program was:" >&5
8859 cat conftest.
$ac_ext >&5
8861 ac_cv_c_long_double
=no
8866 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8867 if test $ac_cv_c_long_double = yes; then
8868 cat >> confdefs.h
<<\EOF
8869 #define HAVE_LONG_DOUBLE 1
8875 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8876 echo "configure:8877: checking for long double support in printf" >&5
8877 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8880 if test "$cross_compiling" = yes; then
8881 gdb_cv_printf_has_long_double
=no
8883 cat > conftest.
$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8889 long double f = 3.141592653;
8890 sprintf (buf, "%Lg", f);
8891 return (strncmp ("3.14159", buf, 7));
8894 if { (eval echo configure
:8895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8896 gdb_cv_printf_has_long_double
=yes
8898 echo "configure: failed program was:" >&5
8899 cat conftest.
$ac_ext >&5
8901 gdb_cv_printf_has_long_double
=no
8908 if test $gdb_cv_printf_has_long_double = yes; then
8909 cat >> confdefs.h
<<\EOF
8910 #define PRINTF_HAS_LONG_DOUBLE 1
8914 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8917 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8918 echo "configure:8919: checking for long double support in scanf" >&5
8919 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8922 if test "$cross_compiling" = yes; then
8923 gdb_cv_scanf_has_long_double
=no
8925 cat > conftest.
$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8930 char *buf = "3.141592653";
8932 sscanf (buf, "%Lg", &f);
8933 return !(f > 3.14159 && f < 3.14160);
8936 if { (eval echo configure
:8937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8938 gdb_cv_scanf_has_long_double
=yes
8940 echo "configure: failed program was:" >&5
8941 cat conftest.
$ac_ext >&5
8943 gdb_cv_scanf_has_long_double
=no
8950 if test $gdb_cv_scanf_has_long_double = yes; then
8951 cat >> confdefs.h
<<\EOF
8952 #define SCANF_HAS_LONG_DOUBLE 1
8956 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8960 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8961 echo "configure:8962: checking for -bbigtoc option" >&5
8962 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8963 echo $ac_n "(cached) $ac_c" 1>&6
8966 SAVE_LDFLAGS
=$LDFLAGS
8969 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8970 *) gdb_cv_bigtoc
=-bbigtoc ;;
8973 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8974 cat > conftest.
$ac_ext <<EOF
8975 #line 8976 "configure"
8976 #include "confdefs.h"
8982 if { (eval echo configure
:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8985 echo "configure: failed program was:" >&5
8986 cat conftest.
$ac_ext >&5
8991 LDFLAGS
="${SAVE_LDFLAGS}"
8995 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8996 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
9002 if test ${build} = ${host} -a ${host} = ${target} ; then
9005 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
9006 echo "configure:9007: checking for HPUX/OSF thread support" >&5
9007 if test -f /usr
/include
/dce
/cma_config.h
; then
9008 if test "$GCC" = "yes" ; then
9009 echo "$ac_t""yes" 1>&6
9010 cat >> confdefs.h
<<\EOF
9011 #define HAVE_HPUX_THREAD_SUPPORT 1
9014 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
9015 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
9017 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
9020 echo "$ac_t""no" 1>&6
9024 # See if thread_db library is around for Solaris thread debugging.
9025 # Note that we must explicitly test for version 1 of the library
9026 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
9028 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
9029 echo "configure:9030: checking for Solaris thread debugging library" >&5
9030 if test -f /usr
/lib
/libthread_db.so
.1 ; then
9031 echo "$ac_t""yes" 1>&6
9032 cat >> confdefs.h
<<\EOF
9033 #define HAVE_THREAD_DB_LIB 1
9036 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
9037 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
9038 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9039 echo "configure:9040: checking for dlopen in -ldl" >&5
9040 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9044 ac_save_LIBS
="$LIBS"
9046 cat > conftest.
$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 /* Override any gcc2 internal prototype to avoid an error. */
9050 /* We use char because int might match the return type of a gcc2
9051 builtin and then its argument prototype would still apply. */
9058 if { (eval echo configure
:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9060 eval "ac_cv_lib_$ac_lib_var=yes"
9062 echo "configure: failed program was:" >&5
9063 cat conftest.
$ac_ext >&5
9065 eval "ac_cv_lib_$ac_lib_var=no"
9068 LIBS
="$ac_save_LIBS"
9071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9072 echo "$ac_t""yes" 1>&6
9073 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9074 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9075 cat >> confdefs.h
<<EOF
9076 #define $ac_tr_lib 1
9082 echo "$ac_t""no" 1>&6
9085 if test "$GCC" = "yes" ; then
9086 # The GNU linker requires the -export-dynamic option to make
9087 # all symbols visible in the dynamic symbol table.
9088 hold_ldflags
=$LDFLAGS
9089 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
9090 echo "configure:9091: checking for the ld -export-dynamic flag" >&5
9091 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
9092 cat > conftest.
$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9100 if { (eval echo configure
:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9104 echo "configure: failed program was:" >&5
9105 cat conftest.
$ac_ext >&5
9110 LDFLAGS
=$hold_ldflags
9111 echo "$ac_t""$found" 1>&6
9112 if test $found = yes; then
9113 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9116 # Sun randomly tweaked the prototypes in <proc_service.h>
9118 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9119 echo "configure:9120: checking if <proc_service.h> is old" >&5
9120 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9124 cat > conftest.
$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9128 #include <proc_service.h>
9130 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9136 if { (eval echo configure
:9137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9138 gdb_cv_proc_service_is_old
=no
9140 echo "configure: failed program was:" >&5
9141 cat conftest.
$ac_ext >&5
9143 gdb_cv_proc_service_is_old
=yes
9149 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9150 if test $gdb_cv_proc_service_is_old = yes; then
9151 cat >> confdefs.h
<<\EOF
9152 #define PROC_SERVICE_IS_OLD 1
9157 echo "$ac_t""no" 1>&6
9161 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9162 echo "configure:9163: checking for AiX thread debugging library" >&5
9163 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9166 cat > conftest.
$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9169 #include <sys/pthdebug.h>
9171 #ifndef PTHDB_VERSION_3
9176 if { (eval echo configure
:9177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9178 gdb_cv_have_aix_thread_debug
=yes
9180 echo "configure: failed program was:" >&5
9181 cat conftest.
$ac_ext >&5
9183 gdb_cv_have_aix_thread_debug
=no
9188 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9189 if test $gdb_cv_have_aix_thread_debug = yes; then
9190 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
9191 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
9192 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
9199 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9200 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9201 echo "configure:9202: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9202 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9205 cat > conftest.
$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 #include <thread_db.h>
9210 int i = TD_NOTALLOC;
9213 if { (eval echo configure
:9214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9215 gdb_cv_thread_db_h_has_td_notalloc
=yes
9217 echo "configure: failed program was:" >&5
9218 cat conftest.
$ac_ext >&5
9220 gdb_cv_thread_db_h_has_td_notalloc
=no
9227 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9229 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9230 cat >> confdefs.h
<<\EOF
9231 #define THREAD_DB_HAS_TD_NOTALLOC 1
9236 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9237 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9238 echo "configure:9239: checking whether <sys/syscall.h> has __NR_tkill" >&5
9239 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9242 cat > conftest.
$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 #include <sys/syscall.h>
9250 if { (eval echo configure
:9251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9252 gdb_cv_sys_syscall_h_has_tkill
=yes
9254 echo "configure: failed program was:" >&5
9255 cat conftest.
$ac_ext >&5
9257 gdb_cv_sys_syscall_h_has_tkill
=no
9264 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9266 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9267 cat >> confdefs.h
<<\EOF
9268 #define HAVE_TKILL_SYSCALL 1
9274 # Check whether --with-sysroot or --without-sysroot was given.
9275 if test "${with_sysroot+set}" = set; then
9276 withval
="$with_sysroot"
9278 case ${with_sysroot} in
9279 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
9280 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
9283 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9285 if test "x$exec_prefix" = xNONE
; then
9286 if test "x$prefix" = xNONE
; then
9287 test_prefix
=/usr
/local
9292 test_prefix
=$exec_prefix
9294 case ${TARGET_SYSTEM_ROOT} in
9295 "${test_prefix}"|
"${test_prefix}/"*|\
9296 '${exec_prefix}'|
'${exec_prefix}/'*)
9297 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9298 TARGET_SYSTEM_ROOT_DEFINE
="$t"
9305 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
9312 # NOTE: Don't add -Wall or -Wunused, they both include
9313 # -Wunused-parameter which reports bogus warnings.
9314 # NOTE: If you add to this list, remember to update
9315 # gdb/doc/gdbint.texinfo.
9316 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9317 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9318 -Wunused-label -Wunused-function"
9319 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9320 # -Wunused-function -Wunused-variable -Wunused-value
9321 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9322 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9323 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9324 # -Woverloaded-virtual -Winline -Werror"
9325 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9326 if test "${enable_build_warnings+set}" = set; then
9327 enableval
="$enable_build_warnings"
9328 case "${enableval}" in
9330 no
) build_warnings
="-w";;
9331 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9332 build_warnings
="${build_warnings} ${t}";;
9333 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9334 build_warnings
="${t} ${build_warnings}";;
9335 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9337 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9338 echo "Setting compiler warning flags = $build_warnings" 6>&1
9341 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9342 if test "${enable_gdb_build_warnings+set}" = set; then
9343 enableval
="$enable_gdb_build_warnings"
9344 case "${enableval}" in
9346 no
) build_warnings
="-w";;
9347 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9348 build_warnings
="${build_warnings} ${t}";;
9349 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9350 build_warnings
="${t} ${build_warnings}";;
9351 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9353 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9354 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9359 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9361 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9362 echo "configure:9363: checking compiler warning flags" >&5
9363 # Separate out the -Werror flag as some files just cannot be
9364 # compiled with it enabled.
9365 for w
in ${build_warnings}; do
9367 -Werr*) WERROR_CFLAGS
=-Werror ;;
9368 *) # Check that GCC accepts it
9369 saved_CFLAGS
="$CFLAGS"
9371 cat > conftest.
$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9379 if { (eval echo configure
:9380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9381 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9383 echo "configure: failed program was:" >&5
9384 cat conftest.
$ac_ext >&5
9387 CFLAGS
="$saved_CFLAGS"
9390 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9395 # In the Cygwin environment, we need some additional flags.
9396 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9397 echo "configure:9398: checking for cygwin" >&5
9398 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9401 cat > conftest.
$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9405 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9410 egrep "lose" >/dev
/null
2>&1; then
9412 gdb_cv_os_cygwin
=yes
9421 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9424 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
9426 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
9427 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
9431 # libreadline needs libuser32.a in a cygwin environment
9433 if test x
$gdb_cv_os_cygwin = xyes
; then
9434 WIN32LIBS
="-luser32"
9436 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
9442 LIBGUI
="../libgui/src/libgui.a"
9443 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
9461 if test "${enable_gdbtk}" = "yes"; then
9463 # Gdbtk must have an absolute path to srcdir in order to run
9464 # properly when not installed.
9472 # Ok, lets find the tcl configuration
9473 # First, look for one uninstalled.
9474 # the alternative search directory is invoked by --with-tclconfig
9477 if test x
"${no_tcl}" = x
; then
9478 # we reset no_tcl in case something fails here
9480 # Check whether --with-tclconfig or --without-tclconfig was given.
9481 if test "${with_tclconfig+set}" = set; then
9482 withval
="$with_tclconfig"
9483 with_tclconfig
=${withval}
9486 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9487 echo "configure:9488: checking for Tcl configuration" >&5
9488 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9493 # First check to see if --with-tclconfig was specified.
9494 if test x
"${with_tclconfig}" != x
; then
9495 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9496 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
9498 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9502 # then check for a private Tcl installation
9503 if test x
"${ac_cv_c_tclconfig}" = x
; then
9506 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9508 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9510 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9511 if test -f "$i/${configdir}/tclConfig.sh" ; then
9512 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9517 # check in a few common install locations
9518 if test x
"${ac_cv_c_tclconfig}" = x
; then
9519 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9520 if test -f "$i/tclConfig.sh" ; then
9521 ac_cv_c_tclconfig
=`(cd $i; pwd)`
9526 # check in a few other private locations
9527 if test x
"${ac_cv_c_tclconfig}" = x
; then
9530 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9531 if test -f "$i/${configdir}/tclConfig.sh" ; then
9532 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9540 if test x
"${ac_cv_c_tclconfig}" = x
; then
9541 TCLCONFIG
="# no Tcl configs found"
9542 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9545 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
9546 echo "$ac_t""found $TCLCONFIG" 1>&6
9550 if test -z "${no_tcl}"; then
9581 # Ok, lets find the tk configuration
9582 # First, look for one uninstalled.
9583 # the alternative search directory is invoked by --with-tkconfig
9586 if test x
"${no_tk}" = x
; then
9587 # we reset no_tk in case something fails here
9589 # Check whether --with-tkconfig or --without-tkconfig was given.
9590 if test "${with_tkconfig+set}" = set; then
9591 withval
="$with_tkconfig"
9592 with_tkconfig
=${withval}
9595 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9596 echo "configure:9597: checking for Tk configuration" >&5
9597 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9602 # First check to see if --with-tkconfig was specified.
9603 if test x
"${with_tkconfig}" != x
; then
9604 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9605 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
9607 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9611 # then check for a private Tk library
9612 if test x
"${ac_cv_c_tkconfig}" = x
; then
9615 `ls -dr ../tk[4-9]* 2>/dev/null` \
9617 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9619 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9620 if test -f "$i/${configdir}/tkConfig.sh" ; then
9621 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9626 # check in a few common install locations
9627 if test x
"${ac_cv_c_tkconfig}" = x
; then
9628 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9629 if test -f "$i/tkConfig.sh" ; then
9630 ac_cv_c_tkconfig
=`(cd $i; pwd)`
9635 # check in a few other private locations
9636 if test x
"${ac_cv_c_tkconfig}" = x
; then
9639 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9640 if test -f "$i/${configdir}/tkConfig.sh" ; then
9641 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9649 if test x
"${ac_cv_c_tkconfig}" = x
; then
9650 TKCONFIG
="# no Tk configs found"
9651 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9654 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
9655 echo "$ac_t""found $TKCONFIG" 1>&6
9661 # now look for Tcl library stuff
9663 tcldir
="../tcl/${configdir}/"
9665 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
9667 # If $no_tk is nonempty, then we can't do Tk, and there is no
9668 # point to doing Tcl.
9669 if test -z "${no_tk}"; then
9671 if test -f "$TKCONFIG" ; then
9689 # Ok, lets find the tcl source trees so we can use the headers
9690 # Warning: transition of version 9 to 10 will break this algorithm
9691 # because 10 sorts before 9. We also look for just tcl. We have to
9692 # be careful that we don't match stuff like tclX by accident.
9693 # the alternative search directory is involked by --with-tclinclude
9697 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9698 echo "configure:9699: checking for Tcl private headers. dir=${configdir}" >&5
9699 # Check whether --with-tclinclude or --without-tclinclude was given.
9700 if test "${with_tclinclude+set}" = set; then
9701 withval
="$with_tclinclude"
9702 with_tclinclude
=${withval}
9705 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9709 # first check to see if --with-tclinclude was specified
9710 if test x
"${with_tclinclude}" != x
; then
9711 if test -f ${with_tclinclude}/tclInt.h
; then
9712 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9713 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9714 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9716 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9720 # next check if it came with Tcl configuration file
9721 if test x
"${ac_cv_c_tclconfig}" = x
; then
9722 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9723 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9727 # next check in private source directory
9729 # since ls returns lowest version numbers first, reverse its output
9730 if test x
"${ac_cv_c_tclh}" = x
; then
9733 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9734 ${srcdir}/..
/..
/tcl \
9735 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9736 ${srcdir}/..
/..
/..
/tcl \
9737 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9738 if test -f $i/generic
/tclInt.h
; then
9739 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9744 # finally check in a few common install locations
9746 # since ls returns lowest version numbers first, reverse its output
9747 if test x
"${ac_cv_c_tclh}" = x
; then
9749 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9750 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9751 /usr
/local
/src
/tcl \
9752 /usr
/local
/lib
/tcl \
9753 ${prefix}/include
; do
9754 if test -f $i/generic
/tclInt.h
; then
9755 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9760 # see if one is installed
9761 if test x
"${ac_cv_c_tclh}" = x
; then
9762 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9763 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9764 echo "configure:9765: checking for tclInt.h" >&5
9765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9766 echo $ac_n "(cached) $ac_c" 1>&6
9768 cat > conftest.
$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9773 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9774 { (eval echo configure
:9775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9775 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9776 if test -z "$ac_err"; then
9778 eval "ac_cv_header_$ac_safe=yes"
9781 echo "configure: failed program was:" >&5
9782 cat conftest.
$ac_ext >&5
9784 eval "ac_cv_header_$ac_safe=no"
9788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9789 echo "$ac_t""yes" 1>&6
9790 ac_cv_c_tclh
=installed
9792 echo "$ac_t""no" 1>&6
9800 if test x
"${ac_cv_c_tclh}" = x
; then
9801 TCLHDIR
="# no Tcl private headers found"
9802 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9804 if test x
"${ac_cv_c_tclh}" != x
; then
9806 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9807 echo "$ac_t""is installed" 1>&6
9810 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9811 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9812 TCLHDIR
="-I${ac_cv_c_tclh}"
9820 # Ok, lets find the tk source trees so we can use the headers
9821 # If the directory (presumably symlink) named "tk" exists, use that one
9822 # in preference to any others. Same logic is used when choosing library
9823 # and again with Tcl. The search order is the best place to look first, then in
9824 # decreasing significance. The loop breaks if the trigger file is found.
9825 # Note the gross little conversion here of srcdir by cd'ing to the found
9826 # directory. This converts the path from a relative to an absolute, so
9827 # recursive cache variables for the path will work right. We check all
9828 # the possible paths in one loop rather than many seperate loops to speed
9830 # the alternative search directory is involked by --with-tkinclude
9833 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9834 echo "configure:9835: checking for Tk private headers" >&5
9835 # Check whether --with-tkinclude or --without-tkinclude was given.
9836 if test "${with_tkinclude+set}" = set; then
9837 withval
="$with_tkinclude"
9838 with_tkinclude
=${withval}
9841 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9845 # first check to see if --with-tkinclude was specified
9846 if test x
"${with_tkinclude}" != x
; then
9847 if test -f ${with_tkinclude}/tk.h
; then
9848 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9849 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9850 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9852 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9856 # next check if it came with Tk configuration file
9857 if test x
"${ac_cv_c_tkconfig}" = x
; then
9858 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9859 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9863 # next check in private source directory
9865 # since ls returns lowest version numbers first, reverse its output
9866 if test x
"${ac_cv_c_tkh}" = x
; then
9869 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9870 ${srcdir}/..
/..
/tk \
9871 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9872 ${srcdir}/..
/..
/..
/tk \
9873 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9874 if test -f $i/generic
/tk.h
; then
9875 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9880 # finally check in a few common install locations
9882 # since ls returns lowest version numbers first, reverse its output
9883 if test x
"${ac_cv_c_tkh}" = x
; then
9885 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9886 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9889 ${prefix}/include
; do
9890 if test -f $i/generic
/tk.h
; then
9891 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9896 # see if one is installed
9897 if test x
"${ac_cv_c_tkh}" = x
; then
9898 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9899 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9900 echo "configure:9901: checking for tk.h" >&5
9901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9902 echo $ac_n "(cached) $ac_c" 1>&6
9904 cat > conftest.
$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9910 { (eval echo configure
:9911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9912 if test -z "$ac_err"; then
9914 eval "ac_cv_header_$ac_safe=yes"
9917 echo "configure: failed program was:" >&5
9918 cat conftest.
$ac_ext >&5
9920 eval "ac_cv_header_$ac_safe=no"
9924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9925 echo "$ac_t""yes" 1>&6
9926 ac_cv_c_tkh
=installed
9928 echo "$ac_t""no" 1>&6
9936 if test x
"${ac_cv_c_tkh}" != x
; then
9938 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9939 echo "$ac_t""is installed" 1>&6
9942 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9943 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9944 TKHDIR
="-I${ac_cv_c_tkh}"
9947 TKHDIR
="# no Tk directory found"
9948 echo "configure: warning: Can't find Tk private headers" 1>&2
9955 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9956 echo "configure:9957: checking for Itcl private headers. srcdir=${srcdir}" >&5
9957 if test x
"${ac_cv_c_itclh}" = x
; then
9958 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9959 if test -f $i/generic
/itcl.h
; then
9960 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9965 if test x
"${ac_cv_c_itclh}" = x
; then
9966 ITCLHDIR
="# no Itcl private headers found"
9967 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9969 if test x
"${ac_cv_c_itclh}" != x
; then
9970 ITCLHDIR
="-I${ac_cv_c_itclh}"
9972 # should always be here
9973 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9978 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9979 echo "configure:9980: checking for Itk private headers. srcdir=${srcdir}" >&5
9980 if test x
"${ac_cv_c_itkh}" = x
; then
9981 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9982 if test -f $i/generic
/itk.h
; then
9983 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9988 if test x
"${ac_cv_c_itkh}" = x
; then
9989 ITKHDIR
="# no Itk private headers found"
9990 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9992 if test x
"${ac_cv_c_itkh}" != x
; then
9993 ITKHDIR
="-I${ac_cv_c_itkh}"
9995 # should always be here
9996 # ITKLIB="../itcl/itk/unix/libitk.a"
10002 # now look for Tk library stuff
10004 tkdir
="../tk/${configdir}/"
10006 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
10008 # now look for Itcl library stuff
10012 # Ok, lets find the itcl configuration
10013 # First, look for one uninstalled.
10014 # the alternative search directory is invoked by --with-itclconfig
10017 if test x
"${no_itcl}" = x
; then
10018 # we reset no_itcl in case something fails here
10020 # Check whether --with-itclconfig or --without-itclconfig was given.
10021 if test "${with_itclconfig+set}" = set; then
10022 withval
="$with_itclconfig"
10023 with_itclconfig
=${withval}
10026 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
10027 echo "configure:10028: checking for Itcl configuration" >&5
10028 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
10033 # First check to see if --with-itclconfig was specified.
10034 if test x
"${with_itclconfig}" != x
; then
10035 if test -f "${with_itclconfig}/itclConfig.sh" ; then
10036 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
10038 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
10042 # then check for a private Itcl library
10043 if test x
"${ac_cv_c_itclconfig}" = x
; then
10046 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
10048 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
10050 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
10051 if test -f "$i/itclConfig.sh" ; then
10052 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10057 # check in a few common install locations
10058 if test x
"${ac_cv_c_itclconfig}" = x
; then
10059 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10060 if test -f "$i/itclConfig.sh" ; then
10061 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10066 # check in a few other private locations
10067 if test x
"${ac_cv_c_itclconfig}" = x
; then
10069 ${srcdir}/..
/itcl
/itcl \
10070 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
10071 if test -f "$i/itclConfig.sh" ; then
10072 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10080 if test x
"${ac_cv_c_itclconfig}" = x
; then
10081 ITCLCONFIG
="# no Itcl configs found"
10082 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
10085 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
10086 echo "$ac_t""found $ITCLCONFIG" 1>&6
10090 if test -z "${no_itcl}"; then
10092 if test -f "$ITCLCONFIG" ; then
10107 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
10108 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
10112 # now look for Itk library stuff
10115 # Ok, lets find the itk configuration
10116 # First, look for one uninstalled.
10117 # the alternative search directory is invoked by --with-itkconfig
10120 if test x
"${no_itk}" = x
; then
10121 # we reset no_itk in case something fails here
10123 # Check whether --with-itkconfig or --without-itkconfig was given.
10124 if test "${with_itkconfig+set}" = set; then
10125 withval
="$with_itkconfig"
10126 with_itkconfig
=${withval}
10129 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10130 echo "configure:10131: checking for Itk configuration" >&5
10131 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10136 # First check to see if --with-itkconfig was specified.
10137 if test x
"${with_itkconfig}" != x
; then
10138 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10139 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
10141 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10145 # then check for a private Itk library
10146 if test x
"${ac_cv_c_itkconfig}" = x
; then
10149 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10151 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10153 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10154 if test -f "$i/itkConfig.sh" ; then
10155 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10160 # check in a few common install locations
10161 if test x
"${ac_cv_c_itkconfig}" = x
; then
10162 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10163 if test -f "$i/itkConfig.sh" ; then
10164 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10169 # check in a few other private locations
10170 if test x
"${ac_cv_c_itkconfig}" = x
; then
10172 ${srcdir}/..
/itcl
/itk \
10173 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10174 if test -f "$i/itkConfig.sh" ; then
10175 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10183 if test x
"${ac_cv_c_itkconfig}" = x
; then
10184 ITKCONFIG
="# no Itk configs found"
10185 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10188 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
10189 echo "$ac_t""found $ITKCONFIG" 1>&6
10194 if test -z "${no_itcl}"; then
10196 if test -f "$ITKCONFIG" ; then
10211 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
10212 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
10215 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10216 # Tcl/Tk 8.1 require -fwritable strings. I don't
10217 # know whether 8.2 will or not, but I bet it will.
10218 # I don't have to worry about 7.x since we don't support it.
10220 if test "$GCC" = "yes"; then
10221 if test "$TCL_VERSION" != "8.0" ; then
10222 GDBTK_CFLAGS
="-fwritable-strings"
10226 # Include some libraries that Tcl and Tk want.
10227 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10228 # Yes, the ordering seems wrong here. But it isn't.
10229 # TK_LIBS is the list of libraries that need to be linked
10230 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10231 # were in LIBS then any link tests after this point would
10232 # try to include things like `$(LIBGUI)', which wouldn't work.
10233 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
10235 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10236 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10237 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10238 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
10239 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
10240 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
10241 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
10243 if test x
$gdb_cv_os_cygwin = xyes
; then
10244 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10245 WIN32LDAPP
="-Wl,--subsystem,console"
10246 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
10251 configdirs
="${configdirs} gdbtk"
10267 # If we find X, set shell vars x_includes and x_libraries to the
10268 # paths, otherwise set no_x=yes.
10269 # Uses ac_ vars as temps to allow command line to override cache and checks.
10270 # --without-x overrides everything else, but does not touch the cache.
10271 echo $ac_n "checking for X""... $ac_c" 1>&6
10272 echo "configure:10273: checking for X" >&5
10274 # Check whether --with-x or --without-x was given.
10275 if test "${with_x+set}" = set; then
10280 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10281 if test "x$with_x" = xno
; then
10282 # The user explicitly disabled X.
10285 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
10286 # Both variables are already set.
10289 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10292 # One or both of the vars are not set, and there is no cached value.
10293 ac_x_includes
=NO ac_x_libraries
=NO
10295 if mkdir conftestdir
; then
10297 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10298 cat > Imakefile
<<'EOF'
10300 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10302 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10303 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10304 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10305 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10306 for ac_extension
in a so sl
; do
10307 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
10308 test -f $ac_im_libdir/libX11.
$ac_extension; then
10309 ac_im_usrlibdir
=$ac_im_libdir; break
10312 # Screen out bogus values from the imake configuration. They are
10313 # bogus both because they are the default anyway, and because
10314 # using them would break gcc on systems where it needs fixed includes.
10315 case "$ac_im_incroot" in
10317 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
10319 case "$ac_im_usrlibdir" in
10320 /usr
/lib |
/lib
) ;;
10321 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
10328 if test "$ac_x_includes" = NO
; then
10329 # Guess where to find include files, by looking for this one X11 .h file.
10330 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
10332 # First, try using that file with no special directory specified.
10333 cat > conftest.
$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10336 #include <$x_direct_test_include>
10338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10339 { (eval echo configure
:10340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10340 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10341 if test -z "$ac_err"; then
10343 # We can compile using X headers with no special include directory.
10347 echo "configure: failed program was:" >&5
10348 cat conftest.
$ac_ext >&5
10350 # Look for the header file in a standard set of common directories.
10351 # Check X11 before X11Rn because it is often a symlink to the current release.
10354 /usr
/X11R
6/include \
10355 /usr
/X11R
5/include \
10356 /usr
/X11R
4/include \
10359 /usr
/include
/X11R6 \
10360 /usr
/include
/X11R5 \
10361 /usr
/include
/X11R4 \
10363 /usr
/local
/X11
/include \
10364 /usr
/local
/X11R
6/include \
10365 /usr
/local
/X11R
5/include \
10366 /usr
/local
/X11R
4/include \
10368 /usr
/local
/include
/X11 \
10369 /usr
/local
/include
/X11R6 \
10370 /usr
/local
/include
/X11R5 \
10371 /usr
/local
/include
/X11R4 \
10373 /usr
/X386
/include \
10374 /usr
/x386
/include \
10375 /usr
/XFree86
/include
/X11 \
10378 /usr
/local
/include \
10379 /usr
/unsupported
/include \
10380 /usr
/athena
/include \
10381 /usr
/local
/x11r
5/include \
10382 /usr
/lpp
/Xamples
/include \
10384 /usr
/openwin
/include \
10385 /usr
/openwin
/share
/include \
10388 if test -r "$ac_dir/$x_direct_test_include"; then
10389 ac_x_includes
=$ac_dir
10395 fi # $ac_x_includes = NO
10397 if test "$ac_x_libraries" = NO
; then
10398 # Check for the libraries.
10400 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
10401 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
10403 # See if we find them without any special options.
10404 # Don't add to $LIBS permanently.
10405 ac_save_LIBS
="$LIBS"
10406 LIBS
="-l$x_direct_test_library $LIBS"
10407 cat > conftest.
$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10412 ${x_direct_test_function}()
10415 if { (eval echo configure
:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10417 LIBS
="$ac_save_LIBS"
10418 # We can link X programs with no special library path.
10421 echo "configure: failed program was:" >&5
10422 cat conftest.
$ac_ext >&5
10424 LIBS
="$ac_save_LIBS"
10425 # First see if replacing the include by lib works.
10426 # Check X11 before X11Rn because it is often a symlink to the current release.
10427 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
10438 /usr
/local
/X11
/lib \
10439 /usr
/local
/X11R
6/lib \
10440 /usr
/local
/X11R
5/lib \
10441 /usr
/local
/X11R
4/lib \
10443 /usr
/local
/lib
/X11 \
10444 /usr
/local
/lib
/X11R6 \
10445 /usr
/local
/lib
/X11R5 \
10446 /usr
/local
/lib
/X11R4 \
10450 /usr
/XFree86
/lib
/X11 \
10454 /usr
/unsupported
/lib \
10456 /usr
/local
/x11r
5/lib \
10457 /usr
/lpp
/Xamples
/lib \
10461 /usr
/openwin
/share
/lib \
10464 for ac_extension
in a so sl
; do
10465 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
10466 ac_x_libraries
=$ac_dir
10473 fi # $ac_x_libraries = NO
10475 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
10476 # Didn't find X anywhere. Cache the known absence of X.
10477 ac_cv_have_x
="have_x=no"
10479 # Record where we found X for the cache.
10480 ac_cv_have_x
="have_x=yes \
10481 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10485 eval "$ac_cv_have_x"
10488 if test "$have_x" != yes; then
10489 echo "$ac_t""$have_x" 1>&6
10492 # If each of the values was on the command line, it overrides each guess.
10493 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10494 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10495 # Update the cache value to reflect the command line values.
10496 ac_cv_have_x
="have_x=yes \
10497 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10498 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10503 # Unlike the sim directory, whether a simulator is linked is controlled by
10504 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10505 # This code just checks for a few cases where we'd like to ignore those
10506 # definitions, even when they're present in the '.mt' file. These cases
10507 # are when --disable-sim is specified, or if the simulator directory is
10508 # not part of the source tree.
10510 # Check whether --enable-sim or --disable-sim was given.
10511 if test "${enable_sim+set}" = set; then
10512 enableval
="$enable_sim"
10513 echo "enable_sim = $enable_sim";
10514 echo "enableval = ${enableval}";
10515 case "${enableval}" in
10516 yes) ignore_sim
=false
;;
10517 no
) ignore_sim
=true
;;
10518 *) ignore_sim
=false
;;
10525 if test ! -d "${srcdir}/../sim"; then
10529 if test "${ignore_sim}" = "true"; then
10531 IGNORE_SIM_OBS
="SIM_OBS="
10535 cat >> confdefs.h
<<\EOF
10554 # target_subdir is used by the testsuite to find the target libraries.
10556 if test "${host}" != "${target}"; then
10557 target_subdir
="${target_alias}/"
10562 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10563 if test ! -f ${host_makefile_frag}; then
10564 # When building a native debuger the .mh file containing things
10565 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10566 # since it no longer contains anything useful.
10567 if test "${target}" = "${host}"; then
10568 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
10570 host_makefile_frag
=/dev
/null
10573 frags
="$frags $host_makefile_frag"
10575 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10576 if test ! -f ${target_makefile_frag}; then
10577 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
10579 frags
="$frags $target_makefile_frag"
10586 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10587 ' ${host_makefile_frag}`
10589 targetfile
=`sed -n '
10590 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10591 ' ${target_makefile_frag}`
10593 if test "${target}" = "${host}"; then
10594 # We pick this up from the host configuration file (.mh) because we
10595 # do not have a native configuration Makefile fragment.
10596 nativefile
=`sed -n '
10597 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10598 ' ${host_makefile_frag}`
10602 if test x
"${gdb_osabi}" != x
; then
10603 cat >> confdefs.h
<<EOF
10604 #define GDB_OSABI_DEFAULT $gdb_osabi
10609 # Enable multi-ice-gdb-server.
10610 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10611 if test "${enable_multi_ice+set}" = set; then
10612 enableval
="$enable_multi_ice"
10616 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10620 if test "x$enable_multi_ice" = xyes
; then
10621 configdirs
="$configdirs multi-ice"
10624 # We only build gdbserver automatically if host and target are the same.
10625 if test "x$target" = "x$host"; then
10626 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10627 echo "configure:10628: checking whether gdbserver is supported on this host" >&5
10628 if test "x$build_gdbserver" = xyes
; then
10629 configdirs
="$configdirs gdbserver"
10630 echo "$ac_t""yes" 1>&6
10632 echo "$ac_t""no" 1>&6
10636 subdirs
="doc testsuite $configdirs"
10639 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10640 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10648 if test "${hostfile}" != ""; then
10650 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10651 files
="${files} ${GDB_XM_FILE}"
10652 links
="${links} xm.h"
10653 cat >> confdefs.h
<<EOF
10654 #define GDB_XM_FILE ${GDB_XM_FILE}
10662 if test "${targetfile}" != ""; then
10664 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10665 files
="${files} ${GDB_TM_FILE}"
10666 links
="${links} tm.h"
10667 cat >> confdefs.h
<<EOF
10668 #define GDB_TM_FILE ${GDB_TM_FILE}
10676 if test "${nativefile}" != ""; then
10678 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10679 files
="${files} ${GDB_NM_FILE}"
10680 links
="${links} nm.h"
10681 cat >> confdefs.h
<<EOF
10682 #define GDB_NM_FILE ${GDB_NM_FILE}
10690 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10691 echo "configure:10692: checking for Cygwin environment" >&5
10692 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10693 echo $ac_n "(cached) $ac_c" 1>&6
10695 cat > conftest.
$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10702 #define __CYGWIN__ __CYGWIN32__
10707 if { (eval echo configure
:10708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10711 echo "configure: failed program was:" >&5
10712 cat conftest.
$ac_ext >&5
10720 echo "$ac_t""$ac_cv_cygwin" 1>&6
10722 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10723 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10724 echo "configure:10725: checking for mingw32 environment" >&5
10725 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10728 cat > conftest.
$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10733 return __MINGW32__;
10736 if { (eval echo configure
:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10740 echo "configure: failed program was:" >&5
10741 cat conftest.
$ac_ext >&5
10749 echo "$ac_t""$ac_cv_mingw32" 1>&6
10751 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10754 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10755 echo "configure:10756: checking for executable suffix" >&5
10756 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10757 echo $ac_n "(cached) $ac_c" 1>&6
10759 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10763 echo 'int main () { return 0; }' > conftest.
$ac_ext
10765 if { (eval echo configure
:10766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10766 for file in conftest.
*; do
10768 *.c |
*.o |
*.obj
) ;;
10769 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10773 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10776 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10781 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10782 echo "$ac_t""${ac_cv_exeext}" 1>&6
10787 cat >> confdefs.h
<<\EOF
10788 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10794 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10795 if test "${with_libiconv_prefix+set}" = set; then
10796 withval
="$with_libiconv_prefix"
10798 for dir
in `echo "$withval" | tr : ' '`; do
10799 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10800 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10806 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10807 echo "configure:10808: checking for iconv" >&5
10808 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10809 echo $ac_n "(cached) $ac_c" 1>&6
10812 am_cv_func_iconv
="no, consider installing GNU libiconv"
10814 cat > conftest.
$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10817 #include <stdlib.h>
10820 iconv_t cd = iconv_open("","");
10821 iconv(cd,NULL,NULL,NULL,NULL);
10825 if { (eval echo configure
:10826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10827 am_cv_func_iconv
=yes
10829 echo "configure: failed program was:" >&5
10830 cat conftest.
$ac_ext >&5
10833 if test "$am_cv_func_iconv" != yes; then
10834 am_save_LIBS
="$LIBS"
10835 LIBS
="$LIBS -liconv"
10836 cat > conftest.
$ac_ext <<EOF
10837 #line 10838 "configure"
10838 #include "confdefs.h"
10839 #include <stdlib.h>
10842 iconv_t cd = iconv_open("","");
10843 iconv(cd,NULL,NULL,NULL,NULL);
10847 if { (eval echo configure
:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10849 am_cv_lib_iconv
=yes
10850 am_cv_func_iconv
=yes
10852 echo "configure: failed program was:" >&5
10853 cat conftest.
$ac_ext >&5
10856 LIBS
="$am_save_LIBS"
10861 echo "$ac_t""$am_cv_func_iconv" 1>&6
10862 if test "$am_cv_func_iconv" = yes; then
10863 cat >> confdefs.h
<<\EOF
10864 #define HAVE_ICONV 1
10867 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10868 echo "configure:10869: checking for iconv declaration" >&5
10869 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10873 cat > conftest.
$ac_ext <<EOF
10874 #line 10875 "configure"
10875 #include "confdefs.h"
10877 #include <stdlib.h>
10883 #if defined(__STDC__) || defined(__cplusplus)
10884 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10893 if { (eval echo configure
:10894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10895 am_cv_proto_iconv_arg1
=""
10897 echo "configure: failed program was:" >&5
10898 cat conftest.
$ac_ext >&5
10900 am_cv_proto_iconv_arg1
="const"
10903 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10906 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10907 echo "$ac_t""${ac_t:-
10908 }$am_cv_proto_iconv" 1>&6
10909 cat >> confdefs.h
<<EOF
10910 #define ICONV_CONST $am_cv_proto_iconv_arg1
10915 if test "$am_cv_lib_iconv" = yes; then
10922 cat > confcache
<<\EOF
10923 # This file is a shell script that caches the results of configure
10924 # tests run on this system so they can be shared between configure
10925 # scripts and configure runs. It is not useful on other systems.
10926 # If it contains results you don't want to keep, you may remove or edit it.
10928 # By default, configure uses ./config.cache as the cache file,
10929 # creating it if it does not exist already. You can give configure
10930 # the --cache-file=FILE option to use a different cache file; that is
10931 # what configure does when it calls configure scripts in
10932 # subdirectories, so they share the cache.
10933 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10934 # config.status only pays attention to the cache file if you give it the
10935 # --recheck option to rerun configure.
10938 # The following way of writing the cache mishandles newlines in values,
10939 # but we know of no workaround that is simple, portable, and efficient.
10940 # So, don't put newlines in cache variables' values.
10941 # Ultrix sh set writes to stderr and can't be redirected directly,
10942 # and sets the high bit in the cache file unless we assign to the vars.
10944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10946 # `set' does not quote correctly, so add quotes (double-quote substitution
10947 # turns \\\\ into \\, and sed turns \\ into \).
10949 -e "s/'/'\\\\''/g" \
10950 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10953 # `set' quotes correctly as required by POSIX, so do not add quotes.
10954 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10957 if cmp -s $cache_file confcache
; then
10960 if test -w $cache_file; then
10961 echo "updating cache $cache_file"
10962 cat confcache
> $cache_file
10964 echo "not updating unwritable cache $cache_file"
10969 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10971 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10972 # Let make expand exec_prefix.
10973 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10975 # Any assignment to VPATH causes Sun make to only execute
10976 # the first set of double-colon rules, so remove it if not needed.
10977 # If there is a colon in the path, we need to keep it.
10978 if test "x$srcdir" = x.
; then
10979 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10982 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10984 DEFS
=-DHAVE_CONFIG_H
10986 # Without the "./", some shells look in PATH for config.status.
10987 : ${CONFIG_STATUS=./config.status}
10989 echo creating
$CONFIG_STATUS
10990 rm -f $CONFIG_STATUS
10991 cat > $CONFIG_STATUS <<EOF
10993 # Generated automatically by configure.
10994 # Run this file to recreate the current configuration.
10995 # This directory was configured as follows,
10996 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10998 # $0 $ac_configure_args
11000 # Compiler output produced by configure, useful for debugging
11001 # configure, is in ./config.log if it exists.
11003 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11006 case "\$ac_option" in
11007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11008 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11009 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11010 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11011 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11013 -help | --help | --hel | --he | --h)
11014 echo "\$ac_cs_usage"; exit 0 ;;
11015 *) echo "\$ac_cs_usage"; exit 1 ;;
11019 ac_given_srcdir=$srcdir
11020 ac_given_INSTALL="$INSTALL"
11022 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11024 cat >> $CONFIG_STATUS <<EOF
11026 # Protect against being on the right side of a sed subst in config.status.
11027 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11028 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11032 s%@CFLAGS@%$CFLAGS%g
11033 s%@CPPFLAGS@%$CPPFLAGS%g
11034 s%@CXXFLAGS@%$CXXFLAGS%g
11035 s%@FFLAGS@%$FFLAGS%g
11037 s%@LDFLAGS@%$LDFLAGS%g
11039 s%@exec_prefix@%$exec_prefix%g
11040 s%@prefix@%$prefix%g
11041 s%@program_transform_name@%$program_transform_name%g
11042 s%@bindir@%$bindir%g
11043 s%@sbindir@%$sbindir%g
11044 s%@libexecdir@%$libexecdir%g
11045 s%@datadir@%$datadir%g
11046 s%@sysconfdir@%$sysconfdir%g
11047 s%@sharedstatedir@%$sharedstatedir%g
11048 s%@localstatedir@%$localstatedir%g
11049 s%@libdir@%$libdir%g
11050 s%@includedir@%$includedir%g
11051 s%@oldincludedir@%$oldincludedir%g
11052 s%@infodir@%$infodir%g
11053 s%@mandir@%$mandir%g
11054 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
11055 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
11060 s%@host_alias@%$host_alias%g
11061 s%@host_cpu@%$host_cpu%g
11062 s%@host_vendor@%$host_vendor%g
11063 s%@host_os@%$host_os%g
11064 s%@target@%$target%g
11065 s%@target_alias@%$target_alias%g
11066 s%@target_cpu@%$target_cpu%g
11067 s%@target_vendor@%$target_vendor%g
11068 s%@target_os@%$target_os%g
11070 s%@build_alias@%$build_alias%g
11071 s%@build_cpu@%$build_cpu%g
11072 s%@build_vendor@%$build_vendor%g
11073 s%@build_os@%$build_os%g
11074 s%@RANLIB@%$RANLIB%g
11075 s%@SET_MAKE@%$SET_MAKE%g
11076 s%@ALLOCA@%$ALLOCA%g
11077 s%@USE_NLS@%$USE_NLS%g
11078 s%@MSGFMT@%$MSGFMT%g
11079 s%@GMSGFMT@%$GMSGFMT%g
11080 s%@XGETTEXT@%$XGETTEXT%g
11081 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
11082 s%@CATALOGS@%$CATALOGS%g
11083 s%@CATOBJEXT@%$CATOBJEXT%g
11084 s%@DATADIRNAME@%$DATADIRNAME%g
11085 s%@GMOFILES@%$GMOFILES%g
11086 s%@INSTOBJEXT@%$INSTOBJEXT%g
11087 s%@INTLDEPS@%$INTLDEPS%g
11088 s%@INTLLIBS@%$INTLLIBS%g
11089 s%@INTLOBJS@%$INTLOBJS%g
11090 s%@POFILES@%$POFILES%g
11092 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11094 s%@GT_YES@%$GT_YES%g
11095 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11097 s%@subdirs@%$subdirs%g
11099 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11100 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11101 s%@INSTALL_DATA@%$INSTALL_DATA%g
11105 s%@DLLTOOL@%$DLLTOOL%g
11106 s%@WINDRES@%$WINDRES%g
11108 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11109 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11110 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11111 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11112 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11113 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11114 s%@WIN32LIBS@%$WIN32LIBS%g
11115 s%@LIBGUI@%$LIBGUI%g
11116 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11117 s%@WIN32LDAPP@%$WIN32LDAPP%g
11118 s%@TCL_VERSION@%$TCL_VERSION%g
11119 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11120 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11121 s%@TCL_CC@%$TCL_CC%g
11122 s%@TCL_DEFS@%$TCL_DEFS%g
11123 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11124 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11125 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11126 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11127 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11128 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11129 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11130 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11131 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11132 s%@TCL_RANLIB@%$TCL_RANLIB%g
11133 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11134 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11135 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11136 s%@TK_VERSION@%$TK_VERSION%g
11137 s%@TK_DEFS@%$TK_DEFS%g
11138 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11139 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11140 s%@TK_XLIBSW@%$TK_XLIBSW%g
11141 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11142 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11143 s%@TCLHDIR@%$TCLHDIR%g
11144 s%@TKHDIR@%$TKHDIR%g
11145 s%@ITCLHDIR@%$ITCLHDIR%g
11146 s%@ITKHDIR@%$ITKHDIR%g
11147 s%@ITCL_VERSION@%$ITCL_VERSION%g
11148 s%@ITCL_DEFS@%$ITCL_DEFS%g
11149 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11150 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11151 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11152 s%@ITK_VERSION@%$ITK_VERSION%g
11153 s%@ITK_DEFS@%$ITK_DEFS%g
11154 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11155 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11156 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11157 s%@X_CFLAGS@%$X_CFLAGS%g
11158 s%@X_LDFLAGS@%$X_LDFLAGS%g
11159 s%@X_LIBS@%$X_LIBS%g
11160 s%@TCL_DEPS@%$TCL_DEPS%g
11161 s%@TK_DEPS@%$TK_DEPS%g
11162 s%@ITCLLIB@%$ITCLLIB%g
11163 s%@ITCL_DEPS@%$ITCL_DEPS%g
11164 s%@ITKLIB@%$ITKLIB%g
11165 s%@ITK_DEPS@%$ITK_DEPS%g
11166 s%@GDBTKLIBS@%$GDBTKLIBS%g
11167 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11168 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11169 s%@IGNORE_SIM@%$IGNORE_SIM%g
11170 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11171 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11172 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11173 s%@CONFIG_OBS@%$CONFIG_OBS%g
11174 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11175 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11176 s%@CONFIG_ALL@%$CONFIG_ALL%g
11177 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11178 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11179 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11180 s%@target_subdir@%$target_subdir%g
11181 /@host_makefile_frag@/r $host_makefile_frag
11182 s%@host_makefile_frag@%%g
11183 /@target_makefile_frag@/r $target_makefile_frag
11184 s%@target_makefile_frag@%%g
11189 s%@EXEEXT@%$EXEEXT%g
11190 s%@LIBICONV@%$LIBICONV%g
11195 cat >> $CONFIG_STATUS <<\EOF
11197 # Split the substitutions into bite-sized pieces for seds with
11198 # small command number limits, like on Digital OSF/1 and HP-UX.
11199 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11200 ac_file
=1 # Number of current file.
11201 ac_beg
=1 # First line for current file.
11202 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11205 while $ac_more_lines; do
11206 if test $ac_beg -gt 1; then
11207 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11209 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11211 if test ! -s conftest.s
$ac_file; then
11212 ac_more_lines
=false
11213 rm -f conftest.s
$ac_file
11215 if test -z "$ac_sed_cmds"; then
11216 ac_sed_cmds
="sed -f conftest.s$ac_file"
11218 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11220 ac_file
=`expr $ac_file + 1`
11222 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11225 if test -z "$ac_sed_cmds"; then
11230 cat >> $CONFIG_STATUS <<EOF
11232 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11234 cat >> $CONFIG_STATUS <<\EOF
11235 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11238 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11239 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11240 *) ac_file_in
="${ac_file}.in" ;;
11243 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11245 # Remove last slash and all that follows it. Not all systems have dirname.
11246 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11247 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11248 # The file is in a subdirectory.
11249 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11250 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11251 # A "../" for each directory in $ac_dir_suffix.
11252 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11254 ac_dir_suffix
= ac_dots
=
11257 case "$ac_given_srcdir" in
11259 if test -z "$ac_dots"; then top_srcdir
=.
11260 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11261 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11262 *) # Relative path.
11263 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11264 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11267 case "$ac_given_INSTALL" in
11268 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11269 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11272 echo creating
"$ac_file"
11274 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11276 *Makefile
*) ac_comsub
="1i\\
11277 # $configure_input" ;;
11281 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11283 s%@configure_input@%$configure_input%g
11284 s%@srcdir@%$srcdir%g
11285 s%@top_srcdir@%$top_srcdir%g
11286 s%@INSTALL@%$INSTALL%g
11287 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11291 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11292 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11294 # ac_d sets the value in "#define NAME VALUE" lines.
11295 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11296 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11299 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11300 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11301 ac_uB
='\([ ]\)%\1#\2define\3'
11304 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11305 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11306 ac_eB
='$%\1#\2define\3'
11310 if test "${CONFIG_HEADERS+set}" != set; then
11312 cat >> $CONFIG_STATUS <<EOF
11313 CONFIG_HEADERS="config.h:config.in"
11315 cat >> $CONFIG_STATUS <<\EOF
11317 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11320 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11321 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11322 *) ac_file_in
="${ac_file}.in" ;;
11325 echo creating
$ac_file
11327 rm -f conftest.frag conftest.
in conftest.out
11328 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11329 cat $ac_file_inputs > conftest.
in
11333 # Transform confdefs.h into a sed script conftest.vals that substitutes
11334 # the proper values into config.h.in to produce config.h. And first:
11335 # Protect against being on the right side of a sed subst in config.status.
11336 # Protect against being in an unquoted here document in config.status.
11337 rm -f conftest.vals
11338 cat > conftest.hdr
<<\EOF
11341 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11345 sed -n -f conftest.hdr confdefs.h > conftest.vals
11348 # This sed command replaces #undef with comments. This is necessary, for
11349 # example, in the case of _POSIX_SOURCE, which is predefined and required
11350 # on some systems where configure will not decide to define it.
11351 cat >> conftest.vals <<\EOF
11352 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11355 # Break up conftest.vals because some shells have a limit on
11356 # the size of here documents, and old seds have small limits too.
11358 rm -f conftest.tail
11361 ac_lines=`grep -c . conftest.vals
`
11362 # grep -c gives empty output for an empty file on some AIX systems.
11363 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11364 # Write a limited-size here document to conftest.frag.
11365 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11366 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11368 sed -f conftest.frag conftest.in > conftest.out
11370 mv conftest.out conftest.in
11371 ' >> $CONFIG_STATUS
11372 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11373 rm -f conftest.vals
11374 mv conftest.tail conftest.vals
11376 rm -f conftest.vals
11378 cat >> $CONFIG_STATUS <<\EOF
11379 rm -f conftest.frag conftest.h
11380 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11381 cat conftest.in >> conftest.h
11383 if cmp -s $ac_file conftest.h 2>/dev/null; then
11384 echo "$ac_file is unchanged"
11387 # Remove last slash and all that follows it. Not all systems have dirname.
11388 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11389 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11390 # The file is in a subdirectory.
11391 test ! -d "$ac_dir" && mkdir "$ac_dir"
11394 mv conftest.h $ac_file
11400 cat >> $CONFIG_STATUS <<EOF
11401 ac_sources="$files"
11405 cat >> $CONFIG_STATUS <<\EOF
11406 srcdir=$ac_given_srcdir
11407 while test -n "$ac_sources"; do
11408 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11409 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11411 echo "linking $srcdir/$ac_source to $ac_dest"
11413 if test ! -r $srcdir/$ac_source; then
11414 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11418 # Make relative symlinks.
11419 # Remove last slash and all that follows it. Not all systems have dirname.
11420 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
11421 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11422 # The dest file is in a subdirectory.
11423 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11424 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
11425 # A "../" for each directory in $ac_dest_dir_suffix.
11426 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
11428 ac_dest_dir_suffix= ac_dots=
11432 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11433 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11436 # Make a symlink if possible; otherwise try a hard link.
11437 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11438 ln $srcdir/$ac_source $ac_dest; then :
11440 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11444 cat >> $CONFIG_STATUS <<EOF
11446 gdb_host_cpu=$gdb_host_cpu
11447 gdb_target_cpu=$gdb_target_cpu
11448 nativefile=$nativefile
11451 cat >> $CONFIG_STATUS <<\EOF
11453 if test "${nativefile}" = ""; then
11455 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11456 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11457 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11459 mv -f Makefile.tem Makefile
11462 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11463 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11464 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11465 mv -f Makefile.tmp Makefile
11468 case x$CONFIG_HEADERS in
11469 xconfig.h:config.in)
11475 chmod +x $CONFIG_STATUS
11476 rm -fr confdefs* $ac_clean_files
11477 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11479 if test "$no_recursion" != yes; then
11481 # Remove --cache-file and --srcdir arguments so they do not pile up.
11482 ac_sub_configure_args=
11484 for ac_arg in $ac_configure_args; do
11485 if test -n "$ac_prev"; then
11490 -cache-file | --cache-file | --cache-fil | --cache-fi \
11491 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11492 ac_prev=cache_file ;;
11493 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11494 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11500 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11504 for ac_config_dir in doc testsuite $configdirs; do
11506 # Do not complain, so a configure script can configure whichever
11507 # parts of a large source tree are present.
11508 if test ! -d $srcdir/$ac_config_dir; then
11512 echo configuring in $ac_config_dir
11517 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11519 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11527 # A "../" for each directory in /$ac_config_dir.
11528 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11531 .) # No --srcdir option. We are building in place.
11532 ac_sub_srcdir=$srcdir ;;
11533 /*) # Absolute path.
11534 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11535 *) # Relative path.
11536 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11539 # Check for guested configure; otherwise get Cygnus style configure.
11540 if test -f $ac_sub_srcdir/configure; then
11541 ac_sub_configure=$ac_sub_srcdir/configure
11542 elif test -f $ac_sub_srcdir/configure.in; then
11543 ac_sub_configure=$ac_configure
11545 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11549 # The recursion is here.
11550 if test -n "$ac_sub_configure"; then
11552 # Make the cache file name correct relative to the subdirectory.
11553 case "$cache_file" in
11554 /*) ac_sub_cache_file=$cache_file ;;
11555 *) # Relative path.
11556 ac_sub_cache_file="$ac_dots$cache_file" ;;
11558 case "$ac_given_INSTALL" in
11559 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11560 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11563 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11564 # The eval makes quoting arguments work.
11565 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11568 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }