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
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host |
--host |
--hos |
--ho)
244 -host=* |
--host=* |
--hos=* |
--ho=*)
247 -includedir |
--includedir |
--includedi |
--included |
--include \
248 |
--includ |
--inclu |
--incl |
--inc)
249 ac_prev
=includedir
;;
250 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
251 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
252 includedir
="$ac_optarg" ;;
254 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
256 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
257 infodir
="$ac_optarg" ;;
259 -libdir |
--libdir |
--libdi |
--libd)
261 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
262 libdir
="$ac_optarg" ;;
264 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
265 |
--libexe |
--libex |
--libe)
266 ac_prev
=libexecdir
;;
267 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
268 |
--libexe=* |
--libex=* |
--libe=*)
269 libexecdir
="$ac_optarg" ;;
271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
272 |
--localstate |
--localstat |
--localsta |
--localst \
273 |
--locals |
--local |
--loca |
--loc |
--lo)
274 ac_prev
=localstatedir
;;
275 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
276 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
277 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
278 localstatedir
="$ac_optarg" ;;
280 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
282 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
283 mandir
="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
293 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
294 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
297 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
298 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
299 |
--oldin |
--oldi |
--old |
--ol |
--o)
300 ac_prev
=oldincludedir
;;
301 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
302 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
303 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
304 oldincludedir
="$ac_optarg" ;;
306 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
308 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
309 prefix
="$ac_optarg" ;;
311 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
312 |
--program-pre |
--program-pr |
--program-p)
313 ac_prev
=program_prefix
;;
314 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
315 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
316 program_prefix
="$ac_optarg" ;;
318 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
319 |
--program-suf |
--program-su |
--program-s)
320 ac_prev
=program_suffix
;;
321 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
322 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
323 program_suffix
="$ac_optarg" ;;
325 -program-transform-name |
--program-transform-name \
326 |
--program-transform-nam |
--program-transform-na \
327 |
--program-transform-n |
--program-transform- \
328 |
--program-transform |
--program-transfor \
329 |
--program-transfo |
--program-transf \
330 |
--program-trans |
--program-tran \
331 |
--progr-tra |
--program-tr |
--program-t)
332 ac_prev
=program_transform_name
;;
333 -program-transform-name=* |
--program-transform-name=* \
334 |
--program-transform-nam=* |
--program-transform-na=* \
335 |
--program-transform-n=* |
--program-transform-=* \
336 |
--program-transform=* |
--program-transfor=* \
337 |
--program-transfo=* |
--program-transf=* \
338 |
--program-trans=* |
--program-tran=* \
339 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
340 program_transform_name
="$ac_optarg" ;;
342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
343 |
-silent |
--silent |
--silen |
--sile |
--sil)
346 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
348 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
350 sbindir
="$ac_optarg" ;;
352 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
353 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
354 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
356 ac_prev
=sharedstatedir
;;
357 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
358 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
359 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
361 sharedstatedir
="$ac_optarg" ;;
363 -site |
--site |
--sit)
365 -site=* |
--site=* |
--sit=*)
368 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
370 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
371 sitefile
="$ac_optarg" ;;
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE
="$sitefile"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval
="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE
=$enableval
594 USE_MAINTAINER_MODE
=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE
=
602 MAINTAINER_MODE_FALSE
='#'
604 MAINTAINER_MODE_TRUE
='#'
605 MAINTAINER_MODE_FALSE
=
607 MAINT
=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc
; ac_word
=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc
; ac_word
=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC
="$CC" # Let the user override the test.
651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy
$ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy
"$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
704 for ac_dir
in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp
='$CPP $CPPFLAGS'
732 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling
=$ac_cv_prog_cc_cross
736 cat > conftest.
$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure
:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
744 ac_cv_prog_cc_works
=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (.
/conftest
; exit) 2>/dev
/null
; then
747 ac_cv_prog_cc_cross
=no
749 ac_cv_prog_cc_cross
=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.
$ac_ext >&5
754 ac_cv_prog_cc_works
=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp
='$CPP $CPPFLAGS'
760 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling
=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no
; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling
=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c
<<EOF
783 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS
="${CFLAGS+set}"
799 ac_save_CFLAGS
="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS
="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 cat >> confdefs.h
<<\EOF
834 #define _GNU_SOURCE 1
838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
839 echo "configure:840: checking how to run the C preprocessor" >&5
840 # On Suns, sometimes $CPP names a directory.
841 if test -n "$CPP" && test -d "$CPP"; then
844 if test -z "$CPP"; then
845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 # This must be in double quotes, not single quotes, because CPP may get
849 # substituted into the Makefile and "${CC-cc}" will confuse make.
851 # On the NeXT, cc -E runs the code through the compiler's parser,
852 # not just through cpp.
853 cat > conftest.
$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure
:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
866 echo "configure: failed program was:" >&5
867 cat conftest.
$ac_ext >&5
869 CPP
="${CC-cc} -E -traditional-cpp"
870 cat > conftest.
$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure
:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
883 echo "configure: failed program was:" >&5
884 cat conftest.
$ac_ext >&5
886 CPP
="${CC-cc} -nologo -E"
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure
:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
910 ac_cv_prog_CPP
="$CPP"
912 CPP
="$ac_cv_prog_CPP"
914 ac_cv_prog_CPP
="$CPP"
916 echo "$ac_t""$CPP" 1>&6
918 echo $ac_n "checking for AIX""... $ac_c" 1>&6
919 echo "configure:920: checking for AIX" >&5
920 cat > conftest.
$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
929 egrep "yes" >/dev
/null
2>&1; then
931 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
932 #define _ALL_SOURCE 1
937 echo "$ac_t""no" 1>&6
942 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943 echo "configure:944: checking for POSIXized ISC" >&5
944 if test -d /etc
/conf
/kconfig.d
&&
945 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
947 echo "$ac_t""yes" 1>&6
948 ISC
=yes # If later tests want to check for ISC.
949 cat >> confdefs.h
<<\EOF
950 #define _POSIX_SOURCE 1
953 if test "$GCC" = yes; then
959 echo "$ac_t""no" 1>&6
966 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
967 echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
968 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 am_cv_prog_cc_stdc
=no
973 # Don't try gcc -ansi; that turns off useful extensions and
974 # breaks some systems' header files.
976 # Ultrix and OSF/1 -std1
977 # HP-UX 10.20 and later -Ae
978 # HP-UX older versions -Aa -D_HPUX_SOURCE
979 # SVR4 -Xc -D__EXTENSIONS__
980 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
982 CC
="$ac_save_CC $ac_arg"
983 cat > conftest.
$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
988 #include <sys/types.h>
989 #include <sys/stat.h>
990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
991 struct buf { int x; };
992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
993 static char *e (p, i)
999 static char *f (char * (*g) (char **, int), char **p, ...)
1004 s = g (p, va_arg (v,int));
1008 int test (int i, double x);
1009 struct s1 {int (*f) (int a);};
1010 struct s2 {int (*f) (double a);};
1011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1021 if { (eval echo configure
:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 am_cv_prog_cc_stdc
="$ac_arg"; break
1025 echo "configure: failed program was:" >&5
1026 cat conftest.
$ac_ext >&5
1034 if test -z "$am_cv_prog_cc_stdc"; then
1035 echo "$ac_t""none needed" 1>&6
1037 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1039 case "x$am_cv_prog_cc_stdc" in
1041 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1046 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1047 if test -f $ac_dir/install-sh
; then
1049 ac_install_sh
="$ac_aux_dir/install-sh -c"
1051 elif test -f $ac_dir/install.sh
; then
1053 ac_install_sh
="$ac_aux_dir/install.sh -c"
1057 if test -z "$ac_aux_dir"; then
1058 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1060 ac_config_guess
=$ac_aux_dir/config.guess
1061 ac_config_sub
=$ac_aux_dir/config.sub
1062 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1065 # Do some error checking and defaulting for the host and target type.
1067 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1070 # 1. You are not allowed to specify --host, --target, and nonopt at the
1072 # 2. Host defaults to nonopt.
1073 # 3. If nonopt is not specified, then host defaults to the current host,
1074 # as determined by config.guess.
1075 # 4. Target and build default to nonopt.
1076 # 5. If nonopt is not specified, then target and build default to host.
1078 # The aliases save the names the user supplied, while $host etc.
1079 # will get canonicalized.
1080 case $host---$target---$nonopt in
1081 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1082 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1086 # Make sure we can run config.sub.
1087 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1088 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1091 echo $ac_n "checking host system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking host system type" >&5
1095 case "$host_alias" in
1099 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1100 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1102 *) host_alias
=$nonopt ;;
1106 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1107 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$host" 1>&6
1112 echo $ac_n "checking target system type""... $ac_c" 1>&6
1113 echo "configure:1114: checking target system type" >&5
1115 target_alias
=$target
1116 case "$target_alias" in
1119 NONE
) target_alias
=$host_alias ;;
1120 *) target_alias
=$nonopt ;;
1124 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1125 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128 echo "$ac_t""$target" 1>&6
1130 echo $ac_n "checking build system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking build system type" >&5
1134 case "$build_alias" in
1137 NONE
) build_alias
=$host_alias ;;
1138 *) build_alias
=$nonopt ;;
1142 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1143 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1144 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1145 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 echo "$ac_t""$build" 1>&6
1148 test "$host_alias" != "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1151 program_prefix
=${target_alias}-
1154 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1155 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1156 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1157 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1158 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1160 if test $host != $build; then
1161 ac_tool_prefix
=${host_alias}-
1166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1178 for ac_dir
in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir
=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1188 RANLIB
="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1196 if test -z "$ac_cv_prog_RANLIB"; then
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib
; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB
="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1221 RANLIB
="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1235 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
1237 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftestmake
<<\EOF
1243 @
echo 'ac_maketemp="${MAKE}"'
1245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1246 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1247 if test -n "$ac_maketemp"; then
1248 eval ac_cv_prog_make_
${ac_make}_set
=yes
1250 eval ac_cv_prog_make_
${ac_make}_set
=no
1254 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1258 echo "$ac_t""no" 1>&6
1259 SET_MAKE
="MAKE=${MAKE-make}"
1262 # Extract the first word of "ranlib", so it can be a program name with args.
1263 set dummy ranlib
; ac_word
=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1274 for ac_dir
in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir
=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_RANLIB
="ranlib"
1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1285 RANLIB
="$ac_cv_prog_RANLIB"
1286 if test -n "$RANLIB"; then
1287 echo "$ac_t""$RANLIB" 1>&6
1289 echo "$ac_t""no" 1>&6
1292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1293 echo "configure:1294: checking for ANSI C header files" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1310 ac_cv_header_stdc
=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1316 ac_cv_header_stdc
=no
1320 if test $ac_cv_header_stdc = yes; then
1321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "memchr" >/dev
/null
2>&1; then
1332 ac_cv_header_stdc
=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "free" >/dev
/null
2>&1; then
1350 ac_cv_header_stdc
=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1358 if test "$cross_compiling" = yes; then
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1368 int main () { int i; for (i = 0; i < 256; i++)
1369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1373 if { (eval echo configure
:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 ac_cv_header_stdc
=no
1388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1389 if test $ac_cv_header_stdc = yes; then
1390 cat >> confdefs.h
<<\EOF
1391 #define STDC_HEADERS 1
1396 echo $ac_n "checking for working const""... $ac_c" 1>&6
1397 echo "configure:1398: checking for working const" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 /* Ultrix mips cc rejects this. */
1408 typedef int charset[2]; const charset x;
1409 /* SunOS 4.1.1 cc rejects this. */
1410 char const *const *ccp;
1412 /* NEC SVR4.0.2 mips cc rejects this. */
1413 struct point {int x, y;};
1414 static struct point const zero = {0,0};
1415 /* AIX XL C 1.02.0.0 rejects this.
1416 It does not let you subtract one const X* pointer from another in an arm
1417 of an if-expression whose if-part is not a constant expression */
1418 const char *g = "string";
1419 ccp = &g + (g ? g-g : 0);
1420 /* HPUX 7.0 cc rejects these. */
1423 ccp = (char const *const *) p;
1424 { /* SCO 3.2v4 cc rejects this. */
1426 char const *s = 0 ? (char *) 0 : (char const *) 0;
1430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1432 const int *foo = &x[0];
1435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1436 typedef const int *iptr;
1440 { /* AIX XL C 1.02.0.0 rejects this saying
1441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1442 struct s { int j; const int *ap[3]; };
1443 struct s *b; b->j = 5;
1445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1451 if { (eval echo configure
:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c_const" 1>&6
1464 if test $ac_cv_c_const = no
; then
1465 cat >> confdefs.h
<<\EOF
1471 echo $ac_n "checking for inline""... $ac_c" 1>&6
1472 echo "configure:1473: checking for inline" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1477 for ac_kw
in inline __inline__ __inline
; do
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1486 if { (eval echo configure
:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 ac_cv_c_inline
=$ac_kw; break
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1498 echo "$ac_t""$ac_cv_c_inline" 1>&6
1499 case "$ac_cv_c_inline" in
1501 no
) cat >> confdefs.h
<<\EOF
1505 *) cat >> confdefs.h
<<EOF
1506 #define inline $ac_cv_c_inline
1511 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1512 echo "configure:1513: checking for off_t" >&5
1513 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.
$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1528 ac_cv_type_off_t
=yes
1536 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1537 if test $ac_cv_type_off_t = no
; then
1538 cat >> confdefs.h
<<\EOF
1544 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1545 echo "configure:1546: checking for size_t" >&5
1546 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.
$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <sys/types.h>
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1561 ac_cv_type_size_t
=yes
1564 ac_cv_type_size_t
=no
1569 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1570 if test $ac_cv_type_size_t = no
; then
1571 cat >> confdefs.h
<<\EOF
1572 #define size_t unsigned
1577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1578 # for constant arguments. Useless!
1579 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1580 echo "configure:1581: checking for working alloca.h" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 char *p = alloca(2 * sizeof(int));
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1594 ac_cv_header_alloca_h
=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1599 ac_cv_header_alloca_h
=no
1604 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1605 if test $ac_cv_header_alloca_h = yes; then
1606 cat >> confdefs.h
<<\EOF
1607 #define HAVE_ALLOCA_H 1
1612 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1613 echo "configure:1614: checking for alloca" >&5
1614 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 # define alloca __builtin_alloca
1625 # include <malloc.h>
1626 # define alloca _alloca
1629 # include <alloca.h>
1634 # ifndef alloca /* predefined by HP cc +Olibcalls */
1643 char *p = (char *) alloca(1);
1646 if { (eval echo configure
:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1648 ac_cv_func_alloca_works
=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 ac_cv_func_alloca_works
=no
1658 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1659 if test $ac_cv_func_alloca_works = yes; then
1660 cat >> confdefs.h
<<\EOF
1661 #define HAVE_ALLOCA 1
1666 if test $ac_cv_func_alloca_works = no
; then
1667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1668 # that cause trouble. Some versions do not even contain alloca or
1669 # contain a buggy version. If you still want to use their alloca,
1670 # use ar to extract alloca.o from them instead of compiling alloca.c.
1671 ALLOCA
=alloca.
${ac_objext}
1672 cat >> confdefs.h
<<\EOF
1677 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether alloca needs Cray hooks" >&5
1679 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.
$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #if defined(CRAY) && ! defined(CRAY2)
1692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1693 egrep "webecray" >/dev
/null
2>&1; then
1704 echo "$ac_t""$ac_cv_os_cray" 1>&6
1705 if test $ac_cv_os_cray = yes; then
1706 for ac_func
in _getb67 GETB67 getb67
; do
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1736 if { (eval echo configure
:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1738 eval "ac_cv_func_$ac_func=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 eval "ac_cv_func_$ac_func=no"
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h
<<EOF
1751 #define CRAY_STACKSEG_END $ac_func
1756 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1763 echo "configure:1764: checking stack direction for C alloca" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 if test "$cross_compiling" = yes; then
1768 ac_cv_c_stack_direction
=0
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 find_stack_direction ()
1775 static char *addr = 0;
1780 return find_stack_direction ();
1783 return (&dummy > addr) ? 1 : -1;
1787 exit (find_stack_direction() < 0);
1790 if { (eval echo configure
:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1792 ac_cv_c_stack_direction
=1
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 ac_cv_c_stack_direction
=-1
1804 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1805 cat >> confdefs.h
<<EOF
1806 #define STACK_DIRECTION $ac_cv_c_stack_direction
1811 for ac_hdr
in unistd.h
1813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure
:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1829 eval "ac_cv_header_$ac_safe=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1835 eval "ac_cv_header_$ac_safe=no"
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h
<<EOF
1843 #define $ac_tr_hdr 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_func
in getpagesize
1853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_func" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $ac_func(); below. */
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1882 if { (eval echo configure
:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1884 eval "ac_cv_func_$ac_func=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.
$ac_ext >&5
1889 eval "ac_cv_func_$ac_func=no"
1894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1897 cat >> confdefs.h
<<EOF
1898 #define $ac_tr_func 1
1902 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1907 echo "configure:1908: checking for working mmap" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test "$cross_compiling" = yes; then
1912 ac_cv_func_mmap_fixed_mapped
=no
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1918 /* Thanks to Mike Haertel and Jim Avera for this test.
1919 Here is a matrix of mmap possibilities:
1920 mmap private not fixed
1921 mmap private fixed at somewhere currently unmapped
1922 mmap private fixed at somewhere already mapped
1923 mmap shared not fixed
1924 mmap shared fixed at somewhere currently unmapped
1925 mmap shared fixed at somewhere already mapped
1926 For private mappings, we should verify that changes cannot be read()
1927 back from the file, nor mmap's back from the file at a different
1928 address. (There have been systems where private was not correctly
1929 implemented like the infamous i386 svr4.0, and systems where the
1930 VM page cache was not coherent with the filesystem buffer cache
1931 like early versions of FreeBSD and possibly contemporary NetBSD.)
1932 For shared mappings, we should conversely verify that changes get
1933 propogated back to all the places they're supposed to be.
1935 Grep wants private fixed already mapped.
1936 The main things grep needs to know about mmap are:
1937 * does it exist and is it safe to write into the mmap'd area
1938 * how to use it (BSD variants) */
1939 #include <sys/types.h>
1941 #include <sys/mman.h>
1943 /* This mess was copied from the GNU getpagesize.h. */
1944 #ifndef HAVE_GETPAGESIZE
1945 # ifdef HAVE_UNISTD_H
1946 # include <unistd.h>
1949 /* Assume that all systems that can run configure have sys/param.h. */
1950 # ifndef HAVE_SYS_PARAM_H
1951 # define HAVE_SYS_PARAM_H 1
1954 # ifdef _SC_PAGESIZE
1955 # define getpagesize() sysconf(_SC_PAGESIZE)
1956 # else /* no _SC_PAGESIZE */
1957 # ifdef HAVE_SYS_PARAM_H
1958 # include <sys/param.h>
1959 # ifdef EXEC_PAGESIZE
1960 # define getpagesize() EXEC_PAGESIZE
1961 # else /* no EXEC_PAGESIZE */
1963 # define getpagesize() NBPG * CLSIZE
1966 # endif /* no CLSIZE */
1967 # else /* no NBPG */
1969 # define getpagesize() NBPC
1970 # else /* no NBPC */
1972 # define getpagesize() PAGESIZE
1973 # endif /* PAGESIZE */
1974 # endif /* no NBPC */
1975 # endif /* no NBPG */
1976 # endif /* no EXEC_PAGESIZE */
1977 # else /* no HAVE_SYS_PARAM_H */
1978 # define getpagesize() 8192 /* punt totally */
1979 # endif /* no HAVE_SYS_PARAM_H */
1980 # endif /* no _SC_PAGESIZE */
1982 #endif /* no HAVE_GETPAGESIZE */
1985 extern "C" { void *malloc(unsigned); }
1993 char *data, *data2, *data3;
1997 pagesize = getpagesize();
2000 * First, make a file with some known garbage in it.
2002 data = malloc(pagesize);
2005 for (i = 0; i < pagesize; ++i)
2006 *(data + i) = rand();
2008 fd = creat("conftestmmap", 0600);
2011 if (write(fd, data, pagesize) != pagesize)
2016 * Next, try to mmap the file at a fixed address which
2017 * already has something else allocated at it. If we can,
2018 * also make sure that we see the same garbage.
2020 fd = open("conftestmmap", O_RDWR);
2023 data2 = malloc(2 * pagesize);
2026 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2027 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2030 for (i = 0; i < pagesize; ++i)
2031 if (*(data + i) != *(data2 + i))
2035 * Finally, make sure that changes to the mapped area
2036 * do not percolate back to the file as seen by read().
2037 * (This is a bug on some variants of i386 svr4.0.)
2039 for (i = 0; i < pagesize; ++i)
2040 *(data2 + i) = *(data2 + i) + 1;
2041 data3 = malloc(pagesize);
2044 if (read(fd, data3, pagesize) != pagesize)
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data3 + i))
2050 unlink("conftestmmap");
2055 if { (eval echo configure
:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2057 ac_cv_func_mmap_fixed_mapped
=yes
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 ac_cv_func_mmap_fixed_mapped
=no
2069 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2070 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2071 cat >> confdefs.h
<<\EOF
2078 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2079 unistd.h values.h sys
/param.h
2081 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure
:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h
<<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2120 __argz_count __argz_stringify __argz_next
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2151 if { (eval echo configure
:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2153 eval "ac_cv_func_$ac_func=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 eval "ac_cv_func_$ac_func=no"
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h
<<EOF
2167 #define $ac_tr_func 1
2171 echo "$ac_t""no" 1>&6
2176 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2177 for ac_func
in stpcpy
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h
<<EOF
2224 #define $ac_tr_func 1
2228 echo "$ac_t""no" 1>&6
2233 if test "${ac_cv_func_stpcpy}" = "yes"; then
2234 cat >> confdefs.h
<<\EOF
2235 #define HAVE_STPCPY 1
2240 if test $ac_cv_header_locale_h = yes; then
2241 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2242 echo "configure:2243: checking for LC_MESSAGES" >&5
2243 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure
:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2256 am_cv_val_LC_MESSAGES
=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2261 am_cv_val_LC_MESSAGES
=no
2266 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2267 if test $am_cv_val_LC_MESSAGES = yes; then
2268 cat >> confdefs.h
<<\EOF
2269 #define HAVE_LC_MESSAGES 1
2274 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether NLS is requested" >&5
2276 # Check whether --enable-nls or --disable-nls was given.
2277 if test "${enable_nls+set}" = set; then
2278 enableval
="$enable_nls"
2284 echo "$ac_t""$USE_NLS" 1>&6
2287 USE_INCLUDED_LIBINTL
=no
2289 if test "$USE_NLS" = "yes"; then
2290 cat >> confdefs.h
<<\EOF
2291 #define ENABLE_NLS 1
2294 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether included gettext is requested" >&5
2296 # Check whether --with-included-gettext or --without-included-gettext was given.
2297 if test "${with_included_gettext+set}" = set; then
2298 withval
="$with_included_gettext"
2299 nls_cv_force_use_gnu_gettext
=$withval
2301 nls_cv_force_use_gnu_gettext
=no
2304 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2306 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2307 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2309 nls_cv_header_libgt
=
2312 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for libintl.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <libintl.h>
2323 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure
:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for gettext in libc" >&5
2342 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <libintl.h>
2350 return (int) gettext ("")
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2355 gt_cv_func_gettext_libc
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 gt_cv_func_gettext_libc
=no
2365 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2367 if test "$gt_cv_func_gettext_libc" != "yes"; then
2368 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for bindtextdomain in -lintl" >&5
2370 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS
="$LIBS"
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char bindtextdomain();
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS
="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2404 echo "configure:2405: checking for gettext in libintl" >&5
2405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 return (int) gettext ("")
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 gt_cv_func_gettext_libintl
=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 gt_cv_func_gettext_libintl
=no
2428 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2430 echo "$ac_t""no" 1>&6
2435 if test "$gt_cv_func_gettext_libc" = "yes" \
2436 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2437 cat >> confdefs.h
<<\EOF
2438 #define HAVE_GETTEXT 1
2441 # Extract the first word of "msgfmt", so it can be a program name with args.
2442 set dummy msgfmt
; ac_word
=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2454 for ac_dir
in $PATH; do
2455 test -z "$ac_dir" && ac_dir
=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2458 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2468 MSGFMT
="$ac_cv_path_MSGFMT"
2469 if test -n "$MSGFMT"; then
2470 echo "$ac_t""$MSGFMT" 1>&6
2472 echo "$ac_t""no" 1>&6
2474 if test "$MSGFMT" != "no"; then
2475 for ac_func
in dcgettext
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char $ac_func(); below. */
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2508 eval "ac_cv_func_$ac_func=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 eval "ac_cv_func_$ac_func=no"
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521 cat >> confdefs.h
<<EOF
2522 #define $ac_tr_func 1
2526 echo "$ac_t""no" 1>&6
2530 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2531 set dummy gmsgfmt
; ac_word
=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2542 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2547 for ac_dir
in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir
=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2559 GMSGFMT
="$ac_cv_path_GMSGFMT"
2560 if test -n "$GMSGFMT"; then
2561 echo "$ac_t""$GMSGFMT" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 # Extract the first word of "xgettext", so it can be a program name with args.
2567 set dummy xgettext
; ac_word
=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2579 for ac_dir
in $PATH; do
2580 test -z "$ac_dir" && ac_dir
=.
2581 if test -f $ac_dir/$ac_word; then
2582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2583 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2593 XGETTEXT
="$ac_cv_path_XGETTEXT"
2594 if test -n "$XGETTEXT"; then
2595 echo "$ac_t""$XGETTEXT" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 extern int _nl_msg_cat_cntr;
2606 return _nl_msg_cat_cntr
2609 if { (eval echo configure
:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2614 echo "configure: failed program was:" >&5
2615 cat conftest.
$ac_ext >&5
2626 echo "$ac_t""no" 1>&6
2631 if test "$CATOBJEXT" = "NONE"; then
2632 nls_cv_use_gnu_gettext
=yes
2636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2637 INTLOBJS
="\$(GETTOBJS)"
2638 # Extract the first word of "msgfmt", so it can be a program name with args.
2639 set dummy msgfmt
; ac_word
=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2651 for ac_dir
in $PATH; do
2652 test -z "$ac_dir" && ac_dir
=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2655 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2665 MSGFMT
="$ac_cv_path_MSGFMT"
2666 if test -n "$MSGFMT"; then
2667 echo "$ac_t""$MSGFMT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2673 set dummy gmsgfmt
; ac_word
=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2681 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2684 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2689 for ac_dir
in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir
=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2701 GMSGFMT
="$ac_cv_path_GMSGFMT"
2702 if test -n "$GMSGFMT"; then
2703 echo "$ac_t""$GMSGFMT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "xgettext", so it can be a program name with args.
2709 set dummy xgettext
; ac_word
=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2721 for ac_dir
in $PATH; do
2722 test -z "$ac_dir" && ac_dir
=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2725 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2735 XGETTEXT
="$ac_cv_path_XGETTEXT"
2736 if test -n "$XGETTEXT"; then
2737 echo "$ac_t""$XGETTEXT" 1>&6
2739 echo "$ac_t""no" 1>&6
2743 USE_INCLUDED_LIBINTL
=yes
2747 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2749 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2750 nls_cv_header_intl
=libintl.h
2751 nls_cv_header_libgt
=libgettext.h
2754 if test "$XGETTEXT" != ":"; then
2755 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2758 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2763 # We need to process the po/ directory.
2767 nls_cv_header_intl
=libintl.h
2768 nls_cv_header_libgt
=libgettext.h
2771 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2772 # because some of the sources are only built for this goal.
2773 if test "$PACKAGE" = gettext; then
2775 USE_INCLUDED_LIBINTL
=yes
2778 for lang
in $ALL_LINGUAS; do
2779 GMOFILES
="$GMOFILES $lang.gmo"
2780 POFILES
="$POFILES $lang.po"
2796 if test "x$CATOBJEXT" != "x"; then
2797 if test "x$ALL_LINGUAS" = "x"; then
2800 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for catalogs to be installed" >&5
2803 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2804 case "$ALL_LINGUAS" in
2805 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2808 LINGUAS
=$NEW_LINGUAS
2809 echo "$ac_t""$LINGUAS" 1>&6
2812 if test -n "$LINGUAS"; then
2813 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2817 if test $ac_cv_header_locale_h = yes; then
2818 INCLUDE_LOCALE_H
="#include <locale.h>"
2821 /* The system does not provide the header <locale.h>. Take care yourself. */"
2825 if test -f $srcdir/po2tbl.
sed.
in; then
2826 if test "$CATOBJEXT" = ".cat"; then
2827 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for linux/version.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <linux/version.h>
2838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure
:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2857 echo "$ac_t""no" 1>&6
2862 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2864 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2865 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2868 if test "$PACKAGE" = "gettext"; then
2878 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2884 if test -f $srcdir/po
/POTFILES.
in; then
2885 test -d po || mkdir po
2886 if test "x$srcdir" != "x."; then
2887 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2888 posrcprefix
="$srcdir/"
2890 posrcprefix
="../$srcdir/"
2896 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2897 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2900 cat >> confdefs.h
<<\EOF
2901 #define PACKAGE "gdb"
2905 debugdir
=${libdir}/debug
2907 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2908 if test "${with_separate_debug_dir+set}" = set; then
2909 withval
="$with_separate_debug_dir"
2910 debugdir
="${withval}"
2915 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
2916 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2917 ac_define_dir
=`eval echo $debugdir`
2918 ac_define_dir
=`eval echo $ac_define_dir`
2919 cat >> confdefs.h
<<EOF
2920 #define DEBUGDIR "$ac_define_dir"
2924 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2936 subdirs
="doc testsuite"
2940 .
$srcdir/configure.
host
2942 .
$srcdir/configure.tgt
2944 # Fetch the default architecture and default target vector from BFD.
2945 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2947 # We only want the first architecture, so strip off the others if
2948 # there is more than one.
2949 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2951 if test "x$targ_archs" != x
; then
2952 cat >> confdefs.h
<<EOF
2953 #define DEFAULT_BFD_ARCH $targ_archs
2957 if test "x$targ_defvec" != x
; then
2958 cat >> confdefs.h
<<EOF
2959 #define DEFAULT_BFD_VEC $targ_defvec
2964 if test "$program_transform_name" = s
,x
,x
,; then
2965 program_transform_name
=
2967 # Double any \ or $. echo might interpret backslashes.
2968 cat <<\EOF_SED
> conftestsed
2969 s
,\\,\\\\,g
; s
,\$
,$$
,g
2971 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2974 test "$program_prefix" != NONE
&&
2975 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE
&&
2978 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2980 # sed with no file args requires a program.
2981 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2984 # The CLI cannot be disabled yet, but may be in the future.
2987 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2988 if test "${enable_gdbcli+set}" = set; then
2989 enableval
="$enable_gdbcli"
2994 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2996 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3002 if test x
"$enable_gdbcli" = xyes
; then
3003 if test -d $srcdir/cli
; then
3004 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3005 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3006 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3007 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3012 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3013 if test "${enable_gdbmi+set}" = set; then
3014 enableval
="$enable_gdbmi"
3019 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3025 if test x
"$enable_gdbmi" = xyes
; then
3026 if test -d $srcdir/mi
; then
3027 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3028 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3029 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3030 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3035 # Check whether --enable-tui or --disable-tui was given.
3036 if test "${enable_tui+set}" = set; then
3037 enableval
="$enable_tui"
3042 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3048 if test x
"$enable_tui" = xyes
; then
3049 if test -d $srcdir/tui
; then
3050 if test "$ac_cv_search_initscr" != no
-a "$ac_cv_search_wborder" != no
; then
3051 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3052 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3053 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3054 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3055 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3056 CONFIG_ALL
="${CONFIG_ALL} all-tui"
3057 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
3058 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
3059 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
3065 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3066 if test "${enable_gdbtk+set}" = set; then
3067 enableval
="$enable_gdbtk"
3072 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3075 if test -d $srcdir/gdbtk
; then
3082 # We unconditionally disable gdbtk tests on selected platforms.
3085 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3089 # Libunwind support.
3090 # Check whether --with-libunwind or --without-libunwind was given.
3091 if test "${with_libunwind+set}" = set; then
3092 withval
="$with_libunwind"
3093 case "${withval}" in
3094 yes) enable_libunwind
=yes ;;
3095 no
) enable_libunwind
=no
;;
3096 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3100 for ac_hdr
in libunwind.h
3102 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_hdr" >&5
3105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3113 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3114 { (eval echo configure
:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3115 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3116 if test -z "$ac_err"; then
3118 eval "ac_cv_header_$ac_safe=yes"
3121 echo "configure: failed program was:" >&5
3122 cat conftest.
$ac_ext >&5
3124 eval "ac_cv_header_$ac_safe=no"
3128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3131 cat >> confdefs.h
<<EOF
3132 #define $ac_tr_hdr 1
3136 echo "$ac_t""no" 1>&6
3140 for ac_hdr
in libunwind-ia64.h
3142 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_hdr" >&5
3145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3153 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3154 { (eval echo configure
:3155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3155 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3156 if test -z "$ac_err"; then
3158 eval "ac_cv_header_$ac_safe=yes"
3161 echo "configure: failed program was:" >&5
3162 cat conftest.
$ac_ext >&5
3164 eval "ac_cv_header_$ac_safe=no"
3168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
3170 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3171 cat >> confdefs.h
<<EOF
3172 #define $ac_tr_hdr 1
3176 echo "$ac_t""no" 1>&6
3180 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
3181 enable_libunwind
=yes;
3187 if test x
"$enable_libunwind" = xyes
; then
3188 for ac_hdr
in libunwind.h
3190 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_hdr" >&5
3193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 cat > conftest.
$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3202 { (eval echo configure
:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3203 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3204 if test -z "$ac_err"; then
3206 eval "ac_cv_header_$ac_safe=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 eval "ac_cv_header_$ac_safe=no"
3216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3219 cat >> confdefs.h
<<EOF
3220 #define $ac_tr_hdr 1
3224 echo "$ac_t""no" 1>&6
3228 for ac_hdr
in libunwind-ia64.h
3230 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_hdr" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure
:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244 if test -z "$ac_err"; then
3246 eval "ac_cv_header_$ac_safe=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 eval "ac_cv_header_$ac_safe=no"
3256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3259 cat >> confdefs.h
<<EOF
3260 #define $ac_tr_hdr 1
3264 echo "$ac_t""no" 1>&6
3268 cat >> confdefs.h
<<\EOF
3269 #define HAVE_LIBUNWIND 1
3272 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
3273 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
3274 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
3277 # Profiling support.
3278 # Check whether --enable-profiling or --disable-profiling was given.
3279 if test "${enable_profiling+set}" = set; then
3280 enableval
="$enable_profiling"
3285 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3292 for ac_func
in monstartup _mcleanup
3294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3295 echo "configure:3296: checking for $ac_func" >&5
3296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 /* System header to define __stub macros and hopefully few prototypes,
3303 which can conflict with char $ac_func(); below. */
3305 /* Override any gcc2 internal prototype to avoid an error. */
3306 /* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3312 /* The GNU C library defines this for functions which it implements
3313 to always fail with ENOSYS. Some functions are actually named
3314 something starting with __ and the normal name is an alias. */
3315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3323 if { (eval echo configure
:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3325 eval "ac_cv_func_$ac_func=yes"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.
$ac_ext >&5
3330 eval "ac_cv_func_$ac_func=no"
3335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3338 cat >> confdefs.h
<<EOF
3339 #define $ac_tr_func 1
3343 echo "$ac_t""no" 1>&6
3347 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3348 echo "configure:3349: checking for _etext" >&5
3349 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.
$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3362 if { (eval echo configure
:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3364 ac_cv_var__etext
=yes
3366 echo "configure: failed program was:" >&5
3367 cat conftest.
$ac_ext >&5
3374 echo "$ac_t""$ac_cv_var__etext" 1>&6
3375 if test $ac_cv_var__etext = yes; then
3376 cat >> confdefs.h
<<\EOF
3377 #define HAVE__ETEXT 1
3381 if test "$enable_profiling" = yes ; then
3382 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
3383 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3386 OLD_CFLAGS
="$CFLAGS"
3387 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
3389 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3390 echo "configure:3391: checking whether $CC supports -pg" >&5
3391 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3402 if { (eval echo configure
:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 ac_cv_cc_supports_pg
=yes
3406 echo "configure: failed program was:" >&5
3407 cat conftest.
$ac_ext >&5
3409 ac_cv_cc_supports_pg
=no
3414 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3416 if test $ac_cv_cc_supports_pg = no
; then
3417 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3420 CFLAGS
="$OLD_CFLAGS"
3423 # --------------------- #
3424 # Checks for programs. #
3425 # --------------------- #
3427 for ac_prog
in mawk gawk nawk
awk
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy
$ac_prog; ac_word
=$2
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_word" >&5
3433 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 if test -n "$AWK"; then
3437 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3439 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3441 for ac_dir
in $ac_dummy; do
3442 test -z "$ac_dir" && ac_dir
=.
3443 if test -f $ac_dir/$ac_word; then
3444 ac_cv_prog_AWK
="$ac_prog"
3451 AWK
="$ac_cv_prog_AWK"
3452 if test -n "$AWK"; then
3453 echo "$ac_t""$AWK" 1>&6
3455 echo "$ac_t""no" 1>&6
3458 test -n "$AWK" && break
3461 # Find a good install program. We prefer a C program (faster),
3462 # so one script is as good as another. But avoid the broken or
3463 # incompatible versions:
3464 # SysV /etc/install, /usr/sbin/install
3465 # SunOS /usr/etc/install
3466 # IRIX /sbin/install
3468 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3469 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3470 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3471 # ./install, which can be erroneously created by make from ./install.sh.
3472 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3473 echo "configure:3474: checking for a BSD compatible install" >&5
3474 if test -z "$INSTALL"; then
3475 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3479 for ac_dir
in $PATH; do
3480 # Account for people who put trailing slashes in PATH elements.
3482 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3484 # OSF1 and SCO ODT 3.0 have their own names for install.
3485 # Don't use installbsd from OSF since it installs stuff as root
3487 for ac_prog
in ginstall scoinst
install; do
3488 if test -f $ac_dir/$ac_prog; then
3489 if test $ac_prog = install &&
3490 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3491 # AIX install. It has an incompatible calling convention.
3494 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3505 if test "${ac_cv_path_install+set}" = set; then
3506 INSTALL
="$ac_cv_path_install"
3508 # As a last resort, use the slow shell script. We don't cache a
3509 # path for INSTALL within a source directory, because that will
3510 # break other packages using the cache if that directory is
3511 # removed, or if the path is relative.
3512 INSTALL
="$ac_install_sh"
3515 echo "$ac_t""$INSTALL" 1>&6
3517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3518 # It thinks the first close brace ends the variable substitution.
3519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3523 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3526 echo "configure:3527: checking whether ln -s works" >&5
3527 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3531 if ln -s X conftestdata
2>/dev
/null
3534 ac_cv_prog_LN_S
="ln -s"
3539 LN_S
="$ac_cv_prog_LN_S"
3540 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3541 echo "$ac_t""yes" 1>&6
3543 echo "$ac_t""no" 1>&6
3546 # Extract the first word of "ranlib", so it can be a program name with args.
3547 set dummy ranlib
; ac_word
=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 if test -n "$RANLIB"; then
3554 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3556 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3558 for ac_dir
in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir
=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_prog_RANLIB
="ranlib"
3566 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3569 RANLIB
="$ac_cv_prog_RANLIB"
3570 if test -n "$RANLIB"; then
3571 echo "$ac_t""$RANLIB" 1>&6
3573 echo "$ac_t""no" 1>&6
3576 for ac_prog
in 'bison -y' byacc
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy
$ac_prog; ac_word
=$2
3580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3581 echo "configure:3582: checking for $ac_word" >&5
3582 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 if test -n "$YACC"; then
3586 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3588 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3590 for ac_dir
in $ac_dummy; do
3591 test -z "$ac_dir" && ac_dir
=.
3592 if test -f $ac_dir/$ac_word; then
3593 ac_cv_prog_YACC
="$ac_prog"
3600 YACC
="$ac_cv_prog_YACC"
3601 if test -n "$YACC"; then
3602 echo "$ac_t""$YACC" 1>&6
3604 echo "$ac_t""no" 1>&6
3607 test -n "$YACC" && break
3609 test -n "$YACC" || YACC
="yacc"
3612 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3613 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_word" >&5
3616 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 if test -n "$AR"; then
3620 ac_cv_prog_AR
="$AR" # Let the user override the test.
3622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3624 for ac_dir
in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir
=.
3626 if test -f $ac_dir/$ac_word; then
3627 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3632 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3636 if test -n "$AR"; then
3637 echo "$ac_t""$AR" 1>&6
3639 echo "$ac_t""no" 1>&6
3644 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3645 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3647 echo "configure:3648: checking for $ac_word" >&5
3648 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 if test -n "$DLLTOOL"; then
3652 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3654 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3656 for ac_dir
in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir
=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3664 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3667 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3668 if test -n "$DLLTOOL"; then
3669 echo "$ac_t""$DLLTOOL" 1>&6
3671 echo "$ac_t""no" 1>&6
3676 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3677 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3679 echo "configure:3680: checking for $ac_word" >&5
3680 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 if test -n "$WINDRES"; then
3684 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3686 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3688 for ac_dir
in $ac_dummy; do
3689 test -z "$ac_dir" && ac_dir
=.
3690 if test -f $ac_dir/$ac_word; then
3691 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3696 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3699 WINDRES
="$ac_cv_prog_WINDRES"
3700 if test -n "$WINDRES"; then
3701 echo "$ac_t""$WINDRES" 1>&6
3703 echo "$ac_t""no" 1>&6
3709 # Needed for GNU/Hurd.
3710 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3711 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3713 echo "configure:3714: checking for $ac_word" >&5
3714 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 if test -n "$MIG"; then
3718 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3722 for ac_dir
in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir
=.
3724 if test -f $ac_dir/$ac_word; then
3725 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3730 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3733 MIG
="$ac_cv_prog_MIG"
3734 if test -n "$MIG"; then
3735 echo "$ac_t""$MIG" 1>&6
3737 echo "$ac_t""no" 1>&6
3743 # ---------------------- #
3744 # Checks for libraries. #
3745 # ---------------------- #
3747 # We might need to link with -lm; most simulators need it.
3748 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3749 echo "configure:3750: checking for main in -lm" >&5
3750 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 ac_save_LIBS
="$LIBS"
3756 cat > conftest.
$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3764 if { (eval echo configure
:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3766 eval "ac_cv_lib_$ac_lib_var=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.
$ac_ext >&5
3771 eval "ac_cv_lib_$ac_lib_var=no"
3774 LIBS
="$ac_save_LIBS"
3777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3781 cat >> confdefs.h
<<EOF
3782 #define $ac_tr_lib 1
3788 echo "$ac_t""no" 1>&6
3792 # We need to link with -lw to get `wctype' on Solaris before Solaris
3793 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3794 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3795 # is known to have this problem). Therefore we avoid libw if we can.
3796 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3797 echo "configure:3798: checking for wctype" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.
$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char wctype(); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_wctype) || defined (__stub___wctype)
3825 if { (eval echo configure
:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3827 eval "ac_cv_func_wctype=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 eval "ac_cv_func_wctype=no"
3837 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3841 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3843 echo "configure:3844: checking for wctype in -lw" >&5
3844 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 ac_save_LIBS
="$LIBS"
3850 cat > conftest.
$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3862 if { (eval echo configure
:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3864 eval "ac_cv_lib_$ac_lib_var=yes"
3866 echo "configure: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3869 eval "ac_cv_lib_$ac_lib_var=no"
3872 LIBS
="$ac_save_LIBS"
3875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3879 cat >> confdefs.h
<<EOF
3880 #define $ac_tr_lib 1
3886 echo "$ac_t""no" 1>&6
3892 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3894 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3895 echo "configure:3896: checking for library containing gethostbyname" >&5
3896 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 ac_func_search_save_LIBS
="$LIBS"
3900 ac_cv_search_gethostbyname
="no"
3901 cat > conftest.
$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3907 char gethostbyname();
3913 if { (eval echo configure
:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3915 ac_cv_search_gethostbyname
="none required"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3921 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl
; do
3922 LIBS
="-l$i $ac_func_search_save_LIBS"
3923 cat > conftest.
$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3929 char gethostbyname();
3935 if { (eval echo configure
:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3937 ac_cv_search_gethostbyname
="-l$i"
3940 echo "configure: failed program was:" >&5
3941 cat conftest.
$ac_ext >&5
3945 LIBS
="$ac_func_search_save_LIBS"
3948 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3949 if test "$ac_cv_search_gethostbyname" != "no"; then
3950 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3956 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3958 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3959 echo "configure:3960: checking for library containing socketpair" >&5
3960 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_func_search_save_LIBS
="$LIBS"
3964 ac_cv_search_socketpair
="no"
3965 cat > conftest.
$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3977 if { (eval echo configure
:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3979 ac_cv_search_socketpair
="none required"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.
$ac_ext >&5
3985 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3986 LIBS
="-l$i $ac_func_search_save_LIBS"
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3999 if { (eval echo configure
:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4001 ac_cv_search_socketpair
="-l$i"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4009 LIBS
="$ac_func_search_save_LIBS"
4012 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4013 if test "$ac_cv_search_socketpair" != "no"; then
4014 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
4020 # Since GDB uses Readline, we need termcap functionality, so we need
4021 # to find a library that provides that. When GDB is configured with
4022 # the TUI, we need full curses functionality.
4026 if test -d $srcdir/libtermcap
; then
4027 LIBS
="../libtermcap/libtermcap.a $LIBS"
4028 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
4031 ac_cv_search_tgetent
="none required"
4034 # Readline prefers curses over termcap on AIX.
4037 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4038 echo "configure:4039: checking for library containing tgetent" >&5
4039 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 ac_func_search_save_LIBS
="$LIBS"
4043 ac_cv_search_tgetent
="no"
4044 cat > conftest.
$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4056 if { (eval echo configure
:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4058 ac_cv_search_tgetent
="none required"
4060 echo "configure: failed program was:" >&5
4061 cat conftest.
$ac_ext >&5
4064 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
4065 LIBS
="-l$i $ac_func_search_save_LIBS"
4066 cat > conftest.
$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4078 if { (eval echo configure
:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4080 ac_cv_search_tgetent
="-l$i"
4083 echo "configure: failed program was:" >&5
4084 cat conftest.
$ac_ext >&5
4088 LIBS
="$ac_func_search_save_LIBS"
4091 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4092 if test "$ac_cv_search_tgetent" != "no"; then
4093 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4101 # Note: We used to check for libtermlib and libterminfo too, but
4102 # Readline doesn't, so I think we're safe with leaving them out.
4104 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4105 echo "configure:4106: checking for library containing tgetent" >&5
4106 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 ac_func_search_save_LIBS
="$LIBS"
4110 ac_cv_search_tgetent
="no"
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 /* Override any gcc2 internal prototype to avoid an error. */
4115 /* We use char because int might match the return type of a gcc2
4116 builtin and then its argument prototype would still apply. */
4123 if { (eval echo configure
:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4125 ac_cv_search_tgetent
="none required"
4127 echo "configure: failed program was:" >&5
4128 cat conftest.
$ac_ext >&5
4131 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
4132 LIBS
="-l$i $ac_func_search_save_LIBS"
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4145 if { (eval echo configure
:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4147 ac_cv_search_tgetent
="-l$i"
4150 echo "configure: failed program was:" >&5
4151 cat conftest.
$ac_ext >&5
4155 LIBS
="$ac_func_search_save_LIBS"
4158 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4159 if test "$ac_cv_search_tgetent" != "no"; then
4160 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4166 if test "$ac_cv_search_tgetent" = no
; then
4167 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4170 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4171 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4172 # Makefile fragments. That's why we need to have `Hcurses' before
4173 # `curses'. I don't see why we should use HP curses if a more
4174 # standard curses is available, except that according to HP's
4175 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4176 # HP-UX 10.10 and 10.20.
4178 # FIXME: ncurses does not work on native alphaev68-dec-osf5.1,
4179 # and probably other platforms. AC_SEARCH_LIBS finds the library
4180 # in a place such as /usr/local/lib/libncurses.a, but does not
4181 # do anything to look for the matching include files.
4182 # -- chastain 2004-05-01
4185 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4186 echo "configure:4187: checking for library containing initscr" >&5
4187 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 ac_func_search_save_LIBS
="$LIBS"
4191 ac_cv_search_initscr
="no"
4192 cat > conftest.
$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 /* Override any gcc2 internal prototype to avoid an error. */
4196 /* We use char because int might match the return type of a gcc2
4197 builtin and then its argument prototype would still apply. */
4204 if { (eval echo configure
:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4206 ac_cv_search_initscr
="none required"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.
$ac_ext >&5
4212 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses pdcurses
; do
4213 LIBS
="-l$i $ac_func_search_save_LIBS"
4214 cat > conftest.
$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4226 if { (eval echo configure
:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4228 ac_cv_search_initscr
="-l$i"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.
$ac_ext >&5
4236 LIBS
="$ac_func_search_save_LIBS"
4239 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4240 if test "$ac_cv_search_initscr" != "no"; then
4241 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
4244 echo "configure: warning: no curses library found" 1>&2
4247 # Check whether the wborder function is provided by the curses
4248 # library detected above. In certain implementations such as
4249 # the HP/UX Hcurses for instance, this function is provided by an
4250 # additional library. So if we did not find this function inside
4251 # the curses library, try some alternate libraries we know might
4254 echo $ac_n "checking for library containing wborder""... $ac_c" 1>&6
4255 echo "configure:4256: checking for library containing wborder" >&5
4256 if eval "test \"`echo '$''{'ac_cv_search_wborder'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4259 ac_func_search_save_LIBS
="$LIBS"
4260 ac_cv_search_wborder
="no"
4261 cat > conftest.
$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 /* Override any gcc2 internal prototype to avoid an error. */
4265 /* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4273 if { (eval echo configure
:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4275 ac_cv_search_wborder
="none required"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.
$ac_ext >&5
4281 test "$ac_cv_search_wborder" = "no" && for i
in cur_colr
; do
4282 LIBS
="-l$i $ac_func_search_save_LIBS"
4283 cat > conftest.
$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4295 if { (eval echo configure
:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4297 ac_cv_search_wborder
="-l$i"
4300 echo "configure: failed program was:" >&5
4301 cat conftest.
$ac_ext >&5
4305 LIBS
="$ac_func_search_save_LIBS"
4308 echo "$ac_t""$ac_cv_search_wborder" 1>&6
4309 if test "$ac_cv_search_wborder" != "no"; then
4310 test "$ac_cv_search_wborder" = "none required" || LIBS
="$ac_cv_search_wborder $LIBS"
4313 echo "configure: warning: wborder function not found, tui will be disabled" 1>&2
4316 # ------------------------- #
4317 # Checks for header files. #
4318 # ------------------------- #
4321 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4323 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4324 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4325 echo "configure:4326: checking for $ac_hdr that defines DIR" >&5
4326 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 cat > conftest.
$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <sys/types.h>
4338 if { (eval echo configure
:4339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4340 eval "ac_cv_header_dirent_$ac_safe=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.
$ac_ext >&5
4345 eval "ac_cv_header_dirent_$ac_safe=no"
4349 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4352 cat >> confdefs.h
<<EOF
4353 #define $ac_tr_hdr 1
4355 ac_header_dirent
=$ac_hdr; break
4357 echo "$ac_t""no" 1>&6
4360 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4361 if test $ac_header_dirent = dirent.h
; then
4362 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4363 echo "configure:4364: checking for opendir in -ldir" >&5
4364 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 ac_save_LIBS
="$LIBS"
4370 cat > conftest.
$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4382 if { (eval echo configure
:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4386 echo "configure: failed program was:" >&5
4387 cat conftest.
$ac_ext >&5
4389 eval "ac_cv_lib_$ac_lib_var=no"
4392 LIBS
="$ac_save_LIBS"
4395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4399 echo "$ac_t""no" 1>&6
4403 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4404 echo "configure:4405: checking for opendir in -lx" >&5
4405 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 ac_save_LIBS
="$LIBS"
4411 cat > conftest.
$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4423 if { (eval echo configure
:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4425 eval "ac_cv_lib_$ac_lib_var=yes"
4427 echo "configure: failed program was:" >&5
4428 cat conftest.
$ac_ext >&5
4430 eval "ac_cv_lib_$ac_lib_var=no"
4433 LIBS
="$ac_save_LIBS"
4436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4440 echo "$ac_t""no" 1>&6
4445 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4446 echo "configure:4447: checking whether stat file-mode macros are broken" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.
$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 #include <sys/types.h>
4454 #include <sys/stat.h>
4456 #if defined(S_ISBLK) && defined(S_IFDIR)
4457 # if S_ISBLK (S_IFDIR)
4462 #if defined(S_ISBLK) && defined(S_IFCHR)
4463 # if S_ISBLK (S_IFCHR)
4468 #if defined(S_ISLNK) && defined(S_IFREG)
4469 # if S_ISLNK (S_IFREG)
4474 #if defined(S_ISSOCK) && defined(S_IFREG)
4475 # if S_ISSOCK (S_IFREG)
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 egrep "You lose" >/dev
/null
2>&1; then
4484 ac_cv_header_stat_broken
=yes
4487 ac_cv_header_stat_broken
=no
4493 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4494 if test $ac_cv_header_stat_broken = yes; then
4495 cat >> confdefs.h
<<\EOF
4496 #define STAT_MACROS_BROKEN 1
4501 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4502 echo "configure:4503: checking for ANSI C header files" >&5
4503 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 cat > conftest.
$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4515 { (eval echo configure
:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4517 if test -z "$ac_err"; then
4519 ac_cv_header_stdc
=yes
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 ac_cv_header_stdc
=no
4529 if test $ac_cv_header_stdc = yes; then
4530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4531 cat > conftest.
$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 egrep "memchr" >/dev
/null
2>&1; then
4541 ac_cv_header_stdc
=no
4547 if test $ac_cv_header_stdc = yes; then
4548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549 cat > conftest.
$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555 egrep "free" >/dev
/null
2>&1; then
4559 ac_cv_header_stdc
=no
4565 if test $ac_cv_header_stdc = yes; then
4566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4567 if test "$cross_compiling" = yes; then
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4574 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4577 int main () { int i; for (i = 0; i < 256; i++)
4578 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4582 if { (eval echo configure
:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 ac_cv_header_stdc
=no
4597 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4598 if test $ac_cv_header_stdc = yes; then
4599 cat >> confdefs.h
<<\EOF
4600 #define STDC_HEADERS 1
4605 for ac_hdr
in link.h
4607 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_hdr" >&5
4610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 cat > conftest.
$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4618 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4619 { (eval echo configure
:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4620 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4621 if test -z "$ac_err"; then
4623 eval "ac_cv_header_$ac_safe=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4629 eval "ac_cv_header_$ac_safe=no"
4633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4636 cat >> confdefs.h
<<EOF
4637 #define $ac_tr_hdr 1
4641 echo "$ac_t""no" 1>&6
4645 for ac_hdr
in machine
/reg.h
4647 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.
$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4658 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure
:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4663 eval "ac_cv_header_$ac_safe=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4669 eval "ac_cv_header_$ac_safe=no"
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676 cat >> confdefs.h
<<EOF
4677 #define $ac_tr_hdr 1
4681 echo "$ac_t""no" 1>&6
4685 for ac_hdr
in nlist.h
4687 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4689 echo "configure:4690: checking for $ac_hdr" >&5
4690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 cat > conftest.
$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4698 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699 { (eval echo configure
:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701 if test -z "$ac_err"; then
4703 eval "ac_cv_header_$ac_safe=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.
$ac_ext >&5
4709 eval "ac_cv_header_$ac_safe=no"
4713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714 echo "$ac_t""yes" 1>&6
4715 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4716 cat >> confdefs.h
<<EOF
4717 #define $ac_tr_hdr 1
4721 echo "$ac_t""no" 1>&6
4725 for ac_hdr
in poll.h sys
/poll.h
4727 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_hdr" >&5
4730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.
$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4738 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4739 { (eval echo configure
:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4740 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4741 if test -z "$ac_err"; then
4743 eval "ac_cv_header_$ac_safe=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.
$ac_ext >&5
4749 eval "ac_cv_header_$ac_safe=no"
4753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4755 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4756 cat >> confdefs.h
<<EOF
4757 #define $ac_tr_hdr 1
4761 echo "$ac_t""no" 1>&6
4765 for ac_hdr
in proc_service.h thread_db.h gnu
/libc-version.h
4767 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_hdr" >&5
4770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 cat > conftest.
$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure
:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4781 if test -z "$ac_err"; then
4783 eval "ac_cv_header_$ac_safe=yes"
4786 echo "configure: failed program was:" >&5
4787 cat conftest.
$ac_ext >&5
4789 eval "ac_cv_header_$ac_safe=no"
4793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4796 cat >> confdefs.h
<<EOF
4797 #define $ac_tr_hdr 1
4801 echo "$ac_t""no" 1>&6
4805 for ac_hdr
in stddef.h
4807 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4809 echo "configure:4810: checking for $ac_hdr" >&5
4810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 cat > conftest.
$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4819 { (eval echo configure
:4820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4821 if test -z "$ac_err"; then
4823 eval "ac_cv_header_$ac_safe=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.
$ac_ext >&5
4829 eval "ac_cv_header_$ac_safe=no"
4833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4834 echo "$ac_t""yes" 1>&6
4835 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4836 cat >> confdefs.h
<<EOF
4837 #define $ac_tr_hdr 1
4841 echo "$ac_t""no" 1>&6
4845 for ac_hdr
in stdlib.h
4847 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4849 echo "configure:4850: checking for $ac_hdr" >&5
4850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4853 cat > conftest.
$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4858 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4859 { (eval echo configure
:4860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4860 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4861 if test -z "$ac_err"; then
4863 eval "ac_cv_header_$ac_safe=yes"
4866 echo "configure: failed program was:" >&5
4867 cat conftest.
$ac_ext >&5
4869 eval "ac_cv_header_$ac_safe=no"
4873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4875 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4876 cat >> confdefs.h
<<EOF
4877 #define $ac_tr_hdr 1
4881 echo "$ac_t""no" 1>&6
4885 for ac_hdr
in stdint.h
4887 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4889 echo "configure:4890: checking for $ac_hdr" >&5
4890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 cat > conftest.
$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4898 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4899 { (eval echo configure
:4900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4900 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4901 if test -z "$ac_err"; then
4903 eval "ac_cv_header_$ac_safe=yes"
4906 echo "configure: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4909 eval "ac_cv_header_$ac_safe=no"
4913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4916 cat >> confdefs.h
<<EOF
4917 #define $ac_tr_hdr 1
4921 echo "$ac_t""no" 1>&6
4925 for ac_hdr
in string.h memory.h
strings.h
4927 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4929 echo "configure:4930: checking for $ac_hdr" >&5
4930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 cat > conftest.
$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4938 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4939 { (eval echo configure
:4940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4940 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4941 if test -z "$ac_err"; then
4943 eval "ac_cv_header_$ac_safe=yes"
4946 echo "configure: failed program was:" >&5
4947 cat conftest.
$ac_ext >&5
4949 eval "ac_cv_header_$ac_safe=no"
4953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4954 echo "$ac_t""yes" 1>&6
4955 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4956 cat >> confdefs.h
<<EOF
4957 #define $ac_tr_hdr 1
4961 echo "$ac_t""no" 1>&6
4965 for ac_hdr
in sys
/fault.h
4967 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4969 echo "configure:4970: checking for $ac_hdr" >&5
4970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4973 cat > conftest.
$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4978 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4979 { (eval echo configure
:4980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4980 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4981 if test -z "$ac_err"; then
4983 eval "ac_cv_header_$ac_safe=yes"
4986 echo "configure: failed program was:" >&5
4987 cat conftest.
$ac_ext >&5
4989 eval "ac_cv_header_$ac_safe=no"
4993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4996 cat >> confdefs.h
<<EOF
4997 #define $ac_tr_hdr 1
5001 echo "$ac_t""no" 1>&6
5005 for ac_hdr
in sys
/file.h
5007 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5009 echo "configure:5010: checking for $ac_hdr" >&5
5010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5013 cat > conftest.
$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5018 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5019 { (eval echo configure
:5020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5020 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5021 if test -z "$ac_err"; then
5023 eval "ac_cv_header_$ac_safe=yes"
5026 echo "configure: failed program was:" >&5
5027 cat conftest.
$ac_ext >&5
5029 eval "ac_cv_header_$ac_safe=no"
5033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5036 cat >> confdefs.h
<<EOF
5037 #define $ac_tr_hdr 1
5041 echo "$ac_t""no" 1>&6
5045 for ac_hdr
in sys
/filio.h
5047 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5049 echo "configure:5050: checking for $ac_hdr" >&5
5050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 cat > conftest.
$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5058 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5059 { (eval echo configure
:5060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5060 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5061 if test -z "$ac_err"; then
5063 eval "ac_cv_header_$ac_safe=yes"
5066 echo "configure: failed program was:" >&5
5067 cat conftest.
$ac_ext >&5
5069 eval "ac_cv_header_$ac_safe=no"
5073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5076 cat >> confdefs.h
<<EOF
5077 #define $ac_tr_hdr 1
5081 echo "$ac_t""no" 1>&6
5085 for ac_hdr
in sys
/ioctl.h
5087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5089 echo "configure:5090: checking for $ac_hdr" >&5
5090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 cat > conftest.
$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5099 { (eval echo configure
:5100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5100 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5101 if test -z "$ac_err"; then
5103 eval "ac_cv_header_$ac_safe=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.
$ac_ext >&5
5109 eval "ac_cv_header_$ac_safe=no"
5113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5114 echo "$ac_t""yes" 1>&6
5115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5116 cat >> confdefs.h
<<EOF
5117 #define $ac_tr_hdr 1
5121 echo "$ac_t""no" 1>&6
5125 for ac_hdr
in sys
/param.h
5127 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5129 echo "configure:5130: checking for $ac_hdr" >&5
5130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 cat > conftest.
$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5139 { (eval echo configure
:5140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5140 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5141 if test -z "$ac_err"; then
5143 eval "ac_cv_header_$ac_safe=yes"
5146 echo "configure: failed program was:" >&5
5147 cat conftest.
$ac_ext >&5
5149 eval "ac_cv_header_$ac_safe=no"
5153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5155 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5156 cat >> confdefs.h
<<EOF
5157 #define $ac_tr_hdr 1
5161 echo "$ac_t""no" 1>&6
5165 for ac_hdr
in sys
/proc.h
5167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5169 echo "configure:5170: checking for $ac_hdr" >&5
5170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 cat > conftest.
$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5179 { (eval echo configure
:5180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5180 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5181 if test -z "$ac_err"; then
5183 eval "ac_cv_header_$ac_safe=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.
$ac_ext >&5
5189 eval "ac_cv_header_$ac_safe=no"
5193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5194 echo "$ac_t""yes" 1>&6
5195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5196 cat >> confdefs.h
<<EOF
5197 #define $ac_tr_hdr 1
5201 echo "$ac_t""no" 1>&6
5205 for ac_hdr
in sys
/procfs.h
5207 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_hdr" >&5
5210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.
$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5218 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5219 { (eval echo configure
:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5220 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5221 if test -z "$ac_err"; then
5223 eval "ac_cv_header_$ac_safe=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.
$ac_ext >&5
5229 eval "ac_cv_header_$ac_safe=no"
5233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5236 cat >> confdefs.h
<<EOF
5237 #define $ac_tr_hdr 1
5241 echo "$ac_t""no" 1>&6
5245 for ac_hdr
in sys
/ptrace.h ptrace.h
5247 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5249 echo "configure:5250: checking for $ac_hdr" >&5
5250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5253 cat > conftest.
$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5258 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5259 { (eval echo configure
:5260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5260 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5261 if test -z "$ac_err"; then
5263 eval "ac_cv_header_$ac_safe=yes"
5266 echo "configure: failed program was:" >&5
5267 cat conftest.
$ac_ext >&5
5269 eval "ac_cv_header_$ac_safe=no"
5273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5275 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5276 cat >> confdefs.h
<<EOF
5277 #define $ac_tr_hdr 1
5281 echo "$ac_t""no" 1>&6
5285 for ac_hdr
in sys
/reg.h sys
/debugreg.h
5287 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_hdr" >&5
5290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 cat > conftest.
$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5298 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5299 { (eval echo configure
:5300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5300 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5301 if test -z "$ac_err"; then
5303 eval "ac_cv_header_$ac_safe=yes"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.
$ac_ext >&5
5309 eval "ac_cv_header_$ac_safe=no"
5313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5314 echo "$ac_t""yes" 1>&6
5315 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5316 cat >> confdefs.h
<<EOF
5317 #define $ac_tr_hdr 1
5321 echo "$ac_t""no" 1>&6
5325 for ac_hdr
in sys
/select.h
5327 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_hdr" >&5
5330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 cat > conftest.
$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5339 { (eval echo configure
:5340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5340 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5341 if test -z "$ac_err"; then
5343 eval "ac_cv_header_$ac_safe=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.
$ac_ext >&5
5349 eval "ac_cv_header_$ac_safe=no"
5353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5356 cat >> confdefs.h
<<EOF
5357 #define $ac_tr_hdr 1
5361 echo "$ac_t""no" 1>&6
5365 for ac_hdr
in sys
/syscall.h
5367 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5369 echo "configure:5370: checking for $ac_hdr" >&5
5370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 cat > conftest.
$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5378 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5379 { (eval echo configure
:5380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5380 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5381 if test -z "$ac_err"; then
5383 eval "ac_cv_header_$ac_safe=yes"
5386 echo "configure: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5389 eval "ac_cv_header_$ac_safe=no"
5393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5395 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5396 cat >> confdefs.h
<<EOF
5397 #define $ac_tr_hdr 1
5401 echo "$ac_t""no" 1>&6
5405 for ac_hdr
in sys
/user.h
5407 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5409 echo "configure:5410: checking for $ac_hdr" >&5
5410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 cat > conftest.
$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5418 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5419 { (eval echo configure
:5420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5420 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5421 if test -z "$ac_err"; then
5423 eval "ac_cv_header_$ac_safe=yes"
5426 echo "configure: failed program was:" >&5
5427 cat conftest.
$ac_ext >&5
5429 eval "ac_cv_header_$ac_safe=no"
5433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5435 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5436 cat >> confdefs.h
<<EOF
5437 #define $ac_tr_hdr 1
5441 echo "$ac_t""no" 1>&6
5445 for ac_hdr
in sys
/wait.h
wait.h
5447 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5449 echo "configure:5450: checking for $ac_hdr" >&5
5450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5453 cat > conftest.
$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5458 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5459 { (eval echo configure
:5460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5460 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5461 if test -z "$ac_err"; then
5463 eval "ac_cv_header_$ac_safe=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.
$ac_ext >&5
5469 eval "ac_cv_header_$ac_safe=no"
5473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5474 echo "$ac_t""yes" 1>&6
5475 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5476 cat >> confdefs.h
<<EOF
5477 #define $ac_tr_hdr 1
5481 echo "$ac_t""no" 1>&6
5485 for ac_hdr
in termios.h termio.h sgtty.h
5487 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_hdr" >&5
5490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 cat > conftest.
$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5498 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5499 { (eval echo configure
:5500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5500 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5501 if test -z "$ac_err"; then
5503 eval "ac_cv_header_$ac_safe=yes"
5506 echo "configure: failed program was:" >&5
5507 cat conftest.
$ac_ext >&5
5509 eval "ac_cv_header_$ac_safe=no"
5513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5514 echo "$ac_t""yes" 1>&6
5515 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5516 cat >> confdefs.h
<<EOF
5517 #define $ac_tr_hdr 1
5521 echo "$ac_t""no" 1>&6
5525 for ac_hdr
in unistd.h
5527 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5529 echo "configure:5530: checking for $ac_hdr" >&5
5530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5531 echo $ac_n "(cached) $ac_c" 1>&6
5533 cat > conftest.
$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5538 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5539 { (eval echo configure
:5540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5540 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5541 if test -z "$ac_err"; then
5543 eval "ac_cv_header_$ac_safe=yes"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.
$ac_ext >&5
5549 eval "ac_cv_header_$ac_safe=no"
5553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5554 echo "$ac_t""yes" 1>&6
5555 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5556 cat >> confdefs.h
<<EOF
5557 #define $ac_tr_hdr 1
5561 echo "$ac_t""no" 1>&6
5566 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5567 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5568 # think that we don't have <curses.h> if we're using GCC.
5571 if test "$GCC" = yes; then
5572 cat >> confdefs.h
<<\EOF
5573 #define _MSE_INT_H 1
5578 for ac_hdr
in curses.h ncurses.h term.h
5580 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_hdr" >&5
5583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5586 cat > conftest.
$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5591 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5592 { (eval echo configure
:5593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5593 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5594 if test -z "$ac_err"; then
5596 eval "ac_cv_header_$ac_safe=yes"
5599 echo "configure: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5602 eval "ac_cv_header_$ac_safe=no"
5606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5609 cat >> confdefs.h
<<EOF
5610 #define $ac_tr_hdr 1
5614 echo "$ac_t""no" 1>&6
5619 # FIXME: kettenis/20030102: In most cases we include these
5620 # unconditionally, so what's the point in checking these?
5621 for ac_hdr
in ctype.h
time.h
5623 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5625 echo "configure:5626: checking for $ac_hdr" >&5
5626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 cat > conftest.
$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5635 { (eval echo configure
:5636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5637 if test -z "$ac_err"; then
5639 eval "ac_cv_header_$ac_safe=yes"
5642 echo "configure: failed program was:" >&5
5643 cat conftest.
$ac_ext >&5
5645 eval "ac_cv_header_$ac_safe=no"
5649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5650 echo "$ac_t""yes" 1>&6
5651 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5652 cat >> confdefs.h
<<EOF
5653 #define $ac_tr_hdr 1
5657 echo "$ac_t""no" 1>&6
5662 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5663 echo "configure:5664: checking for member st_blocks in struct stat" >&5
5664 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 cat > conftest.
$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 #include <sys/types.h>
5671 #include <sys/stat.h>
5673 struct stat st; (void) st.st_blocks;
5676 if { (eval echo configure
:5677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5678 gdb_cv_have_struct_stat_with_st_blocks_member
=yes
5680 echo "configure: failed program was:" >&5
5681 cat conftest.
$ac_ext >&5
5683 gdb_cv_have_struct_stat_with_st_blocks_member
=no
5688 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5689 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5690 cat >> confdefs.h
<<\EOF
5691 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5695 # ------------------------- #
5696 # Checks for declarations. #
5697 # ------------------------- #
5699 for ac_func
in getopt
5701 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5702 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5703 echo "configure:5704: checking whether $ac_func is declared" >&5
5704 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.
$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5711 #define $ac_tr_decl 1
5716 char *(*pfn) = (char *(*)) $ac_func ;
5720 if { (eval echo configure
:5721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5722 eval "gcc_cv_have_decl_$ac_func=yes"
5724 echo "configure: failed program was:" >&5
5725 cat conftest.
$ac_ext >&5
5727 eval "gcc_cv_have_decl_$ac_func=no"
5732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
5734 #define $ac_tr_decl 1
5738 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
5739 #define $ac_tr_decl 0
5745 if test x
= y
; then
5746 cat >> confdefs.h
<<\EOF
5747 #define HAVE_DECL_GETOPT 1
5752 # ------------------ #
5753 # Checks for types. #
5754 # ------------------ #
5756 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5757 echo "configure:5758: checking return type of signal handlers" >&5
5758 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 cat > conftest.
$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 #include <sys/types.h>
5770 extern "C" void (*signal (int, void (*)(int)))(int);
5772 void (*signal ()) ();
5779 if { (eval echo configure
:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5781 ac_cv_type_signal
=void
5783 echo "configure: failed program was:" >&5
5784 cat conftest.
$ac_ext >&5
5786 ac_cv_type_signal
=int
5791 echo "$ac_t""$ac_cv_type_signal" 1>&6
5792 cat >> confdefs.h
<<EOF
5793 #define RETSIGTYPE $ac_cv_type_signal
5798 # ------------------------------------- #
5799 # Checks for compiler characteristics. #
5800 # ------------------------------------- #
5802 echo $ac_n "checking for working const""... $ac_c" 1>&6
5803 echo "configure:5804: checking for working const" >&5
5804 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5807 cat > conftest.
$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
5813 /* Ultrix mips cc rejects this. */
5814 typedef int charset[2]; const charset x;
5815 /* SunOS 4.1.1 cc rejects this. */
5816 char const *const *ccp;
5818 /* NEC SVR4.0.2 mips cc rejects this. */
5819 struct point {int x, y;};
5820 static struct point const zero = {0,0};
5821 /* AIX XL C 1.02.0.0 rejects this.
5822 It does not let you subtract one const X* pointer from another in an arm
5823 of an if-expression whose if-part is not a constant expression */
5824 const char *g = "string";
5825 ccp = &g + (g ? g-g : 0);
5826 /* HPUX 7.0 cc rejects these. */
5829 ccp = (char const *const *) p;
5830 { /* SCO 3.2v4 cc rejects this. */
5832 char const *s = 0 ? (char *) 0 : (char const *) 0;
5836 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5838 const int *foo = &x[0];
5841 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5842 typedef const int *iptr;
5846 { /* AIX XL C 1.02.0.0 rejects this saying
5847 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5848 struct s { int j; const int *ap[3]; };
5849 struct s *b; b->j = 5;
5851 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5857 if { (eval echo configure
:5858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5861 echo "configure: failed program was:" >&5
5862 cat conftest.
$ac_ext >&5
5869 echo "$ac_t""$ac_cv_c_const" 1>&6
5870 if test $ac_cv_c_const = no
; then
5871 cat >> confdefs.h
<<\EOF
5877 echo $ac_n "checking for inline""... $ac_c" 1>&6
5878 echo "configure:5879: checking for inline" >&5
5879 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5880 echo $ac_n "(cached) $ac_c" 1>&6
5883 for ac_kw
in inline __inline__ __inline
; do
5884 cat > conftest.
$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5892 if { (eval echo configure
:5893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5894 ac_cv_c_inline
=$ac_kw; break
5896 echo "configure: failed program was:" >&5
5897 cat conftest.
$ac_ext >&5
5904 echo "$ac_t""$ac_cv_c_inline" 1>&6
5905 case "$ac_cv_c_inline" in
5907 no
) cat >> confdefs.h
<<\EOF
5911 *) cat >> confdefs.h
<<EOF
5912 #define inline $ac_cv_c_inline
5918 # ------------------------------ #
5919 # Checks for library functions. #
5920 # ------------------------------ #
5922 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5923 # for constant arguments. Useless!
5924 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5925 echo "configure:5926: checking for working alloca.h" >&5
5926 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 cat > conftest.
$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5934 char *p = alloca(2 * sizeof(int));
5937 if { (eval echo configure
:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5939 ac_cv_header_alloca_h
=yes
5941 echo "configure: failed program was:" >&5
5942 cat conftest.
$ac_ext >&5
5944 ac_cv_header_alloca_h
=no
5949 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5950 if test $ac_cv_header_alloca_h = yes; then
5951 cat >> confdefs.h
<<\EOF
5952 #define HAVE_ALLOCA_H 1
5957 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5958 echo "configure:5959: checking for alloca" >&5
5959 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5962 cat > conftest.
$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5967 # define alloca __builtin_alloca
5970 # include <malloc.h>
5971 # define alloca _alloca
5974 # include <alloca.h>
5979 # ifndef alloca /* predefined by HP cc +Olibcalls */
5988 char *p = (char *) alloca(1);
5991 if { (eval echo configure
:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5993 ac_cv_func_alloca_works
=yes
5995 echo "configure: failed program was:" >&5
5996 cat conftest.
$ac_ext >&5
5998 ac_cv_func_alloca_works
=no
6003 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6004 if test $ac_cv_func_alloca_works = yes; then
6005 cat >> confdefs.h
<<\EOF
6006 #define HAVE_ALLOCA 1
6011 if test $ac_cv_func_alloca_works = no
; then
6012 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6013 # that cause trouble. Some versions do not even contain alloca or
6014 # contain a buggy version. If you still want to use their alloca,
6015 # use ar to extract alloca.o from them instead of compiling alloca.c.
6016 ALLOCA
=alloca.
${ac_objext}
6017 cat >> confdefs.h
<<\EOF
6022 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6023 echo "configure:6024: checking whether alloca needs Cray hooks" >&5
6024 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.
$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #if defined(CRAY) && ! defined(CRAY2)
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 egrep "webecray" >/dev
/null
2>&1; then
6049 echo "$ac_t""$ac_cv_os_cray" 1>&6
6050 if test $ac_cv_os_cray = yes; then
6051 for ac_func
in _getb67 GETB67 getb67
; do
6052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_func" >&5
6054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 cat > conftest.
$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char $ac_func(); below. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6081 if { (eval echo configure
:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6083 eval "ac_cv_func_$ac_func=yes"
6085 echo "configure: failed program was:" >&5
6086 cat conftest.
$ac_ext >&5
6088 eval "ac_cv_func_$ac_func=no"
6093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6095 cat >> confdefs.h
<<EOF
6096 #define CRAY_STACKSEG_END $ac_func
6101 echo "$ac_t""no" 1>&6
6107 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6108 echo "configure:6109: checking stack direction for C alloca" >&5
6109 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 if test "$cross_compiling" = yes; then
6113 ac_cv_c_stack_direction
=0
6115 cat > conftest.
$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 find_stack_direction ()
6120 static char *addr = 0;
6125 return find_stack_direction ();
6128 return (&dummy > addr) ? 1 : -1;
6132 exit (find_stack_direction() < 0);
6135 if { (eval echo configure
:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6137 ac_cv_c_stack_direction
=1
6139 echo "configure: failed program was:" >&5
6140 cat conftest.
$ac_ext >&5
6142 ac_cv_c_stack_direction
=-1
6149 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6150 cat >> confdefs.h
<<EOF
6151 #define STACK_DIRECTION $ac_cv_c_stack_direction
6156 for ac_hdr
in unistd.h
6158 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6160 echo "configure:6161: checking for $ac_hdr" >&5
6161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6
6164 cat > conftest.
$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6169 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6170 { (eval echo configure
:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6171 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6172 if test -z "$ac_err"; then
6174 eval "ac_cv_header_$ac_safe=yes"
6177 echo "configure: failed program was:" >&5
6178 cat conftest.
$ac_ext >&5
6180 eval "ac_cv_header_$ac_safe=no"
6184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6185 echo "$ac_t""yes" 1>&6
6186 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6187 cat >> confdefs.h
<<EOF
6188 #define $ac_tr_hdr 1
6192 echo "$ac_t""no" 1>&6
6196 for ac_func
in getpagesize
6198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6199 echo "configure:6200: checking for $ac_func" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.
$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char $ac_func(); below. */
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6227 if { (eval echo configure
:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6229 eval "ac_cv_func_$ac_func=yes"
6231 echo "configure: failed program was:" >&5
6232 cat conftest.
$ac_ext >&5
6234 eval "ac_cv_func_$ac_func=no"
6239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6242 cat >> confdefs.h
<<EOF
6243 #define $ac_tr_func 1
6247 echo "$ac_t""no" 1>&6
6251 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6252 echo "configure:6253: checking for working mmap" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6256 if test "$cross_compiling" = yes; then
6257 ac_cv_func_mmap_fixed_mapped
=no
6259 cat > conftest.
$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6263 /* Thanks to Mike Haertel and Jim Avera for this test.
6264 Here is a matrix of mmap possibilities:
6265 mmap private not fixed
6266 mmap private fixed at somewhere currently unmapped
6267 mmap private fixed at somewhere already mapped
6268 mmap shared not fixed
6269 mmap shared fixed at somewhere currently unmapped
6270 mmap shared fixed at somewhere already mapped
6271 For private mappings, we should verify that changes cannot be read()
6272 back from the file, nor mmap's back from the file at a different
6273 address. (There have been systems where private was not correctly
6274 implemented like the infamous i386 svr4.0, and systems where the
6275 VM page cache was not coherent with the filesystem buffer cache
6276 like early versions of FreeBSD and possibly contemporary NetBSD.)
6277 For shared mappings, we should conversely verify that changes get
6278 propogated back to all the places they're supposed to be.
6280 Grep wants private fixed already mapped.
6281 The main things grep needs to know about mmap are:
6282 * does it exist and is it safe to write into the mmap'd area
6283 * how to use it (BSD variants) */
6284 #include <sys/types.h>
6286 #include <sys/mman.h>
6288 /* This mess was copied from the GNU getpagesize.h. */
6289 #ifndef HAVE_GETPAGESIZE
6290 # ifdef HAVE_UNISTD_H
6291 # include <unistd.h>
6294 /* Assume that all systems that can run configure have sys/param.h. */
6295 # ifndef HAVE_SYS_PARAM_H
6296 # define HAVE_SYS_PARAM_H 1
6299 # ifdef _SC_PAGESIZE
6300 # define getpagesize() sysconf(_SC_PAGESIZE)
6301 # else /* no _SC_PAGESIZE */
6302 # ifdef HAVE_SYS_PARAM_H
6303 # include <sys/param.h>
6304 # ifdef EXEC_PAGESIZE
6305 # define getpagesize() EXEC_PAGESIZE
6306 # else /* no EXEC_PAGESIZE */
6308 # define getpagesize() NBPG * CLSIZE
6311 # endif /* no CLSIZE */
6312 # else /* no NBPG */
6314 # define getpagesize() NBPC
6315 # else /* no NBPC */
6317 # define getpagesize() PAGESIZE
6318 # endif /* PAGESIZE */
6319 # endif /* no NBPC */
6320 # endif /* no NBPG */
6321 # endif /* no EXEC_PAGESIZE */
6322 # else /* no HAVE_SYS_PARAM_H */
6323 # define getpagesize() 8192 /* punt totally */
6324 # endif /* no HAVE_SYS_PARAM_H */
6325 # endif /* no _SC_PAGESIZE */
6327 #endif /* no HAVE_GETPAGESIZE */
6330 extern "C" { void *malloc(unsigned); }
6338 char *data, *data2, *data3;
6342 pagesize = getpagesize();
6345 * First, make a file with some known garbage in it.
6347 data = malloc(pagesize);
6350 for (i = 0; i < pagesize; ++i)
6351 *(data + i) = rand();
6353 fd = creat("conftestmmap", 0600);
6356 if (write(fd, data, pagesize) != pagesize)
6361 * Next, try to mmap the file at a fixed address which
6362 * already has something else allocated at it. If we can,
6363 * also make sure that we see the same garbage.
6365 fd = open("conftestmmap", O_RDWR);
6368 data2 = malloc(2 * pagesize);
6371 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6372 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6373 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6375 for (i = 0; i < pagesize; ++i)
6376 if (*(data + i) != *(data2 + i))
6380 * Finally, make sure that changes to the mapped area
6381 * do not percolate back to the file as seen by read().
6382 * (This is a bug on some variants of i386 svr4.0.)
6384 for (i = 0; i < pagesize; ++i)
6385 *(data2 + i) = *(data2 + i) + 1;
6386 data3 = malloc(pagesize);
6389 if (read(fd, data3, pagesize) != pagesize)
6391 for (i = 0; i < pagesize; ++i)
6392 if (*(data + i) != *(data3 + i))
6395 unlink("conftestmmap");
6400 if { (eval echo configure
:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6402 ac_cv_func_mmap_fixed_mapped
=yes
6404 echo "configure: failed program was:" >&5
6405 cat conftest.
$ac_ext >&5
6407 ac_cv_func_mmap_fixed_mapped
=no
6414 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6415 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6416 cat >> confdefs.h
<<\EOF
6422 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6423 echo "configure:6424: checking for pid_t" >&5
6424 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.
$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 #include <sys/types.h>
6436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6437 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6439 ac_cv_type_pid_t
=yes
6447 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6448 if test $ac_cv_type_pid_t = no
; then
6449 cat >> confdefs.h
<<\EOF
6455 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6456 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6457 echo "configure:6458: checking for vfork.h" >&5
6458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 cat > conftest.
$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6466 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6467 { (eval echo configure
:6468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6468 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6469 if test -z "$ac_err"; then
6471 eval "ac_cv_header_$ac_safe=yes"
6474 echo "configure: failed program was:" >&5
6475 cat conftest.
$ac_ext >&5
6477 eval "ac_cv_header_$ac_safe=no"
6481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 cat >> confdefs.h
<<\EOF
6484 #define HAVE_VFORK_H 1
6488 echo "$ac_t""no" 1>&6
6491 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6492 echo "configure:6493: checking for working vfork" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 if test "$cross_compiling" = yes; then
6497 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6498 echo "configure:6499: checking for vfork" >&5
6499 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6502 cat > conftest.
$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char vfork(); below. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6515 /* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518 #if defined (__stub_vfork) || defined (__stub___vfork)
6526 if { (eval echo configure
:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6528 eval "ac_cv_func_vfork=yes"
6530 echo "configure: failed program was:" >&5
6531 cat conftest.
$ac_ext >&5
6533 eval "ac_cv_func_vfork=no"
6538 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6542 echo "$ac_t""no" 1>&6
6545 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6547 cat > conftest.
$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 /* Thanks to Paul Eggert for this test. */
6552 #include <sys/types.h>
6553 #include <sys/stat.h>
6554 #ifdef HAVE_UNISTD_H
6560 /* On some sparc systems, changes by the child to local and incoming
6561 argument registers are propagated back to the parent.
6562 The compiler is told about this with #include <vfork.h>,
6563 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6564 Test for this by using a static variable whose address
6565 is put into a register that is clobbered by the vfork. */
6568 sparc_address_test (int arg)
6570 sparc_address_test (arg) int arg;
6588 pid_t parent = getpid ();
6591 sparc_address_test ();
6596 /* Here is another test for sparc vfork register problems.
6597 This test uses lots of local variables, at least
6598 as many local variables as main has allocated so far
6599 including compiler temporaries. 4 locals are enough for
6600 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6601 A buggy compiler should reuse the register of parent
6602 for one of the local variables, since it will think that
6603 parent can't possibly be used any more in this routine.
6604 Assigning to the local variable will thus munge parent
6605 in the parent process. */
6607 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6608 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6609 /* Convince the compiler that p..p7 are live; otherwise, it might
6610 use the same hardware register for all 8 local variables. */
6611 if (p != p1 || p != p2 || p != p3 || p != p4
6612 || p != p5 || p != p6 || p != p7)
6615 /* On some systems (e.g. IRIX 3.3),
6616 vfork doesn't separate parent from child file descriptors.
6617 If the child closes a descriptor before it execs or exits,
6618 this munges the parent's descriptor as well.
6619 Test for this by closing stdout in the child. */
6620 _exit(close(fileno(stdout)) != 0);
6625 while (wait(&status) != child)
6628 /* Was there some problem with vforking? */
6631 /* Did the child fail? (This shouldn't happen.) */
6634 /* Did the vfork/compiler bug occur? */
6635 || parent != getpid()
6637 /* Did the file descriptor bug occur? */
6638 || fstat(fileno(stdout), &st) != 0
6643 if { (eval echo configure
:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6645 ac_cv_func_vfork_works
=yes
6647 echo "configure: failed program was:" >&5
6648 cat conftest.
$ac_ext >&5
6650 ac_cv_func_vfork_works
=no
6657 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6658 if test $ac_cv_func_vfork_works = no
; then
6659 cat >> confdefs.h
<<\EOF
6665 for ac_func
in canonicalize_file_name realpath
6667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_func" >&5
6669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.
$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func(); below. */
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6685 /* The GNU C library defines this for functions which it implements
6686 to always fail with ENOSYS. Some functions are actually named
6687 something starting with __ and the normal name is an alias. */
6688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 if { (eval echo configure
:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6698 eval "ac_cv_func_$ac_func=yes"
6700 echo "configure: failed program was:" >&5
6701 cat conftest.
$ac_ext >&5
6703 eval "ac_cv_func_$ac_func=no"
6708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6710 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6711 cat >> confdefs.h
<<EOF
6712 #define $ac_tr_func 1
6716 echo "$ac_t""no" 1>&6
6722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6723 echo "configure:6724: checking for $ac_func" >&5
6724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6727 cat > conftest.
$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6730 /* System header to define __stub macros and hopefully few prototypes,
6731 which can conflict with char $ac_func(); below. */
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 /* We use char because int might match the return type of a gcc2
6735 builtin and then its argument prototype would still apply. */
6740 /* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6751 if { (eval echo configure
:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6753 eval "ac_cv_func_$ac_func=yes"
6755 echo "configure: failed program was:" >&5
6756 cat conftest.
$ac_ext >&5
6758 eval "ac_cv_func_$ac_func=no"
6763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6764 echo "$ac_t""yes" 1>&6
6765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6766 cat >> confdefs.h
<<EOF
6767 #define $ac_tr_func 1
6771 echo "$ac_t""no" 1>&6
6775 for ac_func
in pread64
6777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6778 echo "configure:6779: checking for $ac_func" >&5
6779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6782 cat > conftest.
$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 /* System header to define __stub macros and hopefully few prototypes,
6786 which can conflict with char $ac_func(); below. */
6788 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6795 /* The GNU C library defines this for functions which it implements
6796 to always fail with ENOSYS. Some functions are actually named
6797 something starting with __ and the normal name is an alias. */
6798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6806 if { (eval echo configure
:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6808 eval "ac_cv_func_$ac_func=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.
$ac_ext >&5
6813 eval "ac_cv_func_$ac_func=no"
6818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6821 cat >> confdefs.h
<<EOF
6822 #define $ac_tr_func 1
6826 echo "$ac_t""no" 1>&6
6832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_func" >&5
6834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 cat > conftest.
$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6840 /* System header to define __stub macros and hopefully few prototypes,
6841 which can conflict with char $ac_func(); below. */
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6850 /* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
6853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6861 if { (eval echo configure
:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6863 eval "ac_cv_func_$ac_func=yes"
6865 echo "configure: failed program was:" >&5
6866 cat conftest.
$ac_ext >&5
6868 eval "ac_cv_func_$ac_func=no"
6873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6875 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6876 cat >> confdefs.h
<<EOF
6877 #define $ac_tr_func 1
6881 echo "$ac_t""no" 1>&6
6885 for ac_func
in setpgid setpgrp
6887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6888 echo "configure:6889: checking for $ac_func" >&5
6889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 cat > conftest.
$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 /* System header to define __stub macros and hopefully few prototypes,
6896 which can conflict with char $ac_func(); below. */
6898 /* Override any gcc2 internal prototype to avoid an error. */
6899 /* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6916 if { (eval echo configure
:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6918 eval "ac_cv_func_$ac_func=yes"
6920 echo "configure: failed program was:" >&5
6921 cat conftest.
$ac_ext >&5
6923 eval "ac_cv_func_$ac_func=no"
6928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6931 cat >> confdefs.h
<<EOF
6932 #define $ac_tr_func 1
6936 echo "$ac_t""no" 1>&6
6940 for ac_func
in sigaction sigprocmask sigsetmask
6942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6943 echo "configure:6944: checking for $ac_func" >&5
6944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6947 cat > conftest.
$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950 /* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char $ac_func(); below. */
6953 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6971 if { (eval echo configure
:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6973 eval "ac_cv_func_$ac_func=yes"
6975 echo "configure: failed program was:" >&5
6976 cat conftest.
$ac_ext >&5
6978 eval "ac_cv_func_$ac_func=no"
6983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6985 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6986 cat >> confdefs.h
<<EOF
6987 #define $ac_tr_func 1
6991 echo "$ac_t""no" 1>&6
6995 for ac_func
in socketpair
6997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6998 echo "configure:6999: checking for $ac_func" >&5
6999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7000 echo $ac_n "(cached) $ac_c" 1>&6
7002 cat > conftest.
$ac_ext <<EOF
7003 #line 7004 "configure"
7004 #include "confdefs.h"
7005 /* System header to define __stub macros and hopefully few prototypes,
7006 which can conflict with char $ac_func(); below. */
7008 /* Override any gcc2 internal prototype to avoid an error. */
7009 /* We use char because int might match the return type of a gcc2
7010 builtin and then its argument prototype would still apply. */
7015 /* The GNU C library defines this for functions which it implements
7016 to always fail with ENOSYS. Some functions are actually named
7017 something starting with __ and the normal name is an alias. */
7018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7026 if { (eval echo configure
:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7028 eval "ac_cv_func_$ac_func=yes"
7030 echo "configure: failed program was:" >&5
7031 cat conftest.
$ac_ext >&5
7033 eval "ac_cv_func_$ac_func=no"
7038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7040 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7041 cat >> confdefs.h
<<EOF
7042 #define $ac_tr_func 1
7046 echo "$ac_t""no" 1>&6
7050 for ac_func
in syscall
7052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7053 echo "configure:7054: checking for $ac_func" >&5
7054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7057 cat > conftest.
$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7060 /* System header to define __stub macros and hopefully few prototypes,
7061 which can conflict with char $ac_func(); below. */
7063 /* Override any gcc2 internal prototype to avoid an error. */
7064 /* We use char because int might match the return type of a gcc2
7065 builtin and then its argument prototype would still apply. */
7070 /* The GNU C library defines this for functions which it implements
7071 to always fail with ENOSYS. Some functions are actually named
7072 something starting with __ and the normal name is an alias. */
7073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7081 if { (eval echo configure
:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7083 eval "ac_cv_func_$ac_func=yes"
7085 echo "configure: failed program was:" >&5
7086 cat conftest.
$ac_ext >&5
7088 eval "ac_cv_func_$ac_func=no"
7093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7094 echo "$ac_t""yes" 1>&6
7095 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7096 cat >> confdefs.h
<<EOF
7097 #define $ac_tr_func 1
7101 echo "$ac_t""no" 1>&6
7106 if test "$cross_compiling" = no
; then
7107 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7108 echo "configure:7109: checking whether setpgrp takes no argument" >&5
7109 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7112 if test "$cross_compiling" = yes; then
7113 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7115 cat > conftest.
$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7119 #ifdef HAVE_UNISTD_H
7124 * If this system has a BSD-style setpgrp, which takes arguments, exit
7129 if (setpgrp(1,1) == -1)
7136 if { (eval echo configure
:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7138 ac_cv_func_setpgrp_void
=no
7140 echo "configure: failed program was:" >&5
7141 cat conftest.
$ac_ext >&5
7143 ac_cv_func_setpgrp_void
=yes
7151 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7152 if test $ac_cv_func_setpgrp_void = yes; then
7153 cat >> confdefs.h
<<\EOF
7154 #define SETPGRP_VOID 1
7160 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7161 echo "configure:7162: checking whether setpgrp takes no argument" >&5
7162 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 cat > conftest.
$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7173 if (setpgrp(1,1) == -1)
7180 if { (eval echo configure
:7181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7182 ac_cv_func_setpgrp_void
=no
7184 echo "configure: failed program was:" >&5
7185 cat conftest.
$ac_ext >&5
7187 ac_cv_func_setpgrp_void
=yes
7192 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7193 if test $ac_cv_func_setpgrp_void = yes; then
7194 cat >> confdefs.h
<<\EOF
7195 #define SETPGRP_VOID 1
7201 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7202 # since sigsetjmp might only be defined as a macro.
7203 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7204 echo "configure:7205: checking for sigsetjmp" >&5
7205 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6
7208 cat > conftest.
$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7215 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7218 if { (eval echo configure
:7219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7220 gdb_cv_func_sigsetjmp
=yes
7222 echo "configure: failed program was:" >&5
7223 cat conftest.
$ac_ext >&5
7225 gdb_cv_func_sigsetjmp
=no
7230 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7231 if test $gdb_cv_func_sigsetjmp = yes; then
7232 cat >> confdefs.h
<<\EOF
7233 #define HAVE_SIGSETJMP 1
7238 # Assume we'll default to using the included libiberty regex.
7239 gdb_use_included_regex
=yes
7241 # However, if the system regex is GNU regex, then default to *not*
7242 # using the included regex.
7243 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7244 echo "configure:7245: checking for GNU regex" >&5
7245 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7248 cat > conftest.
$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 #include <gnu-versions.h>
7253 #define REGEX_INTERFACE_VERSION 1
7254 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7255 # error "Version mismatch"
7259 if { (eval echo configure
:7260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7261 gdb_cv_have_gnu_regex
=yes
7263 echo "configure: failed program was:" >&5
7264 cat conftest.
$ac_ext >&5
7266 gdb_cv_have_gnu_regex
=no
7271 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7272 if test $gdb_cv_have_gnu_regex = yes; then
7273 gdb_use_included_regex
=no
7276 # Check whether --with-included-regex or --without-included-regex was given.
7277 if test "${with_included_regex+set}" = set; then
7278 withval
="$with_included_regex"
7279 gdb_with_regex
=$withval
7281 gdb_with_regex
=$gdb_use_included_regex
7284 if test "$gdb_with_regex" = yes; then
7285 cat >> confdefs.h
<<\EOF
7286 #define USE_INCLUDED_REGEX 1
7291 # See if <sys/proc.h> defines `struct thread' with a td_pcb member.
7292 echo $ac_n "checking for td_pcb in struct thread""... $ac_c" 1>&6
7293 echo "configure:7294: checking for td_pcb in struct thread" >&5
7294 if eval "test \"`echo '$''{'gdb_cv_struct_thread_td_pcb'+set}'`\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7297 cat > conftest.
$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7300 #include <sys/proc.h>
7302 struct thread td; td.td_pcb;
7305 if { (eval echo configure
:7306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7307 gdb_cv_struct_thread_td_pcb
=yes
7309 echo "configure: failed program was:" >&5
7310 cat conftest.
$ac_ext >&5
7312 gdb_cv_struct_thread_td_pcb
=no
7317 echo "$ac_t""$gdb_cv_struct_thread_td_pcb" 1>&6
7318 if test $gdb_cv_struct_thread_td_pcb = yes; then
7319 cat >> confdefs.h
<<\EOF
7320 #define HAVE_STRUCT_THREAD_TD_PCB 1
7325 # See if <machine/reg.h> degines `struct reg'.
7326 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7327 echo "configure:7328: checking for struct reg in machine/reg.h" >&5
7328 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 cat > conftest.
$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 #include <sys/types.h>
7335 #include <machine/reg.h>
7340 if { (eval echo configure
:7341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7342 gdb_cv_struct_reg
=yes
7344 echo "configure: failed program was:" >&5
7345 cat conftest.
$ac_ext >&5
7347 gdb_cv_struct_reg
=no
7352 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7353 if test $gdb_cv_struct_reg = yes; then
7354 cat >> confdefs.h
<<\EOF
7355 #define HAVE_STRUCT_REG 1
7360 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7361 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7362 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7363 echo "configure:7364: checking for r_fs in struct reg" >&5
7364 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 cat > conftest.
$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 #include <machine/reg.h>
7372 struct reg r; r.r_fs;
7375 if { (eval echo configure
:7376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7377 gdb_cv_struct_reg_r_fs
=yes
7379 echo "configure: failed program was:" >&5
7380 cat conftest.
$ac_ext >&5
7382 gdb_cv_struct_reg_r_fs
=no
7387 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7388 if test $gdb_cv_struct_reg_r_fs = yes; then
7389 cat >> confdefs.h
<<\EOF
7390 #define HAVE_STRUCT_REG_R_FS 1
7394 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7395 echo "configure:7396: checking for r_gs in struct reg" >&5
7396 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.
$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 #include <machine/reg.h>
7404 struct reg r; r.r_gs;
7407 if { (eval echo configure
:7408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7409 gdb_cv_struct_reg_r_gs
=yes
7411 echo "configure: failed program was:" >&5
7412 cat conftest.
$ac_ext >&5
7414 gdb_cv_struct_reg_r_gs
=no
7419 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7420 if test $gdb_cv_struct_reg_r_gs = yes; then
7421 cat >> confdefs.h
<<\EOF
7422 #define HAVE_STRUCT_REG_R_GS 1
7427 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7428 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7429 echo "configure:7430: checking for PTRACE_GETREGS" >&5
7430 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.
$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 #include <sys/ptrace.h>
7441 if { (eval echo configure
:7442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7443 gdb_cv_have_ptrace_getregs
=yes
7445 echo "configure: failed program was:" >&5
7446 cat conftest.
$ac_ext >&5
7448 gdb_cv_have_ptrace_getregs
=no
7453 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7454 if test $gdb_cv_have_ptrace_getregs = yes; then
7455 cat >> confdefs.h
<<\EOF
7456 #define HAVE_PTRACE_GETREGS 1
7461 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7462 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7463 echo "configure:7464: checking for PTRACE_GETFPXREGS" >&5
7464 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7467 cat > conftest.
$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 #include <sys/ptrace.h>
7475 if { (eval echo configure
:7476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7477 gdb_cv_have_ptrace_getfpxregs
=yes
7479 echo "configure: failed program was:" >&5
7480 cat conftest.
$ac_ext >&5
7482 gdb_cv_have_ptrace_getfpxregs
=no
7487 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7488 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7489 cat >> confdefs.h
<<\EOF
7490 #define HAVE_PTRACE_GETFPXREGS 1
7495 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7496 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7497 echo "configure:7498: checking for PT_GETDBREGS" >&5
7498 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7501 cat > conftest.
$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 #include <sys/types.h>
7505 #include <sys/ptrace.h>
7510 if { (eval echo configure
:7511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7512 gdb_cv_have_pt_getdbregs
=yes
7514 echo "configure: failed program was:" >&5
7515 cat conftest.
$ac_ext >&5
7517 gdb_cv_have_pt_getdbregs
=no
7522 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7523 if test $gdb_cv_have_pt_getdbregs = yes; then
7524 cat >> confdefs.h
<<\EOF
7525 #define HAVE_PT_GETDBREGS 1
7530 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7531 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7532 echo "configure:7533: checking for PT_GETXMMREGS" >&5
7533 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7536 cat > conftest.
$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 #include <sys/types.h>
7540 #include <sys/ptrace.h>
7545 if { (eval echo configure
:7546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7547 gdb_cv_have_pt_getxmmregs
=yes
7549 echo "configure: failed program was:" >&5
7550 cat conftest.
$ac_ext >&5
7552 gdb_cv_have_pt_getxmmregs
=no
7557 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7558 if test $gdb_cv_have_pt_getxmmregs = yes; then
7559 cat >> confdefs.h
<<\EOF
7560 #define HAVE_PT_GETXMMREGS 1
7565 # See if stdint.h provides the uintptr_t type.
7566 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7567 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7568 echo "configure:7569: checking for uintptr_t in stdint.h" >&5
7569 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7572 cat > conftest.
$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7580 if { (eval echo configure
:7581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7582 gdb_cv_have_uintptr_t
=yes
7584 echo "configure: failed program was:" >&5
7585 cat conftest.
$ac_ext >&5
7587 gdb_cv_have_uintptr_t
=no
7592 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7593 if test $gdb_cv_have_uintptr_t = yes; then
7594 cat >> confdefs.h
<<\EOF
7595 #define HAVE_UINTPTR_T 1
7600 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7601 echo "configure:7602: checking whether malloc must be declared" >&5
7602 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7605 cat > conftest.
$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7610 #ifdef HAVE_STRING_H
7613 #ifdef HAVE_STRINGS_H
7614 #include <strings.h>
7617 #ifdef HAVE_STDLIB_H
7620 #ifdef HAVE_UNISTD_H
7624 char *(*pfn) = (char *(*)) malloc
7627 if { (eval echo configure
:7628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7629 bfd_cv_decl_needed_malloc
=no
7631 echo "configure: failed program was:" >&5
7632 cat conftest.
$ac_ext >&5
7634 bfd_cv_decl_needed_malloc
=yes
7639 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7640 if test $bfd_cv_decl_needed_malloc = yes; then
7641 cat >> confdefs.h
<<\EOF
7642 #define NEED_DECLARATION_MALLOC 1
7647 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7648 echo "configure:7649: checking whether realloc must be declared" >&5
7649 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 cat > conftest.
$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7657 #ifdef HAVE_STRING_H
7660 #ifdef HAVE_STRINGS_H
7661 #include <strings.h>
7664 #ifdef HAVE_STDLIB_H
7667 #ifdef HAVE_UNISTD_H
7671 char *(*pfn) = (char *(*)) realloc
7674 if { (eval echo configure
:7675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7676 bfd_cv_decl_needed_realloc
=no
7678 echo "configure: failed program was:" >&5
7679 cat conftest.
$ac_ext >&5
7681 bfd_cv_decl_needed_realloc
=yes
7686 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7687 if test $bfd_cv_decl_needed_realloc = yes; then
7688 cat >> confdefs.h
<<\EOF
7689 #define NEED_DECLARATION_REALLOC 1
7694 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7695 echo "configure:7696: checking whether free must be declared" >&5
7696 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7699 cat > conftest.
$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7704 #ifdef HAVE_STRING_H
7707 #ifdef HAVE_STRINGS_H
7708 #include <strings.h>
7711 #ifdef HAVE_STDLIB_H
7714 #ifdef HAVE_UNISTD_H
7718 char *(*pfn) = (char *(*)) free
7721 if { (eval echo configure
:7722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7723 bfd_cv_decl_needed_free
=no
7725 echo "configure: failed program was:" >&5
7726 cat conftest.
$ac_ext >&5
7728 bfd_cv_decl_needed_free
=yes
7733 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7734 if test $bfd_cv_decl_needed_free = yes; then
7735 cat >> confdefs.h
<<\EOF
7736 #define NEED_DECLARATION_FREE 1
7741 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7742 echo "configure:7743: checking whether strerror must be declared" >&5
7743 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7744 echo $ac_n "(cached) $ac_c" 1>&6
7746 cat > conftest.
$ac_ext <<EOF
7747 #line 7748 "configure"
7748 #include "confdefs.h"
7751 #ifdef HAVE_STRING_H
7754 #ifdef HAVE_STRINGS_H
7755 #include <strings.h>
7758 #ifdef HAVE_STDLIB_H
7761 #ifdef HAVE_UNISTD_H
7765 char *(*pfn) = (char *(*)) strerror
7768 if { (eval echo configure
:7769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7770 bfd_cv_decl_needed_strerror
=no
7772 echo "configure: failed program was:" >&5
7773 cat conftest.
$ac_ext >&5
7775 bfd_cv_decl_needed_strerror
=yes
7780 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7781 if test $bfd_cv_decl_needed_strerror = yes; then
7782 cat >> confdefs.h
<<\EOF
7783 #define NEED_DECLARATION_STRERROR 1
7788 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7789 echo "configure:7790: checking whether strdup must be declared" >&5
7790 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 cat > conftest.
$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7798 #ifdef HAVE_STRING_H
7801 #ifdef HAVE_STRINGS_H
7802 #include <strings.h>
7805 #ifdef HAVE_STDLIB_H
7808 #ifdef HAVE_UNISTD_H
7812 char *(*pfn) = (char *(*)) strdup
7815 if { (eval echo configure
:7816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7817 bfd_cv_decl_needed_strdup
=no
7819 echo "configure: failed program was:" >&5
7820 cat conftest.
$ac_ext >&5
7822 bfd_cv_decl_needed_strdup
=yes
7827 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7828 if test $bfd_cv_decl_needed_strdup = yes; then
7829 cat >> confdefs.h
<<\EOF
7830 #define NEED_DECLARATION_STRDUP 1
7835 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7836 echo "configure:7837: checking whether strstr must be declared" >&5
7837 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7840 cat > conftest.
$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7845 #ifdef HAVE_STRING_H
7848 #ifdef HAVE_STRINGS_H
7849 #include <strings.h>
7852 #ifdef HAVE_STDLIB_H
7855 #ifdef HAVE_UNISTD_H
7859 char *(*pfn) = (char *(*)) strstr
7862 if { (eval echo configure
:7863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7864 bfd_cv_decl_needed_strstr
=no
7866 echo "configure: failed program was:" >&5
7867 cat conftest.
$ac_ext >&5
7869 bfd_cv_decl_needed_strstr
=yes
7874 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7875 if test $bfd_cv_decl_needed_strstr = yes; then
7876 cat >> confdefs.h
<<\EOF
7877 #define NEED_DECLARATION_STRSTR 1
7882 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7883 echo "configure:7884: checking whether canonicalize_file_name must be declared" >&5
7884 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7887 cat > conftest.
$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7892 #ifdef HAVE_STRING_H
7895 #ifdef HAVE_STRINGS_H
7896 #include <strings.h>
7899 #ifdef HAVE_STDLIB_H
7902 #ifdef HAVE_UNISTD_H
7906 char *(*pfn) = (char *(*)) canonicalize_file_name
7909 if { (eval echo configure
:7910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7911 bfd_cv_decl_needed_canonicalize_file_name
=no
7913 echo "configure: failed program was:" >&5
7914 cat conftest.
$ac_ext >&5
7916 bfd_cv_decl_needed_canonicalize_file_name
=yes
7921 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7922 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7923 cat >> confdefs.h
<<\EOF
7924 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7930 # The following save_state_t checkery is only necessary for HPUX
7931 # versions earlier than 10.20. When those fade from memory, this
7932 # could be expunged. --jsm 1999-03-22
7934 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7935 echo "configure:7936: checking for HPUX save_state structure" >&5
7936 cat > conftest.
$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 #include <machine/save_state.h>
7941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942 egrep "save_state_t" >/dev
/null
2>&1; then
7944 gdb_cv_hpux_savestate
=yes
7947 gdb_cv_hpux_savestate
=no
7951 cat > conftest.
$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 #include <machine/save_state.h>
7956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957 egrep "ss_wide" >/dev
/null
2>&1; then
7959 gdb_cv_hpux_sswide
=yes
7962 gdb_cv_hpux_sswide
=no
7966 if test $gdb_cv_hpux_savestate = yes
7968 cat >> confdefs.h
<<\EOF
7969 #define HAVE_STRUCT_SAVE_STATE_T 1
7973 if test $gdb_cv_hpux_sswide = yes
7975 cat >> confdefs.h
<<\EOF
7976 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7980 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7983 # If we are configured native on GNU/Linux, work around problems with
7985 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7987 if test "${target}" = "${host}"; then
7990 cat >> confdefs.h
<<\EOF
7991 #define START_INFERIOR_TRAPS_EXPECTED 2
7994 cat >> confdefs.h
<<\EOF
7995 #define sys_quotactl 1
8000 cat >> confdefs.h
<<\EOF
8001 #define NEW_PROC_API 1
8005 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
8006 cat >> confdefs.h
<<\EOF
8007 #define NEW_PROC_API 1
8011 *-*-solaris2.
[6789])
8012 cat >> confdefs.h
<<\EOF
8013 #define NEW_PROC_API 1
8018 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
8019 cat >> confdefs.h
<<\EOF
8027 if test "$ac_cv_header_sys_procfs_h" = yes; then
8028 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
8029 echo "configure:8030: checking for pstatus_t in sys/procfs.h" >&5
8030 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 cat > conftest.
$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8038 #include <sys/procfs.h>
8043 if { (eval echo configure
:8044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8045 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
8047 echo "configure: failed program was:" >&5
8048 cat conftest.
$ac_ext >&5
8050 bfd_cv_have_sys_procfs_type_pstatus_t
=no
8056 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
8057 cat >> confdefs.h
<<\EOF
8058 #define HAVE_PSTATUS_T 1
8062 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
8064 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
8065 echo "configure:8066: checking for prrun_t in sys/procfs.h" >&5
8066 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8069 cat > conftest.
$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8074 #include <sys/procfs.h>
8079 if { (eval echo configure
:8080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8081 bfd_cv_have_sys_procfs_type_prrun_t
=yes
8083 echo "configure: failed program was:" >&5
8084 cat conftest.
$ac_ext >&5
8086 bfd_cv_have_sys_procfs_type_prrun_t
=no
8092 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
8093 cat >> confdefs.h
<<\EOF
8094 #define HAVE_PRRUN_T 1
8098 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
8100 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
8101 echo "configure:8102: checking for gregset_t in sys/procfs.h" >&5
8102 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 cat > conftest.
$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8110 #include <sys/procfs.h>
8115 if { (eval echo configure
:8116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8117 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8119 echo "configure: failed program was:" >&5
8120 cat conftest.
$ac_ext >&5
8122 bfd_cv_have_sys_procfs_type_gregset_t
=no
8128 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8129 cat >> confdefs.h
<<\EOF
8130 #define HAVE_GREGSET_T 1
8134 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8136 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8137 echo "configure:8138: checking for fpregset_t in sys/procfs.h" >&5
8138 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8141 cat > conftest.
$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8146 #include <sys/procfs.h>
8151 if { (eval echo configure
:8152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8153 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8155 echo "configure: failed program was:" >&5
8156 cat conftest.
$ac_ext >&5
8158 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8164 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8165 cat >> confdefs.h
<<\EOF
8166 #define HAVE_FPREGSET_T 1
8170 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8172 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8173 echo "configure:8174: checking for prgregset_t in sys/procfs.h" >&5
8174 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 cat > conftest.
$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8182 #include <sys/procfs.h>
8187 if { (eval echo configure
:8188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8189 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8191 echo "configure: failed program was:" >&5
8192 cat conftest.
$ac_ext >&5
8194 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8200 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8201 cat >> confdefs.h
<<\EOF
8202 #define HAVE_PRGREGSET_T 1
8206 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8208 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8209 echo "configure:8210: checking for prfpregset_t in sys/procfs.h" >&5
8210 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8213 cat > conftest.
$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8218 #include <sys/procfs.h>
8223 if { (eval echo configure
:8224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8225 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8227 echo "configure: failed program was:" >&5
8228 cat conftest.
$ac_ext >&5
8230 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8236 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8237 cat >> confdefs.h
<<\EOF
8238 #define HAVE_PRFPREGSET_T 1
8242 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8244 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8245 echo "configure:8246: checking for prgregset32_t in sys/procfs.h" >&5
8246 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8247 echo $ac_n "(cached) $ac_c" 1>&6
8249 cat > conftest.
$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8254 #include <sys/procfs.h>
8259 if { (eval echo configure
:8260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8261 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8263 echo "configure: failed program was:" >&5
8264 cat conftest.
$ac_ext >&5
8266 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8272 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8273 cat >> confdefs.h
<<\EOF
8274 #define HAVE_PRGREGSET32_T 1
8278 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8280 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8281 echo "configure:8282: checking for prfpregset32_t in sys/procfs.h" >&5
8282 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8283 echo $ac_n "(cached) $ac_c" 1>&6
8285 cat > conftest.
$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8290 #include <sys/procfs.h>
8295 if { (eval echo configure
:8296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8297 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
8299 echo "configure: failed program was:" >&5
8300 cat conftest.
$ac_ext >&5
8302 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
8308 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8309 cat >> confdefs.h
<<\EOF
8310 #define HAVE_PRFPREGSET32_T 1
8314 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8316 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8317 echo "configure:8318: checking for lwpid_t in sys/procfs.h" >&5
8318 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.
$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8326 #include <sys/procfs.h>
8331 if { (eval echo configure
:8332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8333 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8335 echo "configure: failed program was:" >&5
8336 cat conftest.
$ac_ext >&5
8338 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8344 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8345 cat >> confdefs.h
<<\EOF
8346 #define HAVE_LWPID_T 1
8350 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8352 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8353 echo "configure:8354: checking for psaddr_t in sys/procfs.h" >&5
8354 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.
$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8362 #include <sys/procfs.h>
8367 if { (eval echo configure
:8368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8369 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8371 echo "configure: failed program was:" >&5
8372 cat conftest.
$ac_ext >&5
8374 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8380 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8381 cat >> confdefs.h
<<\EOF
8382 #define HAVE_PSADDR_T 1
8386 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8388 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8389 echo "configure:8390: checking for prsysent_t in sys/procfs.h" >&5
8390 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8393 cat > conftest.
$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8398 #include <sys/procfs.h>
8403 if { (eval echo configure
:8404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8405 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
8407 echo "configure: failed program was:" >&5
8408 cat conftest.
$ac_ext >&5
8410 bfd_cv_have_sys_procfs_type_prsysent_t
=no
8416 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8417 cat >> confdefs.h
<<\EOF
8418 #define HAVE_PRSYSENT_T 1
8422 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8424 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8425 echo "configure:8426: checking for pr_sigset_t in sys/procfs.h" >&5
8426 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8429 cat > conftest.
$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8434 #include <sys/procfs.h>
8439 if { (eval echo configure
:8440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
8443 echo "configure: failed program was:" >&5
8444 cat conftest.
$ac_ext >&5
8446 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
8452 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8453 cat >> confdefs.h
<<\EOF
8454 #define HAVE_PR_SIGSET_T 1
8458 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8460 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8461 echo "configure:8462: checking for pr_sigaction64_t in sys/procfs.h" >&5
8462 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8465 cat > conftest.
$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8470 #include <sys/procfs.h>
8472 pr_sigaction64_t avar
8475 if { (eval echo configure
:8476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8477 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
8479 echo "configure: failed program was:" >&5
8480 cat conftest.
$ac_ext >&5
8482 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
8488 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8489 cat >> confdefs.h
<<\EOF
8490 #define HAVE_PR_SIGACTION64_T 1
8494 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8496 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8497 echo "configure:8498: checking for pr_siginfo64_t in sys/procfs.h" >&5
8498 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8501 cat > conftest.
$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8506 #include <sys/procfs.h>
8511 if { (eval echo configure
:8512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8513 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
8515 echo "configure: failed program was:" >&5
8516 cat conftest.
$ac_ext >&5
8518 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
8524 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8525 cat >> confdefs.h
<<\EOF
8526 #define HAVE_PR_SIGINFO64_T 1
8530 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8536 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8537 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8538 echo "configure:8539: checking whether prfpregset_t type is broken" >&5
8539 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8540 echo $ac_n "(cached) $ac_c" 1>&6
8542 if test "$cross_compiling" = yes; then
8543 gdb_cv_prfpregset_t_broken
=yes
8545 cat > conftest.
$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8548 #include <sys/procfs.h>
8551 if (sizeof (prfpregset_t) == sizeof (void *))
8556 if { (eval echo configure
:8557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8558 gdb_cv_prfpregset_t_broken
=no
8560 echo "configure: failed program was:" >&5
8561 cat conftest.
$ac_ext >&5
8563 gdb_cv_prfpregset_t_broken
=yes
8570 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8571 if test $gdb_cv_prfpregset_t_broken = yes; then
8572 cat >> confdefs.h
<<\EOF
8573 #define PRFPREGSET_T_BROKEN 1
8580 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8581 echo "configure:8582: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8582 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 cat > conftest.
$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8589 #include <sys/types.h>
8590 #include <sys/procfs.h>
8595 dummy = ioctl(0, PIOCSET, &dummy);
8599 if { (eval echo configure
:8600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8601 gdb_cv_have_procfs_piocset
=yes
8603 echo "configure: failed program was:" >&5
8604 cat conftest.
$ac_ext >&5
8606 gdb_cv_have_procfs_piocset
=no
8611 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8612 if test $gdb_cv_have_procfs_piocset = yes; then
8613 cat >> confdefs.h
<<\EOF
8614 #define HAVE_PROCFS_PIOCSET 1
8620 if test ${host} = ${target} ; then
8622 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8623 echo "configure:8624: checking for member l_addr in struct link_map" >&5
8624 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8627 cat > conftest.
$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8632 struct link_map lm; (void) lm.l_addr;
8635 if { (eval echo configure
:8636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8637 gdb_cv_have_struct_link_map_with_l_members
=yes
8639 echo "configure: failed program was:" >&5
8640 cat conftest.
$ac_ext >&5
8642 gdb_cv_have_struct_link_map_with_l_members
=no
8647 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8648 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8649 cat >> confdefs.h
<<\EOF
8650 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8656 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8657 echo "configure:8658: checking for member lm_addr in struct link_map" >&5
8658 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8661 cat > conftest.
$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8664 #include <sys/types.h>
8667 struct link_map lm; (void) lm.lm_addr;
8670 if { (eval echo configure
:8671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8672 gdb_cv_have_struct_link_map_with_lm_members
=yes
8674 echo "configure: failed program was:" >&5
8675 cat conftest.
$ac_ext >&5
8677 gdb_cv_have_struct_link_map_with_lm_members
=no
8682 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8683 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8684 cat >> confdefs.h
<<\EOF
8685 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8691 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8692 echo "configure:8693: checking for member som_addr in struct so_map" >&5
8693 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8696 cat > conftest.
$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699 #include <sys/types.h>
8705 struct so_map lm; (void) lm.som_addr;
8708 if { (eval echo configure
:8709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8710 gdb_cv_have_struct_so_map_with_som_members
=yes
8712 echo "configure: failed program was:" >&5
8713 cat conftest.
$ac_ext >&5
8715 gdb_cv_have_struct_so_map_with_som_members
=no
8720 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8721 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8722 cat >> confdefs.h
<<\EOF
8723 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8729 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8730 echo "configure:8731: checking for struct link_map32 in sys/link.h" >&5
8731 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8734 cat > conftest.
$ac_ext <<EOF
8735 #line 8736 "configure"
8736 #include "confdefs.h"
8738 #include <sys/link.h>
8740 struct link_map32 l;
8743 if { (eval echo configure
:8744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8745 gdb_cv_have_struct_link_map32
=yes
8747 echo "configure: failed program was:" >&5
8748 cat conftest.
$ac_ext >&5
8750 gdb_cv_have_struct_link_map32
=no
8755 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8756 if test $gdb_cv_have_struct_link_map32 = yes; then
8757 cat >> confdefs.h
<<\EOF
8758 #define HAVE_STRUCT_LINK_MAP32 1
8761 cat >> confdefs.h
<<\EOF
8762 #define _SYSCALL32 1
8769 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8770 echo "configure:8771: checking for long long support in compiler" >&5
8771 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8772 echo $ac_n "(cached) $ac_c" 1>&6
8774 cat > conftest.
$ac_ext <<EOF
8775 #line 8776 "configure"
8776 #include "confdefs.h"
8780 extern long long foo;
8781 switch (foo & 2) { case 0: return 1; }
8785 if { (eval echo configure
:8786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8787 gdb_cv_c_long_long
=yes
8789 echo "configure: failed program was:" >&5
8790 cat conftest.
$ac_ext >&5
8792 gdb_cv_c_long_long
=no
8797 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8798 if test $gdb_cv_c_long_long = yes; then
8799 cat >> confdefs.h
<<\EOF
8800 #define CC_HAS_LONG_LONG 1
8806 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8807 echo "configure:8808: checking for long long support in printf" >&5
8808 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8809 echo $ac_n "(cached) $ac_c" 1>&6
8811 if test "$cross_compiling" = yes; then
8812 gdb_cv_printf_has_long_long
=no
8814 cat > conftest.
$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8821 l = (l << 16) + 0x0123;
8822 l = (l << 16) + 0x4567;
8823 l = (l << 16) + 0x89ab;
8824 l = (l << 16) + 0xcdef;
8825 sprintf (buf, "0x%016llx", l);
8826 return (strcmp ("0x0123456789abcdef", buf));
8829 if { (eval echo configure
:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8831 gdb_cv_printf_has_long_long
=yes
8833 echo "configure: failed program was:" >&5
8834 cat conftest.
$ac_ext >&5
8836 gdb_cv_printf_has_long_long
=no
8843 if test $gdb_cv_printf_has_long_long = yes; then
8844 cat >> confdefs.h
<<\EOF
8845 #define PRINTF_HAS_LONG_LONG 1
8849 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8852 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8853 echo "configure:8854: checking for long double support in compiler" >&5
8854 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8855 echo $ac_n "(cached) $ac_c" 1>&6
8857 cat > conftest.
$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8865 if { (eval echo configure
:8866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8867 ac_cv_c_long_double
=yes
8869 echo "configure: failed program was:" >&5
8870 cat conftest.
$ac_ext >&5
8872 ac_cv_c_long_double
=no
8877 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8878 if test $ac_cv_c_long_double = yes; then
8879 cat >> confdefs.h
<<\EOF
8880 #define HAVE_LONG_DOUBLE 1
8886 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8887 echo "configure:8888: checking for long double support in printf" >&5
8888 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8889 echo $ac_n "(cached) $ac_c" 1>&6
8891 if test "$cross_compiling" = yes; then
8892 gdb_cv_printf_has_long_double
=no
8894 cat > conftest.
$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8900 long double f = 3.141592653;
8901 sprintf (buf, "%Lg", f);
8902 return (strncmp ("3.14159", buf, 7));
8905 if { (eval echo configure
:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8907 gdb_cv_printf_has_long_double
=yes
8909 echo "configure: failed program was:" >&5
8910 cat conftest.
$ac_ext >&5
8912 gdb_cv_printf_has_long_double
=no
8919 if test $gdb_cv_printf_has_long_double = yes; then
8920 cat >> confdefs.h
<<\EOF
8921 #define PRINTF_HAS_LONG_DOUBLE 1
8925 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8928 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8929 echo "configure:8930: checking for long double support in scanf" >&5
8930 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8931 echo $ac_n "(cached) $ac_c" 1>&6
8933 if test "$cross_compiling" = yes; then
8934 gdb_cv_scanf_has_long_double
=no
8936 cat > conftest.
$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8941 char *buf = "3.141592653";
8943 sscanf (buf, "%Lg", &f);
8944 return !(f > 3.14159 && f < 3.14160);
8947 if { (eval echo configure
:8948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8949 gdb_cv_scanf_has_long_double
=yes
8951 echo "configure: failed program was:" >&5
8952 cat conftest.
$ac_ext >&5
8954 gdb_cv_scanf_has_long_double
=no
8961 if test $gdb_cv_scanf_has_long_double = yes; then
8962 cat >> confdefs.h
<<\EOF
8963 #define SCANF_HAS_LONG_DOUBLE 1
8967 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8971 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8972 echo "configure:8973: checking for -bbigtoc option" >&5
8973 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8977 SAVE_LDFLAGS
=$LDFLAGS
8980 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8981 *) gdb_cv_bigtoc
=-bbigtoc ;;
8984 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8985 cat > conftest.
$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8993 if { (eval echo configure
:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8996 echo "configure: failed program was:" >&5
8997 cat conftest.
$ac_ext >&5
9002 LDFLAGS
="${SAVE_LDFLAGS}"
9006 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
9007 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
9013 if test ${build} = ${host} -a ${host} = ${target} ; then
9016 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
9017 echo "configure:9018: checking for HPUX/OSF thread support" >&5
9018 if test -f /usr
/include
/dce
/cma_config.h
; then
9019 if test "$GCC" = "yes" ; then
9020 echo "$ac_t""yes" 1>&6
9021 cat >> confdefs.h
<<\EOF
9022 #define HAVE_HPUX_THREAD_SUPPORT 1
9025 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
9026 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
9028 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
9031 echo "$ac_t""no" 1>&6
9035 # See if thread_db library is around for Solaris thread debugging.
9036 # Note that we must explicitly test for version 1 of the library
9037 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
9039 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
9040 echo "configure:9041: checking for Solaris thread debugging library" >&5
9041 if test -f /usr
/lib
/libthread_db.so
.1 ; then
9042 echo "$ac_t""yes" 1>&6
9043 cat >> confdefs.h
<<\EOF
9044 #define HAVE_THREAD_DB_LIB 1
9047 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
9048 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
9049 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9050 echo "configure:9051: checking for dlopen in -ldl" >&5
9051 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9055 ac_save_LIBS
="$LIBS"
9057 cat > conftest.
$ac_ext <<EOF
9058 #line 9059 "configure"
9059 #include "confdefs.h"
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9069 if { (eval echo configure
:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9071 eval "ac_cv_lib_$ac_lib_var=yes"
9073 echo "configure: failed program was:" >&5
9074 cat conftest.
$ac_ext >&5
9076 eval "ac_cv_lib_$ac_lib_var=no"
9079 LIBS
="$ac_save_LIBS"
9082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9083 echo "$ac_t""yes" 1>&6
9084 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9086 cat >> confdefs.h
<<EOF
9087 #define $ac_tr_lib 1
9093 echo "$ac_t""no" 1>&6
9096 if test "$GCC" = "yes" ; then
9097 # The GNU linker requires the -export-dynamic option to make
9098 # all symbols visible in the dynamic symbol table.
9099 hold_ldflags
=$LDFLAGS
9100 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
9101 echo "configure:9102: checking for the ld -export-dynamic flag" >&5
9102 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
9103 cat > conftest.
$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9111 if { (eval echo configure
:9112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9115 echo "configure: failed program was:" >&5
9116 cat conftest.
$ac_ext >&5
9121 LDFLAGS
=$hold_ldflags
9122 echo "$ac_t""$found" 1>&6
9123 if test $found = yes; then
9124 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9127 # Sun randomly tweaked the prototypes in <proc_service.h>
9129 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9130 echo "configure:9131: checking if <proc_service.h> is old" >&5
9131 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9132 echo $ac_n "(cached) $ac_c" 1>&6
9135 cat > conftest.
$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9139 #include <proc_service.h>
9141 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9147 if { (eval echo configure
:9148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9149 gdb_cv_proc_service_is_old
=no
9151 echo "configure: failed program was:" >&5
9152 cat conftest.
$ac_ext >&5
9154 gdb_cv_proc_service_is_old
=yes
9160 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9161 if test $gdb_cv_proc_service_is_old = yes; then
9162 cat >> confdefs.h
<<\EOF
9163 #define PROC_SERVICE_IS_OLD 1
9168 echo "$ac_t""no" 1>&6
9172 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9173 echo "configure:9174: checking for AiX thread debugging library" >&5
9174 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9177 cat > conftest.
$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180 #include <sys/pthdebug.h>
9182 #ifndef PTHDB_VERSION_3
9187 if { (eval echo configure
:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9189 gdb_cv_have_aix_thread_debug
=yes
9191 echo "configure: failed program was:" >&5
9192 cat conftest.
$ac_ext >&5
9194 gdb_cv_have_aix_thread_debug
=no
9199 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9200 if test $gdb_cv_have_aix_thread_debug = yes; then
9201 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
9202 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
9203 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
9210 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9211 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9212 echo "configure:9213: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9213 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9216 cat > conftest.
$ac_ext <<EOF
9217 #line 9218 "configure"
9218 #include "confdefs.h"
9219 #include <thread_db.h>
9221 int i = TD_NOTALLOC;
9224 if { (eval echo configure
:9225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9226 gdb_cv_thread_db_h_has_td_notalloc
=yes
9228 echo "configure: failed program was:" >&5
9229 cat conftest.
$ac_ext >&5
9231 gdb_cv_thread_db_h_has_td_notalloc
=no
9238 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9240 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9241 cat >> confdefs.h
<<\EOF
9242 #define THREAD_DB_HAS_TD_NOTALLOC 1
9247 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9248 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9249 echo "configure:9250: checking whether <sys/syscall.h> has __NR_tkill" >&5
9250 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9253 cat > conftest.
$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 #include <sys/syscall.h>
9261 if { (eval echo configure
:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9263 gdb_cv_sys_syscall_h_has_tkill
=yes
9265 echo "configure: failed program was:" >&5
9266 cat conftest.
$ac_ext >&5
9268 gdb_cv_sys_syscall_h_has_tkill
=no
9275 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9277 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9278 cat >> confdefs.h
<<\EOF
9279 #define HAVE_TKILL_SYSCALL 1
9285 # Check whether --with-sysroot or --without-sysroot was given.
9286 if test "${with_sysroot+set}" = set; then
9287 withval
="$with_sysroot"
9289 case ${with_sysroot} in
9290 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
9291 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
9294 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9296 if test "x$exec_prefix" = xNONE
; then
9297 if test "x$prefix" = xNONE
; then
9298 test_prefix
=/usr
/local
9303 test_prefix
=$exec_prefix
9305 case ${TARGET_SYSTEM_ROOT} in
9306 "${test_prefix}"|
"${test_prefix}/"*|\
9307 '${exec_prefix}'|
'${exec_prefix}/'*)
9308 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9309 TARGET_SYSTEM_ROOT_DEFINE
="$t"
9316 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
9323 # NOTE: Don't add -Wall or -Wunused, they both include
9324 # -Wunused-parameter which reports bogus warnings.
9325 # NOTE: If you add to this list, remember to update
9326 # gdb/doc/gdbint.texinfo.
9327 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9328 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9329 -Wunused-label -Wunused-function"
9330 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9331 # -Wunused-function -Wunused-variable -Wunused-value
9332 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9333 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9334 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9335 # -Woverloaded-virtual -Winline -Werror"
9336 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9337 if test "${enable_build_warnings+set}" = set; then
9338 enableval
="$enable_build_warnings"
9339 case "${enableval}" in
9341 no
) build_warnings
="-w";;
9342 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9343 build_warnings
="${build_warnings} ${t}";;
9344 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9345 build_warnings
="${t} ${build_warnings}";;
9346 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9348 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9349 echo "Setting compiler warning flags = $build_warnings" 6>&1
9352 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9353 if test "${enable_gdb_build_warnings+set}" = set; then
9354 enableval
="$enable_gdb_build_warnings"
9355 case "${enableval}" in
9357 no
) build_warnings
="-w";;
9358 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9359 build_warnings
="${build_warnings} ${t}";;
9360 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9361 build_warnings
="${t} ${build_warnings}";;
9362 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9364 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9365 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9370 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9372 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9373 echo "configure:9374: checking compiler warning flags" >&5
9374 # Separate out the -Werror flag as some files just cannot be
9375 # compiled with it enabled.
9376 for w
in ${build_warnings}; do
9378 -Werr*) WERROR_CFLAGS
=-Werror ;;
9379 *) # Check that GCC accepts it
9380 saved_CFLAGS
="$CFLAGS"
9382 cat > conftest.
$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9390 if { (eval echo configure
:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9394 echo "configure: failed program was:" >&5
9395 cat conftest.
$ac_ext >&5
9398 CFLAGS
="$saved_CFLAGS"
9401 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9406 # In the Cygwin environment, we need some additional flags.
9407 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9408 echo "configure:9409: checking for cygwin" >&5
9409 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9412 cat > conftest.
$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9416 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9421 egrep "lose" >/dev
/null
2>&1; then
9423 gdb_cv_os_cygwin
=yes
9432 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9435 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
9437 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
9438 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
9442 # libreadline needs libuser32.a in a cygwin environment
9444 if test x
$gdb_cv_os_cygwin = xyes
; then
9445 WIN32LIBS
="-luser32"
9447 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
9453 LIBGUI
="../libgui/src/libgui.a"
9454 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
9465 if test "${enable_gdbtk}" = "yes"; then
9467 # Gdbtk must have an absolute path to srcdir in order to run
9468 # properly when not installed.
9476 # Ok, lets find the tcl configuration
9477 # First, look for one uninstalled.
9478 # the alternative search directory is invoked by --with-tclconfig
9481 if test x
"${no_tcl}" = x
; then
9482 # we reset no_tcl in case something fails here
9484 # Check whether --with-tclconfig or --without-tclconfig was given.
9485 if test "${with_tclconfig+set}" = set; then
9486 withval
="$with_tclconfig"
9487 with_tclconfig
=${withval}
9490 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9491 echo "configure:9492: checking for Tcl configuration" >&5
9492 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9497 # First check to see if --with-tclconfig was specified.
9498 if test x
"${with_tclconfig}" != x
; then
9499 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9500 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
9502 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9506 # then check for a private Tcl installation
9507 if test x
"${ac_cv_c_tclconfig}" = x
; then
9510 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9512 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9514 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9515 if test -f "$i/${configdir}/tclConfig.sh" ; then
9516 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9521 # check in a few common install locations
9522 if test x
"${ac_cv_c_tclconfig}" = x
; then
9523 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9524 if test -f "$i/tclConfig.sh" ; then
9525 ac_cv_c_tclconfig
=`(cd $i; pwd)`
9530 # check in a few other private locations
9531 if test x
"${ac_cv_c_tclconfig}" = x
; then
9534 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9535 if test -f "$i/${configdir}/tclConfig.sh" ; then
9536 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9544 if test x
"${ac_cv_c_tclconfig}" = x
; then
9545 TCLCONFIG
="# no Tcl configs found"
9546 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9549 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
9550 echo "$ac_t""found $TCLCONFIG" 1>&6
9554 if test -z "${no_tcl}"; then
9585 # Ok, lets find the tk configuration
9586 # First, look for one uninstalled.
9587 # the alternative search directory is invoked by --with-tkconfig
9590 if test x
"${no_tk}" = x
; then
9591 # we reset no_tk in case something fails here
9593 # Check whether --with-tkconfig or --without-tkconfig was given.
9594 if test "${with_tkconfig+set}" = set; then
9595 withval
="$with_tkconfig"
9596 with_tkconfig
=${withval}
9599 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9600 echo "configure:9601: checking for Tk configuration" >&5
9601 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9606 # First check to see if --with-tkconfig was specified.
9607 if test x
"${with_tkconfig}" != x
; then
9608 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9609 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
9611 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9615 # then check for a private Tk library
9616 if test x
"${ac_cv_c_tkconfig}" = x
; then
9619 `ls -dr ../tk[4-9]* 2>/dev/null` \
9621 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9623 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9624 if test -f "$i/${configdir}/tkConfig.sh" ; then
9625 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9630 # check in a few common install locations
9631 if test x
"${ac_cv_c_tkconfig}" = x
; then
9632 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9633 if test -f "$i/tkConfig.sh" ; then
9634 ac_cv_c_tkconfig
=`(cd $i; pwd)`
9639 # check in a few other private locations
9640 if test x
"${ac_cv_c_tkconfig}" = x
; then
9643 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9644 if test -f "$i/${configdir}/tkConfig.sh" ; then
9645 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9653 if test x
"${ac_cv_c_tkconfig}" = x
; then
9654 TKCONFIG
="# no Tk configs found"
9655 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9658 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
9659 echo "$ac_t""found $TKCONFIG" 1>&6
9665 # now look for Tcl library stuff
9676 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
9678 # If $no_tk is nonempty, then we can't do Tk, and there is no
9679 # point to doing Tcl.
9680 if test -z "${no_tk}"; then
9682 if test -f "$TKCONFIG" ; then
9700 # Ok, lets find the tcl source trees so we can use the headers
9701 # Warning: transition of version 9 to 10 will break this algorithm
9702 # because 10 sorts before 9. We also look for just tcl. We have to
9703 # be careful that we don't match stuff like tclX by accident.
9704 # the alternative search directory is involked by --with-tclinclude
9708 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9709 echo "configure:9710: checking for Tcl private headers. dir=${configdir}" >&5
9710 # Check whether --with-tclinclude or --without-tclinclude was given.
9711 if test "${with_tclinclude+set}" = set; then
9712 withval
="$with_tclinclude"
9713 with_tclinclude
=${withval}
9716 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9717 echo $ac_n "(cached) $ac_c" 1>&6
9720 # first check to see if --with-tclinclude was specified
9721 if test x
"${with_tclinclude}" != x
; then
9722 if test -f ${with_tclinclude}/tclInt.h
; then
9723 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9724 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9725 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9727 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9731 # next check if it came with Tcl configuration file
9732 if test x
"${ac_cv_c_tclconfig}" = x
; then
9733 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9734 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9738 # next check in private source directory
9740 # since ls returns lowest version numbers first, reverse its output
9741 if test x
"${ac_cv_c_tclh}" = x
; then
9744 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9745 ${srcdir}/..
/..
/tcl \
9746 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9747 ${srcdir}/..
/..
/..
/tcl \
9748 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9749 if test -f $i/generic
/tclInt.h
; then
9750 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9755 # finally check in a few common install locations
9757 # since ls returns lowest version numbers first, reverse its output
9758 if test x
"${ac_cv_c_tclh}" = x
; then
9760 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9761 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9762 /usr
/local
/src
/tcl \
9763 /usr
/local
/lib
/tcl \
9764 ${prefix}/include
; do
9765 if test -f $i/generic
/tclInt.h
; then
9766 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9771 # see if one is installed
9772 if test x
"${ac_cv_c_tclh}" = x
; then
9773 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9774 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9775 echo "configure:9776: checking for tclInt.h" >&5
9776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9779 cat > conftest.
$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9785 { (eval echo configure
:9786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9786 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9787 if test -z "$ac_err"; then
9789 eval "ac_cv_header_$ac_safe=yes"
9792 echo "configure: failed program was:" >&5
9793 cat conftest.
$ac_ext >&5
9795 eval "ac_cv_header_$ac_safe=no"
9799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9800 echo "$ac_t""yes" 1>&6
9801 ac_cv_c_tclh
=installed
9803 echo "$ac_t""no" 1>&6
9811 if test x
"${ac_cv_c_tclh}" = x
; then
9812 TCLHDIR
="# no Tcl private headers found"
9813 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9815 if test x
"${ac_cv_c_tclh}" != x
; then
9817 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9818 echo "$ac_t""is installed" 1>&6
9821 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9822 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9823 TCLHDIR
="-I${ac_cv_c_tclh}"
9831 # Ok, lets find the tk source trees so we can use the headers
9832 # If the directory (presumably symlink) named "tk" exists, use that one
9833 # in preference to any others. Same logic is used when choosing library
9834 # and again with Tcl. The search order is the best place to look first, then in
9835 # decreasing significance. The loop breaks if the trigger file is found.
9836 # Note the gross little conversion here of srcdir by cd'ing to the found
9837 # directory. This converts the path from a relative to an absolute, so
9838 # recursive cache variables for the path will work right. We check all
9839 # the possible paths in one loop rather than many seperate loops to speed
9841 # the alternative search directory is involked by --with-tkinclude
9844 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9845 echo "configure:9846: checking for Tk private headers" >&5
9846 # Check whether --with-tkinclude or --without-tkinclude was given.
9847 if test "${with_tkinclude+set}" = set; then
9848 withval
="$with_tkinclude"
9849 with_tkinclude
=${withval}
9852 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9856 # first check to see if --with-tkinclude was specified
9857 if test x
"${with_tkinclude}" != x
; then
9858 if test -f ${with_tkinclude}/tk.h
; then
9859 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9860 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9861 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9863 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9867 # next check if it came with Tk configuration file
9868 if test x
"${ac_cv_c_tkconfig}" = x
; then
9869 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9870 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9874 # next check in private source directory
9876 # since ls returns lowest version numbers first, reverse its output
9877 if test x
"${ac_cv_c_tkh}" = x
; then
9880 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9881 ${srcdir}/..
/..
/tk \
9882 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9883 ${srcdir}/..
/..
/..
/tk \
9884 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9885 if test -f $i/generic
/tk.h
; then
9886 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9891 # finally check in a few common install locations
9893 # since ls returns lowest version numbers first, reverse its output
9894 if test x
"${ac_cv_c_tkh}" = x
; then
9896 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9897 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9900 ${prefix}/include
; do
9901 if test -f $i/generic
/tk.h
; then
9902 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9907 # see if one is installed
9908 if test x
"${ac_cv_c_tkh}" = x
; then
9909 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9910 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9911 echo "configure:9912: checking for tk.h" >&5
9912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9915 cat > conftest.
$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9920 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9921 { (eval echo configure
:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9922 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9923 if test -z "$ac_err"; then
9925 eval "ac_cv_header_$ac_safe=yes"
9928 echo "configure: failed program was:" >&5
9929 cat conftest.
$ac_ext >&5
9931 eval "ac_cv_header_$ac_safe=no"
9935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9936 echo "$ac_t""yes" 1>&6
9937 ac_cv_c_tkh
=installed
9939 echo "$ac_t""no" 1>&6
9947 if test x
"${ac_cv_c_tkh}" != x
; then
9949 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9950 echo "$ac_t""is installed" 1>&6
9953 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9954 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9955 TKHDIR
="-I${ac_cv_c_tkh}"
9958 TKHDIR
="# no Tk directory found"
9959 echo "configure: warning: Can't find Tk private headers" 1>&2
9966 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9967 echo "configure:9968: checking for Itcl private headers. srcdir=${srcdir}" >&5
9968 if test x
"${ac_cv_c_itclh}" = x
; then
9969 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9970 if test -f $i/generic
/itcl.h
; then
9971 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9976 if test x
"${ac_cv_c_itclh}" = x
; then
9977 ITCLHDIR
="# no Itcl private headers found"
9978 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9980 if test x
"${ac_cv_c_itclh}" != x
; then
9981 ITCLHDIR
="-I${ac_cv_c_itclh}"
9983 # should always be here
9984 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9989 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9990 echo "configure:9991: checking for Itk private headers. srcdir=${srcdir}" >&5
9991 if test x
"${ac_cv_c_itkh}" = x
; then
9992 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9993 if test -f $i/generic
/itk.h
; then
9994 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9999 if test x
"${ac_cv_c_itkh}" = x
; then
10000 ITKHDIR
="# no Itk private headers found"
10001 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
10003 if test x
"${ac_cv_c_itkh}" != x
; then
10004 ITKHDIR
="-I${ac_cv_c_itkh}"
10006 # should always be here
10007 # ITKLIB="../itcl/itk/unix/libitk.a"
10013 # now look for Tk library stuff
10024 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
10026 # now look for Itcl library stuff
10030 # Ok, lets find the itcl configuration
10031 # First, look for one uninstalled.
10032 # the alternative search directory is invoked by --with-itclconfig
10035 if test x
"${no_itcl}" = x
; then
10036 # we reset no_itcl in case something fails here
10038 # Check whether --with-itclconfig or --without-itclconfig was given.
10039 if test "${with_itclconfig+set}" = set; then
10040 withval
="$with_itclconfig"
10041 with_itclconfig
=${withval}
10044 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
10045 echo "configure:10046: checking for Itcl configuration" >&5
10046 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10051 # First check to see if --with-itclconfig was specified.
10052 if test x
"${with_itclconfig}" != x
; then
10053 if test -f "${with_itclconfig}/itclConfig.sh" ; then
10054 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
10056 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
10060 # then check for a private Itcl library
10061 if test x
"${ac_cv_c_itclconfig}" = x
; then
10064 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
10066 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
10068 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
10069 if test -f "$i/itclConfig.sh" ; then
10070 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10075 # check in a few common install locations
10076 if test x
"${ac_cv_c_itclconfig}" = x
; then
10077 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10078 if test -f "$i/itclConfig.sh" ; then
10079 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10084 # check in a few other private locations
10085 if test x
"${ac_cv_c_itclconfig}" = x
; then
10087 ${srcdir}/..
/itcl
/itcl \
10088 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
10089 if test -f "$i/itclConfig.sh" ; then
10090 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10098 if test x
"${ac_cv_c_itclconfig}" = x
; then
10099 ITCLCONFIG
="# no Itcl configs found"
10100 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
10103 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
10104 echo "$ac_t""found $ITCLCONFIG" 1>&6
10108 if test -z "${no_itcl}"; then
10110 if test -f "$ITCLCONFIG" ; then
10125 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
10126 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
10130 # now look for Itk library stuff
10133 # Ok, lets find the itk configuration
10134 # First, look for one uninstalled.
10135 # the alternative search directory is invoked by --with-itkconfig
10138 if test x
"${no_itk}" = x
; then
10139 # we reset no_itk in case something fails here
10141 # Check whether --with-itkconfig or --without-itkconfig was given.
10142 if test "${with_itkconfig+set}" = set; then
10143 withval
="$with_itkconfig"
10144 with_itkconfig
=${withval}
10147 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10148 echo "configure:10149: checking for Itk configuration" >&5
10149 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
10154 # First check to see if --with-itkconfig was specified.
10155 if test x
"${with_itkconfig}" != x
; then
10156 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10157 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
10159 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10163 # then check for a private Itk library
10164 if test x
"${ac_cv_c_itkconfig}" = x
; then
10167 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10169 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10171 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10172 if test -f "$i/itkConfig.sh" ; then
10173 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10178 # check in a few common install locations
10179 if test x
"${ac_cv_c_itkconfig}" = x
; then
10180 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10181 if test -f "$i/itkConfig.sh" ; then
10182 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10187 # check in a few other private locations
10188 if test x
"${ac_cv_c_itkconfig}" = x
; then
10190 ${srcdir}/..
/itcl
/itk \
10191 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10192 if test -f "$i/itkConfig.sh" ; then
10193 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10201 if test x
"${ac_cv_c_itkconfig}" = x
; then
10202 ITKCONFIG
="# no Itk configs found"
10203 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10206 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
10207 echo "$ac_t""found $ITKCONFIG" 1>&6
10212 if test -z "${no_itcl}"; then
10214 if test -f "$ITKCONFIG" ; then
10229 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
10230 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
10233 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10234 # Tcl/Tk 8.1 require -fwritable strings. I don't
10235 # know whether 8.2 will or not, but I bet it will.
10236 # I don't have to worry about 7.x since we don't support it.
10238 if test "$GCC" = "yes"; then
10239 if test "$TCL_VERSION" != "8.0" ; then
10240 GDBTK_CFLAGS
="-fwritable-strings"
10244 # Include some libraries that Tcl and Tk want.
10245 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10246 # Yes, the ordering seems wrong here. But it isn't.
10247 # TK_LIBS is the list of libraries that need to be linked
10248 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10249 # were in LIBS then any link tests after this point would
10250 # try to include things like `$(LIBGUI)', which wouldn't work.
10251 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
10253 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10254 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10255 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10256 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
10257 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
10258 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
10259 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
10261 if test x
$gdb_cv_os_cygwin = xyes
; then
10262 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10263 WIN32LDAPP
="-Wl,--subsystem,console"
10264 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
10269 configdirs
="${configdirs} gdbtk"
10285 # If we find X, set shell vars x_includes and x_libraries to the
10286 # paths, otherwise set no_x=yes.
10287 # Uses ac_ vars as temps to allow command line to override cache and checks.
10288 # --without-x overrides everything else, but does not touch the cache.
10289 echo $ac_n "checking for X""... $ac_c" 1>&6
10290 echo "configure:10291: checking for X" >&5
10292 # Check whether --with-x or --without-x was given.
10293 if test "${with_x+set}" = set; then
10298 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10299 if test "x$with_x" = xno
; then
10300 # The user explicitly disabled X.
10303 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
10304 # Both variables are already set.
10307 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10310 # One or both of the vars are not set, and there is no cached value.
10311 ac_x_includes
=NO ac_x_libraries
=NO
10313 if mkdir conftestdir
; then
10315 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10316 cat > Imakefile
<<'EOF'
10318 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10320 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10321 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10322 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10323 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10324 for ac_extension
in a so sl
; do
10325 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
10326 test -f $ac_im_libdir/libX11.
$ac_extension; then
10327 ac_im_usrlibdir
=$ac_im_libdir; break
10330 # Screen out bogus values from the imake configuration. They are
10331 # bogus both because they are the default anyway, and because
10332 # using them would break gcc on systems where it needs fixed includes.
10333 case "$ac_im_incroot" in
10335 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
10337 case "$ac_im_usrlibdir" in
10338 /usr
/lib |
/lib
) ;;
10339 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
10346 if test "$ac_x_includes" = NO
; then
10347 # Guess where to find include files, by looking for this one X11 .h file.
10348 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
10350 # First, try using that file with no special directory specified.
10351 cat > conftest.
$ac_ext <<EOF
10352 #line 10353 "configure"
10353 #include "confdefs.h"
10354 #include <$x_direct_test_include>
10356 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10357 { (eval echo configure
:10358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10358 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10359 if test -z "$ac_err"; then
10361 # We can compile using X headers with no special include directory.
10365 echo "configure: failed program was:" >&5
10366 cat conftest.
$ac_ext >&5
10368 # Look for the header file in a standard set of common directories.
10369 # Check X11 before X11Rn because it is often a symlink to the current release.
10372 /usr
/X11R
6/include \
10373 /usr
/X11R
5/include \
10374 /usr
/X11R
4/include \
10377 /usr
/include
/X11R6 \
10378 /usr
/include
/X11R5 \
10379 /usr
/include
/X11R4 \
10381 /usr
/local
/X11
/include \
10382 /usr
/local
/X11R
6/include \
10383 /usr
/local
/X11R
5/include \
10384 /usr
/local
/X11R
4/include \
10386 /usr
/local
/include
/X11 \
10387 /usr
/local
/include
/X11R6 \
10388 /usr
/local
/include
/X11R5 \
10389 /usr
/local
/include
/X11R4 \
10391 /usr
/X386
/include \
10392 /usr
/x386
/include \
10393 /usr
/XFree86
/include
/X11 \
10396 /usr
/local
/include \
10397 /usr
/unsupported
/include \
10398 /usr
/athena
/include \
10399 /usr
/local
/x11r
5/include \
10400 /usr
/lpp
/Xamples
/include \
10402 /usr
/openwin
/include \
10403 /usr
/openwin
/share
/include \
10406 if test -r "$ac_dir/$x_direct_test_include"; then
10407 ac_x_includes
=$ac_dir
10413 fi # $ac_x_includes = NO
10415 if test "$ac_x_libraries" = NO
; then
10416 # Check for the libraries.
10418 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
10419 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
10421 # See if we find them without any special options.
10422 # Don't add to $LIBS permanently.
10423 ac_save_LIBS
="$LIBS"
10424 LIBS
="-l$x_direct_test_library $LIBS"
10425 cat > conftest.
$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10430 ${x_direct_test_function}()
10433 if { (eval echo configure
:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10435 LIBS
="$ac_save_LIBS"
10436 # We can link X programs with no special library path.
10439 echo "configure: failed program was:" >&5
10440 cat conftest.
$ac_ext >&5
10442 LIBS
="$ac_save_LIBS"
10443 # First see if replacing the include by lib works.
10444 # Check X11 before X11Rn because it is often a symlink to the current release.
10445 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
10456 /usr
/local
/X11
/lib \
10457 /usr
/local
/X11R
6/lib \
10458 /usr
/local
/X11R
5/lib \
10459 /usr
/local
/X11R
4/lib \
10461 /usr
/local
/lib
/X11 \
10462 /usr
/local
/lib
/X11R6 \
10463 /usr
/local
/lib
/X11R5 \
10464 /usr
/local
/lib
/X11R4 \
10468 /usr
/XFree86
/lib
/X11 \
10472 /usr
/unsupported
/lib \
10474 /usr
/local
/x11r
5/lib \
10475 /usr
/lpp
/Xamples
/lib \
10479 /usr
/openwin
/share
/lib \
10482 for ac_extension
in a so sl
; do
10483 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
10484 ac_x_libraries
=$ac_dir
10491 fi # $ac_x_libraries = NO
10493 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
10494 # Didn't find X anywhere. Cache the known absence of X.
10495 ac_cv_have_x
="have_x=no"
10497 # Record where we found X for the cache.
10498 ac_cv_have_x
="have_x=yes \
10499 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10503 eval "$ac_cv_have_x"
10506 if test "$have_x" != yes; then
10507 echo "$ac_t""$have_x" 1>&6
10510 # If each of the values was on the command line, it overrides each guess.
10511 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10512 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10513 # Update the cache value to reflect the command line values.
10514 ac_cv_have_x
="have_x=yes \
10515 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10516 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10521 # Unlike the sim directory, whether a simulator is linked is controlled by
10522 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10523 # This code just checks for a few cases where we'd like to ignore those
10524 # definitions, even when they're present in the '.mt' file. These cases
10525 # are when --disable-sim is specified, or if the simulator directory is
10526 # not part of the source tree.
10528 # Check whether --enable-sim or --disable-sim was given.
10529 if test "${enable_sim+set}" = set; then
10530 enableval
="$enable_sim"
10531 echo "enable_sim = $enable_sim";
10532 echo "enableval = ${enableval}";
10533 case "${enableval}" in
10534 yes) ignore_sim
=false
;;
10535 no
) ignore_sim
=true
;;
10536 *) ignore_sim
=false
;;
10543 if test ! -d "${srcdir}/../sim"; then
10547 if test "${ignore_sim}" = "true"; then
10549 IGNORE_SIM_OBS
="SIM_OBS="
10553 cat >> confdefs.h
<<\EOF
10572 # target_subdir is used by the testsuite to find the target libraries.
10574 if test "${host}" != "${target}"; then
10575 target_subdir
="${target_alias}/"
10580 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10581 if test ! -f ${host_makefile_frag}; then
10582 # When building a native debuger the .mh file containing things
10583 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10584 # since it no longer contains anything useful.
10585 if test "${target}" = "${host}"; then
10586 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
10588 host_makefile_frag
=/dev
/null
10591 frags
="$frags $host_makefile_frag"
10593 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10594 if test ! -f ${target_makefile_frag}; then
10595 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
10597 frags
="$frags $target_makefile_frag"
10604 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10605 ' ${host_makefile_frag}`
10607 targetfile
=`sed -n '
10608 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10609 ' ${target_makefile_frag}`
10611 if test "${target}" = "${host}"; then
10612 # We pick this up from the host configuration file (.mh) because we
10613 # do not have a native configuration Makefile fragment.
10614 nativefile
=`sed -n '
10615 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10616 ' ${host_makefile_frag}`
10620 if test x
"${gdb_osabi}" != x
; then
10621 cat >> confdefs.h
<<EOF
10622 #define GDB_OSABI_DEFAULT $gdb_osabi
10627 # Enable multi-ice-gdb-server.
10628 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10629 if test "${enable_multi_ice+set}" = set; then
10630 enableval
="$enable_multi_ice"
10634 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10638 if test "x$enable_multi_ice" = xyes
; then
10639 configdirs
="$configdirs multi-ice"
10642 # We only build gdbserver automatically if host and target are the same.
10643 if test "x$target" = "x$host"; then
10644 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10645 echo "configure:10646: checking whether gdbserver is supported on this host" >&5
10646 if test "x$build_gdbserver" = xyes
; then
10647 configdirs
="$configdirs gdbserver"
10648 echo "$ac_t""yes" 1>&6
10650 echo "$ac_t""no" 1>&6
10654 subdirs
="doc testsuite $configdirs"
10657 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10658 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10666 if test "${hostfile}" != ""; then
10668 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10669 files
="${files} ${GDB_XM_FILE}"
10670 links
="${links} xm.h"
10671 cat >> confdefs.h
<<EOF
10672 #define GDB_XM_FILE ${GDB_XM_FILE}
10680 if test "${targetfile}" != ""; then
10682 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10683 files
="${files} ${GDB_TM_FILE}"
10684 links
="${links} tm.h"
10685 cat >> confdefs.h
<<EOF
10686 #define GDB_TM_FILE ${GDB_TM_FILE}
10694 if test "${nativefile}" != ""; then
10696 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10697 files
="${files} ${GDB_NM_FILE}"
10698 links
="${links} nm.h"
10699 cat >> confdefs.h
<<EOF
10700 #define GDB_NM_FILE ${GDB_NM_FILE}
10708 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10709 echo "configure:10710: checking for Cygwin environment" >&5
10710 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10713 cat > conftest.
$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10720 #define __CYGWIN__ __CYGWIN32__
10725 if { (eval echo configure
:10726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10729 echo "configure: failed program was:" >&5
10730 cat conftest.
$ac_ext >&5
10738 echo "$ac_t""$ac_cv_cygwin" 1>&6
10740 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10741 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10742 echo "configure:10743: checking for mingw32 environment" >&5
10743 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10744 echo $ac_n "(cached) $ac_c" 1>&6
10746 cat > conftest.
$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10751 return __MINGW32__;
10754 if { (eval echo configure
:10755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10758 echo "configure: failed program was:" >&5
10759 cat conftest.
$ac_ext >&5
10767 echo "$ac_t""$ac_cv_mingw32" 1>&6
10769 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10772 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10773 echo "configure:10774: checking for executable suffix" >&5
10774 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10777 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10781 echo 'int main () { return 0; }' > conftest.
$ac_ext
10783 if { (eval echo configure
:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10784 for file in conftest.
*; do
10786 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10787 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10791 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10794 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10799 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10800 echo "$ac_t""${ac_cv_exeext}" 1>&6
10805 cat >> confdefs.h
<<\EOF
10806 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10812 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10813 if test "${with_libiconv_prefix+set}" = set; then
10814 withval
="$with_libiconv_prefix"
10816 for dir
in `echo "$withval" | tr : ' '`; do
10817 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10818 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10824 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10825 echo "configure:10826: checking for iconv" >&5
10826 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10830 am_cv_func_iconv
="no, consider installing GNU libiconv"
10832 cat > conftest.
$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 #include <stdlib.h>
10838 iconv_t cd = iconv_open("","");
10839 iconv(cd,NULL,NULL,NULL,NULL);
10843 if { (eval echo configure
:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10845 am_cv_func_iconv
=yes
10847 echo "configure: failed program was:" >&5
10848 cat conftest.
$ac_ext >&5
10851 if test "$am_cv_func_iconv" != yes; then
10852 am_save_LIBS
="$LIBS"
10853 LIBS
="$LIBS -liconv"
10854 cat > conftest.
$ac_ext <<EOF
10855 #line 10856 "configure"
10856 #include "confdefs.h"
10857 #include <stdlib.h>
10860 iconv_t cd = iconv_open("","");
10861 iconv(cd,NULL,NULL,NULL,NULL);
10865 if { (eval echo configure
:10866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10867 am_cv_lib_iconv
=yes
10868 am_cv_func_iconv
=yes
10870 echo "configure: failed program was:" >&5
10871 cat conftest.
$ac_ext >&5
10874 LIBS
="$am_save_LIBS"
10879 echo "$ac_t""$am_cv_func_iconv" 1>&6
10880 if test "$am_cv_func_iconv" = yes; then
10881 cat >> confdefs.h
<<\EOF
10882 #define HAVE_ICONV 1
10885 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10886 echo "configure:10887: checking for iconv declaration" >&5
10887 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10888 echo $ac_n "(cached) $ac_c" 1>&6
10891 cat > conftest.
$ac_ext <<EOF
10892 #line 10893 "configure"
10893 #include "confdefs.h"
10895 #include <stdlib.h>
10901 #if defined(__STDC__) || defined(__cplusplus)
10902 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10911 if { (eval echo configure
:10912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10913 am_cv_proto_iconv_arg1
=""
10915 echo "configure: failed program was:" >&5
10916 cat conftest.
$ac_ext >&5
10918 am_cv_proto_iconv_arg1
="const"
10921 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);"
10924 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10925 echo "$ac_t""${ac_t:-
10926 }$am_cv_proto_iconv" 1>&6
10927 cat >> confdefs.h
<<EOF
10928 #define ICONV_CONST $am_cv_proto_iconv_arg1
10933 if test "$am_cv_lib_iconv" = yes; then
10940 cat > confcache
<<\EOF
10941 # This file is a shell script that caches the results of configure
10942 # tests run on this system so they can be shared between configure
10943 # scripts and configure runs. It is not useful on other systems.
10944 # If it contains results you don't want to keep, you may remove or edit it.
10946 # By default, configure uses ./config.cache as the cache file,
10947 # creating it if it does not exist already. You can give configure
10948 # the --cache-file=FILE option to use a different cache file; that is
10949 # what configure does when it calls configure scripts in
10950 # subdirectories, so they share the cache.
10951 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10952 # config.status only pays attention to the cache file if you give it the
10953 # --recheck option to rerun configure.
10956 # The following way of writing the cache mishandles newlines in values,
10957 # but we know of no workaround that is simple, portable, and efficient.
10958 # So, don't put newlines in cache variables' values.
10959 # Ultrix sh set writes to stderr and can't be redirected directly,
10960 # and sets the high bit in the cache file unless we assign to the vars.
10962 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10964 # `set' does not quote correctly, so add quotes (double-quote substitution
10965 # turns \\\\ into \\, and sed turns \\ into \).
10967 -e "s/'/'\\\\''/g" \
10968 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10971 # `set' quotes correctly as required by POSIX, so do not add quotes.
10972 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10975 if cmp -s $cache_file confcache
; then
10978 if test -w $cache_file; then
10979 echo "updating cache $cache_file"
10980 cat confcache
> $cache_file
10982 echo "not updating unwritable cache $cache_file"
10987 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10989 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10990 # Let make expand exec_prefix.
10991 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10993 # Any assignment to VPATH causes Sun make to only execute
10994 # the first set of double-colon rules, so remove it if not needed.
10995 # If there is a colon in the path, we need to keep it.
10996 if test "x$srcdir" = x.
; then
10997 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11000 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11002 DEFS
=-DHAVE_CONFIG_H
11004 # Without the "./", some shells look in PATH for config.status.
11005 : ${CONFIG_STATUS=./config.status}
11007 echo creating
$CONFIG_STATUS
11008 rm -f $CONFIG_STATUS
11009 cat > $CONFIG_STATUS <<EOF
11011 # Generated automatically by configure.
11012 # Run this file to recreate the current configuration.
11013 # This directory was configured as follows,
11014 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11016 # $0 $ac_configure_args
11018 # Compiler output produced by configure, useful for debugging
11019 # configure, is in ./config.log if it exists.
11021 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11024 case "\$ac_option" in
11025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11026 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11027 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11028 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11029 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11031 -help | --help | --hel | --he | --h)
11032 echo "\$ac_cs_usage"; exit 0 ;;
11033 *) echo "\$ac_cs_usage"; exit 1 ;;
11037 ac_given_srcdir=$srcdir
11038 ac_given_INSTALL="$INSTALL"
11040 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11042 cat >> $CONFIG_STATUS <<EOF
11044 # Protect against being on the right side of a sed subst in config.status.
11045 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11046 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11050 s%@CFLAGS@%$CFLAGS%g
11051 s%@CPPFLAGS@%$CPPFLAGS%g
11052 s%@CXXFLAGS@%$CXXFLAGS%g
11053 s%@FFLAGS@%$FFLAGS%g
11055 s%@LDFLAGS@%$LDFLAGS%g
11057 s%@exec_prefix@%$exec_prefix%g
11058 s%@prefix@%$prefix%g
11059 s%@program_transform_name@%$program_transform_name%g
11060 s%@bindir@%$bindir%g
11061 s%@sbindir@%$sbindir%g
11062 s%@libexecdir@%$libexecdir%g
11063 s%@datadir@%$datadir%g
11064 s%@sysconfdir@%$sysconfdir%g
11065 s%@sharedstatedir@%$sharedstatedir%g
11066 s%@localstatedir@%$localstatedir%g
11067 s%@libdir@%$libdir%g
11068 s%@includedir@%$includedir%g
11069 s%@oldincludedir@%$oldincludedir%g
11070 s%@infodir@%$infodir%g
11071 s%@mandir@%$mandir%g
11072 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
11073 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
11078 s%@host_alias@%$host_alias%g
11079 s%@host_cpu@%$host_cpu%g
11080 s%@host_vendor@%$host_vendor%g
11081 s%@host_os@%$host_os%g
11082 s%@target@%$target%g
11083 s%@target_alias@%$target_alias%g
11084 s%@target_cpu@%$target_cpu%g
11085 s%@target_vendor@%$target_vendor%g
11086 s%@target_os@%$target_os%g
11088 s%@build_alias@%$build_alias%g
11089 s%@build_cpu@%$build_cpu%g
11090 s%@build_vendor@%$build_vendor%g
11091 s%@build_os@%$build_os%g
11092 s%@RANLIB@%$RANLIB%g
11093 s%@SET_MAKE@%$SET_MAKE%g
11094 s%@ALLOCA@%$ALLOCA%g
11095 s%@USE_NLS@%$USE_NLS%g
11096 s%@MSGFMT@%$MSGFMT%g
11097 s%@GMSGFMT@%$GMSGFMT%g
11098 s%@XGETTEXT@%$XGETTEXT%g
11099 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
11100 s%@CATALOGS@%$CATALOGS%g
11101 s%@CATOBJEXT@%$CATOBJEXT%g
11102 s%@DATADIRNAME@%$DATADIRNAME%g
11103 s%@GMOFILES@%$GMOFILES%g
11104 s%@INSTOBJEXT@%$INSTOBJEXT%g
11105 s%@INTLDEPS@%$INTLDEPS%g
11106 s%@INTLLIBS@%$INTLLIBS%g
11107 s%@INTLOBJS@%$INTLOBJS%g
11108 s%@POFILES@%$POFILES%g
11110 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11112 s%@GT_YES@%$GT_YES%g
11113 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11115 s%@subdirs@%$subdirs%g
11117 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11118 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11119 s%@INSTALL_DATA@%$INSTALL_DATA%g
11123 s%@DLLTOOL@%$DLLTOOL%g
11124 s%@WINDRES@%$WINDRES%g
11126 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11127 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11128 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11129 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11130 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11131 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11132 s%@WIN32LIBS@%$WIN32LIBS%g
11133 s%@LIBGUI@%$LIBGUI%g
11134 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11135 s%@WIN32LDAPP@%$WIN32LDAPP%g
11136 s%@TCL_VERSION@%$TCL_VERSION%g
11137 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11138 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11139 s%@TCL_CC@%$TCL_CC%g
11140 s%@TCL_DEFS@%$TCL_DEFS%g
11141 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11142 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11143 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11144 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11145 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11146 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11147 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11148 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11149 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11150 s%@TCL_RANLIB@%$TCL_RANLIB%g
11151 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11152 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11153 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11154 s%@TK_VERSION@%$TK_VERSION%g
11155 s%@TK_DEFS@%$TK_DEFS%g
11156 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11157 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11158 s%@TK_XLIBSW@%$TK_XLIBSW%g
11159 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11160 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11161 s%@TCLHDIR@%$TCLHDIR%g
11162 s%@TKHDIR@%$TKHDIR%g
11163 s%@ITCLHDIR@%$ITCLHDIR%g
11164 s%@ITKHDIR@%$ITKHDIR%g
11165 s%@ITCL_VERSION@%$ITCL_VERSION%g
11166 s%@ITCL_DEFS@%$ITCL_DEFS%g
11167 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11168 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11169 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11170 s%@ITK_VERSION@%$ITK_VERSION%g
11171 s%@ITK_DEFS@%$ITK_DEFS%g
11172 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11173 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11174 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11175 s%@X_CFLAGS@%$X_CFLAGS%g
11176 s%@X_LDFLAGS@%$X_LDFLAGS%g
11177 s%@X_LIBS@%$X_LIBS%g
11178 s%@TCL_DEPS@%$TCL_DEPS%g
11179 s%@TK_DEPS@%$TK_DEPS%g
11180 s%@ITCLLIB@%$ITCLLIB%g
11181 s%@ITCL_DEPS@%$ITCL_DEPS%g
11182 s%@ITKLIB@%$ITKLIB%g
11183 s%@ITK_DEPS@%$ITK_DEPS%g
11184 s%@GDBTKLIBS@%$GDBTKLIBS%g
11185 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11186 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11187 s%@IGNORE_SIM@%$IGNORE_SIM%g
11188 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11189 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11190 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11191 s%@CONFIG_OBS@%$CONFIG_OBS%g
11192 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11193 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11194 s%@CONFIG_ALL@%$CONFIG_ALL%g
11195 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11196 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11197 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11198 s%@target_subdir@%$target_subdir%g
11199 /@host_makefile_frag@/r $host_makefile_frag
11200 s%@host_makefile_frag@%%g
11201 /@target_makefile_frag@/r $target_makefile_frag
11202 s%@target_makefile_frag@%%g
11207 s%@EXEEXT@%$EXEEXT%g
11208 s%@LIBICONV@%$LIBICONV%g
11213 cat >> $CONFIG_STATUS <<\EOF
11215 # Split the substitutions into bite-sized pieces for seds with
11216 # small command number limits, like on Digital OSF/1 and HP-UX.
11217 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11218 ac_file
=1 # Number of current file.
11219 ac_beg
=1 # First line for current file.
11220 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11223 while $ac_more_lines; do
11224 if test $ac_beg -gt 1; then
11225 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11227 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11229 if test ! -s conftest.s
$ac_file; then
11230 ac_more_lines
=false
11231 rm -f conftest.s
$ac_file
11233 if test -z "$ac_sed_cmds"; then
11234 ac_sed_cmds
="sed -f conftest.s$ac_file"
11236 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11238 ac_file
=`expr $ac_file + 1`
11240 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11243 if test -z "$ac_sed_cmds"; then
11248 cat >> $CONFIG_STATUS <<EOF
11250 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11252 cat >> $CONFIG_STATUS <<\EOF
11253 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11256 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11257 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11258 *) ac_file_in
="${ac_file}.in" ;;
11261 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11263 # Remove last slash and all that follows it. Not all systems have dirname.
11264 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11265 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11266 # The file is in a subdirectory.
11267 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11268 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11269 # A "../" for each directory in $ac_dir_suffix.
11270 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11272 ac_dir_suffix
= ac_dots
=
11275 case "$ac_given_srcdir" in
11277 if test -z "$ac_dots"; then top_srcdir
=.
11278 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11279 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11280 *) # Relative path.
11281 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11282 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11285 case "$ac_given_INSTALL" in
11286 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11287 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11290 echo creating
"$ac_file"
11292 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11294 *Makefile
*) ac_comsub
="1i\\
11295 # $configure_input" ;;
11299 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11301 s%@configure_input@%$configure_input%g
11302 s%@srcdir@%$srcdir%g
11303 s%@top_srcdir@%$top_srcdir%g
11304 s%@INSTALL@%$INSTALL%g
11305 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11309 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11310 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11312 # ac_d sets the value in "#define NAME VALUE" lines.
11313 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11314 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11317 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11318 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11319 ac_uB
='\([ ]\)%\1#\2define\3'
11322 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11323 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11324 ac_eB
='$%\1#\2define\3'
11328 if test "${CONFIG_HEADERS+set}" != set; then
11330 cat >> $CONFIG_STATUS <<EOF
11331 CONFIG_HEADERS="config.h:config.in"
11333 cat >> $CONFIG_STATUS <<\EOF
11335 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11338 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11339 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11340 *) ac_file_in
="${ac_file}.in" ;;
11343 echo creating
$ac_file
11345 rm -f conftest.frag conftest.
in conftest.out
11346 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11347 cat $ac_file_inputs > conftest.
in
11351 # Transform confdefs.h into a sed script conftest.vals that substitutes
11352 # the proper values into config.h.in to produce config.h. And first:
11353 # Protect against being on the right side of a sed subst in config.status.
11354 # Protect against being in an unquoted here document in config.status.
11355 rm -f conftest.vals
11356 cat > conftest.hdr
<<\EOF
11359 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11363 sed -n -f conftest.hdr confdefs.h > conftest.vals
11366 # This sed command replaces #undef with comments. This is necessary, for
11367 # example, in the case of _POSIX_SOURCE, which is predefined and required
11368 # on some systems where configure will not decide to define it.
11369 cat >> conftest.vals <<\EOF
11370 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11373 # Break up conftest.vals because some shells have a limit on
11374 # the size of here documents, and old seds have small limits too.
11376 rm -f conftest.tail
11379 ac_lines=`grep -c . conftest.vals
`
11380 # grep -c gives empty output for an empty file on some AIX systems.
11381 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11382 # Write a limited-size here document to conftest.frag.
11383 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11384 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11386 sed -f conftest.frag conftest.in > conftest.out
11388 mv conftest.out conftest.in
11389 ' >> $CONFIG_STATUS
11390 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11391 rm -f conftest.vals
11392 mv conftest.tail conftest.vals
11394 rm -f conftest.vals
11396 cat >> $CONFIG_STATUS <<\EOF
11397 rm -f conftest.frag conftest.h
11398 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11399 cat conftest.in >> conftest.h
11401 if cmp -s $ac_file conftest.h 2>/dev/null; then
11402 echo "$ac_file is unchanged"
11405 # Remove last slash and all that follows it. Not all systems have dirname.
11406 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11407 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11408 # The file is in a subdirectory.
11409 test ! -d "$ac_dir" && mkdir "$ac_dir"
11412 mv conftest.h $ac_file
11418 cat >> $CONFIG_STATUS <<EOF
11419 ac_sources="$files"
11423 cat >> $CONFIG_STATUS <<\EOF
11424 srcdir=$ac_given_srcdir
11425 while test -n "$ac_sources"; do
11426 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11427 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11429 echo "linking $srcdir/$ac_source to $ac_dest"
11431 if test ! -r $srcdir/$ac_source; then
11432 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11436 # Make relative symlinks.
11437 # Remove last slash and all that follows it. Not all systems have dirname.
11438 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
11439 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11440 # The dest file is in a subdirectory.
11441 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11442 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
11443 # A "../" for each directory in $ac_dest_dir_suffix.
11444 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
11446 ac_dest_dir_suffix= ac_dots=
11450 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11451 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11454 # Make a symlink if possible; otherwise try a hard link.
11455 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11456 ln $srcdir/$ac_source $ac_dest; then :
11458 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11462 cat >> $CONFIG_STATUS <<EOF
11464 gdb_host_cpu=$gdb_host_cpu
11465 gdb_target_cpu=$gdb_target_cpu
11466 nativefile=$nativefile
11469 cat >> $CONFIG_STATUS <<\EOF
11471 if test "${nativefile}" = ""; then
11473 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11474 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11475 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11477 mv -f Makefile.tem Makefile
11480 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11481 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11482 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11483 mv -f Makefile.tmp Makefile
11486 case x$CONFIG_HEADERS in
11487 xconfig.h:config.in)
11493 chmod +x $CONFIG_STATUS
11494 rm -fr confdefs* $ac_clean_files
11495 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11497 if test "$no_recursion" != yes; then
11499 # Remove --cache-file and --srcdir arguments so they do not pile up.
11500 ac_sub_configure_args=
11502 for ac_arg in $ac_configure_args; do
11503 if test -n "$ac_prev"; then
11508 -cache-file | --cache-file | --cache-fil | --cache-fi \
11509 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11510 ac_prev=cache_file ;;
11511 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11512 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11514 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11516 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11518 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11522 for ac_config_dir in doc testsuite $configdirs; do
11524 # Do not complain, so a configure script can configure whichever
11525 # parts of a large source tree are present.
11526 if test ! -d $srcdir/$ac_config_dir; then
11530 echo configuring in $ac_config_dir
11535 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11537 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11545 # A "../" for each directory in /$ac_config_dir.
11546 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11549 .) # No --srcdir option. We are building in place.
11550 ac_sub_srcdir=$srcdir ;;
11551 /*) # Absolute path.
11552 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11553 *) # Relative path.
11554 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11557 # Check for guested configure; otherwise get Cygnus style configure.
11558 if test -f $ac_sub_srcdir/configure; then
11559 ac_sub_configure=$ac_sub_srcdir/configure
11560 elif test -f $ac_sub_srcdir/configure.in; then
11561 ac_sub_configure=$ac_configure
11563 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11567 # The recursion is here.
11568 if test -n "$ac_sub_configure"; then
11570 # Make the cache file name correct relative to the subdirectory.
11571 case "$cache_file" in
11572 /*) ac_sub_cache_file=$cache_file ;;
11573 *) # Relative path.
11574 ac_sub_cache_file="$ac_dots$cache_file" ;;
11576 case "$ac_given_INSTALL" in
11577 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11578 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11581 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11582 # The eval makes quoting arguments work.
11583 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11586 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }