3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --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 --without-included-regex don't use included regex; this is the default
31 on systems with version 2 of the GNU C library
32 (use with caution on other system)"
34 --with-uiout Use new uiout functions instead of *printf's"
36 --enable-netrom Enable NetROM support"
38 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
40 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
42 --with-mmalloc Use memory mapped malloc package"
44 --with-cpu=CPU Set the default CPU variant to debug"
46 --enable-gdbtk Enable GDBTK GUI front end"
48 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
50 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
52 --with-tclinclude=DIR Directory where tcl private headers are"
54 --with-tkinclude=DIR Directory where tk private headers are"
56 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
58 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
60 --with-x use the X Window System"
62 --enable-sim Link gdb with simulator"
64 --enable-shared Use shared libraries"
66 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file
=.
/config.cache
81 program_transform_name
=s
,x
,x
,
90 bindir
='${exec_prefix}/bin'
91 sbindir
='${exec_prefix}/sbin'
92 libexecdir
='${exec_prefix}/libexec'
93 datadir
='${prefix}/share'
94 sysconfdir
='${prefix}/etc'
95 sharedstatedir
='${prefix}/com'
96 localstatedir
='${prefix}/var'
97 libdir
='${exec_prefix}/lib'
98 includedir
='${prefix}/include'
99 oldincludedir
='/usr/include'
100 infodir
='${prefix}/info'
101 mandir
='${prefix}/man'
103 # Initialize some other variables.
106 SHELL
=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
132 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
133 bindir
="$ac_optarg" ;;
135 -build |
--build |
--buil |
--bui |
--bu)
137 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
138 build
="$ac_optarg" ;;
140 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
141 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
142 ac_prev
=cache_file
;;
143 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
144 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
145 cache_file
="$ac_optarg" ;;
147 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
149 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
151 datadir
="$ac_optarg" ;;
153 -disable-* |
--disable-*)
154 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* |
--enable-*)
163 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
176 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
177 |
--exec |
--exe |
--ex)
178 ac_prev
=exec_prefix
;;
179 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
180 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
181 |
--exec=* |
--exe=* |
--ex=*)
182 exec_prefix
="$ac_optarg" ;;
184 -gas |
--gas |
--ga |
--g)
185 # Obsolete; use --with-gas.
188 -help |
--help |
--hel |
--he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --site-file=FILE use FILE as the site file
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
244 -host |
--host |
--hos |
--ho)
246 -host=* |
--host=* |
--hos=* |
--ho=*)
249 -includedir |
--includedir |
--includedi |
--included |
--include \
250 |
--includ |
--inclu |
--incl |
--inc)
251 ac_prev
=includedir
;;
252 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
253 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
254 includedir
="$ac_optarg" ;;
256 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
258 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
259 infodir
="$ac_optarg" ;;
261 -libdir |
--libdir |
--libdi |
--libd)
263 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
264 libdir
="$ac_optarg" ;;
266 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
267 |
--libexe |
--libex |
--libe)
268 ac_prev
=libexecdir
;;
269 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
270 |
--libexe=* |
--libex=* |
--libe=*)
271 libexecdir
="$ac_optarg" ;;
273 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
274 |
--localstate |
--localstat |
--localsta |
--localst \
275 |
--locals |
--local |
--loca |
--loc |
--lo)
276 ac_prev
=localstatedir
;;
277 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
278 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
279 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
280 localstatedir
="$ac_optarg" ;;
282 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
284 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
285 mandir
="$ac_optarg" ;;
288 # Obsolete; use --without-fp.
291 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
295 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
296 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
299 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
300 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
301 |
--oldin |
--oldi |
--old |
--ol |
--o)
302 ac_prev
=oldincludedir
;;
303 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
304 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
305 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
306 oldincludedir
="$ac_optarg" ;;
308 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
310 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
311 prefix
="$ac_optarg" ;;
313 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
314 |
--program-pre |
--program-pr |
--program-p)
315 ac_prev
=program_prefix
;;
316 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
317 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
318 program_prefix
="$ac_optarg" ;;
320 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
321 |
--program-suf |
--program-su |
--program-s)
322 ac_prev
=program_suffix
;;
323 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
324 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
325 program_suffix
="$ac_optarg" ;;
327 -program-transform-name |
--program-transform-name \
328 |
--program-transform-nam |
--program-transform-na \
329 |
--program-transform-n |
--program-transform- \
330 |
--program-transform |
--program-transfor \
331 |
--program-transfo |
--program-transf \
332 |
--program-trans |
--program-tran \
333 |
--progr-tra |
--program-tr |
--program-t)
334 ac_prev
=program_transform_name
;;
335 -program-transform-name=* |
--program-transform-name=* \
336 |
--program-transform-nam=* |
--program-transform-na=* \
337 |
--program-transform-n=* |
--program-transform-=* \
338 |
--program-transform=* |
--program-transfor=* \
339 |
--program-transfo=* |
--program-transf=* \
340 |
--program-trans=* |
--program-tran=* \
341 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
342 program_transform_name
="$ac_optarg" ;;
344 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
345 |
-silent |
--silent |
--silen |
--sile |
--sil)
348 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
350 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
352 sbindir
="$ac_optarg" ;;
354 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
355 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
356 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
358 ac_prev
=sharedstatedir
;;
359 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
360 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
361 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
363 sharedstatedir
="$ac_optarg" ;;
365 -site |
--site |
--sit)
367 -site=* |
--site=* |
--sit=*)
370 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
372 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
373 sitefile
="$ac_optarg" ;;
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=main.c
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$sitefile"; then
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE
; then
543 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 CONFIG_SITE
="$sitefile"
551 for ac_site_file
in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp
='$CPP $CPPFLAGS'
569 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling
=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
584 ac_n
= ac_c
='\c' ac_t
=
589 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
590 echo "configure:591: checking whether to enable maintainer-specific portions of Makefiles" >&5
591 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
592 if test "${enable_maintainer_mode+set}" = set; then
593 enableval
="$enable_maintainer_mode"
594 USE_MAINTAINER_MODE
=$enableval
596 USE_MAINTAINER_MODE
=no
599 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
602 if test $USE_MAINTAINER_MODE = yes; then
603 MAINTAINER_MODE_TRUE
=
604 MAINTAINER_MODE_FALSE
='#'
606 MAINTAINER_MODE_TRUE
='#'
607 MAINTAINER_MODE_FALSE
=
609 MAINT
=$MAINTAINER_MODE_TRUE
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc
; ac_word
=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC
="$CC" # Let the user override the test.
623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
625 for ac_dir
in $ac_dummy; do
626 test -z "$ac_dir" && ac_dir
=.
627 if test -f $ac_dir/$ac_word; then
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
643 # Extract the first word of "cc", so it can be a program name with args.
644 set dummy cc
; ac_word
=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
656 for ac_dir
in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir
=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy
$ac_cv_prog_CC
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
677 set dummy
"$ac_dir/$ac_word" "$@"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
694 # Extract the first word of "cl", so it can be a program name with args.
695 set dummy cl
; ac_word
=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC
="$CC" # Let the user override the test.
704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp
='$CPP $CPPFLAGS'
734 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling
=$ac_cv_prog_cc_cross
738 cat > conftest.
$ac_ext << EOF
740 #line 741 "configure"
741 #include "confdefs.h"
745 if { (eval echo configure
:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
746 ac_cv_prog_cc_works
=yes
747 # If we can't run a trivial program, we are probably using a cross compiler.
748 if (.
/conftest
; exit) 2>/dev
/null
; then
749 ac_cv_prog_cc_cross
=no
751 ac_cv_prog_cc_cross
=yes
754 echo "configure: failed program was:" >&5
755 cat conftest.
$ac_ext >&5
756 ac_cv_prog_cc_works
=no
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp
='$CPP $CPPFLAGS'
762 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling
=$ac_cv_prog_cc_cross
766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
767 if test $ac_cv_prog_cc_works = no
; then
768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773 cross_compiling
=$ac_cv_prog_cc_cross
775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
776 echo "configure:777: checking whether we are using GNU C" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftest.c
<<EOF
785 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794 if test $ac_cv_prog_gcc = yes; then
800 ac_test_CFLAGS
="${CFLAGS+set}"
801 ac_save_CFLAGS
="$CFLAGS"
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS
="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
822 if test "$GCC" = yes; then
828 if test "$GCC" = yes; then
835 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
836 echo "configure:837: checking how to run the C preprocessor" >&5
837 # On Suns, sometimes $CPP names a directory.
838 if test -n "$CPP" && test -d "$CPP"; then
841 if test -z "$CPP"; then
842 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 # This must be in double quotes, not single quotes, because CPP may get
846 # substituted into the Makefile and "${CC-cc}" will confuse make.
848 # On the NeXT, cc -E runs the code through the compiler's parser,
849 # not just through cpp.
850 cat > conftest.
$ac_ext <<EOF
851 #line 852 "configure"
852 #include "confdefs.h"
856 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
857 { (eval echo configure
:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
858 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
859 if test -z "$ac_err"; then
863 echo "configure: failed program was:" >&5
864 cat conftest.
$ac_ext >&5
866 CPP
="${CC-cc} -E -traditional-cpp"
867 cat > conftest.
$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
873 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
874 { (eval echo configure
:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
875 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
876 if test -z "$ac_err"; then
880 echo "configure: failed program was:" >&5
881 cat conftest.
$ac_ext >&5
883 CPP
="${CC-cc} -nologo -E"
884 cat > conftest.
$ac_ext <<EOF
885 #line 886 "configure"
886 #include "confdefs.h"
890 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
891 { (eval echo configure
:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
892 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
893 if test -z "$ac_err"; then
897 echo "configure: failed program was:" >&5
898 cat conftest.
$ac_ext >&5
907 ac_cv_prog_CPP
="$CPP"
909 CPP
="$ac_cv_prog_CPP"
911 ac_cv_prog_CPP
="$CPP"
913 echo "$ac_t""$CPP" 1>&6
915 echo $ac_n "checking for AIX""... $ac_c" 1>&6
916 echo "configure:917: checking for AIX" >&5
917 cat > conftest.
$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
926 egrep "yes" >/dev
/null
2>&1; then
928 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
929 #define _ALL_SOURCE 1
934 echo "$ac_t""no" 1>&6
939 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
940 echo "configure:941: checking for POSIXized ISC" >&5
941 if test -d /etc
/conf
/kconfig.d
&&
942 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
944 echo "$ac_t""yes" 1>&6
945 ISC
=yes # If later tests want to check for ISC.
946 cat >> confdefs.h
<<\EOF
947 #define _POSIX_SOURCE 1
950 if test "$GCC" = yes; then
956 echo "$ac_t""no" 1>&6
963 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
964 echo "configure:965: checking for ${CC-cc} option to accept ANSI C" >&5
965 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 am_cv_prog_cc_stdc
=no
970 # Don't try gcc -ansi; that turns off useful extensions and
971 # breaks some systems' header files.
973 # Ultrix and OSF/1 -std1
974 # HP-UX 10.20 and later -Ae
975 # HP-UX older versions -Aa -D_HPUX_SOURCE
976 # SVR4 -Xc -D__EXTENSIONS__
977 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
979 CC
="$ac_save_CC $ac_arg"
980 cat > conftest.
$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
985 #include <sys/types.h>
986 #include <sys/stat.h>
987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
988 struct buf { int x; };
989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
990 static char *e (p, i)
996 static char *f (char * (*g) (char **, int), char **p, ...)
1001 s = g (p, va_arg (v,int));
1005 int test (int i, double x);
1006 struct s1 {int (*f) (int a);};
1007 struct s2 {int (*f) (double a);};
1008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1018 if { (eval echo configure
:1019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1020 am_cv_prog_cc_stdc
="$ac_arg"; break
1022 echo "configure: failed program was:" >&5
1023 cat conftest.
$ac_ext >&5
1031 if test -z "$am_cv_prog_cc_stdc"; then
1032 echo "$ac_t""none needed" 1>&6
1034 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1036 case "x$am_cv_prog_cc_stdc" in
1038 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1043 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1044 if test -f $ac_dir/install-sh
; then
1046 ac_install_sh
="$ac_aux_dir/install-sh -c"
1048 elif test -f $ac_dir/install.sh
; then
1050 ac_install_sh
="$ac_aux_dir/install.sh -c"
1054 if test -z "$ac_aux_dir"; then
1055 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1057 ac_config_guess
=$ac_aux_dir/config.guess
1058 ac_config_sub
=$ac_aux_dir/config.sub
1059 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1062 # Do some error checking and defaulting for the host and target type.
1064 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1067 # 1. You are not allowed to specify --host, --target, and nonopt at the
1069 # 2. Host defaults to nonopt.
1070 # 3. If nonopt is not specified, then host defaults to the current host,
1071 # as determined by config.guess.
1072 # 4. Target and build default to nonopt.
1073 # 5. If nonopt is not specified, then target and build default to host.
1075 # The aliases save the names the user supplied, while $host etc.
1076 # will get canonicalized.
1077 case $host---$target---$nonopt in
1078 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1079 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1083 # Make sure we can run config.sub.
1084 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1085 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1088 echo $ac_n "checking host system type""... $ac_c" 1>&6
1089 echo "configure:1090: checking host system type" >&5
1092 case "$host_alias" in
1096 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1097 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1099 *) host_alias
=$nonopt ;;
1103 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1104 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1105 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1106 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1107 echo "$ac_t""$host" 1>&6
1109 echo $ac_n "checking target system type""... $ac_c" 1>&6
1110 echo "configure:1111: checking target system type" >&5
1112 target_alias
=$target
1113 case "$target_alias" in
1116 NONE
) target_alias
=$host_alias ;;
1117 *) target_alias
=$nonopt ;;
1121 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1122 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1123 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1124 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1125 echo "$ac_t""$target" 1>&6
1127 echo $ac_n "checking build system type""... $ac_c" 1>&6
1128 echo "configure:1129: checking build system type" >&5
1131 case "$build_alias" in
1134 NONE
) build_alias
=$host_alias ;;
1135 *) build_alias
=$nonopt ;;
1139 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1140 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1141 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1142 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1143 echo "$ac_t""$build" 1>&6
1145 test "$host_alias" != "$target_alias" &&
1146 test "$program_prefix$program_suffix$program_transform_name" = \
1148 program_prefix
=${target_alias}-
1151 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1152 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1153 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1154 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1155 # AC_PROG_RANLIB. This can be removed when we switch to # Autoconf
1157 if test $host != $build; then
1158 ac_tool_prefix
=${host_alias}-
1163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1164 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -n "$RANLIB"; then
1171 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1175 for ac_dir
in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir
=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1185 RANLIB
="$ac_cv_prog_RANLIB"
1186 if test -n "$RANLIB"; then
1187 echo "$ac_t""$RANLIB" 1>&6
1189 echo "$ac_t""no" 1>&6
1193 if test -z "$ac_cv_prog_RANLIB"; then
1194 if test -n "$ac_tool_prefix"; then
1195 # Extract the first word of "ranlib", so it can be a program name with args.
1196 set dummy ranlib
; ac_word
=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 if test -n "$RANLIB"; then
1203 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1205 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1207 for ac_dir
in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir
=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_RANLIB
="ranlib"
1215 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1218 RANLIB
="$ac_cv_prog_RANLIB"
1219 if test -n "$RANLIB"; then
1220 echo "$ac_t""$RANLIB" 1>&6
1222 echo "$ac_t""no" 1>&6
1232 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether ${MAKE-make} sets \${MAKE}" >&5
1234 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1235 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftestmake
<<\EOF
1240 @
echo 'ac_maketemp="${MAKE}"'
1242 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1243 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1244 if test -n "$ac_maketemp"; then
1245 eval ac_cv_prog_make_
${ac_make}_set
=yes
1247 eval ac_cv_prog_make_
${ac_make}_set
=no
1251 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1252 echo "$ac_t""yes" 1>&6
1255 echo "$ac_t""no" 1>&6
1256 SET_MAKE
="MAKE=${MAKE-make}"
1259 # Extract the first word of "ranlib", so it can be a program name with args.
1260 set dummy ranlib
; ac_word
=$2
1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 if test -n "$RANLIB"; then
1267 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1271 for ac_dir
in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir
=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_prog_RANLIB
="ranlib"
1279 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1282 RANLIB
="$ac_cv_prog_RANLIB"
1283 if test -n "$RANLIB"; then
1284 echo "$ac_t""$RANLIB" 1>&6
1286 echo "$ac_t""no" 1>&6
1289 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1290 echo "configure:1291: checking for ANSI C header files" >&5
1291 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 cat > conftest.
$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1302 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1303 { (eval echo configure
:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1304 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1305 if test -z "$ac_err"; then
1307 ac_cv_header_stdc
=yes
1310 echo "configure: failed program was:" >&5
1311 cat conftest.
$ac_ext >&5
1313 ac_cv_header_stdc
=no
1317 if test $ac_cv_header_stdc = yes; then
1318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1319 cat > conftest.
$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1325 egrep "memchr" >/dev
/null
2>&1; then
1329 ac_cv_header_stdc
=no
1335 if test $ac_cv_header_stdc = yes; then
1336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1337 cat > conftest.
$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1343 egrep "free" >/dev
/null
2>&1; then
1347 ac_cv_header_stdc
=no
1353 if test $ac_cv_header_stdc = yes; then
1354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1355 if test "$cross_compiling" = yes; then
1358 cat > conftest.
$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1362 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1363 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1365 int main () { int i; for (i = 0; i < 256; i++)
1366 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1370 if { (eval echo configure
:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1374 echo "configure: failed program was:" >&5
1375 cat conftest.
$ac_ext >&5
1377 ac_cv_header_stdc
=no
1385 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1386 if test $ac_cv_header_stdc = yes; then
1387 cat >> confdefs.h
<<\EOF
1388 #define STDC_HEADERS 1
1393 echo $ac_n "checking for working const""... $ac_c" 1>&6
1394 echo "configure:1395: checking for working const" >&5
1395 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 cat > conftest.
$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1404 /* Ultrix mips cc rejects this. */
1405 typedef int charset[2]; const charset x;
1406 /* SunOS 4.1.1 cc rejects this. */
1407 char const *const *ccp;
1409 /* NEC SVR4.0.2 mips cc rejects this. */
1410 struct point {int x, y;};
1411 static struct point const zero = {0,0};
1412 /* AIX XL C 1.02.0.0 rejects this.
1413 It does not let you subtract one const X* pointer from another in an arm
1414 of an if-expression whose if-part is not a constant expression */
1415 const char *g = "string";
1416 ccp = &g + (g ? g-g : 0);
1417 /* HPUX 7.0 cc rejects these. */
1420 ccp = (char const *const *) p;
1421 { /* SCO 3.2v4 cc rejects this. */
1423 char const *s = 0 ? (char *) 0 : (char const *) 0;
1427 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1429 const int *foo = &x[0];
1432 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1433 typedef const int *iptr;
1437 { /* AIX XL C 1.02.0.0 rejects this saying
1438 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1439 struct s { int j; const int *ap[3]; };
1440 struct s *b; b->j = 5;
1442 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1448 if { (eval echo configure
:1449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1452 echo "configure: failed program was:" >&5
1453 cat conftest.
$ac_ext >&5
1460 echo "$ac_t""$ac_cv_c_const" 1>&6
1461 if test $ac_cv_c_const = no
; then
1462 cat >> confdefs.h
<<\EOF
1468 echo $ac_n "checking for inline""... $ac_c" 1>&6
1469 echo "configure:1470: checking for inline" >&5
1470 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1474 for ac_kw
in inline __inline__ __inline
; do
1475 cat > conftest.
$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1483 if { (eval echo configure
:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1485 ac_cv_c_inline
=$ac_kw; break
1487 echo "configure: failed program was:" >&5
1488 cat conftest.
$ac_ext >&5
1495 echo "$ac_t""$ac_cv_c_inline" 1>&6
1496 case "$ac_cv_c_inline" in
1498 no
) cat >> confdefs.h
<<\EOF
1502 *) cat >> confdefs.h
<<EOF
1503 #define inline $ac_cv_c_inline
1508 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1509 echo "configure:1510: checking for off_t" >&5
1510 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 cat > conftest.
$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 #include <sys/types.h>
1522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1523 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1525 ac_cv_type_off_t
=yes
1533 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1534 if test $ac_cv_type_off_t = no
; then
1535 cat >> confdefs.h
<<\EOF
1541 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1542 echo "configure:1543: checking for size_t" >&5
1543 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 cat > conftest.
$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1549 #include <sys/types.h>
1555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1556 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1558 ac_cv_type_size_t
=yes
1561 ac_cv_type_size_t
=no
1566 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1567 if test $ac_cv_type_size_t = no
; then
1568 cat >> confdefs.h
<<\EOF
1569 #define size_t unsigned
1574 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1575 # for constant arguments. Useless!
1576 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1577 echo "configure:1578: checking for working alloca.h" >&5
1578 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 cat > conftest.
$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1586 char *p = alloca(2 * sizeof(int));
1589 if { (eval echo configure
:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1591 ac_cv_header_alloca_h
=yes
1593 echo "configure: failed program was:" >&5
1594 cat conftest.
$ac_ext >&5
1596 ac_cv_header_alloca_h
=no
1601 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1602 if test $ac_cv_header_alloca_h = yes; then
1603 cat >> confdefs.h
<<\EOF
1604 #define HAVE_ALLOCA_H 1
1609 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1610 echo "configure:1611: checking for alloca" >&5
1611 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1619 # define alloca __builtin_alloca
1622 # include <malloc.h>
1623 # define alloca _alloca
1626 # include <alloca.h>
1631 # ifndef alloca /* predefined by HP cc +Olibcalls */
1640 char *p = (char *) alloca(1);
1643 if { (eval echo configure
:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1645 ac_cv_func_alloca_works
=yes
1647 echo "configure: failed program was:" >&5
1648 cat conftest.
$ac_ext >&5
1650 ac_cv_func_alloca_works
=no
1655 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1656 if test $ac_cv_func_alloca_works = yes; then
1657 cat >> confdefs.h
<<\EOF
1658 #define HAVE_ALLOCA 1
1663 if test $ac_cv_func_alloca_works = no
; then
1664 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1665 # that cause trouble. Some versions do not even contain alloca or
1666 # contain a buggy version. If you still want to use their alloca,
1667 # use ar to extract alloca.o from them instead of compiling alloca.c.
1668 ALLOCA
=alloca.
${ac_objext}
1669 cat >> confdefs.h
<<\EOF
1674 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether alloca needs Cray hooks" >&5
1676 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 cat > conftest.
$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1682 #if defined(CRAY) && ! defined(CRAY2)
1689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1690 egrep "webecray" >/dev
/null
2>&1; then
1701 echo "$ac_t""$ac_cv_os_cray" 1>&6
1702 if test $ac_cv_os_cray = yes; then
1703 for ac_func
in _getb67 GETB67 getb67
; do
1704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_func" >&5
1706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 cat > conftest.
$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 /* System header to define __stub macros and hopefully few prototypes,
1713 which can conflict with char $ac_func(); below. */
1715 /* Override any gcc2 internal prototype to avoid an error. */
1716 /* We use char because int might match the return type of a gcc2
1717 builtin and then its argument prototype would still apply. */
1722 /* The GNU C library defines this for functions which it implements
1723 to always fail with ENOSYS. Some functions are actually named
1724 something starting with __ and the normal name is an alias. */
1725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1733 if { (eval echo configure
:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1735 eval "ac_cv_func_$ac_func=yes"
1737 echo "configure: failed program was:" >&5
1738 cat conftest.
$ac_ext >&5
1740 eval "ac_cv_func_$ac_func=no"
1745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1746 echo "$ac_t""yes" 1>&6
1747 cat >> confdefs.h
<<EOF
1748 #define CRAY_STACKSEG_END $ac_func
1753 echo "$ac_t""no" 1>&6
1759 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1760 echo "configure:1761: checking stack direction for C alloca" >&5
1761 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 if test "$cross_compiling" = yes; then
1765 ac_cv_c_stack_direction
=0
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1770 find_stack_direction ()
1772 static char *addr = 0;
1777 return find_stack_direction ();
1780 return (&dummy > addr) ? 1 : -1;
1784 exit (find_stack_direction() < 0);
1787 if { (eval echo configure
:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1789 ac_cv_c_stack_direction
=1
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1794 ac_cv_c_stack_direction
=-1
1801 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1802 cat >> confdefs.h
<<EOF
1803 #define STACK_DIRECTION $ac_cv_c_stack_direction
1808 for ac_hdr
in unistd.h
1810 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_hdr" >&5
1813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.
$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 { (eval echo configure
:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1823 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1824 if test -z "$ac_err"; then
1826 eval "ac_cv_header_$ac_safe=yes"
1829 echo "configure: failed program was:" >&5
1830 cat conftest.
$ac_ext >&5
1832 eval "ac_cv_header_$ac_safe=no"
1836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1837 echo "$ac_t""yes" 1>&6
1838 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1839 cat >> confdefs.h
<<EOF
1840 #define $ac_tr_hdr 1
1844 echo "$ac_t""no" 1>&6
1848 for ac_func
in getpagesize
1850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1851 echo "configure:1852: checking for $ac_func" >&5
1852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 cat > conftest.
$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1858 /* System header to define __stub macros and hopefully few prototypes,
1859 which can conflict with char $ac_func(); below. */
1861 /* Override any gcc2 internal prototype to avoid an error. */
1862 /* We use char because int might match the return type of a gcc2
1863 builtin and then its argument prototype would still apply. */
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1879 if { (eval echo configure
:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1881 eval "ac_cv_func_$ac_func=yes"
1883 echo "configure: failed program was:" >&5
1884 cat conftest.
$ac_ext >&5
1886 eval "ac_cv_func_$ac_func=no"
1891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1892 echo "$ac_t""yes" 1>&6
1893 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1894 cat >> confdefs.h
<<EOF
1895 #define $ac_tr_func 1
1899 echo "$ac_t""no" 1>&6
1903 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1904 echo "configure:1905: checking for working mmap" >&5
1905 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test "$cross_compiling" = yes; then
1909 ac_cv_func_mmap_fixed_mapped
=no
1911 cat > conftest.
$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1915 /* Thanks to Mike Haertel and Jim Avera for this test.
1916 Here is a matrix of mmap possibilities:
1917 mmap private not fixed
1918 mmap private fixed at somewhere currently unmapped
1919 mmap private fixed at somewhere already mapped
1920 mmap shared not fixed
1921 mmap shared fixed at somewhere currently unmapped
1922 mmap shared fixed at somewhere already mapped
1923 For private mappings, we should verify that changes cannot be read()
1924 back from the file, nor mmap's back from the file at a different
1925 address. (There have been systems where private was not correctly
1926 implemented like the infamous i386 svr4.0, and systems where the
1927 VM page cache was not coherent with the filesystem buffer cache
1928 like early versions of FreeBSD and possibly contemporary NetBSD.)
1929 For shared mappings, we should conversely verify that changes get
1930 propogated back to all the places they're supposed to be.
1932 Grep wants private fixed already mapped.
1933 The main things grep needs to know about mmap are:
1934 * does it exist and is it safe to write into the mmap'd area
1935 * how to use it (BSD variants) */
1936 #include <sys/types.h>
1938 #include <sys/mman.h>
1940 /* This mess was copied from the GNU getpagesize.h. */
1941 #ifndef HAVE_GETPAGESIZE
1942 # ifdef HAVE_UNISTD_H
1943 # include <unistd.h>
1946 /* Assume that all systems that can run configure have sys/param.h. */
1947 # ifndef HAVE_SYS_PARAM_H
1948 # define HAVE_SYS_PARAM_H 1
1951 # ifdef _SC_PAGESIZE
1952 # define getpagesize() sysconf(_SC_PAGESIZE)
1953 # else /* no _SC_PAGESIZE */
1954 # ifdef HAVE_SYS_PARAM_H
1955 # include <sys/param.h>
1956 # ifdef EXEC_PAGESIZE
1957 # define getpagesize() EXEC_PAGESIZE
1958 # else /* no EXEC_PAGESIZE */
1960 # define getpagesize() NBPG * CLSIZE
1963 # endif /* no CLSIZE */
1964 # else /* no NBPG */
1966 # define getpagesize() NBPC
1967 # else /* no NBPC */
1969 # define getpagesize() PAGESIZE
1970 # endif /* PAGESIZE */
1971 # endif /* no NBPC */
1972 # endif /* no NBPG */
1973 # endif /* no EXEC_PAGESIZE */
1974 # else /* no HAVE_SYS_PARAM_H */
1975 # define getpagesize() 8192 /* punt totally */
1976 # endif /* no HAVE_SYS_PARAM_H */
1977 # endif /* no _SC_PAGESIZE */
1979 #endif /* no HAVE_GETPAGESIZE */
1982 extern "C" { void *malloc(unsigned); }
1990 char *data, *data2, *data3;
1994 pagesize = getpagesize();
1997 * First, make a file with some known garbage in it.
1999 data = malloc(pagesize);
2002 for (i = 0; i < pagesize; ++i)
2003 *(data + i) = rand();
2005 fd = creat("conftestmmap", 0600);
2008 if (write(fd, data, pagesize) != pagesize)
2013 * Next, try to mmap the file at a fixed address which
2014 * already has something else allocated at it. If we can,
2015 * also make sure that we see the same garbage.
2017 fd = open("conftestmmap", O_RDWR);
2020 data2 = malloc(2 * pagesize);
2023 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2024 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2025 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2027 for (i = 0; i < pagesize; ++i)
2028 if (*(data + i) != *(data2 + i))
2032 * Finally, make sure that changes to the mapped area
2033 * do not percolate back to the file as seen by read().
2034 * (This is a bug on some variants of i386 svr4.0.)
2036 for (i = 0; i < pagesize; ++i)
2037 *(data2 + i) = *(data2 + i) + 1;
2038 data3 = malloc(pagesize);
2041 if (read(fd, data3, pagesize) != pagesize)
2043 for (i = 0; i < pagesize; ++i)
2044 if (*(data + i) != *(data3 + i))
2047 unlink("conftestmmap");
2052 if { (eval echo configure
:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2054 ac_cv_func_mmap_fixed_mapped
=yes
2056 echo "configure: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2059 ac_cv_func_mmap_fixed_mapped
=no
2066 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2067 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2068 cat >> confdefs.h
<<\EOF
2075 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2076 unistd.h values.h sys
/param.h
2078 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_hdr" >&5
2081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 cat > conftest.
$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2089 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2090 { (eval echo configure
:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2091 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2092 if test -z "$ac_err"; then
2094 eval "ac_cv_header_$ac_safe=yes"
2097 echo "configure: failed program was:" >&5
2098 cat conftest.
$ac_ext >&5
2100 eval "ac_cv_header_$ac_safe=no"
2104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2105 echo "$ac_t""yes" 1>&6
2106 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2107 cat >> confdefs.h
<<EOF
2108 #define $ac_tr_hdr 1
2112 echo "$ac_t""no" 1>&6
2116 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2117 __argz_count __argz_stringify __argz_next
2119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_func" >&5
2121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 cat > conftest.
$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 /* System header to define __stub macros and hopefully few prototypes,
2128 which can conflict with char $ac_func(); below. */
2130 /* Override any gcc2 internal prototype to avoid an error. */
2131 /* We use char because int might match the return type of a gcc2
2132 builtin and then its argument prototype would still apply. */
2137 /* The GNU C library defines this for functions which it implements
2138 to always fail with ENOSYS. Some functions are actually named
2139 something starting with __ and the normal name is an alias. */
2140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2148 if { (eval echo configure
:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2150 eval "ac_cv_func_$ac_func=yes"
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2155 eval "ac_cv_func_$ac_func=no"
2160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2163 cat >> confdefs.h
<<EOF
2164 #define $ac_tr_func 1
2168 echo "$ac_t""no" 1>&6
2173 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2174 for ac_func
in stpcpy
2176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_func" >&5
2178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 cat > conftest.
$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184 /* System header to define __stub macros and hopefully few prototypes,
2185 which can conflict with char $ac_func(); below. */
2187 /* Override any gcc2 internal prototype to avoid an error. */
2188 /* We use char because int might match the return type of a gcc2
2189 builtin and then its argument prototype would still apply. */
2194 /* The GNU C library defines this for functions which it implements
2195 to always fail with ENOSYS. Some functions are actually named
2196 something starting with __ and the normal name is an alias. */
2197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2205 if { (eval echo configure
:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2207 eval "ac_cv_func_$ac_func=yes"
2209 echo "configure: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2212 eval "ac_cv_func_$ac_func=no"
2217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2219 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2220 cat >> confdefs.h
<<EOF
2221 #define $ac_tr_func 1
2225 echo "$ac_t""no" 1>&6
2230 if test "${ac_cv_func_stpcpy}" = "yes"; then
2231 cat >> confdefs.h
<<\EOF
2232 #define HAVE_STPCPY 1
2237 if test $ac_cv_header_locale_h = yes; then
2238 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2239 echo "configure:2240: checking for LC_MESSAGES" >&5
2240 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2251 if { (eval echo configure
:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2253 am_cv_val_LC_MESSAGES
=yes
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 am_cv_val_LC_MESSAGES
=no
2263 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2264 if test $am_cv_val_LC_MESSAGES = yes; then
2265 cat >> confdefs.h
<<\EOF
2266 #define HAVE_LC_MESSAGES 1
2271 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2272 echo "configure:2273: checking whether NLS is requested" >&5
2273 # Check whether --enable-nls or --disable-nls was given.
2274 if test "${enable_nls+set}" = set; then
2275 enableval
="$enable_nls"
2281 echo "$ac_t""$USE_NLS" 1>&6
2284 USE_INCLUDED_LIBINTL
=no
2286 if test "$USE_NLS" = "yes"; then
2287 cat >> confdefs.h
<<\EOF
2288 #define ENABLE_NLS 1
2291 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2292 echo "configure:2293: checking whether included gettext is requested" >&5
2293 # Check whether --with-included-gettext or --without-included-gettext was given.
2294 if test "${with_included_gettext+set}" = set; then
2295 withval
="$with_included_gettext"
2296 nls_cv_force_use_gnu_gettext
=$withval
2298 nls_cv_force_use_gnu_gettext
=no
2301 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2303 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2304 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2306 nls_cv_header_libgt
=
2309 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2310 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2311 echo "configure:2312: checking for libintl.h" >&5
2312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 #include <libintl.h>
2320 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2321 { (eval echo configure
:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2322 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2323 if test -z "$ac_err"; then
2325 eval "ac_cv_header_$ac_safe=yes"
2328 echo "configure: failed program was:" >&5
2329 cat conftest.
$ac_ext >&5
2331 eval "ac_cv_header_$ac_safe=no"
2335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2336 echo "$ac_t""yes" 1>&6
2337 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2338 echo "configure:2339: checking for gettext in libc" >&5
2339 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 cat > conftest.
$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 #include <libintl.h>
2347 return (int) gettext ("")
2350 if { (eval echo configure
:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2352 gt_cv_func_gettext_libc
=yes
2354 echo "configure: failed program was:" >&5
2355 cat conftest.
$ac_ext >&5
2357 gt_cv_func_gettext_libc
=no
2362 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2364 if test "$gt_cv_func_gettext_libc" != "yes"; then
2365 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2366 echo "configure:2367: checking for bindtextdomain in -lintl" >&5
2367 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 ac_save_LIBS
="$LIBS"
2373 cat > conftest.
$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 /* Override any gcc2 internal prototype to avoid an error. */
2377 /* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379 char bindtextdomain();
2385 if { (eval echo configure
:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2387 eval "ac_cv_lib_$ac_lib_var=yes"
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 eval "ac_cv_lib_$ac_lib_var=no"
2395 LIBS
="$ac_save_LIBS"
2398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2399 echo "$ac_t""yes" 1>&6
2400 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2401 echo "configure:2402: checking for gettext in libintl" >&5
2402 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.
$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2410 return (int) gettext ("")
2413 if { (eval echo configure
:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2415 gt_cv_func_gettext_libintl
=yes
2417 echo "configure: failed program was:" >&5
2418 cat conftest.
$ac_ext >&5
2420 gt_cv_func_gettext_libintl
=no
2425 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2427 echo "$ac_t""no" 1>&6
2432 if test "$gt_cv_func_gettext_libc" = "yes" \
2433 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2434 cat >> confdefs.h
<<\EOF
2435 #define HAVE_GETTEXT 1
2438 # Extract the first word of "msgfmt", so it can be a program name with args.
2439 set dummy msgfmt
; ac_word
=$2
2440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_word" >&5
2442 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2447 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2450 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2451 for ac_dir
in $PATH; do
2452 test -z "$ac_dir" && ac_dir
=.
2453 if test -f $ac_dir/$ac_word; then
2454 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2455 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2461 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2465 MSGFMT
="$ac_cv_path_MSGFMT"
2466 if test -n "$MSGFMT"; then
2467 echo "$ac_t""$MSGFMT" 1>&6
2469 echo "$ac_t""no" 1>&6
2471 if test "$MSGFMT" != "no"; then
2472 for ac_func
in dcgettext
2474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2475 echo "configure:2476: checking for $ac_func" >&5
2476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 cat > conftest.
$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 /* System header to define __stub macros and hopefully few prototypes,
2483 which can conflict with char $ac_func(); below. */
2485 /* Override any gcc2 internal prototype to avoid an error. */
2486 /* We use char because int might match the return type of a gcc2
2487 builtin and then its argument prototype would still apply. */
2492 /* The GNU C library defines this for functions which it implements
2493 to always fail with ENOSYS. Some functions are actually named
2494 something starting with __ and the normal name is an alias. */
2495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2503 if { (eval echo configure
:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2505 eval "ac_cv_func_$ac_func=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.
$ac_ext >&5
2510 eval "ac_cv_func_$ac_func=no"
2515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2517 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2518 cat >> confdefs.h
<<EOF
2519 #define $ac_tr_func 1
2523 echo "$ac_t""no" 1>&6
2527 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2528 set dummy gmsgfmt
; ac_word
=$2
2529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_word" >&5
2531 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2536 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2539 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2542 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2544 for ac_dir
in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir
=.
2546 if test -f $ac_dir/$ac_word; then
2547 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2552 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2556 GMSGFMT
="$ac_cv_path_GMSGFMT"
2557 if test -n "$GMSGFMT"; then
2558 echo "$ac_t""$GMSGFMT" 1>&6
2560 echo "$ac_t""no" 1>&6
2563 # Extract the first word of "xgettext", so it can be a program name with args.
2564 set dummy xgettext
; ac_word
=$2
2565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_word" >&5
2567 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2572 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2575 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2576 for ac_dir
in $PATH; do
2577 test -z "$ac_dir" && ac_dir
=.
2578 if test -f $ac_dir/$ac_word; then
2579 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2580 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2586 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2590 XGETTEXT
="$ac_cv_path_XGETTEXT"
2591 if test -n "$XGETTEXT"; then
2592 echo "$ac_t""$XGETTEXT" 1>&6
2594 echo "$ac_t""no" 1>&6
2597 cat > conftest.
$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2602 extern int _nl_msg_cat_cntr;
2603 return _nl_msg_cat_cntr
2606 if { (eval echo configure
:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2611 echo "configure: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2623 echo "$ac_t""no" 1>&6
2628 if test "$CATOBJEXT" = "NONE"; then
2629 nls_cv_use_gnu_gettext
=yes
2633 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2634 INTLOBJS
="\$(GETTOBJS)"
2635 # Extract the first word of "msgfmt", so it can be a program name with args.
2636 set dummy msgfmt
; ac_word
=$2
2637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2638 echo "configure:2639: checking for $ac_word" >&5
2639 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2644 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2647 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2648 for ac_dir
in $PATH; do
2649 test -z "$ac_dir" && ac_dir
=.
2650 if test -f $ac_dir/$ac_word; then
2651 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2652 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2658 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2662 MSGFMT
="$ac_cv_path_MSGFMT"
2663 if test -n "$MSGFMT"; then
2664 echo "$ac_t""$MSGFMT" 1>&6
2666 echo "$ac_t""no" 1>&6
2669 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2670 set dummy gmsgfmt
; ac_word
=$2
2671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_word" >&5
2673 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2678 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2681 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2684 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2686 for ac_dir
in $ac_dummy; do
2687 test -z "$ac_dir" && ac_dir
=.
2688 if test -f $ac_dir/$ac_word; then
2689 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2694 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2698 GMSGFMT
="$ac_cv_path_GMSGFMT"
2699 if test -n "$GMSGFMT"; then
2700 echo "$ac_t""$GMSGFMT" 1>&6
2702 echo "$ac_t""no" 1>&6
2705 # Extract the first word of "xgettext", so it can be a program name with args.
2706 set dummy xgettext
; ac_word
=$2
2707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2714 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2717 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2718 for ac_dir
in $PATH; do
2719 test -z "$ac_dir" && ac_dir
=.
2720 if test -f $ac_dir/$ac_word; then
2721 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2722 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2728 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2732 XGETTEXT
="$ac_cv_path_XGETTEXT"
2733 if test -n "$XGETTEXT"; then
2734 echo "$ac_t""$XGETTEXT" 1>&6
2736 echo "$ac_t""no" 1>&6
2740 USE_INCLUDED_LIBINTL
=yes
2744 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2746 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2747 nls_cv_header_intl
=libintl.h
2748 nls_cv_header_libgt
=libgettext.h
2751 if test "$XGETTEXT" != ":"; then
2752 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2755 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2760 # We need to process the po/ directory.
2764 nls_cv_header_intl
=libintl.h
2765 nls_cv_header_libgt
=libgettext.h
2768 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2769 # because some of the sources are only built for this goal.
2770 if test "$PACKAGE" = gettext; then
2772 USE_INCLUDED_LIBINTL
=yes
2775 for lang
in $ALL_LINGUAS; do
2776 GMOFILES
="$GMOFILES $lang.gmo"
2777 POFILES
="$POFILES $lang.po"
2793 if test "x$CATOBJEXT" != "x"; then
2794 if test "x$ALL_LINGUAS" = "x"; then
2797 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2798 echo "configure:2799: checking for catalogs to be installed" >&5
2800 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2801 case "$ALL_LINGUAS" in
2802 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2805 LINGUAS
=$NEW_LINGUAS
2806 echo "$ac_t""$LINGUAS" 1>&6
2809 if test -n "$LINGUAS"; then
2810 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2814 if test $ac_cv_header_locale_h = yes; then
2815 INCLUDE_LOCALE_H
="#include <locale.h>"
2818 /* The system does not provide the header <locale.h>. Take care yourself. */"
2822 if test -f $srcdir/po2tbl.
sed.
in; then
2823 if test "$CATOBJEXT" = ".cat"; then
2824 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2825 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2826 echo "configure:2827: checking for linux/version.h" >&5
2827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.
$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2833 #include <linux/version.h>
2835 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2836 { (eval echo configure
:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2837 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2838 if test -z "$ac_err"; then
2840 eval "ac_cv_header_$ac_safe=yes"
2843 echo "configure: failed program was:" >&5
2844 cat conftest.
$ac_ext >&5
2846 eval "ac_cv_header_$ac_safe=no"
2850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2854 echo "$ac_t""no" 1>&6
2859 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2861 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2862 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2865 if test "$PACKAGE" = "gettext"; then
2875 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2881 if test -f $srcdir/po
/POTFILES.
in; then
2882 test -d po || mkdir po
2883 if test "x$srcdir" != "x."; then
2884 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2885 posrcprefix
="$srcdir/"
2887 posrcprefix
="../$srcdir/"
2893 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2894 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2897 cat >> confdefs.h
<<\EOF
2898 #define PACKAGE "gdb"
2915 SUBDIRS
="doc testsuite nlm"
2916 configdirs
="doc testsuite"
2918 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2919 if test "${enable_multi_ice+set}" = set; then
2920 enableval
="$enable_multi_ice"
2921 case "${enableval}" in
2922 yes ) enable_multi_ice
="yes" ;;
2923 no
) enable_multi_ice
="no" ;;
2924 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2930 if test "${enable_multi_ice}" = "yes"; then
2931 configdirs
="${configdirs} multi-ice"
2935 .
${srcdir}/configure.
host
2937 .
${srcdir}/configure.tgt
2939 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2943 .
${srcdir}/..
/bfd
/config.bfd
2945 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2947 if test x
"${targ_archs}" != x
; then
2948 cat >> confdefs.h
<<EOF
2949 #define DEFAULT_BFD_ARCH ${targ_archs}
2953 if test x
"${targ_defvec}" != x
; then
2954 cat >> confdefs.h
<<EOF
2955 #define DEFAULT_BFD_VEC ${targ_defvec}
2960 if test "$program_transform_name" = s
,x
,x
,; then
2961 program_transform_name
=
2963 # Double any \ or $. echo might interpret backslashes.
2964 cat <<\EOF_SED
> conftestsed
2965 s
,\\,\\\\,g
; s
,\$
,$$
,g
2967 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2970 test "$program_prefix" != NONE
&&
2971 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2972 # Use a double $ so make ignores it.
2973 test "$program_suffix" != NONE
&&
2974 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2976 # sed with no file args requires a program.
2977 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2980 # The CLI cannot be disabled yet, but may be in the future.
2983 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2984 if test "${enable_gdbcli+set}" = set; then
2985 enableval
="$enable_gdbcli"
2990 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2992 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
2998 if test x
"$enable_gdbcli" = xyes
; then
2999 if test -d $srcdir/cli
; then
3000 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3001 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3002 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3003 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
3004 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3005 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
3006 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
3007 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
3008 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
3013 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3014 if test "${enable_gdbmi+set}" = set; then
3015 enableval
="$enable_gdbmi"
3020 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3026 if test x
"$enable_gdbmi" = xyes
; then
3027 if test -d $srcdir/mi
; then
3028 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3029 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3030 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3031 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3032 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3033 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3034 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3035 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3036 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3041 # Check whether --enable-tui or --disable-tui was given.
3042 if test "${enable_tui+set}" = set; then
3043 enableval
="$enable_tui"
3048 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3052 if test x
"$enable_tui" = xyes
; then
3053 if test -d $srcdir/tui
; then
3054 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3055 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3056 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3057 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3058 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3059 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3060 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3061 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3062 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3067 # --------------------- #
3068 # Checks for programs. #
3069 # --------------------- #
3071 for ac_prog
in mawk gawk nawk
awk
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy
$ac_prog; ac_word
=$2
3075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3076 echo "configure:3077: checking for $ac_word" >&5
3077 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 if test -n "$AWK"; then
3081 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3085 for ac_dir
in $ac_dummy; do
3086 test -z "$ac_dir" && ac_dir
=.
3087 if test -f $ac_dir/$ac_word; then
3088 ac_cv_prog_AWK
="$ac_prog"
3095 AWK
="$ac_cv_prog_AWK"
3096 if test -n "$AWK"; then
3097 echo "$ac_t""$AWK" 1>&6
3099 echo "$ac_t""no" 1>&6
3102 test -n "$AWK" && break
3105 # Find a good install program. We prefer a C program (faster),
3106 # so one script is as good as another. But avoid the broken or
3107 # incompatible versions:
3108 # SysV /etc/install, /usr/sbin/install
3109 # SunOS /usr/etc/install
3110 # IRIX /sbin/install
3112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3115 # ./install, which can be erroneously created by make from ./install.sh.
3116 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3117 echo "configure:3118: checking for a BSD compatible install" >&5
3118 if test -z "$INSTALL"; then
3119 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3123 for ac_dir
in $PATH; do
3124 # Account for people who put trailing slashes in PATH elements.
3126 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3128 # OSF1 and SCO ODT 3.0 have their own names for install.
3129 # Don't use installbsd from OSF since it installs stuff as root
3131 for ac_prog
in ginstall scoinst
install; do
3132 if test -f $ac_dir/$ac_prog; then
3133 if test $ac_prog = install &&
3134 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3135 # AIX install. It has an incompatible calling convention.
3138 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3149 if test "${ac_cv_path_install+set}" = set; then
3150 INSTALL
="$ac_cv_path_install"
3152 # As a last resort, use the slow shell script. We don't cache a
3153 # path for INSTALL within a source directory, because that will
3154 # break other packages using the cache if that directory is
3155 # removed, or if the path is relative.
3156 INSTALL
="$ac_install_sh"
3159 echo "$ac_t""$INSTALL" 1>&6
3161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3162 # It thinks the first close brace ends the variable substitution.
3163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3167 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3169 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3170 echo "configure:3171: checking whether ln -s works" >&5
3171 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3175 if ln -s X conftestdata
2>/dev
/null
3178 ac_cv_prog_LN_S
="ln -s"
3183 LN_S
="$ac_cv_prog_LN_S"
3184 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3185 echo "$ac_t""yes" 1>&6
3187 echo "$ac_t""no" 1>&6
3190 # Extract the first word of "ranlib", so it can be a program name with args.
3191 set dummy ranlib
; ac_word
=$2
3192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3193 echo "configure:3194: checking for $ac_word" >&5
3194 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 if test -n "$RANLIB"; then
3198 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3200 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3202 for ac_dir
in $ac_dummy; do
3203 test -z "$ac_dir" && ac_dir
=.
3204 if test -f $ac_dir/$ac_word; then
3205 ac_cv_prog_RANLIB
="ranlib"
3210 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3213 RANLIB
="$ac_cv_prog_RANLIB"
3214 if test -n "$RANLIB"; then
3215 echo "$ac_t""$RANLIB" 1>&6
3217 echo "$ac_t""no" 1>&6
3220 for ac_prog
in 'bison -y' byacc
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy
$ac_prog; ac_word
=$2
3224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_word" >&5
3226 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 if test -n "$YACC"; then
3230 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3234 for ac_dir
in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir
=.
3236 if test -f $ac_dir/$ac_word; then
3237 ac_cv_prog_YACC
="$ac_prog"
3244 YACC
="$ac_cv_prog_YACC"
3245 if test -n "$YACC"; then
3246 echo "$ac_t""$YACC" 1>&6
3248 echo "$ac_t""no" 1>&6
3251 test -n "$YACC" && break
3253 test -n "$YACC" || YACC
="yacc"
3256 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3257 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $ac_word" >&5
3260 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 if test -n "$AR"; then
3264 ac_cv_prog_AR
="$AR" # Let the user override the test.
3266 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3268 for ac_dir
in $ac_dummy; do
3269 test -z "$ac_dir" && ac_dir
=.
3270 if test -f $ac_dir/$ac_word; then
3271 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3276 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3280 if test -n "$AR"; then
3281 echo "$ac_t""$AR" 1>&6
3283 echo "$ac_t""no" 1>&6
3288 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3289 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3291 echo "configure:3292: checking for $ac_word" >&5
3292 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 if test -n "$DLLTOOL"; then
3296 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3298 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3300 for ac_dir
in $ac_dummy; do
3301 test -z "$ac_dir" && ac_dir
=.
3302 if test -f $ac_dir/$ac_word; then
3303 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3308 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3311 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3312 if test -n "$DLLTOOL"; then
3313 echo "$ac_t""$DLLTOOL" 1>&6
3315 echo "$ac_t""no" 1>&6
3320 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3321 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_word" >&5
3324 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 if test -n "$WINDRES"; then
3328 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3330 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3332 for ac_dir
in $ac_dummy; do
3333 test -z "$ac_dir" && ac_dir
=.
3334 if test -f $ac_dir/$ac_word; then
3335 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3340 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3343 WINDRES
="$ac_cv_prog_WINDRES"
3344 if test -n "$WINDRES"; then
3345 echo "$ac_t""$WINDRES" 1>&6
3347 echo "$ac_t""no" 1>&6
3353 # Needed for GNU/Hurd.
3354 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3355 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3357 echo "configure:3358: checking for $ac_word" >&5
3358 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 if test -n "$MIG"; then
3362 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3364 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3366 for ac_dir
in $ac_dummy; do
3367 test -z "$ac_dir" && ac_dir
=.
3368 if test -f $ac_dir/$ac_word; then
3369 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3374 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3377 MIG
="$ac_cv_prog_MIG"
3378 if test -n "$MIG"; then
3379 echo "$ac_t""$MIG" 1>&6
3381 echo "$ac_t""no" 1>&6
3387 # ---------------------- #
3388 # Checks for libraries. #
3389 # ---------------------- #
3391 # We might need to link with -lm; most simulators need it.
3392 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3393 echo "configure:3394: checking for main in -lm" >&5
3394 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_save_LIBS
="$LIBS"
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3408 if { (eval echo configure
:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3410 eval "ac_cv_lib_$ac_lib_var=yes"
3412 echo "configure: failed program was:" >&5
3413 cat conftest.
$ac_ext >&5
3415 eval "ac_cv_lib_$ac_lib_var=no"
3418 LIBS
="$ac_save_LIBS"
3421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3423 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3424 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3425 cat >> confdefs.h
<<EOF
3426 #define $ac_tr_lib 1
3432 echo "$ac_t""no" 1>&6
3436 # We need to link with -lw to get `wctype' on Solaris before Solaris
3437 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3438 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3439 # is known to have this problem). Therefore we avoid libw if we can.
3440 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3441 echo "configure:3442: checking for wctype" >&5
3442 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* System header to define __stub macros and hopefully few prototypes,
3449 which can conflict with char wctype(); below. */
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3458 /* The GNU C library defines this for functions which it implements
3459 to always fail with ENOSYS. Some functions are actually named
3460 something starting with __ and the normal name is an alias. */
3461 #if defined (__stub_wctype) || defined (__stub___wctype)
3469 if { (eval echo configure
:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3471 eval "ac_cv_func_wctype=yes"
3473 echo "configure: failed program was:" >&5
3474 cat conftest.
$ac_ext >&5
3476 eval "ac_cv_func_wctype=no"
3481 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3485 echo "$ac_t""no" 1>&6
3486 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3487 echo "configure:3488: checking for wctype in -lw" >&5
3488 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 ac_save_LIBS
="$LIBS"
3494 cat > conftest.
$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3497 /* Override any gcc2 internal prototype to avoid an error. */
3498 /* We use char because int might match the return type of a gcc2
3499 builtin and then its argument prototype would still apply. */
3506 if { (eval echo configure
:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3508 eval "ac_cv_lib_$ac_lib_var=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.
$ac_ext >&5
3513 eval "ac_cv_lib_$ac_lib_var=no"
3516 LIBS
="$ac_save_LIBS"
3519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3523 cat >> confdefs.h
<<EOF
3524 #define $ac_tr_lib 1
3530 echo "$ac_t""no" 1>&6
3536 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3538 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3539 echo "configure:3540: checking for library containing socketpair" >&5
3540 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 ac_func_search_save_LIBS
="$LIBS"
3544 ac_cv_search_socketpair
="no"
3545 cat > conftest.
$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 /* Override any gcc2 internal prototype to avoid an error. */
3549 /* We use char because int might match the return type of a gcc2
3550 builtin and then its argument prototype would still apply. */
3557 if { (eval echo configure
:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3559 ac_cv_search_socketpair
="none required"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.
$ac_ext >&5
3565 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3566 LIBS
="-l$i $ac_func_search_save_LIBS"
3567 cat > conftest.
$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 /* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3579 if { (eval echo configure
:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3581 ac_cv_search_socketpair
="-l$i"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3589 LIBS
="$ac_func_search_save_LIBS"
3592 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3593 if test "$ac_cv_search_socketpair" != "no"; then
3594 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3600 # Since GDB uses Readline, we need termcap functionality, so we need
3601 # to find a library that provides that. When GDB is configured with
3602 # --enable-tui, we need full curses functionality.
3604 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3605 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3606 # Makefile fragments. That's why we need to have `Hcurses' before
3607 # `curses'. I don't see why we should use HP curses if a more
3608 # standard curses is available, except that according to HP's
3609 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3610 # HP-UX 10.10 and 10.20.
3612 if test "$need_curses" = yes; then
3614 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3615 echo "configure:3616: checking for library containing initscr" >&5
3616 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 ac_func_search_save_LIBS
="$LIBS"
3620 ac_cv_search_initscr
="no"
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3633 if { (eval echo configure
:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3635 ac_cv_search_initscr
="none required"
3637 echo "configure: failed program was:" >&5
3638 cat conftest.
$ac_ext >&5
3641 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
3642 LIBS
="-l$i $ac_func_search_save_LIBS"
3643 cat > conftest.
$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 /* Override any gcc2 internal prototype to avoid an error. */
3647 /* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3655 if { (eval echo configure
:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3657 ac_cv_search_initscr
="-l$i"
3660 echo "configure: failed program was:" >&5
3661 cat conftest.
$ac_ext >&5
3665 LIBS
="$ac_func_search_save_LIBS"
3668 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3669 if test "$ac_cv_search_initscr" != "no"; then
3670 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
3673 { echo "configure: error: no curses library found" 1>&2; exit 1; }
3679 if test -d $srcdir/libtermcap
; then
3680 LIBS
="../libtermcap/libtermcap.a $LIBS"
3681 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
3684 # ??? Is this really true?
3685 ac_cv_search_tgetent
="none required"
3688 # Readline prefers curses over termcap on AIX.
3691 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3692 echo "configure:3693: checking for library containing tgetent" >&5
3693 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_func_search_save_LIBS
="$LIBS"
3697 ac_cv_search_tgetent
="no"
3698 cat > conftest.
$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3710 if { (eval echo configure
:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3712 ac_cv_search_tgetent
="none required"
3714 echo "configure: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3718 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
3719 LIBS
="-l$i $ac_func_search_save_LIBS"
3720 cat > conftest.
$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 /* Override any gcc2 internal prototype to avoid an error. */
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3732 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3734 ac_cv_search_tgetent
="-l$i"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.
$ac_ext >&5
3742 LIBS
="$ac_func_search_save_LIBS"
3745 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3746 if test "$ac_cv_search_tgetent" != "no"; then
3747 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3755 # Note: We used to check for libtermlib and libterminfo too, but
3756 # Readline doesn't, so I think we're safe with leaving them out.
3758 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3759 echo "configure:3760: checking for library containing tgetent" >&5
3760 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 ac_func_search_save_LIBS
="$LIBS"
3764 ac_cv_search_tgetent
="no"
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3777 if { (eval echo configure
:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3779 ac_cv_search_tgetent
="none required"
3781 echo "configure: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3785 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
3786 LIBS
="-l$i $ac_func_search_save_LIBS"
3787 cat > conftest.
$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3799 if { (eval echo configure
:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3801 ac_cv_search_tgetent
="-l$i"
3804 echo "configure: failed program was:" >&5
3805 cat conftest.
$ac_ext >&5
3809 LIBS
="$ac_func_search_save_LIBS"
3812 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3813 if test "$ac_cv_search_tgetent" != "no"; then
3814 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3820 if test "$ac_cv_search_tgetent" = no
; then
3821 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
3824 # ------------------------- #
3825 # Checks for header files. #
3826 # ------------------------- #
3829 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3831 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3832 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_hdr that defines DIR" >&5
3834 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.
$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <sys/types.h>
3846 if { (eval echo configure
:3847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3848 eval "ac_cv_header_dirent_$ac_safe=yes"
3850 echo "configure: failed program was:" >&5
3851 cat conftest.
$ac_ext >&5
3853 eval "ac_cv_header_dirent_$ac_safe=no"
3857 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3860 cat >> confdefs.h
<<EOF
3861 #define $ac_tr_hdr 1
3863 ac_header_dirent
=$ac_hdr; break
3865 echo "$ac_t""no" 1>&6
3868 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3869 if test $ac_header_dirent = dirent.h
; then
3870 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3871 echo "configure:3872: checking for opendir in -ldir" >&5
3872 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 ac_save_LIBS
="$LIBS"
3878 cat > conftest.
$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 /* Override any gcc2 internal prototype to avoid an error. */
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3890 if { (eval echo configure
:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3892 eval "ac_cv_lib_$ac_lib_var=yes"
3894 echo "configure: failed program was:" >&5
3895 cat conftest.
$ac_ext >&5
3897 eval "ac_cv_lib_$ac_lib_var=no"
3900 LIBS
="$ac_save_LIBS"
3903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3904 echo "$ac_t""yes" 1>&6
3907 echo "$ac_t""no" 1>&6
3911 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3912 echo "configure:3913: checking for opendir in -lx" >&5
3913 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 ac_save_LIBS
="$LIBS"
3919 cat > conftest.
$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3931 if { (eval echo configure
:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3933 eval "ac_cv_lib_$ac_lib_var=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 eval "ac_cv_lib_$ac_lib_var=no"
3941 LIBS
="$ac_save_LIBS"
3944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3948 echo "$ac_t""no" 1>&6
3953 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3954 echo "configure:3955: checking whether stat file-mode macros are broken" >&5
3955 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 cat > conftest.
$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 #include <sys/types.h>
3962 #include <sys/stat.h>
3964 #if defined(S_ISBLK) && defined(S_IFDIR)
3965 # if S_ISBLK (S_IFDIR)
3970 #if defined(S_ISBLK) && defined(S_IFCHR)
3971 # if S_ISBLK (S_IFCHR)
3976 #if defined(S_ISLNK) && defined(S_IFREG)
3977 # if S_ISLNK (S_IFREG)
3982 #if defined(S_ISSOCK) && defined(S_IFREG)
3983 # if S_ISSOCK (S_IFREG)
3989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 egrep "You lose" >/dev
/null
2>&1; then
3992 ac_cv_header_stat_broken
=yes
3995 ac_cv_header_stat_broken
=no
4001 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4002 if test $ac_cv_header_stat_broken = yes; then
4003 cat >> confdefs.h
<<\EOF
4004 #define STAT_MACROS_BROKEN 1
4009 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4010 echo "configure:4011: checking for ANSI C header files" >&5
4011 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 cat > conftest.
$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4022 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4023 { (eval echo configure
:4024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4024 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4025 if test -z "$ac_err"; then
4027 ac_cv_header_stdc
=yes
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4033 ac_cv_header_stdc
=no
4037 if test $ac_cv_header_stdc = yes; then
4038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4039 cat > conftest.
$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4045 egrep "memchr" >/dev
/null
2>&1; then
4049 ac_cv_header_stdc
=no
4055 if test $ac_cv_header_stdc = yes; then
4056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4057 cat > conftest.
$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 egrep "free" >/dev
/null
2>&1; then
4067 ac_cv_header_stdc
=no
4073 if test $ac_cv_header_stdc = yes; then
4074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4075 if test "$cross_compiling" = yes; then
4078 cat > conftest.
$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4082 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4083 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4085 int main () { int i; for (i = 0; i < 256; i++)
4086 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4090 if { (eval echo configure
:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4094 echo "configure: failed program was:" >&5
4095 cat conftest.
$ac_ext >&5
4097 ac_cv_header_stdc
=no
4105 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4106 if test $ac_cv_header_stdc = yes; then
4107 cat >> confdefs.h
<<\EOF
4108 #define STDC_HEADERS 1
4113 for ac_hdr
in link.h
4115 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4117 echo "configure:4118: checking for $ac_hdr" >&5
4118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4119 echo $ac_n "(cached) $ac_c" 1>&6
4121 cat > conftest.
$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4126 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4127 { (eval echo configure
:4128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4128 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4129 if test -z "$ac_err"; then
4131 eval "ac_cv_header_$ac_safe=yes"
4134 echo "configure: failed program was:" >&5
4135 cat conftest.
$ac_ext >&5
4137 eval "ac_cv_header_$ac_safe=no"
4141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4143 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4144 cat >> confdefs.h
<<EOF
4145 #define $ac_tr_hdr 1
4149 echo "$ac_t""no" 1>&6
4153 for ac_hdr
in nlist.h
4155 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4157 echo "configure:4158: checking for $ac_hdr" >&5
4158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 cat > conftest.
$ac_ext <<EOF
4162 #line 4163 "configure"
4163 #include "confdefs.h"
4166 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4167 { (eval echo configure
:4168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4168 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4169 if test -z "$ac_err"; then
4171 eval "ac_cv_header_$ac_safe=yes"
4174 echo "configure: failed program was:" >&5
4175 cat conftest.
$ac_ext >&5
4177 eval "ac_cv_header_$ac_safe=no"
4181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4182 echo "$ac_t""yes" 1>&6
4183 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4184 cat >> confdefs.h
<<EOF
4185 #define $ac_tr_hdr 1
4189 echo "$ac_t""no" 1>&6
4193 for ac_hdr
in poll.h sys
/poll.h
4195 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4197 echo "configure:4198: checking for $ac_hdr" >&5
4198 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 cat > conftest.
$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4206 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4207 { (eval echo configure
:4208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4208 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4209 if test -z "$ac_err"; then
4211 eval "ac_cv_header_$ac_safe=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.
$ac_ext >&5
4217 eval "ac_cv_header_$ac_safe=no"
4221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4222 echo "$ac_t""yes" 1>&6
4223 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4224 cat >> confdefs.h
<<EOF
4225 #define $ac_tr_hdr 1
4229 echo "$ac_t""no" 1>&6
4233 for ac_hdr
in proc_service.h thread_db.h
4235 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4237 echo "configure:4238: checking for $ac_hdr" >&5
4238 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 cat > conftest.
$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4246 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4247 { (eval echo configure
:4248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4248 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4249 if test -z "$ac_err"; then
4251 eval "ac_cv_header_$ac_safe=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.
$ac_ext >&5
4257 eval "ac_cv_header_$ac_safe=no"
4261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4264 cat >> confdefs.h
<<EOF
4265 #define $ac_tr_hdr 1
4269 echo "$ac_t""no" 1>&6
4273 for ac_hdr
in stddef.h
4275 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4277 echo "configure:4278: checking for $ac_hdr" >&5
4278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 cat > conftest.
$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4286 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4287 { (eval echo configure
:4288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4288 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4289 if test -z "$ac_err"; then
4291 eval "ac_cv_header_$ac_safe=yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.
$ac_ext >&5
4297 eval "ac_cv_header_$ac_safe=no"
4301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4302 echo "$ac_t""yes" 1>&6
4303 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4304 cat >> confdefs.h
<<EOF
4305 #define $ac_tr_hdr 1
4309 echo "$ac_t""no" 1>&6
4313 for ac_hdr
in stdlib.h
4315 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4317 echo "configure:4318: checking for $ac_hdr" >&5
4318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 cat > conftest.
$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4326 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4327 { (eval echo configure
:4328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4328 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4329 if test -z "$ac_err"; then
4331 eval "ac_cv_header_$ac_safe=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4337 eval "ac_cv_header_$ac_safe=no"
4341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4344 cat >> confdefs.h
<<EOF
4345 #define $ac_tr_hdr 1
4349 echo "$ac_t""no" 1>&6
4353 for ac_hdr
in stdint.h
4355 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_hdr" >&5
4358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 cat > conftest.
$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367 { (eval echo configure
:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4368 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369 if test -z "$ac_err"; then
4371 eval "ac_cv_header_$ac_safe=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.
$ac_ext >&5
4377 eval "ac_cv_header_$ac_safe=no"
4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4384 cat >> confdefs.h
<<EOF
4385 #define $ac_tr_hdr 1
4389 echo "$ac_t""no" 1>&6
4393 for ac_hdr
in string.h memory.h
strings.h
4395 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4397 echo "configure:4398: checking for $ac_hdr" >&5
4398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.
$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4406 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4407 { (eval echo configure
:4408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4408 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4409 if test -z "$ac_err"; then
4411 eval "ac_cv_header_$ac_safe=yes"
4414 echo "configure: failed program was:" >&5
4415 cat conftest.
$ac_ext >&5
4417 eval "ac_cv_header_$ac_safe=no"
4421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4423 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4424 cat >> confdefs.h
<<EOF
4425 #define $ac_tr_hdr 1
4429 echo "$ac_t""no" 1>&6
4433 for ac_hdr
in sys
/fault.h
4435 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4437 echo "configure:4438: checking for $ac_hdr" >&5
4438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.
$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4446 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4447 { (eval echo configure
:4448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4448 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4449 if test -z "$ac_err"; then
4451 eval "ac_cv_header_$ac_safe=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4457 eval "ac_cv_header_$ac_safe=no"
4461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4464 cat >> confdefs.h
<<EOF
4465 #define $ac_tr_hdr 1
4469 echo "$ac_t""no" 1>&6
4473 for ac_hdr
in sys
/file.h
4475 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4477 echo "configure:4478: checking for $ac_hdr" >&5
4478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4486 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4487 { (eval echo configure
:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4488 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4489 if test -z "$ac_err"; then
4491 eval "ac_cv_header_$ac_safe=yes"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 eval "ac_cv_header_$ac_safe=no"
4501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6
4503 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4504 cat >> confdefs.h
<<EOF
4505 #define $ac_tr_hdr 1
4509 echo "$ac_t""no" 1>&6
4513 for ac_hdr
in sys
/filio.h
4515 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4517 echo "configure:4518: checking for $ac_hdr" >&5
4518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4521 cat > conftest.
$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4526 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4527 { (eval echo configure
:4528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4528 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4529 if test -z "$ac_err"; then
4531 eval "ac_cv_header_$ac_safe=yes"
4534 echo "configure: failed program was:" >&5
4535 cat conftest.
$ac_ext >&5
4537 eval "ac_cv_header_$ac_safe=no"
4541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4542 echo "$ac_t""yes" 1>&6
4543 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4544 cat >> confdefs.h
<<EOF
4545 #define $ac_tr_hdr 1
4549 echo "$ac_t""no" 1>&6
4553 for ac_hdr
in sys
/ioctl.h
4555 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_hdr" >&5
4558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.
$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4566 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4567 { (eval echo configure
:4568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4568 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4569 if test -z "$ac_err"; then
4571 eval "ac_cv_header_$ac_safe=yes"
4574 echo "configure: failed program was:" >&5
4575 cat conftest.
$ac_ext >&5
4577 eval "ac_cv_header_$ac_safe=no"
4581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4584 cat >> confdefs.h
<<EOF
4585 #define $ac_tr_hdr 1
4589 echo "$ac_t""no" 1>&6
4593 for ac_hdr
in sys
/param.h
4595 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4597 echo "configure:4598: checking for $ac_hdr" >&5
4598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 cat > conftest.
$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4606 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4607 { (eval echo configure
:4608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4608 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4609 if test -z "$ac_err"; then
4611 eval "ac_cv_header_$ac_safe=yes"
4614 echo "configure: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4617 eval "ac_cv_header_$ac_safe=no"
4621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4623 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4624 cat >> confdefs.h
<<EOF
4625 #define $ac_tr_hdr 1
4629 echo "$ac_t""no" 1>&6
4633 for ac_hdr
in sys
/proc.h
4635 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4637 echo "configure:4638: checking for $ac_hdr" >&5
4638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 cat > conftest.
$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4646 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4647 { (eval echo configure
:4648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4648 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4649 if test -z "$ac_err"; then
4651 eval "ac_cv_header_$ac_safe=yes"
4654 echo "configure: failed program was:" >&5
4655 cat conftest.
$ac_ext >&5
4657 eval "ac_cv_header_$ac_safe=no"
4661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4662 echo "$ac_t""yes" 1>&6
4663 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4664 cat >> confdefs.h
<<EOF
4665 #define $ac_tr_hdr 1
4669 echo "$ac_t""no" 1>&6
4673 for ac_hdr
in sys
/procfs.h
4675 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4677 echo "configure:4678: checking for $ac_hdr" >&5
4678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4681 cat > conftest.
$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4686 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4687 { (eval echo configure
:4688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4688 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4689 if test -z "$ac_err"; then
4691 eval "ac_cv_header_$ac_safe=yes"
4694 echo "configure: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4697 eval "ac_cv_header_$ac_safe=no"
4701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4703 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4704 cat >> confdefs.h
<<EOF
4705 #define $ac_tr_hdr 1
4709 echo "$ac_t""no" 1>&6
4713 for ac_hdr
in sys
/ptrace.h ptrace.h
4715 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_hdr" >&5
4718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 cat > conftest.
$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4727 { (eval echo configure
:4728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4729 if test -z "$ac_err"; then
4731 eval "ac_cv_header_$ac_safe=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.
$ac_ext >&5
4737 eval "ac_cv_header_$ac_safe=no"
4741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4742 echo "$ac_t""yes" 1>&6
4743 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4744 cat >> confdefs.h
<<EOF
4745 #define $ac_tr_hdr 1
4749 echo "$ac_t""no" 1>&6
4753 for ac_hdr
in sys
/reg.h sys
/debugreg.h
4755 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_hdr" >&5
4758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.
$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4767 { (eval echo configure
:4768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4769 if test -z "$ac_err"; then
4771 eval "ac_cv_header_$ac_safe=yes"
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 eval "ac_cv_header_$ac_safe=no"
4781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4784 cat >> confdefs.h
<<EOF
4785 #define $ac_tr_hdr 1
4789 echo "$ac_t""no" 1>&6
4793 for ac_hdr
in sys
/select.h
4795 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4797 echo "configure:4798: checking for $ac_hdr" >&5
4798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 cat > conftest.
$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4806 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4807 { (eval echo configure
:4808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4808 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4809 if test -z "$ac_err"; then
4811 eval "ac_cv_header_$ac_safe=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.
$ac_ext >&5
4817 eval "ac_cv_header_$ac_safe=no"
4821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6
4823 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4824 cat >> confdefs.h
<<EOF
4825 #define $ac_tr_hdr 1
4829 echo "$ac_t""no" 1>&6
4833 for ac_hdr
in sys
/syscall.h
4835 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_hdr" >&5
4838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.
$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4846 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4847 { (eval echo configure
:4848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4848 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4849 if test -z "$ac_err"; then
4851 eval "ac_cv_header_$ac_safe=yes"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.
$ac_ext >&5
4857 eval "ac_cv_header_$ac_safe=no"
4861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4862 echo "$ac_t""yes" 1>&6
4863 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4864 cat >> confdefs.h
<<EOF
4865 #define $ac_tr_hdr 1
4869 echo "$ac_t""no" 1>&6
4873 for ac_hdr
in sys
/user.h
4875 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4877 echo "configure:4878: checking for $ac_hdr" >&5
4878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 cat > conftest.
$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4887 { (eval echo configure
:4888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4889 if test -z "$ac_err"; then
4891 eval "ac_cv_header_$ac_safe=yes"
4894 echo "configure: failed program was:" >&5
4895 cat conftest.
$ac_ext >&5
4897 eval "ac_cv_header_$ac_safe=no"
4901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4904 cat >> confdefs.h
<<EOF
4905 #define $ac_tr_hdr 1
4909 echo "$ac_t""no" 1>&6
4913 for ac_hdr
in sys
/wait.h
wait.h
4915 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4917 echo "configure:4918: checking for $ac_hdr" >&5
4918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4921 cat > conftest.
$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4926 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4927 { (eval echo configure
:4928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4928 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4929 if test -z "$ac_err"; then
4931 eval "ac_cv_header_$ac_safe=yes"
4934 echo "configure: failed program was:" >&5
4935 cat conftest.
$ac_ext >&5
4937 eval "ac_cv_header_$ac_safe=no"
4941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4944 cat >> confdefs.h
<<EOF
4945 #define $ac_tr_hdr 1
4949 echo "$ac_t""no" 1>&6
4953 for ac_hdr
in termios.h termio.h sgtty.h
4955 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4957 echo "configure:4958: checking for $ac_hdr" >&5
4958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4961 cat > conftest.
$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4966 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4967 { (eval echo configure
:4968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4968 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4969 if test -z "$ac_err"; then
4971 eval "ac_cv_header_$ac_safe=yes"
4974 echo "configure: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4977 eval "ac_cv_header_$ac_safe=no"
4981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4982 echo "$ac_t""yes" 1>&6
4983 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4984 cat >> confdefs.h
<<EOF
4985 #define $ac_tr_hdr 1
4989 echo "$ac_t""no" 1>&6
4993 for ac_hdr
in unistd.h
4995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4997 echo "configure:4998: checking for $ac_hdr" >&5
4998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5001 cat > conftest.
$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5007 { (eval echo configure
:5008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5009 if test -z "$ac_err"; then
5011 eval "ac_cv_header_$ac_safe=yes"
5014 echo "configure: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5017 eval "ac_cv_header_$ac_safe=no"
5021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5022 echo "$ac_t""yes" 1>&6
5023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5024 cat >> confdefs.h
<<EOF
5025 #define $ac_tr_hdr 1
5029 echo "$ac_t""no" 1>&6
5034 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5035 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5036 # think that we don't have <curses.h> if we're using GCC.
5039 if test "$GCC" = yes; then
5040 cat >> confdefs.h
<<\EOF
5041 #define _MSE_INT_H 1
5046 for ac_hdr
in curses.h ncurses.h term.h
5048 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5050 echo "configure:5051: checking for $ac_hdr" >&5
5051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5054 cat > conftest.
$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5059 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5060 { (eval echo configure
:5061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5061 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5062 if test -z "$ac_err"; then
5064 eval "ac_cv_header_$ac_safe=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.
$ac_ext >&5
5070 eval "ac_cv_header_$ac_safe=no"
5074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5077 cat >> confdefs.h
<<EOF
5078 #define $ac_tr_hdr 1
5082 echo "$ac_t""no" 1>&6
5087 # FIXME: kettenis/20030102: In most cases we include these
5088 # unconditionally, so what's the point in checking these?
5089 for ac_hdr
in ctype.h
time.h
5091 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5093 echo "configure:5094: checking for $ac_hdr" >&5
5094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 cat > conftest.
$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5103 { (eval echo configure
:5104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5105 if test -z "$ac_err"; then
5107 eval "ac_cv_header_$ac_safe=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.
$ac_ext >&5
5113 eval "ac_cv_header_$ac_safe=no"
5117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5120 cat >> confdefs.h
<<EOF
5121 #define $ac_tr_hdr 1
5125 echo "$ac_t""no" 1>&6
5130 # ------------------ #
5131 # Checks for types. #
5132 # ------------------ #
5134 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5135 echo "configure:5136: checking return type of signal handlers" >&5
5136 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 cat > conftest.
$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 #include <sys/types.h>
5148 extern "C" void (*signal (int, void (*)(int)))(int);
5150 void (*signal ()) ();
5157 if { (eval echo configure
:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5159 ac_cv_type_signal
=void
5161 echo "configure: failed program was:" >&5
5162 cat conftest.
$ac_ext >&5
5164 ac_cv_type_signal
=int
5169 echo "$ac_t""$ac_cv_type_signal" 1>&6
5170 cat >> confdefs.h
<<EOF
5171 #define RETSIGTYPE $ac_cv_type_signal
5176 # ------------------------------------- #
5177 # Checks for compiler characteristics. #
5178 # ------------------------------------- #
5180 echo $ac_n "checking for working const""... $ac_c" 1>&6
5181 echo "configure:5182: checking for working const" >&5
5182 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 cat > conftest.
$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5191 /* Ultrix mips cc rejects this. */
5192 typedef int charset[2]; const charset x;
5193 /* SunOS 4.1.1 cc rejects this. */
5194 char const *const *ccp;
5196 /* NEC SVR4.0.2 mips cc rejects this. */
5197 struct point {int x, y;};
5198 static struct point const zero = {0,0};
5199 /* AIX XL C 1.02.0.0 rejects this.
5200 It does not let you subtract one const X* pointer from another in an arm
5201 of an if-expression whose if-part is not a constant expression */
5202 const char *g = "string";
5203 ccp = &g + (g ? g-g : 0);
5204 /* HPUX 7.0 cc rejects these. */
5207 ccp = (char const *const *) p;
5208 { /* SCO 3.2v4 cc rejects this. */
5210 char const *s = 0 ? (char *) 0 : (char const *) 0;
5214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5216 const int *foo = &x[0];
5219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5220 typedef const int *iptr;
5224 { /* AIX XL C 1.02.0.0 rejects this saying
5225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5226 struct s { int j; const int *ap[3]; };
5227 struct s *b; b->j = 5;
5229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5235 if { (eval echo configure
:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239 echo "configure: failed program was:" >&5
5240 cat conftest.
$ac_ext >&5
5247 echo "$ac_t""$ac_cv_c_const" 1>&6
5248 if test $ac_cv_c_const = no
; then
5249 cat >> confdefs.h
<<\EOF
5255 echo $ac_n "checking for inline""... $ac_c" 1>&6
5256 echo "configure:5257: checking for inline" >&5
5257 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5261 for ac_kw
in inline __inline__ __inline
; do
5262 cat > conftest.
$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5270 if { (eval echo configure
:5271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5272 ac_cv_c_inline
=$ac_kw; break
5274 echo "configure: failed program was:" >&5
5275 cat conftest.
$ac_ext >&5
5282 echo "$ac_t""$ac_cv_c_inline" 1>&6
5283 case "$ac_cv_c_inline" in
5285 no
) cat >> confdefs.h
<<\EOF
5289 *) cat >> confdefs.h
<<EOF
5290 #define inline $ac_cv_c_inline
5296 # ------------------------------ #
5297 # Checks for library functions. #
5298 # ------------------------------ #
5300 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5301 # for constant arguments. Useless!
5302 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5303 echo "configure:5304: checking for working alloca.h" >&5
5304 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 cat > conftest.
$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5312 char *p = alloca(2 * sizeof(int));
5315 if { (eval echo configure
:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5317 ac_cv_header_alloca_h
=yes
5319 echo "configure: failed program was:" >&5
5320 cat conftest.
$ac_ext >&5
5322 ac_cv_header_alloca_h
=no
5327 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5328 if test $ac_cv_header_alloca_h = yes; then
5329 cat >> confdefs.h
<<\EOF
5330 #define HAVE_ALLOCA_H 1
5335 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5336 echo "configure:5337: checking for alloca" >&5
5337 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 cat > conftest.
$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5345 # define alloca __builtin_alloca
5348 # include <malloc.h>
5349 # define alloca _alloca
5352 # include <alloca.h>
5357 # ifndef alloca /* predefined by HP cc +Olibcalls */
5366 char *p = (char *) alloca(1);
5369 if { (eval echo configure
:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5371 ac_cv_func_alloca_works
=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5376 ac_cv_func_alloca_works
=no
5381 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5382 if test $ac_cv_func_alloca_works = yes; then
5383 cat >> confdefs.h
<<\EOF
5384 #define HAVE_ALLOCA 1
5389 if test $ac_cv_func_alloca_works = no
; then
5390 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5391 # that cause trouble. Some versions do not even contain alloca or
5392 # contain a buggy version. If you still want to use their alloca,
5393 # use ar to extract alloca.o from them instead of compiling alloca.c.
5394 ALLOCA
=alloca.
${ac_objext}
5395 cat >> confdefs.h
<<\EOF
5400 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5401 echo "configure:5402: checking whether alloca needs Cray hooks" >&5
5402 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5405 cat > conftest.
$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 #if defined(CRAY) && ! defined(CRAY2)
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 egrep "webecray" >/dev
/null
2>&1; then
5427 echo "$ac_t""$ac_cv_os_cray" 1>&6
5428 if test $ac_cv_os_cray = yes; then
5429 for ac_func
in _getb67 GETB67 getb67
; do
5430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5431 echo "configure:5432: checking for $ac_func" >&5
5432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.
$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 /* System header to define __stub macros and hopefully few prototypes,
5439 which can conflict with char $ac_func(); below. */
5441 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5448 /* The GNU C library defines this for functions which it implements
5449 to always fail with ENOSYS. Some functions are actually named
5450 something starting with __ and the normal name is an alias. */
5451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5459 if { (eval echo configure
:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5461 eval "ac_cv_func_$ac_func=yes"
5463 echo "configure: failed program was:" >&5
5464 cat conftest.
$ac_ext >&5
5466 eval "ac_cv_func_$ac_func=no"
5471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5472 echo "$ac_t""yes" 1>&6
5473 cat >> confdefs.h
<<EOF
5474 #define CRAY_STACKSEG_END $ac_func
5479 echo "$ac_t""no" 1>&6
5485 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5486 echo "configure:5487: checking stack direction for C alloca" >&5
5487 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 if test "$cross_compiling" = yes; then
5491 ac_cv_c_stack_direction
=0
5493 cat > conftest.
$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 find_stack_direction ()
5498 static char *addr = 0;
5503 return find_stack_direction ();
5506 return (&dummy > addr) ? 1 : -1;
5510 exit (find_stack_direction() < 0);
5513 if { (eval echo configure
:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5515 ac_cv_c_stack_direction
=1
5517 echo "configure: failed program was:" >&5
5518 cat conftest.
$ac_ext >&5
5520 ac_cv_c_stack_direction
=-1
5527 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5528 cat >> confdefs.h
<<EOF
5529 #define STACK_DIRECTION $ac_cv_c_stack_direction
5534 for ac_hdr
in unistd.h
5536 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5538 echo "configure:5539: checking for $ac_hdr" >&5
5539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.
$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5547 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5548 { (eval echo configure
:5549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5549 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5550 if test -z "$ac_err"; then
5552 eval "ac_cv_header_$ac_safe=yes"
5555 echo "configure: failed program was:" >&5
5556 cat conftest.
$ac_ext >&5
5558 eval "ac_cv_header_$ac_safe=no"
5562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5565 cat >> confdefs.h
<<EOF
5566 #define $ac_tr_hdr 1
5570 echo "$ac_t""no" 1>&6
5574 for ac_func
in getpagesize
5576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_func" >&5
5578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5581 cat > conftest.
$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char $ac_func(); below. */
5587 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5605 if { (eval echo configure
:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5607 eval "ac_cv_func_$ac_func=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.
$ac_ext >&5
5612 eval "ac_cv_func_$ac_func=no"
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h
<<EOF
5621 #define $ac_tr_func 1
5625 echo "$ac_t""no" 1>&6
5629 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5630 echo "configure:5631: checking for working mmap" >&5
5631 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5634 if test "$cross_compiling" = yes; then
5635 ac_cv_func_mmap_fixed_mapped
=no
5637 cat > conftest.
$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5641 /* Thanks to Mike Haertel and Jim Avera for this test.
5642 Here is a matrix of mmap possibilities:
5643 mmap private not fixed
5644 mmap private fixed at somewhere currently unmapped
5645 mmap private fixed at somewhere already mapped
5646 mmap shared not fixed
5647 mmap shared fixed at somewhere currently unmapped
5648 mmap shared fixed at somewhere already mapped
5649 For private mappings, we should verify that changes cannot be read()
5650 back from the file, nor mmap's back from the file at a different
5651 address. (There have been systems where private was not correctly
5652 implemented like the infamous i386 svr4.0, and systems where the
5653 VM page cache was not coherent with the filesystem buffer cache
5654 like early versions of FreeBSD and possibly contemporary NetBSD.)
5655 For shared mappings, we should conversely verify that changes get
5656 propogated back to all the places they're supposed to be.
5658 Grep wants private fixed already mapped.
5659 The main things grep needs to know about mmap are:
5660 * does it exist and is it safe to write into the mmap'd area
5661 * how to use it (BSD variants) */
5662 #include <sys/types.h>
5664 #include <sys/mman.h>
5666 /* This mess was copied from the GNU getpagesize.h. */
5667 #ifndef HAVE_GETPAGESIZE
5668 # ifdef HAVE_UNISTD_H
5669 # include <unistd.h>
5672 /* Assume that all systems that can run configure have sys/param.h. */
5673 # ifndef HAVE_SYS_PARAM_H
5674 # define HAVE_SYS_PARAM_H 1
5677 # ifdef _SC_PAGESIZE
5678 # define getpagesize() sysconf(_SC_PAGESIZE)
5679 # else /* no _SC_PAGESIZE */
5680 # ifdef HAVE_SYS_PARAM_H
5681 # include <sys/param.h>
5682 # ifdef EXEC_PAGESIZE
5683 # define getpagesize() EXEC_PAGESIZE
5684 # else /* no EXEC_PAGESIZE */
5686 # define getpagesize() NBPG * CLSIZE
5689 # endif /* no CLSIZE */
5690 # else /* no NBPG */
5692 # define getpagesize() NBPC
5693 # else /* no NBPC */
5695 # define getpagesize() PAGESIZE
5696 # endif /* PAGESIZE */
5697 # endif /* no NBPC */
5698 # endif /* no NBPG */
5699 # endif /* no EXEC_PAGESIZE */
5700 # else /* no HAVE_SYS_PARAM_H */
5701 # define getpagesize() 8192 /* punt totally */
5702 # endif /* no HAVE_SYS_PARAM_H */
5703 # endif /* no _SC_PAGESIZE */
5705 #endif /* no HAVE_GETPAGESIZE */
5708 extern "C" { void *malloc(unsigned); }
5716 char *data, *data2, *data3;
5720 pagesize = getpagesize();
5723 * First, make a file with some known garbage in it.
5725 data = malloc(pagesize);
5728 for (i = 0; i < pagesize; ++i)
5729 *(data + i) = rand();
5731 fd = creat("conftestmmap", 0600);
5734 if (write(fd, data, pagesize) != pagesize)
5739 * Next, try to mmap the file at a fixed address which
5740 * already has something else allocated at it. If we can,
5741 * also make sure that we see the same garbage.
5743 fd = open("conftestmmap", O_RDWR);
5746 data2 = malloc(2 * pagesize);
5749 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5750 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5751 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5753 for (i = 0; i < pagesize; ++i)
5754 if (*(data + i) != *(data2 + i))
5758 * Finally, make sure that changes to the mapped area
5759 * do not percolate back to the file as seen by read().
5760 * (This is a bug on some variants of i386 svr4.0.)
5762 for (i = 0; i < pagesize; ++i)
5763 *(data2 + i) = *(data2 + i) + 1;
5764 data3 = malloc(pagesize);
5767 if (read(fd, data3, pagesize) != pagesize)
5769 for (i = 0; i < pagesize; ++i)
5770 if (*(data + i) != *(data3 + i))
5773 unlink("conftestmmap");
5778 if { (eval echo configure
:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5780 ac_cv_func_mmap_fixed_mapped
=yes
5782 echo "configure: failed program was:" >&5
5783 cat conftest.
$ac_ext >&5
5785 ac_cv_func_mmap_fixed_mapped
=no
5792 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5793 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5794 cat >> confdefs.h
<<\EOF
5800 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5801 echo "configure:5802: checking for pid_t" >&5
5802 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5805 cat > conftest.
$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5808 #include <sys/types.h>
5814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5815 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5817 ac_cv_type_pid_t
=yes
5825 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5826 if test $ac_cv_type_pid_t = no
; then
5827 cat >> confdefs.h
<<\EOF
5833 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5834 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5835 echo "configure:5836: checking for vfork.h" >&5
5836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 cat > conftest.
$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5844 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5845 { (eval echo configure
:5846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5846 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5847 if test -z "$ac_err"; then
5849 eval "ac_cv_header_$ac_safe=yes"
5852 echo "configure: failed program was:" >&5
5853 cat conftest.
$ac_ext >&5
5855 eval "ac_cv_header_$ac_safe=no"
5859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5861 cat >> confdefs.h
<<\EOF
5862 #define HAVE_VFORK_H 1
5866 echo "$ac_t""no" 1>&6
5869 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
5870 echo "configure:5871: checking for working vfork" >&5
5871 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 if test "$cross_compiling" = yes; then
5875 echo $ac_n "checking for vfork""... $ac_c" 1>&6
5876 echo "configure:5877: checking for vfork" >&5
5877 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5880 cat > conftest.
$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 /* System header to define __stub macros and hopefully few prototypes,
5884 which can conflict with char vfork(); below. */
5886 /* Override any gcc2 internal prototype to avoid an error. */
5887 /* We use char because int might match the return type of a gcc2
5888 builtin and then its argument prototype would still apply. */
5893 /* The GNU C library defines this for functions which it implements
5894 to always fail with ENOSYS. Some functions are actually named
5895 something starting with __ and the normal name is an alias. */
5896 #if defined (__stub_vfork) || defined (__stub___vfork)
5904 if { (eval echo configure
:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5906 eval "ac_cv_func_vfork=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.
$ac_ext >&5
5911 eval "ac_cv_func_vfork=no"
5916 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
5917 echo "$ac_t""yes" 1>&6
5920 echo "$ac_t""no" 1>&6
5923 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5925 cat > conftest.
$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 /* Thanks to Paul Eggert for this test. */
5930 #include <sys/types.h>
5931 #include <sys/stat.h>
5932 #ifdef HAVE_UNISTD_H
5938 /* On some sparc systems, changes by the child to local and incoming
5939 argument registers are propagated back to the parent.
5940 The compiler is told about this with #include <vfork.h>,
5941 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
5942 Test for this by using a static variable whose address
5943 is put into a register that is clobbered by the vfork. */
5946 sparc_address_test (int arg)
5948 sparc_address_test (arg) int arg;
5966 pid_t parent = getpid ();
5969 sparc_address_test ();
5974 /* Here is another test for sparc vfork register problems.
5975 This test uses lots of local variables, at least
5976 as many local variables as main has allocated so far
5977 including compiler temporaries. 4 locals are enough for
5978 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
5979 A buggy compiler should reuse the register of parent
5980 for one of the local variables, since it will think that
5981 parent can't possibly be used any more in this routine.
5982 Assigning to the local variable will thus munge parent
5983 in the parent process. */
5985 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5986 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5987 /* Convince the compiler that p..p7 are live; otherwise, it might
5988 use the same hardware register for all 8 local variables. */
5989 if (p != p1 || p != p2 || p != p3 || p != p4
5990 || p != p5 || p != p6 || p != p7)
5993 /* On some systems (e.g. IRIX 3.3),
5994 vfork doesn't separate parent from child file descriptors.
5995 If the child closes a descriptor before it execs or exits,
5996 this munges the parent's descriptor as well.
5997 Test for this by closing stdout in the child. */
5998 _exit(close(fileno(stdout)) != 0);
6003 while (wait(&status) != child)
6006 /* Was there some problem with vforking? */
6009 /* Did the child fail? (This shouldn't happen.) */
6012 /* Did the vfork/compiler bug occur? */
6013 || parent != getpid()
6015 /* Did the file descriptor bug occur? */
6016 || fstat(fileno(stdout), &st) != 0
6021 if { (eval echo configure
:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6023 ac_cv_func_vfork_works
=yes
6025 echo "configure: failed program was:" >&5
6026 cat conftest.
$ac_ext >&5
6028 ac_cv_func_vfork_works
=no
6035 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6036 if test $ac_cv_func_vfork_works = no
; then
6037 cat >> confdefs.h
<<\EOF
6043 for ac_func
in canonicalize_file_name realpath
6045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6046 echo "configure:6047: checking for $ac_func" >&5
6047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6048 echo $ac_n "(cached) $ac_c" 1>&6
6050 cat > conftest.
$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6053 /* System header to define __stub macros and hopefully few prototypes,
6054 which can conflict with char $ac_func(); below. */
6056 /* Override any gcc2 internal prototype to avoid an error. */
6057 /* We use char because int might match the return type of a gcc2
6058 builtin and then its argument prototype would still apply. */
6063 /* The GNU C library defines this for functions which it implements
6064 to always fail with ENOSYS. Some functions are actually named
6065 something starting with __ and the normal name is an alias. */
6066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074 if { (eval echo configure
:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6076 eval "ac_cv_func_$ac_func=yes"
6078 echo "configure: failed program was:" >&5
6079 cat conftest.
$ac_ext >&5
6081 eval "ac_cv_func_$ac_func=no"
6086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6087 echo "$ac_t""yes" 1>&6
6088 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6089 cat >> confdefs.h
<<EOF
6090 #define $ac_tr_func 1
6094 echo "$ac_t""no" 1>&6
6100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6101 echo "configure:6102: checking for $ac_func" >&5
6102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6103 echo $ac_n "(cached) $ac_c" 1>&6
6105 cat > conftest.
$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6108 /* System header to define __stub macros and hopefully few prototypes,
6109 which can conflict with char $ac_func(); below. */
6111 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6118 /* The GNU C library defines this for functions which it implements
6119 to always fail with ENOSYS. Some functions are actually named
6120 something starting with __ and the normal name is an alias. */
6121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6129 if { (eval echo configure
:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6131 eval "ac_cv_func_$ac_func=yes"
6133 echo "configure: failed program was:" >&5
6134 cat conftest.
$ac_ext >&5
6136 eval "ac_cv_func_$ac_func=no"
6141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6142 echo "$ac_t""yes" 1>&6
6143 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6144 cat >> confdefs.h
<<EOF
6145 #define $ac_tr_func 1
6149 echo "$ac_t""no" 1>&6
6155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6156 echo "configure:6157: checking for $ac_func" >&5
6157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6160 cat > conftest.
$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6163 /* System header to define __stub macros and hopefully few prototypes,
6164 which can conflict with char $ac_func(); below. */
6166 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6173 /* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6184 if { (eval echo configure
:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6186 eval "ac_cv_func_$ac_func=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.
$ac_ext >&5
6191 eval "ac_cv_func_$ac_func=no"
6196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6197 echo "$ac_t""yes" 1>&6
6198 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6199 cat >> confdefs.h
<<EOF
6200 #define $ac_tr_func 1
6204 echo "$ac_t""no" 1>&6
6208 for ac_func
in setpgid setpgrp
6210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6211 echo "configure:6212: checking for $ac_func" >&5
6212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6215 cat > conftest.
$ac_ext <<EOF
6216 #line 6217 "configure"
6217 #include "confdefs.h"
6218 /* System header to define __stub macros and hopefully few prototypes,
6219 which can conflict with char $ac_func(); below. */
6221 /* Override any gcc2 internal prototype to avoid an error. */
6222 /* We use char because int might match the return type of a gcc2
6223 builtin and then its argument prototype would still apply. */
6228 /* The GNU C library defines this for functions which it implements
6229 to always fail with ENOSYS. Some functions are actually named
6230 something starting with __ and the normal name is an alias. */
6231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6239 if { (eval echo configure
:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6241 eval "ac_cv_func_$ac_func=yes"
6243 echo "configure: failed program was:" >&5
6244 cat conftest.
$ac_ext >&5
6246 eval "ac_cv_func_$ac_func=no"
6251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6253 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6254 cat >> confdefs.h
<<EOF
6255 #define $ac_tr_func 1
6259 echo "$ac_t""no" 1>&6
6263 for ac_func
in sigaction sigprocmask sigsetmask
6265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6266 echo "configure:6267: checking for $ac_func" >&5
6267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6268 echo $ac_n "(cached) $ac_c" 1>&6
6270 cat > conftest.
$ac_ext <<EOF
6271 #line 6272 "configure"
6272 #include "confdefs.h"
6273 /* System header to define __stub macros and hopefully few prototypes,
6274 which can conflict with char $ac_func(); below. */
6276 /* Override any gcc2 internal prototype to avoid an error. */
6277 /* We use char because int might match the return type of a gcc2
6278 builtin and then its argument prototype would still apply. */
6283 /* The GNU C library defines this for functions which it implements
6284 to always fail with ENOSYS. Some functions are actually named
6285 something starting with __ and the normal name is an alias. */
6286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6294 if { (eval echo configure
:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6296 eval "ac_cv_func_$ac_func=yes"
6298 echo "configure: failed program was:" >&5
6299 cat conftest.
$ac_ext >&5
6301 eval "ac_cv_func_$ac_func=no"
6306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6307 echo "$ac_t""yes" 1>&6
6308 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6309 cat >> confdefs.h
<<EOF
6310 #define $ac_tr_func 1
6314 echo "$ac_t""no" 1>&6
6318 for ac_func
in socketpair
6320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6321 echo "configure:6322: checking for $ac_func" >&5
6322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 cat > conftest.
$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 /* System header to define __stub macros and hopefully few prototypes,
6329 which can conflict with char $ac_func(); below. */
6331 /* Override any gcc2 internal prototype to avoid an error. */
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6338 /* The GNU C library defines this for functions which it implements
6339 to always fail with ENOSYS. Some functions are actually named
6340 something starting with __ and the normal name is an alias. */
6341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6349 if { (eval echo configure
:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6351 eval "ac_cv_func_$ac_func=yes"
6353 echo "configure: failed program was:" >&5
6354 cat conftest.
$ac_ext >&5
6356 eval "ac_cv_func_$ac_func=no"
6361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6362 echo "$ac_t""yes" 1>&6
6363 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6364 cat >> confdefs.h
<<EOF
6365 #define $ac_tr_func 1
6369 echo "$ac_t""no" 1>&6
6374 if test "$cross_compiling" = no
; then
6375 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6376 echo "configure:6377: checking whether setpgrp takes no argument" >&5
6377 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6378 echo $ac_n "(cached) $ac_c" 1>&6
6380 if test "$cross_compiling" = yes; then
6381 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6383 cat > conftest.
$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6387 #ifdef HAVE_UNISTD_H
6392 * If this system has a BSD-style setpgrp, which takes arguments, exit
6397 if (setpgrp(1,1) == -1)
6404 if { (eval echo configure
:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6406 ac_cv_func_setpgrp_void
=no
6408 echo "configure: failed program was:" >&5
6409 cat conftest.
$ac_ext >&5
6411 ac_cv_func_setpgrp_void
=yes
6419 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6420 if test $ac_cv_func_setpgrp_void = yes; then
6421 cat >> confdefs.h
<<\EOF
6422 #define SETPGRP_VOID 1
6428 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6429 echo "configure:6430: checking whether setpgrp takes no argument" >&5
6430 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 cat > conftest.
$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6441 if (setpgrp(1,1) == -1)
6448 if { (eval echo configure
:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6450 ac_cv_func_setpgrp_void
=no
6452 echo "configure: failed program was:" >&5
6453 cat conftest.
$ac_ext >&5
6455 ac_cv_func_setpgrp_void
=yes
6460 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6461 if test $ac_cv_func_setpgrp_void = yes; then
6462 cat >> confdefs.h
<<\EOF
6463 #define SETPGRP_VOID 1
6469 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6470 # since sigsetjmp might only be defined as a macro.
6471 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6472 echo "configure:6473: checking for sigsetjmp" >&5
6473 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6476 cat > conftest.
$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6483 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6486 if { (eval echo configure
:6487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6488 gdb_cv_func_sigsetjmp
=yes
6490 echo "configure: failed program was:" >&5
6491 cat conftest.
$ac_ext >&5
6493 gdb_cv_func_sigsetjmp
=no
6498 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6499 if test $gdb_cv_func_sigsetjmp = yes; then
6500 cat >> confdefs.h
<<\EOF
6501 #define HAVE_SIGSETJMP 1
6506 # Assume we'll default to using the included libiberty regex.
6507 gdb_use_included_regex
=yes
6509 # However, if the system regex is GNU regex, then default to *not*
6510 # using the included regex.
6511 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6512 echo "configure:6513: checking for GNU regex" >&5
6513 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 cat > conftest.
$ac_ext <<EOF
6517 #line 6518 "configure"
6518 #include "confdefs.h"
6519 #include <gnu-versions.h>
6521 #define REGEX_INTERFACE_VERSION 1
6522 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
6523 # error "Version mismatch"
6527 if { (eval echo configure
:6528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6529 gdb_cv_have_gnu_regex
=yes
6531 echo "configure: failed program was:" >&5
6532 cat conftest.
$ac_ext >&5
6534 gdb_cv_have_gnu_regex
=no
6539 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6540 if test $gdb_cv_have_gnu_regex = yes; then
6541 gdb_use_included_regex
=no
6544 # Check whether --with-included-regex or --without-included-regex was given.
6545 if test "${with_included_regex+set}" = set; then
6546 withval
="$with_included_regex"
6547 gdb_with_regex
=$withval
6549 gdb_with_regex
=$gdb_use_included_regex
6552 if test "$gdb_with_regex" = yes; then
6553 cat >> confdefs.h
<<\EOF
6554 #define USE_INCLUDED_REGEX 1
6559 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6560 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6561 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6562 echo "configure:6563: checking for r_fs in struct reg" >&5
6563 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 cat > conftest.
$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 #include <machine/reg.h>
6571 struct reg r; r.r_fs;
6574 if { (eval echo configure
:6575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6576 gdb_cv_struct_reg_r_fs
=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.
$ac_ext >&5
6581 gdb_cv_struct_reg_r_fs
=no
6586 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6587 if test $gdb_cv_struct_reg_r_fs = yes; then
6588 cat >> confdefs.h
<<\EOF
6589 #define HAVE_STRUCT_REG_R_FS 1
6593 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6594 echo "configure:6595: checking for r_gs in struct reg" >&5
6595 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6598 cat > conftest.
$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 #include <machine/reg.h>
6603 struct reg r; r.r_gs;
6606 if { (eval echo configure
:6607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6608 gdb_cv_struct_reg_r_gs
=yes
6610 echo "configure: failed program was:" >&5
6611 cat conftest.
$ac_ext >&5
6613 gdb_cv_struct_reg_r_gs
=no
6618 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6619 if test $gdb_cv_struct_reg_r_gs = yes; then
6620 cat >> confdefs.h
<<\EOF
6621 #define HAVE_STRUCT_REG_R_GS 1
6626 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6627 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6628 echo "configure:6629: checking for PTRACE_GETREGS" >&5
6629 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6632 cat > conftest.
$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 #include <sys/ptrace.h>
6640 if { (eval echo configure
:6641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6642 gdb_cv_have_ptrace_getregs
=yes
6644 echo "configure: failed program was:" >&5
6645 cat conftest.
$ac_ext >&5
6647 gdb_cv_have_ptrace_getregs
=no
6652 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6653 if test $gdb_cv_have_ptrace_getregs = yes; then
6654 cat >> confdefs.h
<<\EOF
6655 #define HAVE_PTRACE_GETREGS 1
6660 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6661 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6662 echo "configure:6663: checking for PTRACE_GETFPXREGS" >&5
6663 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6666 cat > conftest.
$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 #include <sys/ptrace.h>
6674 if { (eval echo configure
:6675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6676 gdb_cv_have_ptrace_getfpxregs
=yes
6678 echo "configure: failed program was:" >&5
6679 cat conftest.
$ac_ext >&5
6681 gdb_cv_have_ptrace_getfpxregs
=no
6686 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6687 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6688 cat >> confdefs.h
<<\EOF
6689 #define HAVE_PTRACE_GETFPXREGS 1
6694 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6695 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6696 echo "configure:6697: checking for PT_GETDBREGS" >&5
6697 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 cat > conftest.
$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 #include <sys/types.h>
6704 #include <sys/ptrace.h>
6709 if { (eval echo configure
:6710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6711 gdb_cv_have_pt_getdbregs
=yes
6713 echo "configure: failed program was:" >&5
6714 cat conftest.
$ac_ext >&5
6716 gdb_cv_have_pt_getdbregs
=no
6721 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6722 if test $gdb_cv_have_pt_getdbregs = yes; then
6723 cat >> confdefs.h
<<\EOF
6724 #define HAVE_PT_GETDBREGS 1
6729 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6730 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6731 echo "configure:6732: checking for PT_GETXMMREGS" >&5
6732 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 cat > conftest.
$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 #include <sys/types.h>
6739 #include <sys/ptrace.h>
6744 if { (eval echo configure
:6745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6746 gdb_cv_have_pt_getxmmregs
=yes
6748 echo "configure: failed program was:" >&5
6749 cat conftest.
$ac_ext >&5
6751 gdb_cv_have_pt_getxmmregs
=no
6756 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6757 if test $gdb_cv_have_pt_getxmmregs = yes; then
6758 cat >> confdefs.h
<<\EOF
6759 #define HAVE_PT_GETXMMREGS 1
6765 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6766 echo "configure:6767: checking whether malloc must be declared" >&5
6767 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 cat > conftest.
$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6775 #ifdef HAVE_STRING_H
6778 #ifdef HAVE_STRINGS_H
6779 #include <strings.h>
6782 #ifdef HAVE_STDLIB_H
6785 #ifdef HAVE_UNISTD_H
6789 char *(*pfn) = (char *(*)) malloc
6792 if { (eval echo configure
:6793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6794 bfd_cv_decl_needed_malloc
=no
6796 echo "configure: failed program was:" >&5
6797 cat conftest.
$ac_ext >&5
6799 bfd_cv_decl_needed_malloc
=yes
6804 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
6805 if test $bfd_cv_decl_needed_malloc = yes; then
6806 cat >> confdefs.h
<<\EOF
6807 #define NEED_DECLARATION_MALLOC 1
6812 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
6813 echo "configure:6814: checking whether realloc must be declared" >&5
6814 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 cat > conftest.
$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6822 #ifdef HAVE_STRING_H
6825 #ifdef HAVE_STRINGS_H
6826 #include <strings.h>
6829 #ifdef HAVE_STDLIB_H
6832 #ifdef HAVE_UNISTD_H
6836 char *(*pfn) = (char *(*)) realloc
6839 if { (eval echo configure
:6840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6841 bfd_cv_decl_needed_realloc
=no
6843 echo "configure: failed program was:" >&5
6844 cat conftest.
$ac_ext >&5
6846 bfd_cv_decl_needed_realloc
=yes
6851 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
6852 if test $bfd_cv_decl_needed_realloc = yes; then
6853 cat >> confdefs.h
<<\EOF
6854 #define NEED_DECLARATION_REALLOC 1
6859 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
6860 echo "configure:6861: checking whether free must be declared" >&5
6861 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.
$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6869 #ifdef HAVE_STRING_H
6872 #ifdef HAVE_STRINGS_H
6873 #include <strings.h>
6876 #ifdef HAVE_STDLIB_H
6879 #ifdef HAVE_UNISTD_H
6883 char *(*pfn) = (char *(*)) free
6886 if { (eval echo configure
:6887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6888 bfd_cv_decl_needed_free
=no
6890 echo "configure: failed program was:" >&5
6891 cat conftest.
$ac_ext >&5
6893 bfd_cv_decl_needed_free
=yes
6898 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
6899 if test $bfd_cv_decl_needed_free = yes; then
6900 cat >> confdefs.h
<<\EOF
6901 #define NEED_DECLARATION_FREE 1
6906 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
6907 echo "configure:6908: checking whether strerror must be declared" >&5
6908 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 cat > conftest.
$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6916 #ifdef HAVE_STRING_H
6919 #ifdef HAVE_STRINGS_H
6920 #include <strings.h>
6923 #ifdef HAVE_STDLIB_H
6926 #ifdef HAVE_UNISTD_H
6930 char *(*pfn) = (char *(*)) strerror
6933 if { (eval echo configure
:6934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6935 bfd_cv_decl_needed_strerror
=no
6937 echo "configure: failed program was:" >&5
6938 cat conftest.
$ac_ext >&5
6940 bfd_cv_decl_needed_strerror
=yes
6945 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
6946 if test $bfd_cv_decl_needed_strerror = yes; then
6947 cat >> confdefs.h
<<\EOF
6948 #define NEED_DECLARATION_STRERROR 1
6953 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
6954 echo "configure:6955: checking whether strdup must be declared" >&5
6955 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
6956 echo $ac_n "(cached) $ac_c" 1>&6
6958 cat > conftest.
$ac_ext <<EOF
6959 #line 6960 "configure"
6960 #include "confdefs.h"
6963 #ifdef HAVE_STRING_H
6966 #ifdef HAVE_STRINGS_H
6967 #include <strings.h>
6970 #ifdef HAVE_STDLIB_H
6973 #ifdef HAVE_UNISTD_H
6977 char *(*pfn) = (char *(*)) strdup
6980 if { (eval echo configure
:6981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6982 bfd_cv_decl_needed_strdup
=no
6984 echo "configure: failed program was:" >&5
6985 cat conftest.
$ac_ext >&5
6987 bfd_cv_decl_needed_strdup
=yes
6992 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
6993 if test $bfd_cv_decl_needed_strdup = yes; then
6994 cat >> confdefs.h
<<\EOF
6995 #define NEED_DECLARATION_STRDUP 1
7000 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7001 echo "configure:7002: checking whether strstr must be declared" >&5
7002 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 cat > conftest.
$ac_ext <<EOF
7006 #line 7007 "configure"
7007 #include "confdefs.h"
7010 #ifdef HAVE_STRING_H
7013 #ifdef HAVE_STRINGS_H
7014 #include <strings.h>
7017 #ifdef HAVE_STDLIB_H
7020 #ifdef HAVE_UNISTD_H
7024 char *(*pfn) = (char *(*)) strstr
7027 if { (eval echo configure
:7028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7029 bfd_cv_decl_needed_strstr
=no
7031 echo "configure: failed program was:" >&5
7032 cat conftest.
$ac_ext >&5
7034 bfd_cv_decl_needed_strstr
=yes
7039 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7040 if test $bfd_cv_decl_needed_strstr = yes; then
7041 cat >> confdefs.h
<<\EOF
7042 #define NEED_DECLARATION_STRSTR 1
7047 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7048 echo "configure:7049: checking whether canonicalize_file_name must be declared" >&5
7049 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 cat > conftest.
$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7057 #ifdef HAVE_STRING_H
7060 #ifdef HAVE_STRINGS_H
7061 #include <strings.h>
7064 #ifdef HAVE_STDLIB_H
7067 #ifdef HAVE_UNISTD_H
7071 char *(*pfn) = (char *(*)) canonicalize_file_name
7074 if { (eval echo configure
:7075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7076 bfd_cv_decl_needed_canonicalize_file_name
=no
7078 echo "configure: failed program was:" >&5
7079 cat conftest.
$ac_ext >&5
7081 bfd_cv_decl_needed_canonicalize_file_name
=yes
7086 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7087 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7088 cat >> confdefs.h
<<\EOF
7089 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7095 # The following save_state_t checkery is only necessary for HPUX
7096 # versions earlier than 10.20. When those fade from memory, this
7097 # could be expunged. --jsm 1999-03-22
7099 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7100 echo "configure:7101: checking for HPUX save_state structure" >&5
7101 cat > conftest.
$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 #include <machine/save_state.h>
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107 egrep "save_state_t" >/dev
/null
2>&1; then
7109 gdb_cv_hpux_savestate
=yes
7112 gdb_cv_hpux_savestate
=no
7116 cat > conftest.
$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7119 #include <machine/save_state.h>
7121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7122 egrep "ss_wide" >/dev
/null
2>&1; then
7124 gdb_cv_hpux_sswide
=yes
7127 gdb_cv_hpux_sswide
=no
7131 if test $gdb_cv_hpux_savestate = yes
7133 cat >> confdefs.h
<<\EOF
7134 #define HAVE_STRUCT_SAVE_STATE_T 1
7138 if test $gdb_cv_hpux_sswide = yes
7140 cat >> confdefs.h
<<\EOF
7141 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7145 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7148 # If we are configured native on GNU/Linux, work around problems with
7150 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7152 if test "${target}" = "${host}"; then
7155 cat >> confdefs.h
<<\EOF
7156 #define START_INFERIOR_TRAPS_EXPECTED 2
7159 cat >> confdefs.h
<<\EOF
7160 #define sys_quotactl 1
7165 cat >> confdefs.h
<<\EOF
7166 #define NEW_PROC_API 1
7170 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7171 cat >> confdefs.h
<<\EOF
7172 #define NEW_PROC_API 1
7177 cat >> confdefs.h
<<\EOF
7178 #define NEW_PROC_API 1
7185 if test "$ac_cv_header_sys_procfs_h" = yes; then
7186 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7187 echo "configure:7188: checking for pstatus_t in sys/procfs.h" >&5
7188 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7191 cat > conftest.
$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7196 #include <sys/procfs.h>
7201 if { (eval echo configure
:7202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7205 echo "configure: failed program was:" >&5
7206 cat conftest.
$ac_ext >&5
7208 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7214 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7215 cat >> confdefs.h
<<\EOF
7216 #define HAVE_PSTATUS_T 1
7220 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7222 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7223 echo "configure:7224: checking for prrun_t in sys/procfs.h" >&5
7224 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7225 echo $ac_n "(cached) $ac_c" 1>&6
7227 cat > conftest.
$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7232 #include <sys/procfs.h>
7237 if { (eval echo configure
:7238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7239 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7241 echo "configure: failed program was:" >&5
7242 cat conftest.
$ac_ext >&5
7244 bfd_cv_have_sys_procfs_type_prrun_t
=no
7250 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7251 cat >> confdefs.h
<<\EOF
7252 #define HAVE_PRRUN_T 1
7256 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7258 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7259 echo "configure:7260: checking for gregset_t in sys/procfs.h" >&5
7260 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7263 cat > conftest.
$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7268 #include <sys/procfs.h>
7273 if { (eval echo configure
:7274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7275 bfd_cv_have_sys_procfs_type_gregset_t
=yes
7277 echo "configure: failed program was:" >&5
7278 cat conftest.
$ac_ext >&5
7280 bfd_cv_have_sys_procfs_type_gregset_t
=no
7286 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7287 cat >> confdefs.h
<<\EOF
7288 #define HAVE_GREGSET_T 1
7292 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7294 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7295 echo "configure:7296: checking for fpregset_t in sys/procfs.h" >&5
7296 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7299 cat > conftest.
$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7304 #include <sys/procfs.h>
7309 if { (eval echo configure
:7310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7311 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
7313 echo "configure: failed program was:" >&5
7314 cat conftest.
$ac_ext >&5
7316 bfd_cv_have_sys_procfs_type_fpregset_t
=no
7322 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7323 cat >> confdefs.h
<<\EOF
7324 #define HAVE_FPREGSET_T 1
7328 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7330 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7331 echo "configure:7332: checking for prgregset_t in sys/procfs.h" >&5
7332 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7333 echo $ac_n "(cached) $ac_c" 1>&6
7335 cat > conftest.
$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7340 #include <sys/procfs.h>
7345 if { (eval echo configure
:7346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7347 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7349 echo "configure: failed program was:" >&5
7350 cat conftest.
$ac_ext >&5
7352 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7358 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7359 cat >> confdefs.h
<<\EOF
7360 #define HAVE_PRGREGSET_T 1
7364 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7366 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7367 echo "configure:7368: checking for prfpregset_t in sys/procfs.h" >&5
7368 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7369 echo $ac_n "(cached) $ac_c" 1>&6
7371 cat > conftest.
$ac_ext <<EOF
7372 #line 7373 "configure"
7373 #include "confdefs.h"
7376 #include <sys/procfs.h>
7381 if { (eval echo configure
:7382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7383 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7385 echo "configure: failed program was:" >&5
7386 cat conftest.
$ac_ext >&5
7388 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7394 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7395 cat >> confdefs.h
<<\EOF
7396 #define HAVE_PRFPREGSET_T 1
7400 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7402 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7403 echo "configure:7404: checking for prgregset32_t in sys/procfs.h" >&5
7404 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 cat > conftest.
$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7412 #include <sys/procfs.h>
7417 if { (eval echo configure
:7418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7419 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
7421 echo "configure: failed program was:" >&5
7422 cat conftest.
$ac_ext >&5
7424 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
7430 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7431 cat >> confdefs.h
<<\EOF
7432 #define HAVE_PRGREGSET32_T 1
7436 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7438 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7439 echo "configure:7440: checking for prfpregset32_t in sys/procfs.h" >&5
7440 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6
7443 cat > conftest.
$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7448 #include <sys/procfs.h>
7453 if { (eval echo configure
:7454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7455 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
7457 echo "configure: failed program was:" >&5
7458 cat conftest.
$ac_ext >&5
7460 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
7466 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7467 cat >> confdefs.h
<<\EOF
7468 #define HAVE_PRFPREGSET32_T 1
7472 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7474 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7475 echo "configure:7476: checking for lwpid_t in sys/procfs.h" >&5
7476 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7479 cat > conftest.
$ac_ext <<EOF
7480 #line 7481 "configure"
7481 #include "confdefs.h"
7484 #include <sys/procfs.h>
7489 if { (eval echo configure
:7490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7491 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7493 echo "configure: failed program was:" >&5
7494 cat conftest.
$ac_ext >&5
7496 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7502 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7503 cat >> confdefs.h
<<\EOF
7504 #define HAVE_LWPID_T 1
7508 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7510 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7511 echo "configure:7512: checking for psaddr_t in sys/procfs.h" >&5
7512 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7515 cat > conftest.
$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7520 #include <sys/procfs.h>
7525 if { (eval echo configure
:7526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7527 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7529 echo "configure: failed program was:" >&5
7530 cat conftest.
$ac_ext >&5
7532 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7538 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7539 cat >> confdefs.h
<<\EOF
7540 #define HAVE_PSADDR_T 1
7544 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7546 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7547 echo "configure:7548: checking for prsysent_t in sys/procfs.h" >&5
7548 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 cat > conftest.
$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7556 #include <sys/procfs.h>
7561 if { (eval echo configure
:7562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7563 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
7565 echo "configure: failed program was:" >&5
7566 cat conftest.
$ac_ext >&5
7568 bfd_cv_have_sys_procfs_type_prsysent_t
=no
7574 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7575 cat >> confdefs.h
<<\EOF
7576 #define HAVE_PRSYSENT_T 1
7580 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7582 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7583 echo "configure:7584: checking for pr_sigset_t in sys/procfs.h" >&5
7584 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7587 cat > conftest.
$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7592 #include <sys/procfs.h>
7597 if { (eval echo configure
:7598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7599 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
7610 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7611 cat >> confdefs.h
<<\EOF
7612 #define HAVE_PR_SIGSET_T 1
7616 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7618 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7619 echo "configure:7620: checking for pr_sigaction64_t in sys/procfs.h" >&5
7620 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7623 cat > conftest.
$ac_ext <<EOF
7624 #line 7625 "configure"
7625 #include "confdefs.h"
7628 #include <sys/procfs.h>
7630 pr_sigaction64_t avar
7633 if { (eval echo configure
:7634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7635 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
7637 echo "configure: failed program was:" >&5
7638 cat conftest.
$ac_ext >&5
7640 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
7646 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7647 cat >> confdefs.h
<<\EOF
7648 #define HAVE_PR_SIGACTION64_T 1
7652 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7654 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7655 echo "configure:7656: checking for pr_siginfo64_t in sys/procfs.h" >&5
7656 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7659 cat > conftest.
$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7664 #include <sys/procfs.h>
7669 if { (eval echo configure
:7670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7671 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
7673 echo "configure: failed program was:" >&5
7674 cat conftest.
$ac_ext >&5
7676 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
7682 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7683 cat >> confdefs.h
<<\EOF
7684 #define HAVE_PR_SIGINFO64_T 1
7688 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7694 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7695 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7696 echo "configure:7697: checking whether prfpregset_t type is broken" >&5
7697 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7700 if test "$cross_compiling" = yes; then
7701 gdb_cv_prfpregset_t_broken
=yes
7703 cat > conftest.
$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 #include <sys/procfs.h>
7709 if (sizeof (prfpregset_t) == sizeof (void *))
7714 if { (eval echo configure
:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7716 gdb_cv_prfpregset_t_broken
=no
7718 echo "configure: failed program was:" >&5
7719 cat conftest.
$ac_ext >&5
7721 gdb_cv_prfpregset_t_broken
=yes
7728 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7729 if test $gdb_cv_prfpregset_t_broken = yes; then
7730 cat >> confdefs.h
<<\EOF
7731 #define PRFPREGSET_T_BROKEN 1
7738 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7739 echo "configure:7740: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7740 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7743 cat > conftest.
$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7747 #include <sys/types.h>
7748 #include <sys/procfs.h>
7753 dummy = ioctl(0, PIOCSET, &dummy);
7757 if { (eval echo configure
:7758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7759 gdb_cv_have_procfs_piocset
=yes
7761 echo "configure: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7764 gdb_cv_have_procfs_piocset
=no
7769 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
7770 if test $gdb_cv_have_procfs_piocset = yes; then
7771 cat >> confdefs.h
<<\EOF
7772 #define HAVE_PROCFS_PIOCSET 1
7778 if test ${host} = ${target} ; then
7780 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
7781 echo "configure:7782: checking for member l_addr in struct link_map" >&5
7782 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7785 cat > conftest.
$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7790 struct link_map lm; (void) lm.l_addr;
7793 if { (eval echo configure
:7794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7795 gdb_cv_have_struct_link_map_with_l_members
=yes
7797 echo "configure: failed program was:" >&5
7798 cat conftest.
$ac_ext >&5
7800 gdb_cv_have_struct_link_map_with_l_members
=no
7805 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
7806 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
7807 cat >> confdefs.h
<<\EOF
7808 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
7814 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
7815 echo "configure:7816: checking for member lm_addr in struct link_map" >&5
7816 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7819 cat > conftest.
$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7822 #include <sys/types.h>
7825 struct link_map lm; (void) lm.lm_addr;
7828 if { (eval echo configure
:7829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7830 gdb_cv_have_struct_link_map_with_lm_members
=yes
7832 echo "configure: failed program was:" >&5
7833 cat conftest.
$ac_ext >&5
7835 gdb_cv_have_struct_link_map_with_lm_members
=no
7840 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
7841 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
7842 cat >> confdefs.h
<<\EOF
7843 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
7849 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
7850 echo "configure:7851: checking for member som_addr in struct so_map" >&5
7851 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 cat > conftest.
$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 #include <sys/types.h>
7863 struct so_map lm; (void) lm.som_addr;
7866 if { (eval echo configure
:7867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7868 gdb_cv_have_struct_so_map_with_som_members
=yes
7870 echo "configure: failed program was:" >&5
7871 cat conftest.
$ac_ext >&5
7873 gdb_cv_have_struct_so_map_with_som_members
=no
7878 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
7879 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
7880 cat >> confdefs.h
<<\EOF
7881 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
7887 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
7888 echo "configure:7889: checking for struct link_map32 in sys/link.h" >&5
7889 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7892 cat > conftest.
$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7896 #include <sys/link.h>
7898 struct link_map32 l;
7901 if { (eval echo configure
:7902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7903 gdb_cv_have_struct_link_map32
=yes
7905 echo "configure: failed program was:" >&5
7906 cat conftest.
$ac_ext >&5
7908 gdb_cv_have_struct_link_map32
=no
7913 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
7914 if test $gdb_cv_have_struct_link_map32 = yes; then
7915 cat >> confdefs.h
<<\EOF
7916 #define HAVE_STRUCT_LINK_MAP32 1
7919 cat >> confdefs.h
<<\EOF
7920 #define _SYSCALL32 1
7927 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
7928 echo "configure:7929: checking for long long support in compiler" >&5
7929 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
7930 echo $ac_n "(cached) $ac_c" 1>&6
7932 cat > conftest.
$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7938 extern long long foo;
7939 switch (foo & 2) { case 0: return 1; }
7943 if { (eval echo configure
:7944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7945 gdb_cv_c_long_long
=yes
7947 echo "configure: failed program was:" >&5
7948 cat conftest.
$ac_ext >&5
7950 gdb_cv_c_long_long
=no
7955 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
7956 if test $gdb_cv_c_long_long = yes; then
7957 cat >> confdefs.h
<<\EOF
7958 #define CC_HAS_LONG_LONG 1
7964 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
7965 echo "configure:7966: checking for long long support in printf" >&5
7966 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 if test "$cross_compiling" = yes; then
7970 gdb_cv_printf_has_long_long
=no
7972 cat > conftest.
$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7979 l = (l << 16) + 0x0123;
7980 l = (l << 16) + 0x4567;
7981 l = (l << 16) + 0x89ab;
7982 l = (l << 16) + 0xcdef;
7983 sprintf (buf, "0x%016llx", l);
7984 return (strcmp ("0x0123456789abcdef", buf));
7987 if { (eval echo configure
:7988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7989 gdb_cv_printf_has_long_long
=yes
7991 echo "configure: failed program was:" >&5
7992 cat conftest.
$ac_ext >&5
7994 gdb_cv_printf_has_long_long
=no
8001 if test $gdb_cv_printf_has_long_long = yes; then
8002 cat >> confdefs.h
<<\EOF
8003 #define PRINTF_HAS_LONG_LONG 1
8007 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8010 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8011 echo "configure:8012: checking for long double support in compiler" >&5
8012 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8015 cat > conftest.
$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8023 if { (eval echo configure
:8024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8025 ac_cv_c_long_double
=yes
8027 echo "configure: failed program was:" >&5
8028 cat conftest.
$ac_ext >&5
8030 ac_cv_c_long_double
=no
8035 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8036 if test $ac_cv_c_long_double = yes; then
8037 cat >> confdefs.h
<<\EOF
8038 #define HAVE_LONG_DOUBLE 1
8044 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8045 echo "configure:8046: checking for long double support in printf" >&5
8046 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8049 if test "$cross_compiling" = yes; then
8050 gdb_cv_printf_has_long_double
=no
8052 cat > conftest.
$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8058 long double f = 3.141592653;
8059 sprintf (buf, "%Lg", f);
8060 return (strncmp ("3.14159", buf, 7));
8063 if { (eval echo configure
:8064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8065 gdb_cv_printf_has_long_double
=yes
8067 echo "configure: failed program was:" >&5
8068 cat conftest.
$ac_ext >&5
8070 gdb_cv_printf_has_long_double
=no
8077 if test $gdb_cv_printf_has_long_double = yes; then
8078 cat >> confdefs.h
<<\EOF
8079 #define PRINTF_HAS_LONG_DOUBLE 1
8083 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8086 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8087 echo "configure:8088: checking for long double support in scanf" >&5
8088 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 if test "$cross_compiling" = yes; then
8092 gdb_cv_scanf_has_long_double
=no
8094 cat > conftest.
$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8099 char *buf = "3.141592653";
8101 sscanf (buf, "%Lg", &f);
8102 return !(f > 3.14159 && f < 3.14160);
8105 if { (eval echo configure
:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8107 gdb_cv_scanf_has_long_double
=yes
8109 echo "configure: failed program was:" >&5
8110 cat conftest.
$ac_ext >&5
8112 gdb_cv_scanf_has_long_double
=no
8119 if test $gdb_cv_scanf_has_long_double = yes; then
8120 cat >> confdefs.h
<<\EOF
8121 #define SCANF_HAS_LONG_DOUBLE 1
8125 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8129 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8130 echo "configure:8131: checking for -bbigtoc option" >&5
8131 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8132 echo $ac_n "(cached) $ac_c" 1>&6
8135 SAVE_LDFLAGS
=$LDFLAGS
8138 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8139 *) gdb_cv_bigtoc
=-bbigtoc ;;
8142 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8143 cat > conftest.
$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8151 if { (eval echo configure
:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8154 echo "configure: failed program was:" >&5
8155 cat conftest.
$ac_ext >&5
8163 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8164 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8170 if test ${build} = ${host} -a ${host} = ${target} ; then
8173 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8174 echo "configure:8175: checking for HPUX/OSF thread support" >&5
8175 if test -f /usr
/include
/dce
/cma_config.h
; then
8176 if test "$GCC" = "yes" ; then
8177 echo "$ac_t""yes" 1>&6
8178 cat >> confdefs.h
<<\EOF
8179 #define HAVE_HPUX_THREAD_SUPPORT 1
8182 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8183 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8185 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8188 echo "$ac_t""no" 1>&6
8192 # See if thread_db library is around for Solaris thread debugging.
8193 # Note that we must explicitly test for version 1 of the library
8194 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8196 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8197 echo "configure:8198: checking for Solaris thread debugging library" >&5
8198 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8199 echo "$ac_t""yes" 1>&6
8200 cat >> confdefs.h
<<\EOF
8201 #define HAVE_THREAD_DB_LIB 1
8204 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8205 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8206 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8207 echo "configure:8208: checking for dlopen in -ldl" >&5
8208 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8212 ac_save_LIBS
="$LIBS"
8214 cat > conftest.
$ac_ext <<EOF
8215 #line 8216 "configure"
8216 #include "confdefs.h"
8217 /* Override any gcc2 internal prototype to avoid an error. */
8218 /* We use char because int might match the return type of a gcc2
8219 builtin and then its argument prototype would still apply. */
8226 if { (eval echo configure
:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8228 eval "ac_cv_lib_$ac_lib_var=yes"
8230 echo "configure: failed program was:" >&5
8231 cat conftest.
$ac_ext >&5
8233 eval "ac_cv_lib_$ac_lib_var=no"
8236 LIBS
="$ac_save_LIBS"
8239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8240 echo "$ac_t""yes" 1>&6
8241 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8243 cat >> confdefs.h
<<EOF
8244 #define $ac_tr_lib 1
8250 echo "$ac_t""no" 1>&6
8253 if test "$GCC" = "yes" ; then
8254 # The GNU linker requires the -export-dynamic option to make
8255 # all symbols visible in the dynamic symbol table.
8256 hold_ldflags
=$LDFLAGS
8257 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8258 echo "configure:8259: checking for the ld -export-dynamic flag" >&5
8259 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8260 cat > conftest.
$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8268 if { (eval echo configure
:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8272 echo "configure: failed program was:" >&5
8273 cat conftest.
$ac_ext >&5
8278 LDFLAGS
=$hold_ldflags
8279 echo "$ac_t""$found" 1>&6
8280 if test $found = yes; then
8281 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8284 # Sun randomly tweaked the prototypes in <proc_service.h>
8286 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8287 echo "configure:8288: checking if <proc_service.h> is old" >&5
8288 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8289 echo $ac_n "(cached) $ac_c" 1>&6
8292 cat > conftest.
$ac_ext <<EOF
8293 #line 8294 "configure"
8294 #include "confdefs.h"
8296 #include <proc_service.h>
8298 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8304 if { (eval echo configure
:8305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8306 gdb_cv_proc_service_is_old
=no
8308 echo "configure: failed program was:" >&5
8309 cat conftest.
$ac_ext >&5
8311 gdb_cv_proc_service_is_old
=yes
8317 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8318 if test $gdb_cv_proc_service_is_old = yes; then
8319 cat >> confdefs.h
<<\EOF
8320 #define PROC_SERVICE_IS_OLD 1
8325 echo "$ac_t""no" 1>&6
8329 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8330 echo "configure:8331: checking for AiX thread debugging library" >&5
8331 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8334 cat > conftest.
$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8337 #include <sys/pthdebug.h>
8339 #ifndef PTHDB_VERSION_3
8344 if { (eval echo configure
:8345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8346 gdb_cv_have_aix_thread_debug
=yes
8348 echo "configure: failed program was:" >&5
8349 cat conftest.
$ac_ext >&5
8351 gdb_cv_have_aix_thread_debug
=no
8356 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8357 if test $gdb_cv_have_aix_thread_debug = yes; then
8358 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
8359 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
8360 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8367 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8368 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8369 echo "configure:8370: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8370 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8373 cat > conftest.
$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 #include <thread_db.h>
8378 int i = TD_NOTALLOC;
8381 if { (eval echo configure
:8382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8383 gdb_cv_thread_db_h_has_td_notalloc
=yes
8385 echo "configure: failed program was:" >&5
8386 cat conftest.
$ac_ext >&5
8388 gdb_cv_thread_db_h_has_td_notalloc
=no
8395 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8397 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8398 cat >> confdefs.h
<<\EOF
8399 #define THREAD_DB_HAS_TD_NOTALLOC 1
8404 if test $host = $target; then
8408 CFLAGS
="$CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8409 cat > conftest.
$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8414 pread64 (0, NULL, 0, 0);
8417 if { (eval echo configure
:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8419 ENABLE_CFLAGS
="$ENABLE_CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8420 cat >> confdefs.h
<<\EOF
8421 #define HAVE_PREAD64 1
8425 echo "configure: failed program was:" >&5
8426 cat conftest.
$ac_ext >&5
8435 # Configure UI_OUT by default (before 5.2 it can be disabled)
8436 # It must be configured if gdbmi is configured
8441 # Check whether --with-uiout or --without-uiout was given.
8442 if test "${with_uiout+set}" = set; then
8443 withval
="$with_uiout"
8444 case "${withval}" in
8445 yes) want_uiout
=true
;;
8446 no
) if test $enable_gdbmi = yes; then
8447 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
8451 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
8457 if test $want_uiout = true
; then
8458 UIOUT_CFLAGS
="-DUI_OUT=1"
8461 # Check whether --enable-netrom or --disable-netrom was given.
8462 if test "${enable_netrom+set}" = set; then
8463 enableval
="$enable_netrom"
8464 case "${enableval}" in
8465 yes) enable_netrom
=yes ;;
8466 no
) enable_netrom
=no
;;
8467 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
8472 if test "${enable_netrom}" = "yes"; then
8473 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
8474 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
8478 # NOTE: Don't add -Wall or -Wunused, they both include
8479 # -Wunused-parameter which reports bogus warnings.
8480 # NOTE: If you add to this list, remember to update
8481 # gdb/doc/gdbint.texinfo.
8482 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8483 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8484 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8485 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8486 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8487 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8488 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8489 # -Woverloaded-virtual -Winline -Werror"
8490 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8491 if test "${enable_build_warnings+set}" = set; then
8492 enableval
="$enable_build_warnings"
8493 case "${enableval}" in
8495 no
) build_warnings
="-w";;
8496 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8497 build_warnings
="${build_warnings} ${t}";;
8498 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8499 build_warnings
="${t} ${build_warnings}";;
8500 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8502 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8503 echo "Setting compiler warning flags = $build_warnings" 6>&1
8506 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8507 if test "${enable_gdb_build_warnings+set}" = set; then
8508 enableval
="$enable_gdb_build_warnings"
8509 case "${enableval}" in
8511 no
) build_warnings
="-w";;
8512 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8513 build_warnings
="${build_warnings} ${t}";;
8514 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8515 build_warnings
="${t} ${build_warnings}";;
8516 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8518 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8519 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8524 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8526 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8527 echo "configure:8528: checking compiler warning flags" >&5
8528 # Separate out the -Werror flag as some files just cannot be
8529 # compiled with it enabled.
8530 for w
in ${build_warnings}; do
8532 -Werr*) WERROR_CFLAGS
=-Werror ;;
8533 *) # Check that GCC accepts it
8534 saved_CFLAGS
="$CFLAGS"
8536 cat > conftest.
$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8544 if { (eval echo configure
:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8546 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8548 echo "configure: failed program was:" >&5
8549 cat conftest.
$ac_ext >&5
8552 CFLAGS
="$saved_CFLAGS"
8555 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8565 # Check whether --with-mmalloc or --without-mmalloc was given.
8566 if test "${with_mmalloc+set}" = set; then
8567 withval
="$with_mmalloc"
8568 case "${withval}" in
8569 yes) want_mmalloc
=true
;;
8570 no
) want_mmalloc
=false
;;
8571 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8577 if test x
$want_mmalloc = xtrue
; then
8578 cat >> confdefs.h
<<\EOF
8579 #define USE_MMALLOC 1
8582 cat >> confdefs.h
<<\EOF
8583 #define MMCHECK_FORCE 1
8586 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8587 MMALLOC
='../mmalloc/libmmalloc.a'
8590 # In the Cygwin environment, we need some additional flags.
8591 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8592 echo "configure:8593: checking for cygwin" >&5
8593 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8594 echo $ac_n "(cached) $ac_c" 1>&6
8596 cat > conftest.
$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8600 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8605 egrep "lose" >/dev
/null
2>&1; then
8607 gdb_cv_os_cygwin
=yes
8616 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8619 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8621 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8622 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8626 # libreadline needs libuser32.a in a cygwin environment
8628 if test x
$gdb_cv_os_cygwin = xyes
; then
8629 WIN32LIBS
="-luser32"
8631 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8637 LIBGUI
="../libgui/src/libgui.a"
8638 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8642 # Check whether --with-cpu or --without-cpu was given.
8643 if test "${with_cpu+set}" = set; then
8646 powerpc-
* | powerpcle-
* )
8647 ## It would be nice to keep this table in sync with the one in
8649 case "${with_cpu}" in
8650 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
8652 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
8654 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
8655 ## These are all RS6000 variants, as far as GDB is concerned.
8665 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
8671 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
8674 cat >> confdefs.h
<<EOF
8675 #define TARGET_CPU_DEFAULT "${with_cpu}"
8683 # Check whether --enable-gdbtk or --disable-gdbtk was given.
8684 if test "${enable_gdbtk+set}" = set; then
8685 enableval
="$enable_gdbtk"
8686 case "${enableval}" in
8690 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8693 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8701 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
8705 # Default is on for everything but go32 and Cygwin
8710 if test -d "${srcdir}/gdbtk" ; then
8726 if test "${enable_gdbtk}" = "yes"; then
8728 # Gdbtk must have an absolute path to srcdir in order to run
8729 # properly when not installed.
8737 # Ok, lets find the tcl configuration
8738 # First, look for one uninstalled.
8739 # the alternative search directory is invoked by --with-tclconfig
8742 if test x
"${no_tcl}" = x
; then
8743 # we reset no_tcl in case something fails here
8745 # Check whether --with-tclconfig or --without-tclconfig was given.
8746 if test "${with_tclconfig+set}" = set; then
8747 withval
="$with_tclconfig"
8748 with_tclconfig
=${withval}
8751 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8752 echo "configure:8753: checking for Tcl configuration" >&5
8753 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8754 echo $ac_n "(cached) $ac_c" 1>&6
8758 # First check to see if --with-tclconfig was specified.
8759 if test x
"${with_tclconfig}" != x
; then
8760 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8761 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8763 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8767 # then check for a private Tcl installation
8768 if test x
"${ac_cv_c_tclconfig}" = x
; then
8771 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8773 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8775 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8776 if test -f "$i/${configdir}/tclConfig.sh" ; then
8777 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8782 # check in a few common install locations
8783 if test x
"${ac_cv_c_tclconfig}" = x
; then
8784 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8785 if test -f "$i/tclConfig.sh" ; then
8786 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8791 # check in a few other private locations
8792 if test x
"${ac_cv_c_tclconfig}" = x
; then
8795 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8796 if test -f "$i/${configdir}/tclConfig.sh" ; then
8797 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8805 if test x
"${ac_cv_c_tclconfig}" = x
; then
8806 TCLCONFIG
="# no Tcl configs found"
8807 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8810 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8811 echo "$ac_t""found $TCLCONFIG" 1>&6
8815 if test -z "${no_tcl}"; then
8845 # Ok, lets find the tk configuration
8846 # First, look for one uninstalled.
8847 # the alternative search directory is invoked by --with-tkconfig
8850 if test x
"${no_tk}" = x
; then
8851 # we reset no_tk in case something fails here
8853 # Check whether --with-tkconfig or --without-tkconfig was given.
8854 if test "${with_tkconfig+set}" = set; then
8855 withval
="$with_tkconfig"
8856 with_tkconfig
=${withval}
8859 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8860 echo "configure:8861: checking for Tk configuration" >&5
8861 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8862 echo $ac_n "(cached) $ac_c" 1>&6
8866 # First check to see if --with-tkconfig was specified.
8867 if test x
"${with_tkconfig}" != x
; then
8868 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8869 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8871 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8875 # then check for a private Tk library
8876 if test x
"${ac_cv_c_tkconfig}" = x
; then
8879 `ls -dr ../tk[4-9]* 2>/dev/null` \
8881 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8883 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8884 if test -f "$i/${configdir}/tkConfig.sh" ; then
8885 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8890 # check in a few common install locations
8891 if test x
"${ac_cv_c_tkconfig}" = x
; then
8892 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8893 if test -f "$i/tkConfig.sh" ; then
8894 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8899 # check in a few other private locations
8900 if test x
"${ac_cv_c_tkconfig}" = x
; then
8903 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8904 if test -f "$i/${configdir}/tkConfig.sh" ; then
8905 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8913 if test x
"${ac_cv_c_tkconfig}" = x
; then
8914 TKCONFIG
="# no Tk configs found"
8915 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
8918 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
8919 echo "$ac_t""found $TKCONFIG" 1>&6
8925 # now look for Tcl library stuff
8936 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
8938 # If $no_tk is nonempty, then we can't do Tk, and there is no
8939 # point to doing Tcl.
8940 if test -z "${no_tk}"; then
8942 if test -f "$TKCONFIG" ; then
8960 # Ok, lets find the tcl source trees so we can use the headers
8961 # Warning: transition of version 9 to 10 will break this algorithm
8962 # because 10 sorts before 9. We also look for just tcl. We have to
8963 # be careful that we don't match stuff like tclX by accident.
8964 # the alternative search directory is involked by --with-tclinclude
8968 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
8969 echo "configure:8970: checking for Tcl private headers. dir=${configdir}" >&5
8970 # Check whether --with-tclinclude or --without-tclinclude was given.
8971 if test "${with_tclinclude+set}" = set; then
8972 withval
="$with_tclinclude"
8973 with_tclinclude
=${withval}
8976 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
8977 echo $ac_n "(cached) $ac_c" 1>&6
8980 # first check to see if --with-tclinclude was specified
8981 if test x
"${with_tclinclude}" != x
; then
8982 if test -f ${with_tclinclude}/tclInt.h
; then
8983 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
8984 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
8985 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
8987 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
8991 # next check if it came with Tcl configuration file
8992 if test x
"${ac_cv_c_tclconfig}" = x
; then
8993 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
8994 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
8998 # next check in private source directory
9000 # since ls returns lowest version numbers first, reverse its output
9001 if test x
"${ac_cv_c_tclh}" = x
; then
9004 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9005 ${srcdir}/..
/..
/tcl \
9006 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9007 ${srcdir}/..
/..
/..
/tcl \
9008 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9009 if test -f $i/generic
/tclInt.h
; then
9010 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9015 # finally check in a few common install locations
9017 # since ls returns lowest version numbers first, reverse its output
9018 if test x
"${ac_cv_c_tclh}" = x
; then
9020 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9021 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9022 /usr
/local
/src
/tcl \
9023 /usr
/local
/lib
/tcl \
9024 ${prefix}/include
; do
9025 if test -f $i/generic
/tclInt.h
; then
9026 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9031 # see if one is installed
9032 if test x
"${ac_cv_c_tclh}" = x
; then
9033 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9034 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9035 echo "configure:9036: checking for tclInt.h" >&5
9036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9039 cat > conftest.
$ac_ext <<EOF
9040 #line 9041 "configure"
9041 #include "confdefs.h"
9044 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9045 { (eval echo configure
:9046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9046 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9047 if test -z "$ac_err"; then
9049 eval "ac_cv_header_$ac_safe=yes"
9052 echo "configure: failed program was:" >&5
9053 cat conftest.
$ac_ext >&5
9055 eval "ac_cv_header_$ac_safe=no"
9059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9060 echo "$ac_t""yes" 1>&6
9061 ac_cv_c_tclh
=installed
9063 echo "$ac_t""no" 1>&6
9071 if test x
"${ac_cv_c_tclh}" = x
; then
9072 TCLHDIR
="# no Tcl private headers found"
9073 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9075 if test x
"${ac_cv_c_tclh}" != x
; then
9077 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9078 echo "$ac_t""is installed" 1>&6
9081 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9082 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9083 TCLHDIR
="-I${ac_cv_c_tclh}"
9091 # Ok, lets find the tk source trees so we can use the headers
9092 # If the directory (presumably symlink) named "tk" exists, use that one
9093 # in preference to any others. Same logic is used when choosing library
9094 # and again with Tcl. The search order is the best place to look first, then in
9095 # decreasing significance. The loop breaks if the trigger file is found.
9096 # Note the gross little conversion here of srcdir by cd'ing to the found
9097 # directory. This converts the path from a relative to an absolute, so
9098 # recursive cache variables for the path will work right. We check all
9099 # the possible paths in one loop rather than many seperate loops to speed
9101 # the alternative search directory is involked by --with-tkinclude
9104 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9105 echo "configure:9106: checking for Tk private headers" >&5
9106 # Check whether --with-tkinclude or --without-tkinclude was given.
9107 if test "${with_tkinclude+set}" = set; then
9108 withval
="$with_tkinclude"
9109 with_tkinclude
=${withval}
9112 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9113 echo $ac_n "(cached) $ac_c" 1>&6
9116 # first check to see if --with-tkinclude was specified
9117 if test x
"${with_tkinclude}" != x
; then
9118 if test -f ${with_tkinclude}/tk.h
; then
9119 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9120 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9121 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9123 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9127 # next check if it came with Tk configuration file
9128 if test x
"${ac_cv_c_tkconfig}" = x
; then
9129 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9130 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9134 # next check in private source directory
9136 # since ls returns lowest version numbers first, reverse its output
9137 if test x
"${ac_cv_c_tkh}" = x
; then
9140 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9141 ${srcdir}/..
/..
/tk \
9142 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9143 ${srcdir}/..
/..
/..
/tk \
9144 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9145 if test -f $i/generic
/tk.h
; then
9146 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9151 # finally check in a few common install locations
9153 # since ls returns lowest version numbers first, reverse its output
9154 if test x
"${ac_cv_c_tkh}" = x
; then
9156 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9157 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9160 ${prefix}/include
; do
9161 if test -f $i/generic
/tk.h
; then
9162 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9167 # see if one is installed
9168 if test x
"${ac_cv_c_tkh}" = x
; then
9169 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9170 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9171 echo "configure:9172: checking for tk.h" >&5
9172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9175 cat > conftest.
$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9181 { (eval echo configure
:9182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9183 if test -z "$ac_err"; then
9185 eval "ac_cv_header_$ac_safe=yes"
9188 echo "configure: failed program was:" >&5
9189 cat conftest.
$ac_ext >&5
9191 eval "ac_cv_header_$ac_safe=no"
9195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9196 echo "$ac_t""yes" 1>&6
9197 ac_cv_c_tkh
=installed
9199 echo "$ac_t""no" 1>&6
9207 if test x
"${ac_cv_c_tkh}" != x
; then
9209 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9210 echo "$ac_t""is installed" 1>&6
9213 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9214 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9215 TKHDIR
="-I${ac_cv_c_tkh}"
9218 TKHDIR
="# no Tk directory found"
9219 echo "configure: warning: Can't find Tk private headers" 1>&2
9226 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9227 echo "configure:9228: checking for Itcl private headers. srcdir=${srcdir}" >&5
9228 if test x
"${ac_cv_c_itclh}" = x
; then
9229 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9230 if test -f $i/generic
/itcl.h
; then
9231 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9236 if test x
"${ac_cv_c_itclh}" = x
; then
9237 ITCLHDIR
="# no Itcl private headers found"
9238 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9240 if test x
"${ac_cv_c_itclh}" != x
; then
9241 ITCLHDIR
="-I${ac_cv_c_itclh}"
9243 # should always be here
9244 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9249 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9250 echo "configure:9251: checking for Itk private headers. srcdir=${srcdir}" >&5
9251 if test x
"${ac_cv_c_itkh}" = x
; then
9252 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9253 if test -f $i/generic
/itk.h
; then
9254 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9259 if test x
"${ac_cv_c_itkh}" = x
; then
9260 ITKHDIR
="# no Itk private headers found"
9261 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9263 if test x
"${ac_cv_c_itkh}" != x
; then
9264 ITKHDIR
="-I${ac_cv_c_itkh}"
9266 # should always be here
9267 # ITKLIB="../itcl/itk/unix/libitk.a"
9273 # now look for Tk library stuff
9284 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9286 # now look for Itcl library stuff
9290 # Ok, lets find the itcl configuration
9291 # First, look for one uninstalled.
9292 # the alternative search directory is invoked by --with-itclconfig
9295 if test x
"${no_itcl}" = x
; then
9296 # we reset no_itcl in case something fails here
9298 # Check whether --with-itclconfig or --without-itclconfig was given.
9299 if test "${with_itclconfig+set}" = set; then
9300 withval
="$with_itclconfig"
9301 with_itclconfig
=${withval}
9304 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9305 echo "configure:9306: checking for Itcl configuration" >&5
9306 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9307 echo $ac_n "(cached) $ac_c" 1>&6
9311 # First check to see if --with-itclconfig was specified.
9312 if test x
"${with_itclconfig}" != x
; then
9313 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9314 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9316 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9320 # then check for a private Itcl library
9321 if test x
"${ac_cv_c_itclconfig}" = x
; then
9324 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9326 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9328 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9329 if test -f "$i/itclConfig.sh" ; then
9330 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9335 # check in a few common install locations
9336 if test x
"${ac_cv_c_itclconfig}" = x
; then
9337 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9338 if test -f "$i/itclConfig.sh" ; then
9339 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9344 # check in a few other private locations
9345 if test x
"${ac_cv_c_itclconfig}" = x
; then
9347 ${srcdir}/..
/itcl
/itcl \
9348 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9349 if test -f "$i/itclConfig.sh" ; then
9350 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9358 if test x
"${ac_cv_c_itclconfig}" = x
; then
9359 ITCLCONFIG
="# no Itcl configs found"
9360 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9363 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9364 echo "$ac_t""found $ITCLCONFIG" 1>&6
9368 if test -z "${no_itcl}"; then
9370 if test -f "$ITCLCONFIG" ; then
9385 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9386 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9390 # now look for Itk library stuff
9393 # Ok, lets find the itk configuration
9394 # First, look for one uninstalled.
9395 # the alternative search directory is invoked by --with-itkconfig
9398 if test x
"${no_itk}" = x
; then
9399 # we reset no_itk in case something fails here
9401 # Check whether --with-itkconfig or --without-itkconfig was given.
9402 if test "${with_itkconfig+set}" = set; then
9403 withval
="$with_itkconfig"
9404 with_itkconfig
=${withval}
9407 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9408 echo "configure:9409: checking for Itk configuration" >&5
9409 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9414 # First check to see if --with-itkconfig was specified.
9415 if test x
"${with_itkconfig}" != x
; then
9416 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9417 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9419 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9423 # then check for a private Itk library
9424 if test x
"${ac_cv_c_itkconfig}" = x
; then
9427 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9429 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9431 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9432 if test -f "$i/itkConfig.sh" ; then
9433 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9438 # check in a few common install locations
9439 if test x
"${ac_cv_c_itkconfig}" = x
; then
9440 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9441 if test -f "$i/itkConfig.sh" ; then
9442 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9447 # check in a few other private locations
9448 if test x
"${ac_cv_c_itkconfig}" = x
; then
9450 ${srcdir}/..
/itcl
/itk \
9451 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9452 if test -f "$i/itkConfig.sh" ; then
9453 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9461 if test x
"${ac_cv_c_itkconfig}" = x
; then
9462 ITKCONFIG
="# no Itk configs found"
9463 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9466 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9467 echo "$ac_t""found $ITKCONFIG" 1>&6
9472 if test -z "${no_itcl}"; then
9474 if test -f "$ITKCONFIG" ; then
9489 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9490 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9493 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9494 # Tcl/Tk 8.1 require -fwritable strings. I don't
9495 # know whether 8.2 will or not, but I bet it will.
9496 # I don't have to worry about 7.x since we don't support it.
9498 if test "$GCC" = "yes"; then
9499 if test "$TCL_VERSION" != "8.0" ; then
9500 GDBTK_CFLAGS
="-fwritable-strings"
9504 # Include some libraries that Tcl and Tk want.
9505 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9506 # Yes, the ordering seems wrong here. But it isn't.
9507 # TK_LIBS is the list of libraries that need to be linked
9508 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9509 # were in LIBS then any link tests after this point would
9510 # try to include things like `$(LIBGUI)', which wouldn't work.
9511 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9513 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9514 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9515 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9516 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9517 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9518 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9519 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9520 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9522 if test x
$gdb_cv_os_cygwin = xyes
; then
9523 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9524 WIN32LDAPP
="-Wl,--subsystem,console"
9525 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9530 SUBDIRS
="${SUBDIRS} gdbtk"
9531 configdirs
="${configdirs} gdbtk"
9547 # If we find X, set shell vars x_includes and x_libraries to the
9548 # paths, otherwise set no_x=yes.
9549 # Uses ac_ vars as temps to allow command line to override cache and checks.
9550 # --without-x overrides everything else, but does not touch the cache.
9551 echo $ac_n "checking for X""... $ac_c" 1>&6
9552 echo "configure:9553: checking for X" >&5
9554 # Check whether --with-x or --without-x was given.
9555 if test "${with_x+set}" = set; then
9560 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9561 if test "x$with_x" = xno
; then
9562 # The user explicitly disabled X.
9565 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9566 # Both variables are already set.
9569 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9572 # One or both of the vars are not set, and there is no cached value.
9573 ac_x_includes
=NO ac_x_libraries
=NO
9575 if mkdir conftestdir
; then
9577 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9578 cat > Imakefile
<<'EOF'
9580 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9582 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9584 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9585 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9586 for ac_extension
in a so sl
; do
9587 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9588 test -f $ac_im_libdir/libX11.
$ac_extension; then
9589 ac_im_usrlibdir
=$ac_im_libdir; break
9592 # Screen out bogus values from the imake configuration. They are
9593 # bogus both because they are the default anyway, and because
9594 # using them would break gcc on systems where it needs fixed includes.
9595 case "$ac_im_incroot" in
9597 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9599 case "$ac_im_usrlibdir" in
9601 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9608 if test "$ac_x_includes" = NO
; then
9609 # Guess where to find include files, by looking for this one X11 .h file.
9610 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9612 # First, try using that file with no special directory specified.
9613 cat > conftest.
$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include <$x_direct_test_include>
9618 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9619 { (eval echo configure
:9620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9620 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9621 if test -z "$ac_err"; then
9623 # We can compile using X headers with no special include directory.
9627 echo "configure: failed program was:" >&5
9628 cat conftest.
$ac_ext >&5
9630 # Look for the header file in a standard set of common directories.
9631 # Check X11 before X11Rn because it is often a symlink to the current release.
9634 /usr
/X11R
6/include \
9635 /usr
/X11R
5/include \
9636 /usr
/X11R
4/include \
9639 /usr
/include
/X11R6 \
9640 /usr
/include
/X11R5 \
9641 /usr
/include
/X11R4 \
9643 /usr
/local
/X11
/include \
9644 /usr
/local
/X11R
6/include \
9645 /usr
/local
/X11R
5/include \
9646 /usr
/local
/X11R
4/include \
9648 /usr
/local
/include
/X11 \
9649 /usr
/local
/include
/X11R6 \
9650 /usr
/local
/include
/X11R5 \
9651 /usr
/local
/include
/X11R4 \
9655 /usr
/XFree86
/include
/X11 \
9658 /usr
/local
/include \
9659 /usr
/unsupported
/include \
9660 /usr
/athena
/include \
9661 /usr
/local
/x11r
5/include \
9662 /usr
/lpp
/Xamples
/include \
9664 /usr
/openwin
/include \
9665 /usr
/openwin
/share
/include \
9668 if test -r "$ac_dir/$x_direct_test_include"; then
9669 ac_x_includes
=$ac_dir
9675 fi # $ac_x_includes = NO
9677 if test "$ac_x_libraries" = NO
; then
9678 # Check for the libraries.
9680 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9681 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9683 # See if we find them without any special options.
9684 # Don't add to $LIBS permanently.
9685 ac_save_LIBS
="$LIBS"
9686 LIBS
="-l$x_direct_test_library $LIBS"
9687 cat > conftest.
$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9692 ${x_direct_test_function}()
9695 if { (eval echo configure
:9696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9697 LIBS
="$ac_save_LIBS"
9698 # We can link X programs with no special library path.
9701 echo "configure: failed program was:" >&5
9702 cat conftest.
$ac_ext >&5
9704 LIBS
="$ac_save_LIBS"
9705 # First see if replacing the include by lib works.
9706 # Check X11 before X11Rn because it is often a symlink to the current release.
9707 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9718 /usr
/local
/X11
/lib \
9719 /usr
/local
/X11R
6/lib \
9720 /usr
/local
/X11R
5/lib \
9721 /usr
/local
/X11R
4/lib \
9723 /usr
/local
/lib
/X11 \
9724 /usr
/local
/lib
/X11R6 \
9725 /usr
/local
/lib
/X11R5 \
9726 /usr
/local
/lib
/X11R4 \
9730 /usr
/XFree86
/lib
/X11 \
9734 /usr
/unsupported
/lib \
9736 /usr
/local
/x11r
5/lib \
9737 /usr
/lpp
/Xamples
/lib \
9741 /usr
/openwin
/share
/lib \
9744 for ac_extension
in a so sl
; do
9745 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9746 ac_x_libraries
=$ac_dir
9753 fi # $ac_x_libraries = NO
9755 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9756 # Didn't find X anywhere. Cache the known absence of X.
9757 ac_cv_have_x
="have_x=no"
9759 # Record where we found X for the cache.
9760 ac_cv_have_x
="have_x=yes \
9761 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9765 eval "$ac_cv_have_x"
9768 if test "$have_x" != yes; then
9769 echo "$ac_t""$have_x" 1>&6
9772 # If each of the values was on the command line, it overrides each guess.
9773 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9774 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9775 # Update the cache value to reflect the command line values.
9776 ac_cv_have_x
="have_x=yes \
9777 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9778 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9783 # Unlike the sim directory, whether a simulator is linked is controlled by
9784 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9785 # This code just checks for a few cases where we'd like to ignore those
9786 # definitions, even when they're present in the '.mt' file. These cases
9787 # are when --disable-sim is specified, or if the simulator directory is
9788 # not part of the source tree.
9790 # Check whether --enable-sim or --disable-sim was given.
9791 if test "${enable_sim+set}" = set; then
9792 enableval
="$enable_sim"
9793 echo "enable_sim = $enable_sim";
9794 echo "enableval = ${enableval}";
9795 case "${enableval}" in
9796 yes) ignore_sim
=false
;;
9797 no
) ignore_sim
=true
;;
9798 *) ignore_sim
=false
;;
9805 if test ! -d "${srcdir}/../sim"; then
9809 if test "${ignore_sim}" = "true"; then
9811 IGNORE_SIM_OBS
="SIM_OBS="
9815 cat >> confdefs.h
<<\EOF
9835 # Begin stuff to support --enable-shared
9836 # Check whether --enable-shared or --disable-shared was given.
9837 if test "${enable_shared+set}" = set; then
9838 enableval
="$enable_shared"
9839 case "${enableval}" in
9848 # If we have shared libraries, try to set rpath reasonably.
9849 if test "${shared}" = "true"; then
9852 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
9854 *-*-irix5* |
*-*-irix6*)
9855 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9859 *-*-linux* |
*-pc-linux-gnu*)
9860 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9863 HLDFLAGS
='-R $(libdir)'
9866 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
9871 # On SunOS, if the linker supports the -rpath option, use it to
9872 # prevent ../bfd and ../opcodes from being included in the run time
9876 echo 'main () { }' > conftest.c
9877 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
9878 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
9880 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
9882 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
9884 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
9886 elif test "${shared}" = "true"; then
9887 HLDFLAGS
='-Wl,-rpath=$(libdir)'
9889 HLDFLAGS
='-Wl,-rpath='
9891 rm -f conftest.t conftest.c conftest
9896 # End stuff to support --enable-shared
9898 # target_subdir is used by the testsuite to find the target libraries.
9900 if test "${host}" != "${target}"; then
9901 target_subdir
="${target_alias}/"
9906 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9907 if test ! -f ${host_makefile_frag}; then
9908 # When building a native debuger the .mh file containing things
9909 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9910 # since it no longer contains anything useful.
9911 if test "${target}" = "${host}"; then
9912 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9914 host_makefile_frag
=/dev
/null
9917 frags
="$frags $host_makefile_frag"
9919 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9920 if test ! -f ${target_makefile_frag}; then
9921 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9923 frags
="$frags $target_makefile_frag"
9930 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9931 ' ${host_makefile_frag}`
9933 targetfile
=`sed -n '
9934 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9935 ' ${target_makefile_frag}`
9937 GDB_MULTI_ARCH
=`sed -n '
9938 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9939 ' ${target_makefile_frag}`
9941 if test "${target}" = "${host}"; then
9942 # We pick this up from the host configuration file (.mh) because we
9943 # do not have a native configuration Makefile fragment.
9944 nativefile
=`sed -n '
9945 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9946 ' ${host_makefile_frag}`
9950 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9951 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9952 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
9953 # will be the default.
9954 if test x
"${GDB_MULTI_ARCH}" = x
; then
9955 case "${gdb_multi_arch}" in
9956 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
9957 no
) GDB_MULTI_ARCH
=0 ;;
9958 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
9961 if test x
"${GDB_MULTI_ARCH}" != x
; then
9962 cat >> confdefs.h
<<EOF
9963 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
9967 # Warn the user when they use an old practice
9968 case "${GDB_MULTI_ARCH}" in
9970 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
9971 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
9972 GDB_MULTI_ARCH_PURE
)
9973 if test x
"${targetfile}" != x
; then
9974 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
9977 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
9980 if test "${enable_multi_ice}" = "yes"; then
9981 SUBDIRS
="${SUBDIRS} multi-ice"
9984 # ``gdbserver'' can only be built in a native configuration.
9985 if test x
"${target}" = x
"${host}"; then
9986 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
9987 echo "configure:9988: checking whether gdbserver is supported on this host" >&5
9988 if test x
"${build_gdbserver}" = xyes
; then
9989 configdirs
="${configdirs} gdbserver"
9990 SUBDIRS
="${SUBDIRS} gdbserver"
9991 echo "$ac_t""yes" 1>&6
9993 echo "$ac_t""no" 1>&6
9999 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10000 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10008 if test "${hostfile}" != ""; then
10010 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10011 files
="${files} ${GDB_XM_FILE}"
10012 links
="${links} xm.h"
10013 cat >> confdefs.h
<<EOF
10014 #define GDB_XM_FILE ${GDB_XM_FILE}
10022 if test "${targetfile}" != ""; then
10024 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10025 files
="${files} ${GDB_TM_FILE}"
10026 links
="${links} tm.h"
10027 cat >> confdefs.h
<<EOF
10028 #define GDB_TM_FILE ${GDB_TM_FILE}
10036 if test "${nativefile}" != ""; then
10038 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10039 files
="${files} ${GDB_NM_FILE}"
10040 links
="${links} nm.h"
10041 cat >> confdefs.h
<<EOF
10042 #define GDB_NM_FILE ${GDB_NM_FILE}
10050 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10051 echo "configure:10052: checking for Cygwin environment" >&5
10052 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10055 cat > conftest.
$ac_ext <<EOF
10056 #line 10057 "configure"
10057 #include "confdefs.h"
10062 #define __CYGWIN__ __CYGWIN32__
10067 if { (eval echo configure
:10068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10071 echo "configure: failed program was:" >&5
10072 cat conftest.
$ac_ext >&5
10080 echo "$ac_t""$ac_cv_cygwin" 1>&6
10082 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10083 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10084 echo "configure:10085: checking for mingw32 environment" >&5
10085 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10088 cat > conftest.
$ac_ext <<EOF
10089 #line 10090 "configure"
10090 #include "confdefs.h"
10093 return __MINGW32__;
10096 if { (eval echo configure
:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10100 echo "configure: failed program was:" >&5
10101 cat conftest.
$ac_ext >&5
10109 echo "$ac_t""$ac_cv_mingw32" 1>&6
10111 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10114 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10115 echo "configure:10116: checking for executable suffix" >&5
10116 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
10119 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10123 echo 'int main () { return 0; }' > conftest.
$ac_ext
10125 if { (eval echo configure
:10126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10126 for file in conftest.
*; do
10128 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10129 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10133 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10136 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10141 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10142 echo "$ac_t""${ac_cv_exeext}" 1>&6
10147 cat >> confdefs.h
<<\EOF
10148 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10154 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10155 if test "${with_libiconv_prefix+set}" = set; then
10156 withval
="$with_libiconv_prefix"
10158 for dir
in `echo "$withval" | tr : ' '`; do
10159 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10160 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10166 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10167 echo "configure:10168: checking for iconv" >&5
10168 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10172 am_cv_func_iconv
="no, consider installing GNU libiconv"
10174 cat > conftest.
$ac_ext <<EOF
10175 #line 10176 "configure"
10176 #include "confdefs.h"
10177 #include <stdlib.h>
10180 iconv_t cd = iconv_open("","");
10181 iconv(cd,NULL,NULL,NULL,NULL);
10185 if { (eval echo configure
:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10187 am_cv_func_iconv
=yes
10189 echo "configure: failed program was:" >&5
10190 cat conftest.
$ac_ext >&5
10193 if test "$am_cv_func_iconv" != yes; then
10194 am_save_LIBS
="$LIBS"
10195 LIBS
="$LIBS -liconv"
10196 cat > conftest.
$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #include <stdlib.h>
10202 iconv_t cd = iconv_open("","");
10203 iconv(cd,NULL,NULL,NULL,NULL);
10207 if { (eval echo configure
:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10209 am_cv_lib_iconv
=yes
10210 am_cv_func_iconv
=yes
10212 echo "configure: failed program was:" >&5
10213 cat conftest.
$ac_ext >&5
10216 LIBS
="$am_save_LIBS"
10221 echo "$ac_t""$am_cv_func_iconv" 1>&6
10222 if test "$am_cv_func_iconv" = yes; then
10223 cat >> confdefs.h
<<\EOF
10224 #define HAVE_ICONV 1
10227 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10228 echo "configure:10229: checking for iconv declaration" >&5
10229 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10230 echo $ac_n "(cached) $ac_c" 1>&6
10233 cat > conftest.
$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10237 #include <stdlib.h>
10243 #if defined(__STDC__) || defined(__cplusplus)
10244 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10253 if { (eval echo configure
:10254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10255 am_cv_proto_iconv_arg1
=""
10257 echo "configure: failed program was:" >&5
10258 cat conftest.
$ac_ext >&5
10260 am_cv_proto_iconv_arg1
="const"
10263 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);"
10266 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10267 echo "$ac_t""${ac_t:-
10268 }$am_cv_proto_iconv" 1>&6
10269 cat >> confdefs.h
<<EOF
10270 #define ICONV_CONST $am_cv_proto_iconv_arg1
10275 if test "$am_cv_lib_iconv" = yes; then
10281 subdirs
="$configdirs"
10284 cat > confcache
<<\EOF
10285 # This file is a shell script that caches the results of configure
10286 # tests run on this system so they can be shared between configure
10287 # scripts and configure runs. It is not useful on other systems.
10288 # If it contains results you don't want to keep, you may remove or edit it.
10290 # By default, configure uses ./config.cache as the cache file,
10291 # creating it if it does not exist already. You can give configure
10292 # the --cache-file=FILE option to use a different cache file; that is
10293 # what configure does when it calls configure scripts in
10294 # subdirectories, so they share the cache.
10295 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10296 # config.status only pays attention to the cache file if you give it the
10297 # --recheck option to rerun configure.
10300 # The following way of writing the cache mishandles newlines in values,
10301 # but we know of no workaround that is simple, portable, and efficient.
10302 # So, don't put newlines in cache variables' values.
10303 # Ultrix sh set writes to stderr and can't be redirected directly,
10304 # and sets the high bit in the cache file unless we assign to the vars.
10306 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10308 # `set' does not quote correctly, so add quotes (double-quote substitution
10309 # turns \\\\ into \\, and sed turns \\ into \).
10311 -e "s/'/'\\\\''/g" \
10312 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10315 # `set' quotes correctly as required by POSIX, so do not add quotes.
10316 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10319 if cmp -s $cache_file confcache
; then
10322 if test -w $cache_file; then
10323 echo "updating cache $cache_file"
10324 cat confcache
> $cache_file
10326 echo "not updating unwritable cache $cache_file"
10331 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10333 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10334 # Let make expand exec_prefix.
10335 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10337 # Any assignment to VPATH causes Sun make to only execute
10338 # the first set of double-colon rules, so remove it if not needed.
10339 # If there is a colon in the path, we need to keep it.
10340 if test "x$srcdir" = x.
; then
10341 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10344 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10346 DEFS
=-DHAVE_CONFIG_H
10348 # Without the "./", some shells look in PATH for config.status.
10349 : ${CONFIG_STATUS=./config.status}
10351 echo creating
$CONFIG_STATUS
10352 rm -f $CONFIG_STATUS
10353 cat > $CONFIG_STATUS <<EOF
10355 # Generated automatically by configure.
10356 # Run this file to recreate the current configuration.
10357 # This directory was configured as follows,
10358 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10360 # $0 $ac_configure_args
10362 # Compiler output produced by configure, useful for debugging
10363 # configure, is in ./config.log if it exists.
10365 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10368 case "\$ac_option" in
10369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10370 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10371 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10372 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10373 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10375 -help | --help | --hel | --he | --h)
10376 echo "\$ac_cs_usage"; exit 0 ;;
10377 *) echo "\$ac_cs_usage"; exit 1 ;;
10381 ac_given_srcdir=$srcdir
10382 ac_given_INSTALL="$INSTALL"
10384 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10386 cat >> $CONFIG_STATUS <<EOF
10388 # Protect against being on the right side of a sed subst in config.status.
10389 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10390 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10394 s%@CFLAGS@%$CFLAGS%g
10395 s%@CPPFLAGS@%$CPPFLAGS%g
10396 s%@CXXFLAGS@%$CXXFLAGS%g
10397 s%@FFLAGS@%$FFLAGS%g
10399 s%@LDFLAGS@%$LDFLAGS%g
10401 s%@exec_prefix@%$exec_prefix%g
10402 s%@prefix@%$prefix%g
10403 s%@program_transform_name@%$program_transform_name%g
10404 s%@bindir@%$bindir%g
10405 s%@sbindir@%$sbindir%g
10406 s%@libexecdir@%$libexecdir%g
10407 s%@datadir@%$datadir%g
10408 s%@sysconfdir@%$sysconfdir%g
10409 s%@sharedstatedir@%$sharedstatedir%g
10410 s%@localstatedir@%$localstatedir%g
10411 s%@libdir@%$libdir%g
10412 s%@includedir@%$includedir%g
10413 s%@oldincludedir@%$oldincludedir%g
10414 s%@infodir@%$infodir%g
10415 s%@mandir@%$mandir%g
10416 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10417 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10422 s%@host_alias@%$host_alias%g
10423 s%@host_cpu@%$host_cpu%g
10424 s%@host_vendor@%$host_vendor%g
10425 s%@host_os@%$host_os%g
10426 s%@target@%$target%g
10427 s%@target_alias@%$target_alias%g
10428 s%@target_cpu@%$target_cpu%g
10429 s%@target_vendor@%$target_vendor%g
10430 s%@target_os@%$target_os%g
10432 s%@build_alias@%$build_alias%g
10433 s%@build_cpu@%$build_cpu%g
10434 s%@build_vendor@%$build_vendor%g
10435 s%@build_os@%$build_os%g
10436 s%@RANLIB@%$RANLIB%g
10437 s%@SET_MAKE@%$SET_MAKE%g
10438 s%@ALLOCA@%$ALLOCA%g
10439 s%@USE_NLS@%$USE_NLS%g
10440 s%@MSGFMT@%$MSGFMT%g
10441 s%@GMSGFMT@%$GMSGFMT%g
10442 s%@XGETTEXT@%$XGETTEXT%g
10443 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10444 s%@CATALOGS@%$CATALOGS%g
10445 s%@CATOBJEXT@%$CATOBJEXT%g
10446 s%@DATADIRNAME@%$DATADIRNAME%g
10447 s%@GMOFILES@%$GMOFILES%g
10448 s%@INSTOBJEXT@%$INSTOBJEXT%g
10449 s%@INTLDEPS@%$INTLDEPS%g
10450 s%@INTLLIBS@%$INTLLIBS%g
10451 s%@INTLOBJS@%$INTLOBJS%g
10452 s%@POFILES@%$POFILES%g
10454 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10456 s%@GT_YES@%$GT_YES%g
10457 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10460 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10461 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10462 s%@INSTALL_DATA@%$INSTALL_DATA%g
10466 s%@DLLTOOL@%$DLLTOOL%g
10467 s%@WINDRES@%$WINDRES%g
10469 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10470 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
10471 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10472 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10473 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10474 s%@MMALLOC@%$MMALLOC%g
10475 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10476 s%@WIN32LIBS@%$WIN32LIBS%g
10477 s%@LIBGUI@%$LIBGUI%g
10478 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10479 s%@WIN32LDAPP@%$WIN32LDAPP%g
10480 s%@TCL_VERSION@%$TCL_VERSION%g
10481 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10482 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10483 s%@TCL_CC@%$TCL_CC%g
10484 s%@TCL_DEFS@%$TCL_DEFS%g
10485 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10486 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10487 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10488 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10489 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10490 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10491 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10492 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10493 s%@TCL_RANLIB@%$TCL_RANLIB%g
10494 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10495 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10496 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10497 s%@TK_VERSION@%$TK_VERSION%g
10498 s%@TK_DEFS@%$TK_DEFS%g
10499 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10500 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10501 s%@TK_XLIBSW@%$TK_XLIBSW%g
10502 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10503 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10504 s%@TCLHDIR@%$TCLHDIR%g
10505 s%@TKHDIR@%$TKHDIR%g
10506 s%@ITCLHDIR@%$ITCLHDIR%g
10507 s%@ITKHDIR@%$ITKHDIR%g
10508 s%@ITCL_VERSION@%$ITCL_VERSION%g
10509 s%@ITCL_DEFS@%$ITCL_DEFS%g
10510 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10511 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10512 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10513 s%@ITK_VERSION@%$ITK_VERSION%g
10514 s%@ITK_DEFS@%$ITK_DEFS%g
10515 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10516 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10517 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10518 s%@X_CFLAGS@%$X_CFLAGS%g
10519 s%@X_LDFLAGS@%$X_LDFLAGS%g
10520 s%@X_LIBS@%$X_LIBS%g
10521 s%@TCL_DEPS@%$TCL_DEPS%g
10522 s%@TK_DEPS@%$TK_DEPS%g
10523 s%@ITCLLIB@%$ITCLLIB%g
10524 s%@ITCL_DEPS@%$ITCL_DEPS%g
10525 s%@ITKLIB@%$ITKLIB%g
10526 s%@ITK_DEPS@%$ITK_DEPS%g
10527 s%@GDBTKLIBS@%$GDBTKLIBS%g
10528 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10529 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10530 s%@IGNORE_SIM@%$IGNORE_SIM%g
10531 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10532 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10533 s%@CONFIG_OBS@%$CONFIG_OBS%g
10534 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10535 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10536 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10537 s%@CONFIG_INITS@%$CONFIG_INITS%g
10538 s%@CONFIG_ALL@%$CONFIG_ALL%g
10539 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10540 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10541 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10542 s%@HLDFLAGS@%$HLDFLAGS%g
10543 s%@HLDENV@%$HLDENV%g
10544 s%@target_subdir@%$target_subdir%g
10545 /@host_makefile_frag@/r $host_makefile_frag
10546 s%@host_makefile_frag@%%g
10547 /@target_makefile_frag@/r $target_makefile_frag
10548 s%@target_makefile_frag@%%g
10550 s%@SUBDIRS@%$SUBDIRS%g
10554 s%@EXEEXT@%$EXEEXT%g
10555 s%@LIBICONV@%$LIBICONV%g
10556 s%@subdirs@%$subdirs%g
10561 cat >> $CONFIG_STATUS <<\EOF
10563 # Split the substitutions into bite-sized pieces for seds with
10564 # small command number limits, like on Digital OSF/1 and HP-UX.
10565 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10566 ac_file
=1 # Number of current file.
10567 ac_beg
=1 # First line for current file.
10568 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10571 while $ac_more_lines; do
10572 if test $ac_beg -gt 1; then
10573 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10575 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10577 if test ! -s conftest.s
$ac_file; then
10578 ac_more_lines
=false
10579 rm -f conftest.s
$ac_file
10581 if test -z "$ac_sed_cmds"; then
10582 ac_sed_cmds
="sed -f conftest.s$ac_file"
10584 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10586 ac_file
=`expr $ac_file + 1`
10588 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10591 if test -z "$ac_sed_cmds"; then
10596 cat >> $CONFIG_STATUS <<EOF
10598 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10600 cat >> $CONFIG_STATUS <<\EOF
10601 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10604 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10605 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10606 *) ac_file_in
="${ac_file}.in" ;;
10609 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10611 # Remove last slash and all that follows it. Not all systems have dirname.
10612 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10613 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10614 # The file is in a subdirectory.
10615 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10616 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10617 # A "../" for each directory in $ac_dir_suffix.
10618 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10620 ac_dir_suffix
= ac_dots
=
10623 case "$ac_given_srcdir" in
10625 if test -z "$ac_dots"; then top_srcdir
=.
10626 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10627 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10628 *) # Relative path.
10629 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10630 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10633 case "$ac_given_INSTALL" in
10634 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10635 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10638 echo creating
"$ac_file"
10640 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10642 *Makefile
*) ac_comsub
="1i\\
10643 # $configure_input" ;;
10647 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10649 s%@configure_input@%$configure_input%g
10650 s%@srcdir@%$srcdir%g
10651 s%@top_srcdir@%$top_srcdir%g
10652 s%@INSTALL@%$INSTALL%g
10653 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10660 # ac_d sets the value in "#define NAME VALUE" lines.
10661 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10662 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10665 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10666 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10667 ac_uB
='\([ ]\)%\1#\2define\3'
10670 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10671 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10672 ac_eB
='$%\1#\2define\3'
10676 if test "${CONFIG_HEADERS+set}" != set; then
10678 cat >> $CONFIG_STATUS <<EOF
10679 CONFIG_HEADERS="config.h:config.in"
10681 cat >> $CONFIG_STATUS <<\EOF
10683 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10686 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10687 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10688 *) ac_file_in
="${ac_file}.in" ;;
10691 echo creating
$ac_file
10693 rm -f conftest.frag conftest.
in conftest.out
10694 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10695 cat $ac_file_inputs > conftest.
in
10699 # Transform confdefs.h into a sed script conftest.vals that substitutes
10700 # the proper values into config.h.in to produce config.h. And first:
10701 # Protect against being on the right side of a sed subst in config.status.
10702 # Protect against being in an unquoted here document in config.status.
10703 rm -f conftest.vals
10704 cat > conftest.hdr
<<\EOF
10707 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10711 sed -n -f conftest.hdr confdefs.h > conftest.vals
10714 # This sed command replaces #undef with comments. This is necessary, for
10715 # example, in the case of _POSIX_SOURCE, which is predefined and required
10716 # on some systems where configure will not decide to define it.
10717 cat >> conftest.vals <<\EOF
10718 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10721 # Break up conftest.vals because some shells have a limit on
10722 # the size of here documents, and old seds have small limits too.
10724 rm -f conftest.tail
10727 ac_lines=`grep -c . conftest.vals
`
10728 # grep -c gives empty output for an empty file on some AIX systems.
10729 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10730 # Write a limited-size here document to conftest.frag.
10731 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10732 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10734 sed -f conftest.frag conftest.in > conftest.out
10736 mv conftest.out conftest.in
10737 ' >> $CONFIG_STATUS
10738 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10739 rm -f conftest.vals
10740 mv conftest.tail conftest.vals
10742 rm -f conftest.vals
10744 cat >> $CONFIG_STATUS <<\EOF
10745 rm -f conftest.frag conftest.h
10746 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10747 cat conftest.in >> conftest.h
10749 if cmp -s $ac_file conftest.h 2>/dev/null; then
10750 echo "$ac_file is unchanged"
10753 # Remove last slash and all that follows it. Not all systems have dirname.
10754 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10755 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10756 # The file is in a subdirectory.
10757 test ! -d "$ac_dir" && mkdir "$ac_dir"
10760 mv conftest.h $ac_file
10766 cat >> $CONFIG_STATUS <<EOF
10767 ac_sources="$files"
10771 cat >> $CONFIG_STATUS <<\EOF
10772 srcdir=$ac_given_srcdir
10773 while test -n "$ac_sources"; do
10774 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10775 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10777 echo "linking $srcdir/$ac_source to $ac_dest"
10779 if test ! -r $srcdir/$ac_source; then
10780 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10784 # Make relative symlinks.
10785 # Remove last slash and all that follows it. Not all systems have dirname.
10786 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10787 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10788 # The dest file is in a subdirectory.
10789 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10790 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10791 # A "../" for each directory in $ac_dest_dir_suffix.
10792 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10794 ac_dest_dir_suffix= ac_dots=
10798 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10799 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10802 # Make a symlink if possible; otherwise try a hard link.
10803 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10804 ln $srcdir/$ac_source $ac_dest; then :
10806 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10810 cat >> $CONFIG_STATUS <<EOF
10812 gdb_host_cpu=$gdb_host_cpu
10813 gdb_target_cpu=$gdb_target_cpu
10814 nativefile=$nativefile
10817 cat >> $CONFIG_STATUS <<\EOF
10819 if test "${nativefile}" = ""; then
10821 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10822 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10823 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10825 mv -f Makefile.tem Makefile
10828 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10829 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10830 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10831 mv -f Makefile.tmp Makefile
10834 case x$CONFIG_HEADERS in
10835 xconfig.h:config.in)
10841 chmod +x $CONFIG_STATUS
10842 rm -fr confdefs* $ac_clean_files
10843 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10845 if test "$no_recursion" != yes; then
10847 # Remove --cache-file and --srcdir arguments so they do not pile up.
10848 ac_sub_configure_args=
10850 for ac_arg in $ac_configure_args; do
10851 if test -n "$ac_prev"; then
10856 -cache-file | --cache-file | --cache-fil | --cache-fi \
10857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10858 ac_prev=cache_file ;;
10859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10862 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10864 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10866 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10870 for ac_config_dir in $configdirs; do
10872 # Do not complain, so a configure script can configure whichever
10873 # parts of a large source tree are present.
10874 if test ! -d $srcdir/$ac_config_dir; then
10878 echo configuring in $ac_config_dir
10883 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10885 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10893 # A "../" for each directory in /$ac_config_dir.
10894 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10897 .) # No --srcdir option. We are building in place.
10898 ac_sub_srcdir=$srcdir ;;
10899 /*) # Absolute path.
10900 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10901 *) # Relative path.
10902 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10905 # Check for guested configure; otherwise get Cygnus style configure.
10906 if test -f $ac_sub_srcdir/configure; then
10907 ac_sub_configure=$ac_sub_srcdir/configure
10908 elif test -f $ac_sub_srcdir/configure.in; then
10909 ac_sub_configure=$ac_configure
10911 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10915 # The recursion is here.
10916 if test -n "$ac_sub_configure"; then
10918 # Make the cache file name correct relative to the subdirectory.
10919 case "$cache_file" in
10920 /*) ac_sub_cache_file=$cache_file ;;
10921 *) # Relative path.
10922 ac_sub_cache_file="$ac_dots$cache_file" ;;
10924 case "$ac_given_INSTALL" in
10925 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10926 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10929 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10930 # The eval makes quoting arguments work.
10931 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10934 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }