3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-tui enable full-screen terminal user interface (TUI)"
26 --without-included-regex don't use included regex; this is the default
27 on systems with version 2 of the GNU C library
28 (use with caution on other system)"
30 --enable-gdbcli Enable GDB-CLI interface"
32 --enable-gdbmi Enable GDB-MI interface"
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,"
2981 # Check whether --enable-tui or --disable-tui was given.
2982 if test "${enable_tui+set}" = set; then
2983 enableval
="$enable_tui"
2988 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
2992 if test x
"$enable_tui" = xyes
; then
2993 if test -d $srcdir/tui
; then
2994 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
2995 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
2996 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
2997 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
2998 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
2999 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3000 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3001 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3002 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3007 # --------------------- #
3008 # Checks for programs. #
3009 # --------------------- #
3011 for ac_prog
in mawk gawk nawk
awk
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy
$ac_prog; ac_word
=$2
3015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_word" >&5
3017 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 if test -n "$AWK"; then
3021 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3023 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3025 for ac_dir
in $ac_dummy; do
3026 test -z "$ac_dir" && ac_dir
=.
3027 if test -f $ac_dir/$ac_word; then
3028 ac_cv_prog_AWK
="$ac_prog"
3035 AWK
="$ac_cv_prog_AWK"
3036 if test -n "$AWK"; then
3037 echo "$ac_t""$AWK" 1>&6
3039 echo "$ac_t""no" 1>&6
3042 test -n "$AWK" && break
3045 # Find a good install program. We prefer a C program (faster),
3046 # so one script is as good as another. But avoid the broken or
3047 # incompatible versions:
3048 # SysV /etc/install, /usr/sbin/install
3049 # SunOS /usr/etc/install
3050 # IRIX /sbin/install
3052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3055 # ./install, which can be erroneously created by make from ./install.sh.
3056 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3057 echo "configure:3058: checking for a BSD compatible install" >&5
3058 if test -z "$INSTALL"; then
3059 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3063 for ac_dir
in $PATH; do
3064 # Account for people who put trailing slashes in PATH elements.
3066 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3068 # OSF1 and SCO ODT 3.0 have their own names for install.
3069 # Don't use installbsd from OSF since it installs stuff as root
3071 for ac_prog
in ginstall scoinst
install; do
3072 if test -f $ac_dir/$ac_prog; then
3073 if test $ac_prog = install &&
3074 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3075 # AIX install. It has an incompatible calling convention.
3078 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3089 if test "${ac_cv_path_install+set}" = set; then
3090 INSTALL
="$ac_cv_path_install"
3092 # As a last resort, use the slow shell script. We don't cache a
3093 # path for INSTALL within a source directory, because that will
3094 # break other packages using the cache if that directory is
3095 # removed, or if the path is relative.
3096 INSTALL
="$ac_install_sh"
3099 echo "$ac_t""$INSTALL" 1>&6
3101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3102 # It thinks the first close brace ends the variable substitution.
3103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3107 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3109 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3110 echo "configure:3111: checking whether ln -s works" >&5
3111 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3115 if ln -s X conftestdata
2>/dev
/null
3118 ac_cv_prog_LN_S
="ln -s"
3123 LN_S
="$ac_cv_prog_LN_S"
3124 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3125 echo "$ac_t""yes" 1>&6
3127 echo "$ac_t""no" 1>&6
3130 # Extract the first word of "ranlib", so it can be a program name with args.
3131 set dummy ranlib
; ac_word
=$2
3132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_word" >&5
3134 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 if test -n "$RANLIB"; then
3138 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3140 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3142 for ac_dir
in $ac_dummy; do
3143 test -z "$ac_dir" && ac_dir
=.
3144 if test -f $ac_dir/$ac_word; then
3145 ac_cv_prog_RANLIB
="ranlib"
3150 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3153 RANLIB
="$ac_cv_prog_RANLIB"
3154 if test -n "$RANLIB"; then
3155 echo "$ac_t""$RANLIB" 1>&6
3157 echo "$ac_t""no" 1>&6
3160 for ac_prog
in 'bison -y' byacc
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy
$ac_prog; ac_word
=$2
3164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_word" >&5
3166 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 if test -n "$YACC"; then
3170 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3174 for ac_dir
in $ac_dummy; do
3175 test -z "$ac_dir" && ac_dir
=.
3176 if test -f $ac_dir/$ac_word; then
3177 ac_cv_prog_YACC
="$ac_prog"
3184 YACC
="$ac_cv_prog_YACC"
3185 if test -n "$YACC"; then
3186 echo "$ac_t""$YACC" 1>&6
3188 echo "$ac_t""no" 1>&6
3191 test -n "$YACC" && break
3193 test -n "$YACC" || YACC
="yacc"
3196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3197 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$AR"; then
3204 ac_cv_prog_AR
="$AR" # Let the user override the test.
3206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3208 for ac_dir
in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir
=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3216 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3220 if test -n "$AR"; then
3221 echo "$ac_t""$AR" 1>&6
3223 echo "$ac_t""no" 1>&6
3228 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3229 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_word" >&5
3232 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 if test -n "$DLLTOOL"; then
3236 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3240 for ac_dir
in $ac_dummy; do
3241 test -z "$ac_dir" && ac_dir
=.
3242 if test -f $ac_dir/$ac_word; then
3243 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3248 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3251 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3252 if test -n "$DLLTOOL"; then
3253 echo "$ac_t""$DLLTOOL" 1>&6
3255 echo "$ac_t""no" 1>&6
3260 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3261 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_word" >&5
3264 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 if test -n "$WINDRES"; then
3268 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3270 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3272 for ac_dir
in $ac_dummy; do
3273 test -z "$ac_dir" && ac_dir
=.
3274 if test -f $ac_dir/$ac_word; then
3275 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3280 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3283 WINDRES
="$ac_cv_prog_WINDRES"
3284 if test -n "$WINDRES"; then
3285 echo "$ac_t""$WINDRES" 1>&6
3287 echo "$ac_t""no" 1>&6
3293 # Needed for GNU/Hurd.
3294 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3295 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5
3298 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 if test -n "$MIG"; then
3302 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3304 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3306 for ac_dir
in $ac_dummy; do
3307 test -z "$ac_dir" && ac_dir
=.
3308 if test -f $ac_dir/$ac_word; then
3309 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3314 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3317 MIG
="$ac_cv_prog_MIG"
3318 if test -n "$MIG"; then
3319 echo "$ac_t""$MIG" 1>&6
3321 echo "$ac_t""no" 1>&6
3327 # ---------------------- #
3328 # Checks for libraries. #
3329 # ---------------------- #
3331 # We might need to link with -lm; most simulators need it.
3332 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3333 echo "configure:3334: checking for main in -lm" >&5
3334 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 ac_save_LIBS
="$LIBS"
3340 cat > conftest.
$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3348 if { (eval echo configure
:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3350 eval "ac_cv_lib_$ac_lib_var=yes"
3352 echo "configure: failed program was:" >&5
3353 cat conftest.
$ac_ext >&5
3355 eval "ac_cv_lib_$ac_lib_var=no"
3358 LIBS
="$ac_save_LIBS"
3361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3365 cat >> confdefs.h
<<EOF
3366 #define $ac_tr_lib 1
3372 echo "$ac_t""no" 1>&6
3376 # We need to link with -lw to get `wctype' on Solaris before Solaris
3377 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3378 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3379 # is known to have this problem). Therefore we avoid libw if we can.
3380 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3381 echo "configure:3382: checking for wctype" >&5
3382 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3385 cat > conftest.
$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 /* System header to define __stub macros and hopefully few prototypes,
3389 which can conflict with char wctype(); below. */
3391 /* Override any gcc2 internal prototype to avoid an error. */
3392 /* We use char because int might match the return type of a gcc2
3393 builtin and then its argument prototype would still apply. */
3398 /* The GNU C library defines this for functions which it implements
3399 to always fail with ENOSYS. Some functions are actually named
3400 something starting with __ and the normal name is an alias. */
3401 #if defined (__stub_wctype) || defined (__stub___wctype)
3409 if { (eval echo configure
:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3411 eval "ac_cv_func_wctype=yes"
3413 echo "configure: failed program was:" >&5
3414 cat conftest.
$ac_ext >&5
3416 eval "ac_cv_func_wctype=no"
3421 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3425 echo "$ac_t""no" 1>&6
3426 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3427 echo "configure:3428: checking for wctype in -lw" >&5
3428 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 ac_save_LIBS
="$LIBS"
3434 cat > conftest.
$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3446 if { (eval echo configure
:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3450 echo "configure: failed program was:" >&5
3451 cat conftest.
$ac_ext >&5
3453 eval "ac_cv_lib_$ac_lib_var=no"
3456 LIBS
="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3463 cat >> confdefs.h
<<EOF
3464 #define $ac_tr_lib 1
3470 echo "$ac_t""no" 1>&6
3476 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3478 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3479 echo "configure:3480: checking for library containing socketpair" >&5
3480 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 ac_func_search_save_LIBS
="$LIBS"
3484 ac_cv_search_socketpair
="no"
3485 cat > conftest.
$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3497 if { (eval echo configure
:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3499 ac_cv_search_socketpair
="none required"
3501 echo "configure: failed program was:" >&5
3502 cat conftest.
$ac_ext >&5
3505 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3506 LIBS
="-l$i $ac_func_search_save_LIBS"
3507 cat > conftest.
$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3519 if { (eval echo configure
:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3521 ac_cv_search_socketpair
="-l$i"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.
$ac_ext >&5
3529 LIBS
="$ac_func_search_save_LIBS"
3532 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3533 if test "$ac_cv_search_socketpair" != "no"; then
3534 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3540 # Since GDB uses Readline, we need termcap functionality, so we need
3541 # to find a library that provides that. When GDB is configured with
3542 # --enable-tui, we need full curses functionality.
3544 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3545 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3546 # Makefile fragments. That's why we need to have `Hcurses' before
3547 # `curses'. I don't see why we should use HP curses if a more
3548 # standard curses is available, except that according to HP's
3549 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3550 # HP-UX 10.10 and 10.20.
3552 if test "$need_curses" = yes; then
3554 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3555 echo "configure:3556: checking for library containing initscr" >&5
3556 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_func_search_save_LIBS
="$LIBS"
3560 ac_cv_search_initscr
="no"
3561 cat > conftest.
$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3573 if { (eval echo configure
:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3575 ac_cv_search_initscr
="none required"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.
$ac_ext >&5
3581 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
3582 LIBS
="-l$i $ac_func_search_save_LIBS"
3583 cat > conftest.
$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 /* Override any gcc2 internal prototype to avoid an error. */
3587 /* We use char because int might match the return type of a gcc2
3588 builtin and then its argument prototype would still apply. */
3595 if { (eval echo configure
:3596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3597 ac_cv_search_initscr
="-l$i"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3605 LIBS
="$ac_func_search_save_LIBS"
3608 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3609 if test "$ac_cv_search_initscr" != "no"; then
3610 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
3613 { echo "configure: error: no curses library found" 1>&2; exit 1; }
3619 if test -d $srcdir/libtermcap
; then
3620 LIBS
="../libtermcap/libtermcap.a $LIBS"
3621 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
3624 # ??? Is this really true?
3625 ac_cv_search_tgetent
="none required"
3628 # Readline prefers curses over termcap on AIX.
3631 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3632 echo "configure:3633: checking for library containing tgetent" >&5
3633 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 ac_func_search_save_LIBS
="$LIBS"
3637 ac_cv_search_tgetent
="no"
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3650 if { (eval echo configure
:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3652 ac_cv_search_tgetent
="none required"
3654 echo "configure: failed program was:" >&5
3655 cat conftest.
$ac_ext >&5
3658 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
3659 LIBS
="-l$i $ac_func_search_save_LIBS"
3660 cat > conftest.
$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3672 if { (eval echo configure
:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3674 ac_cv_search_tgetent
="-l$i"
3677 echo "configure: failed program was:" >&5
3678 cat conftest.
$ac_ext >&5
3682 LIBS
="$ac_func_search_save_LIBS"
3685 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3686 if test "$ac_cv_search_tgetent" != "no"; then
3687 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3695 # Note: We used to check for libtermlib and libterminfo too, but
3696 # Readline doesn't, so I think we're safe with leaving them out.
3698 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3699 echo "configure:3700: checking for library containing tgetent" >&5
3700 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_func_search_save_LIBS
="$LIBS"
3704 ac_cv_search_tgetent
="no"
3705 cat > conftest.
$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3717 if { (eval echo configure
:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3719 ac_cv_search_tgetent
="none required"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.
$ac_ext >&5
3725 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
3726 LIBS
="-l$i $ac_func_search_save_LIBS"
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3739 if { (eval echo configure
:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3741 ac_cv_search_tgetent
="-l$i"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.
$ac_ext >&5
3749 LIBS
="$ac_func_search_save_LIBS"
3752 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3753 if test "$ac_cv_search_tgetent" != "no"; then
3754 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3760 if test "$ac_cv_search_tgetent" = no
; then
3761 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
3764 # ------------------------- #
3765 # Checks for header files. #
3766 # ------------------------- #
3769 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3771 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3772 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3773 echo "configure:3774: checking for $ac_hdr that defines DIR" >&5
3774 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.
$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 #include <sys/types.h>
3786 if { (eval echo configure
:3787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788 eval "ac_cv_header_dirent_$ac_safe=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.
$ac_ext >&5
3793 eval "ac_cv_header_dirent_$ac_safe=no"
3797 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3800 cat >> confdefs.h
<<EOF
3801 #define $ac_tr_hdr 1
3803 ac_header_dirent
=$ac_hdr; break
3805 echo "$ac_t""no" 1>&6
3808 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3809 if test $ac_header_dirent = dirent.h
; then
3810 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3811 echo "configure:3812: checking for opendir in -ldir" >&5
3812 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 ac_save_LIBS
="$LIBS"
3818 cat > conftest.
$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3830 if { (eval echo configure
:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3832 eval "ac_cv_lib_$ac_lib_var=yes"
3834 echo "configure: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3837 eval "ac_cv_lib_$ac_lib_var=no"
3840 LIBS
="$ac_save_LIBS"
3843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3844 echo "$ac_t""yes" 1>&6
3847 echo "$ac_t""no" 1>&6
3851 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3852 echo "configure:3853: checking for opendir in -lx" >&5
3853 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 ac_save_LIBS
="$LIBS"
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3871 if { (eval echo configure
:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3873 eval "ac_cv_lib_$ac_lib_var=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.
$ac_ext >&5
3878 eval "ac_cv_lib_$ac_lib_var=no"
3881 LIBS
="$ac_save_LIBS"
3884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3888 echo "$ac_t""no" 1>&6
3893 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3894 echo "configure:3895: checking whether stat file-mode macros are broken" >&5
3895 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 cat > conftest.
$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 #include <sys/types.h>
3902 #include <sys/stat.h>
3904 #if defined(S_ISBLK) && defined(S_IFDIR)
3905 # if S_ISBLK (S_IFDIR)
3910 #if defined(S_ISBLK) && defined(S_IFCHR)
3911 # if S_ISBLK (S_IFCHR)
3916 #if defined(S_ISLNK) && defined(S_IFREG)
3917 # if S_ISLNK (S_IFREG)
3922 #if defined(S_ISSOCK) && defined(S_IFREG)
3923 # if S_ISSOCK (S_IFREG)
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930 egrep "You lose" >/dev
/null
2>&1; then
3932 ac_cv_header_stat_broken
=yes
3935 ac_cv_header_stat_broken
=no
3941 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3942 if test $ac_cv_header_stat_broken = yes; then
3943 cat >> confdefs.h
<<\EOF
3944 #define STAT_MACROS_BROKEN 1
3949 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3950 echo "configure:3951: checking for ANSI C header files" >&5
3951 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3962 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3963 { (eval echo configure
:3964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3964 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3965 if test -z "$ac_err"; then
3967 ac_cv_header_stdc
=yes
3970 echo "configure: failed program was:" >&5
3971 cat conftest.
$ac_ext >&5
3973 ac_cv_header_stdc
=no
3977 if test $ac_cv_header_stdc = yes; then
3978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3979 cat > conftest.
$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985 egrep "memchr" >/dev
/null
2>&1; then
3989 ac_cv_header_stdc
=no
3995 if test $ac_cv_header_stdc = yes; then
3996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3997 cat > conftest.
$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003 egrep "free" >/dev
/null
2>&1; then
4007 ac_cv_header_stdc
=no
4013 if test $ac_cv_header_stdc = yes; then
4014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4015 if test "$cross_compiling" = yes; then
4018 cat > conftest.
$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4022 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4023 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4025 int main () { int i; for (i = 0; i < 256; i++)
4026 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4030 if { (eval echo configure
:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4034 echo "configure: failed program was:" >&5
4035 cat conftest.
$ac_ext >&5
4037 ac_cv_header_stdc
=no
4045 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4046 if test $ac_cv_header_stdc = yes; then
4047 cat >> confdefs.h
<<\EOF
4048 #define STDC_HEADERS 1
4053 for ac_hdr
in link.h
4055 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4057 echo "configure:4058: checking for $ac_hdr" >&5
4058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.
$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4066 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4067 { (eval echo configure
:4068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4068 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4069 if test -z "$ac_err"; then
4071 eval "ac_cv_header_$ac_safe=yes"
4074 echo "configure: failed program was:" >&5
4075 cat conftest.
$ac_ext >&5
4077 eval "ac_cv_header_$ac_safe=no"
4081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4082 echo "$ac_t""yes" 1>&6
4083 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4084 cat >> confdefs.h
<<EOF
4085 #define $ac_tr_hdr 1
4089 echo "$ac_t""no" 1>&6
4093 for ac_hdr
in nlist.h
4095 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4097 echo "configure:4098: checking for $ac_hdr" >&5
4098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.
$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4106 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4107 { (eval echo configure
:4108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4108 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4109 if test -z "$ac_err"; then
4111 eval "ac_cv_header_$ac_safe=yes"
4114 echo "configure: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4117 eval "ac_cv_header_$ac_safe=no"
4121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4123 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4124 cat >> confdefs.h
<<EOF
4125 #define $ac_tr_hdr 1
4129 echo "$ac_t""no" 1>&6
4133 for ac_hdr
in poll.h sys
/poll.h
4135 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4137 echo "configure:4138: checking for $ac_hdr" >&5
4138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 cat > conftest.
$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4147 { (eval echo configure
:4148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4149 if test -z "$ac_err"; then
4151 eval "ac_cv_header_$ac_safe=yes"
4154 echo "configure: failed program was:" >&5
4155 cat conftest.
$ac_ext >&5
4157 eval "ac_cv_header_$ac_safe=no"
4161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4162 echo "$ac_t""yes" 1>&6
4163 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4164 cat >> confdefs.h
<<EOF
4165 #define $ac_tr_hdr 1
4169 echo "$ac_t""no" 1>&6
4173 for ac_hdr
in proc_service.h thread_db.h
4175 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4177 echo "configure:4178: checking for $ac_hdr" >&5
4178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 cat > conftest.
$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4186 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4187 { (eval echo configure
:4188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4188 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4189 if test -z "$ac_err"; then
4191 eval "ac_cv_header_$ac_safe=yes"
4194 echo "configure: failed program was:" >&5
4195 cat conftest.
$ac_ext >&5
4197 eval "ac_cv_header_$ac_safe=no"
4201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4202 echo "$ac_t""yes" 1>&6
4203 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4204 cat >> confdefs.h
<<EOF
4205 #define $ac_tr_hdr 1
4209 echo "$ac_t""no" 1>&6
4213 for ac_hdr
in stddef.h
4215 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_hdr" >&5
4218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 cat > conftest.
$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4227 { (eval echo configure
:4228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4229 if test -z "$ac_err"; then
4231 eval "ac_cv_header_$ac_safe=yes"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.
$ac_ext >&5
4237 eval "ac_cv_header_$ac_safe=no"
4241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4244 cat >> confdefs.h
<<EOF
4245 #define $ac_tr_hdr 1
4249 echo "$ac_t""no" 1>&6
4253 for ac_hdr
in stdlib.h
4255 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4257 echo "configure:4258: checking for $ac_hdr" >&5
4258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 cat > conftest.
$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4267 { (eval echo configure
:4268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4269 if test -z "$ac_err"; then
4271 eval "ac_cv_header_$ac_safe=yes"
4274 echo "configure: failed program was:" >&5
4275 cat conftest.
$ac_ext >&5
4277 eval "ac_cv_header_$ac_safe=no"
4281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4282 echo "$ac_t""yes" 1>&6
4283 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4284 cat >> confdefs.h
<<EOF
4285 #define $ac_tr_hdr 1
4289 echo "$ac_t""no" 1>&6
4293 for ac_hdr
in stdint.h
4295 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4297 echo "configure:4298: checking for $ac_hdr" >&5
4298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 cat > conftest.
$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4306 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4307 { (eval echo configure
:4308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4308 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4309 if test -z "$ac_err"; then
4311 eval "ac_cv_header_$ac_safe=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.
$ac_ext >&5
4317 eval "ac_cv_header_$ac_safe=no"
4321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4322 echo "$ac_t""yes" 1>&6
4323 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4324 cat >> confdefs.h
<<EOF
4325 #define $ac_tr_hdr 1
4329 echo "$ac_t""no" 1>&6
4333 for ac_hdr
in string.h memory.h
strings.h
4335 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4337 echo "configure:4338: checking for $ac_hdr" >&5
4338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 cat > conftest.
$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4346 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4347 { (eval echo configure
:4348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4348 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4349 if test -z "$ac_err"; then
4351 eval "ac_cv_header_$ac_safe=yes"
4354 echo "configure: failed program was:" >&5
4355 cat conftest.
$ac_ext >&5
4357 eval "ac_cv_header_$ac_safe=no"
4361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4362 echo "$ac_t""yes" 1>&6
4363 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4364 cat >> confdefs.h
<<EOF
4365 #define $ac_tr_hdr 1
4369 echo "$ac_t""no" 1>&6
4373 for ac_hdr
in sys
/fault.h
4375 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_hdr" >&5
4378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 cat > conftest.
$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4386 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4387 { (eval echo configure
:4388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4388 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4389 if test -z "$ac_err"; then
4391 eval "ac_cv_header_$ac_safe=yes"
4394 echo "configure: failed program was:" >&5
4395 cat conftest.
$ac_ext >&5
4397 eval "ac_cv_header_$ac_safe=no"
4401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4403 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4404 cat >> confdefs.h
<<EOF
4405 #define $ac_tr_hdr 1
4409 echo "$ac_t""no" 1>&6
4413 for ac_hdr
in sys
/file.h
4415 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_hdr" >&5
4418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 cat > conftest.
$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4426 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4427 { (eval echo configure
:4428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4428 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4429 if test -z "$ac_err"; then
4431 eval "ac_cv_header_$ac_safe=yes"
4434 echo "configure: failed program was:" >&5
4435 cat conftest.
$ac_ext >&5
4437 eval "ac_cv_header_$ac_safe=no"
4441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4442 echo "$ac_t""yes" 1>&6
4443 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4444 cat >> confdefs.h
<<EOF
4445 #define $ac_tr_hdr 1
4449 echo "$ac_t""no" 1>&6
4453 for ac_hdr
in sys
/filio.h
4455 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4457 echo "configure:4458: checking for $ac_hdr" >&5
4458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 cat > conftest.
$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4466 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467 { (eval echo configure
:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4468 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4469 if test -z "$ac_err"; then
4471 eval "ac_cv_header_$ac_safe=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4477 eval "ac_cv_header_$ac_safe=no"
4481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4484 cat >> confdefs.h
<<EOF
4485 #define $ac_tr_hdr 1
4489 echo "$ac_t""no" 1>&6
4493 for ac_hdr
in sys
/ioctl.h
4495 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4497 echo "configure:4498: checking for $ac_hdr" >&5
4498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 cat > conftest.
$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4506 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure
:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then
4511 eval "ac_cv_header_$ac_safe=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.
$ac_ext >&5
4517 eval "ac_cv_header_$ac_safe=no"
4521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4524 cat >> confdefs.h
<<EOF
4525 #define $ac_tr_hdr 1
4529 echo "$ac_t""no" 1>&6
4533 for ac_hdr
in sys
/param.h
4535 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4537 echo "configure:4538: checking for $ac_hdr" >&5
4538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4546 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4547 { (eval echo configure
:4548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4548 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4549 if test -z "$ac_err"; then
4551 eval "ac_cv_header_$ac_safe=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 eval "ac_cv_header_$ac_safe=no"
4561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4564 cat >> confdefs.h
<<EOF
4565 #define $ac_tr_hdr 1
4569 echo "$ac_t""no" 1>&6
4573 for ac_hdr
in sys
/proc.h
4575 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_hdr" >&5
4578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4587 { (eval echo configure
:4588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4589 if test -z "$ac_err"; then
4591 eval "ac_cv_header_$ac_safe=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4597 eval "ac_cv_header_$ac_safe=no"
4601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4603 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4604 cat >> confdefs.h
<<EOF
4605 #define $ac_tr_hdr 1
4609 echo "$ac_t""no" 1>&6
4613 for ac_hdr
in sys
/procfs.h
4615 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_hdr" >&5
4618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 cat > conftest.
$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4626 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4627 { (eval echo configure
:4628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4628 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4629 if test -z "$ac_err"; then
4631 eval "ac_cv_header_$ac_safe=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4637 eval "ac_cv_header_$ac_safe=no"
4641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4642 echo "$ac_t""yes" 1>&6
4643 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4644 cat >> confdefs.h
<<EOF
4645 #define $ac_tr_hdr 1
4649 echo "$ac_t""no" 1>&6
4653 for ac_hdr
in sys
/ptrace.h ptrace.h
4655 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4657 echo "configure:4658: checking for $ac_hdr" >&5
4658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 cat > conftest.
$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4666 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4667 { (eval echo configure
:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4668 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4669 if test -z "$ac_err"; then
4671 eval "ac_cv_header_$ac_safe=yes"
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 eval "ac_cv_header_$ac_safe=no"
4681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4684 cat >> confdefs.h
<<EOF
4685 #define $ac_tr_hdr 1
4689 echo "$ac_t""no" 1>&6
4693 for ac_hdr
in sys
/reg.h sys
/debugreg.h
4695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_hdr" >&5
4698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 cat > conftest.
$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4707 { (eval echo configure
:4708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4708 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4709 if test -z "$ac_err"; then
4711 eval "ac_cv_header_$ac_safe=yes"
4714 echo "configure: failed program was:" >&5
4715 cat conftest.
$ac_ext >&5
4717 eval "ac_cv_header_$ac_safe=no"
4721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4724 cat >> confdefs.h
<<EOF
4725 #define $ac_tr_hdr 1
4729 echo "$ac_t""no" 1>&6
4733 for ac_hdr
in sys
/select.h
4735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure
:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4751 eval "ac_cv_header_$ac_safe=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4757 eval "ac_cv_header_$ac_safe=no"
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h
<<EOF
4765 #define $ac_tr_hdr 1
4769 echo "$ac_t""no" 1>&6
4773 for ac_hdr
in sys
/syscall.h
4775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_hdr" >&5
4778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.
$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4787 { (eval echo configure
:4788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4788 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4789 if test -z "$ac_err"; then
4791 eval "ac_cv_header_$ac_safe=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4797 eval "ac_cv_header_$ac_safe=no"
4801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4804 cat >> confdefs.h
<<EOF
4805 #define $ac_tr_hdr 1
4809 echo "$ac_t""no" 1>&6
4813 for ac_hdr
in sys
/user.h
4815 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_hdr" >&5
4818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.
$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4827 { (eval echo configure
:4828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4829 if test -z "$ac_err"; then
4831 eval "ac_cv_header_$ac_safe=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.
$ac_ext >&5
4837 eval "ac_cv_header_$ac_safe=no"
4841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4842 echo "$ac_t""yes" 1>&6
4843 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4844 cat >> confdefs.h
<<EOF
4845 #define $ac_tr_hdr 1
4849 echo "$ac_t""no" 1>&6
4853 for ac_hdr
in sys
/wait.h
wait.h
4855 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_hdr" >&5
4858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.
$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867 { (eval echo configure
:4868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4868 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4869 if test -z "$ac_err"; then
4871 eval "ac_cv_header_$ac_safe=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.
$ac_ext >&5
4877 eval "ac_cv_header_$ac_safe=no"
4881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4882 echo "$ac_t""yes" 1>&6
4883 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4884 cat >> confdefs.h
<<EOF
4885 #define $ac_tr_hdr 1
4889 echo "$ac_t""no" 1>&6
4893 for ac_hdr
in termios.h termio.h sgtty.h
4895 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4897 echo "configure:4898: checking for $ac_hdr" >&5
4898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 cat > conftest.
$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4907 { (eval echo configure
:4908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4909 if test -z "$ac_err"; then
4911 eval "ac_cv_header_$ac_safe=yes"
4914 echo "configure: failed program was:" >&5
4915 cat conftest.
$ac_ext >&5
4917 eval "ac_cv_header_$ac_safe=no"
4921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4924 cat >> confdefs.h
<<EOF
4925 #define $ac_tr_hdr 1
4929 echo "$ac_t""no" 1>&6
4933 for ac_hdr
in unistd.h
4935 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4937 echo "configure:4938: checking for $ac_hdr" >&5
4938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 cat > conftest.
$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4946 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4947 { (eval echo configure
:4948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4948 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4949 if test -z "$ac_err"; then
4951 eval "ac_cv_header_$ac_safe=yes"
4954 echo "configure: failed program was:" >&5
4955 cat conftest.
$ac_ext >&5
4957 eval "ac_cv_header_$ac_safe=no"
4961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4964 cat >> confdefs.h
<<EOF
4965 #define $ac_tr_hdr 1
4969 echo "$ac_t""no" 1>&6
4974 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
4975 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
4976 # think that we don't have <curses.h> if we're using GCC.
4979 if test "$GCC" = yes; then
4980 cat >> confdefs.h
<<\EOF
4981 #define _MSE_INT_H 1
4986 for ac_hdr
in curses.h ncurses.h term.h
4988 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4990 echo "configure:4991: checking for $ac_hdr" >&5
4991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 cat > conftest.
$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4999 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5000 { (eval echo configure
:5001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5001 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5002 if test -z "$ac_err"; then
5004 eval "ac_cv_header_$ac_safe=yes"
5007 echo "configure: failed program was:" >&5
5008 cat conftest.
$ac_ext >&5
5010 eval "ac_cv_header_$ac_safe=no"
5014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5017 cat >> confdefs.h
<<EOF
5018 #define $ac_tr_hdr 1
5022 echo "$ac_t""no" 1>&6
5027 # FIXME: kettenis/20030102: In most cases we include these
5028 # unconditionally, so what's the point in checking these?
5029 for ac_hdr
in ctype.h
time.h
5031 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5033 echo "configure:5034: checking for $ac_hdr" >&5
5034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.
$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5042 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5043 { (eval echo configure
:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5044 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5045 if test -z "$ac_err"; then
5047 eval "ac_cv_header_$ac_safe=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.
$ac_ext >&5
5053 eval "ac_cv_header_$ac_safe=no"
5057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5060 cat >> confdefs.h
<<EOF
5061 #define $ac_tr_hdr 1
5065 echo "$ac_t""no" 1>&6
5070 # ------------------ #
5071 # Checks for types. #
5072 # ------------------ #
5074 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5075 echo "configure:5076: checking return type of signal handlers" >&5
5076 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 cat > conftest.
$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5082 #include <sys/types.h>
5088 extern "C" void (*signal (int, void (*)(int)))(int);
5090 void (*signal ()) ();
5097 if { (eval echo configure
:5098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5099 ac_cv_type_signal
=void
5101 echo "configure: failed program was:" >&5
5102 cat conftest.
$ac_ext >&5
5104 ac_cv_type_signal
=int
5109 echo "$ac_t""$ac_cv_type_signal" 1>&6
5110 cat >> confdefs.h
<<EOF
5111 #define RETSIGTYPE $ac_cv_type_signal
5116 # ------------------------------------- #
5117 # Checks for compiler characteristics. #
5118 # ------------------------------------- #
5120 echo $ac_n "checking for working const""... $ac_c" 1>&6
5121 echo "configure:5122: checking for working const" >&5
5122 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 cat > conftest.
$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5131 /* Ultrix mips cc rejects this. */
5132 typedef int charset[2]; const charset x;
5133 /* SunOS 4.1.1 cc rejects this. */
5134 char const *const *ccp;
5136 /* NEC SVR4.0.2 mips cc rejects this. */
5137 struct point {int x, y;};
5138 static struct point const zero = {0,0};
5139 /* AIX XL C 1.02.0.0 rejects this.
5140 It does not let you subtract one const X* pointer from another in an arm
5141 of an if-expression whose if-part is not a constant expression */
5142 const char *g = "string";
5143 ccp = &g + (g ? g-g : 0);
5144 /* HPUX 7.0 cc rejects these. */
5147 ccp = (char const *const *) p;
5148 { /* SCO 3.2v4 cc rejects this. */
5150 char const *s = 0 ? (char *) 0 : (char const *) 0;
5154 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5156 const int *foo = &x[0];
5159 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5160 typedef const int *iptr;
5164 { /* AIX XL C 1.02.0.0 rejects this saying
5165 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5166 struct s { int j; const int *ap[3]; };
5167 struct s *b; b->j = 5;
5169 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5175 if { (eval echo configure
:5176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5179 echo "configure: failed program was:" >&5
5180 cat conftest.
$ac_ext >&5
5187 echo "$ac_t""$ac_cv_c_const" 1>&6
5188 if test $ac_cv_c_const = no
; then
5189 cat >> confdefs.h
<<\EOF
5195 echo $ac_n "checking for inline""... $ac_c" 1>&6
5196 echo "configure:5197: checking for inline" >&5
5197 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6
5201 for ac_kw
in inline __inline__ __inline
; do
5202 cat > conftest.
$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5210 if { (eval echo configure
:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5212 ac_cv_c_inline
=$ac_kw; break
5214 echo "configure: failed program was:" >&5
5215 cat conftest.
$ac_ext >&5
5222 echo "$ac_t""$ac_cv_c_inline" 1>&6
5223 case "$ac_cv_c_inline" in
5225 no
) cat >> confdefs.h
<<\EOF
5229 *) cat >> confdefs.h
<<EOF
5230 #define inline $ac_cv_c_inline
5236 # ------------------------------ #
5237 # Checks for library functions. #
5238 # ------------------------------ #
5240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5241 # for constant arguments. Useless!
5242 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5243 echo "configure:5244: checking for working alloca.h" >&5
5244 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 cat > conftest.
$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5252 char *p = alloca(2 * sizeof(int));
5255 if { (eval echo configure
:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5257 ac_cv_header_alloca_h
=yes
5259 echo "configure: failed program was:" >&5
5260 cat conftest.
$ac_ext >&5
5262 ac_cv_header_alloca_h
=no
5267 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5268 if test $ac_cv_header_alloca_h = yes; then
5269 cat >> confdefs.h
<<\EOF
5270 #define HAVE_ALLOCA_H 1
5275 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5276 echo "configure:5277: checking for alloca" >&5
5277 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 cat > conftest.
$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5285 # define alloca __builtin_alloca
5288 # include <malloc.h>
5289 # define alloca _alloca
5292 # include <alloca.h>
5297 # ifndef alloca /* predefined by HP cc +Olibcalls */
5306 char *p = (char *) alloca(1);
5309 if { (eval echo configure
:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5311 ac_cv_func_alloca_works
=yes
5313 echo "configure: failed program was:" >&5
5314 cat conftest.
$ac_ext >&5
5316 ac_cv_func_alloca_works
=no
5321 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5322 if test $ac_cv_func_alloca_works = yes; then
5323 cat >> confdefs.h
<<\EOF
5324 #define HAVE_ALLOCA 1
5329 if test $ac_cv_func_alloca_works = no
; then
5330 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5331 # that cause trouble. Some versions do not even contain alloca or
5332 # contain a buggy version. If you still want to use their alloca,
5333 # use ar to extract alloca.o from them instead of compiling alloca.c.
5334 ALLOCA
=alloca.
${ac_objext}
5335 cat >> confdefs.h
<<\EOF
5340 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5341 echo "configure:5342: checking whether alloca needs Cray hooks" >&5
5342 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.
$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 #if defined(CRAY) && ! defined(CRAY2)
5355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356 egrep "webecray" >/dev
/null
2>&1; then
5367 echo "$ac_t""$ac_cv_os_cray" 1>&6
5368 if test $ac_cv_os_cray = yes; then
5369 for ac_func
in _getb67 GETB67 getb67
; do
5370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5371 echo "configure:5372: checking for $ac_func" >&5
5372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 cat > conftest.
$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* System header to define __stub macros and hopefully few prototypes,
5379 which can conflict with char $ac_func(); below. */
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */
5388 /* The GNU C library defines this for functions which it implements
5389 to always fail with ENOSYS. Some functions are actually named
5390 something starting with __ and the normal name is an alias. */
5391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5399 if { (eval echo configure
:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5401 eval "ac_cv_func_$ac_func=yes"
5403 echo "configure: failed program was:" >&5
5404 cat conftest.
$ac_ext >&5
5406 eval "ac_cv_func_$ac_func=no"
5411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5413 cat >> confdefs.h
<<EOF
5414 #define CRAY_STACKSEG_END $ac_func
5419 echo "$ac_t""no" 1>&6
5425 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5426 echo "configure:5427: checking stack direction for C alloca" >&5
5427 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5430 if test "$cross_compiling" = yes; then
5431 ac_cv_c_stack_direction
=0
5433 cat > conftest.
$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 find_stack_direction ()
5438 static char *addr = 0;
5443 return find_stack_direction ();
5446 return (&dummy > addr) ? 1 : -1;
5450 exit (find_stack_direction() < 0);
5453 if { (eval echo configure
:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5455 ac_cv_c_stack_direction
=1
5457 echo "configure: failed program was:" >&5
5458 cat conftest.
$ac_ext >&5
5460 ac_cv_c_stack_direction
=-1
5467 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5468 cat >> confdefs.h
<<EOF
5469 #define STACK_DIRECTION $ac_cv_c_stack_direction
5474 for ac_hdr
in unistd.h
5476 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_hdr" >&5
5479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.
$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5488 { (eval echo configure
:5489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5489 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5490 if test -z "$ac_err"; then
5492 eval "ac_cv_header_$ac_safe=yes"
5495 echo "configure: failed program was:" >&5
5496 cat conftest.
$ac_ext >&5
5498 eval "ac_cv_header_$ac_safe=no"
5502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5505 cat >> confdefs.h
<<EOF
5506 #define $ac_tr_hdr 1
5510 echo "$ac_t""no" 1>&6
5514 for ac_func
in getpagesize
5516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5517 echo "configure:5518: checking for $ac_func" >&5
5518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 cat > conftest.
$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 /* System header to define __stub macros and hopefully few prototypes,
5525 which can conflict with char $ac_func(); below. */
5527 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5534 /* The GNU C library defines this for functions which it implements
5535 to always fail with ENOSYS. Some functions are actually named
5536 something starting with __ and the normal name is an alias. */
5537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5545 if { (eval echo configure
:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5547 eval "ac_cv_func_$ac_func=yes"
5549 echo "configure: failed program was:" >&5
5550 cat conftest.
$ac_ext >&5
5552 eval "ac_cv_func_$ac_func=no"
5557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5558 echo "$ac_t""yes" 1>&6
5559 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5560 cat >> confdefs.h
<<EOF
5561 #define $ac_tr_func 1
5565 echo "$ac_t""no" 1>&6
5569 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5570 echo "configure:5571: checking for working mmap" >&5
5571 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 if test "$cross_compiling" = yes; then
5575 ac_cv_func_mmap_fixed_mapped
=no
5577 cat > conftest.
$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5581 /* Thanks to Mike Haertel and Jim Avera for this test.
5582 Here is a matrix of mmap possibilities:
5583 mmap private not fixed
5584 mmap private fixed at somewhere currently unmapped
5585 mmap private fixed at somewhere already mapped
5586 mmap shared not fixed
5587 mmap shared fixed at somewhere currently unmapped
5588 mmap shared fixed at somewhere already mapped
5589 For private mappings, we should verify that changes cannot be read()
5590 back from the file, nor mmap's back from the file at a different
5591 address. (There have been systems where private was not correctly
5592 implemented like the infamous i386 svr4.0, and systems where the
5593 VM page cache was not coherent with the filesystem buffer cache
5594 like early versions of FreeBSD and possibly contemporary NetBSD.)
5595 For shared mappings, we should conversely verify that changes get
5596 propogated back to all the places they're supposed to be.
5598 Grep wants private fixed already mapped.
5599 The main things grep needs to know about mmap are:
5600 * does it exist and is it safe to write into the mmap'd area
5601 * how to use it (BSD variants) */
5602 #include <sys/types.h>
5604 #include <sys/mman.h>
5606 /* This mess was copied from the GNU getpagesize.h. */
5607 #ifndef HAVE_GETPAGESIZE
5608 # ifdef HAVE_UNISTD_H
5609 # include <unistd.h>
5612 /* Assume that all systems that can run configure have sys/param.h. */
5613 # ifndef HAVE_SYS_PARAM_H
5614 # define HAVE_SYS_PARAM_H 1
5617 # ifdef _SC_PAGESIZE
5618 # define getpagesize() sysconf(_SC_PAGESIZE)
5619 # else /* no _SC_PAGESIZE */
5620 # ifdef HAVE_SYS_PARAM_H
5621 # include <sys/param.h>
5622 # ifdef EXEC_PAGESIZE
5623 # define getpagesize() EXEC_PAGESIZE
5624 # else /* no EXEC_PAGESIZE */
5626 # define getpagesize() NBPG * CLSIZE
5629 # endif /* no CLSIZE */
5630 # else /* no NBPG */
5632 # define getpagesize() NBPC
5633 # else /* no NBPC */
5635 # define getpagesize() PAGESIZE
5636 # endif /* PAGESIZE */
5637 # endif /* no NBPC */
5638 # endif /* no NBPG */
5639 # endif /* no EXEC_PAGESIZE */
5640 # else /* no HAVE_SYS_PARAM_H */
5641 # define getpagesize() 8192 /* punt totally */
5642 # endif /* no HAVE_SYS_PARAM_H */
5643 # endif /* no _SC_PAGESIZE */
5645 #endif /* no HAVE_GETPAGESIZE */
5648 extern "C" { void *malloc(unsigned); }
5656 char *data, *data2, *data3;
5660 pagesize = getpagesize();
5663 * First, make a file with some known garbage in it.
5665 data = malloc(pagesize);
5668 for (i = 0; i < pagesize; ++i)
5669 *(data + i) = rand();
5671 fd = creat("conftestmmap", 0600);
5674 if (write(fd, data, pagesize) != pagesize)
5679 * Next, try to mmap the file at a fixed address which
5680 * already has something else allocated at it. If we can,
5681 * also make sure that we see the same garbage.
5683 fd = open("conftestmmap", O_RDWR);
5686 data2 = malloc(2 * pagesize);
5689 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5690 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5693 for (i = 0; i < pagesize; ++i)
5694 if (*(data + i) != *(data2 + i))
5698 * Finally, make sure that changes to the mapped area
5699 * do not percolate back to the file as seen by read().
5700 * (This is a bug on some variants of i386 svr4.0.)
5702 for (i = 0; i < pagesize; ++i)
5703 *(data2 + i) = *(data2 + i) + 1;
5704 data3 = malloc(pagesize);
5707 if (read(fd, data3, pagesize) != pagesize)
5709 for (i = 0; i < pagesize; ++i)
5710 if (*(data + i) != *(data3 + i))
5713 unlink("conftestmmap");
5718 if { (eval echo configure
:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5720 ac_cv_func_mmap_fixed_mapped
=yes
5722 echo "configure: failed program was:" >&5
5723 cat conftest.
$ac_ext >&5
5725 ac_cv_func_mmap_fixed_mapped
=no
5732 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5733 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5734 cat >> confdefs.h
<<\EOF
5740 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5741 echo "configure:5742: checking for pid_t" >&5
5742 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5745 cat > conftest.
$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 #include <sys/types.h>
5754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5755 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5757 ac_cv_type_pid_t
=yes
5765 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5766 if test $ac_cv_type_pid_t = no
; then
5767 cat >> confdefs.h
<<\EOF
5773 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5774 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5775 echo "configure:5776: checking for vfork.h" >&5
5776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 cat > conftest.
$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5785 { (eval echo configure
:5786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5786 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5787 if test -z "$ac_err"; then
5789 eval "ac_cv_header_$ac_safe=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.
$ac_ext >&5
5795 eval "ac_cv_header_$ac_safe=no"
5799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5800 echo "$ac_t""yes" 1>&6
5801 cat >> confdefs.h
<<\EOF
5802 #define HAVE_VFORK_H 1
5806 echo "$ac_t""no" 1>&6
5809 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
5810 echo "configure:5811: checking for working vfork" >&5
5811 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 if test "$cross_compiling" = yes; then
5815 echo $ac_n "checking for vfork""... $ac_c" 1>&6
5816 echo "configure:5817: checking for vfork" >&5
5817 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5820 cat > conftest.
$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char vfork(); below. */
5826 /* Override any gcc2 internal prototype to avoid an error. */
5827 /* We use char because int might match the return type of a gcc2
5828 builtin and then its argument prototype would still apply. */
5833 /* The GNU C library defines this for functions which it implements
5834 to always fail with ENOSYS. Some functions are actually named
5835 something starting with __ and the normal name is an alias. */
5836 #if defined (__stub_vfork) || defined (__stub___vfork)
5844 if { (eval echo configure
:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5846 eval "ac_cv_func_vfork=yes"
5848 echo "configure: failed program was:" >&5
5849 cat conftest.
$ac_ext >&5
5851 eval "ac_cv_func_vfork=no"
5856 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
5857 echo "$ac_t""yes" 1>&6
5860 echo "$ac_t""no" 1>&6
5863 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5865 cat > conftest.
$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* Thanks to Paul Eggert for this test. */
5870 #include <sys/types.h>
5871 #include <sys/stat.h>
5872 #ifdef HAVE_UNISTD_H
5878 /* On some sparc systems, changes by the child to local and incoming
5879 argument registers are propagated back to the parent.
5880 The compiler is told about this with #include <vfork.h>,
5881 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
5882 Test for this by using a static variable whose address
5883 is put into a register that is clobbered by the vfork. */
5886 sparc_address_test (int arg)
5888 sparc_address_test (arg) int arg;
5906 pid_t parent = getpid ();
5909 sparc_address_test ();
5914 /* Here is another test for sparc vfork register problems.
5915 This test uses lots of local variables, at least
5916 as many local variables as main has allocated so far
5917 including compiler temporaries. 4 locals are enough for
5918 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
5919 A buggy compiler should reuse the register of parent
5920 for one of the local variables, since it will think that
5921 parent can't possibly be used any more in this routine.
5922 Assigning to the local variable will thus munge parent
5923 in the parent process. */
5925 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5926 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5927 /* Convince the compiler that p..p7 are live; otherwise, it might
5928 use the same hardware register for all 8 local variables. */
5929 if (p != p1 || p != p2 || p != p3 || p != p4
5930 || p != p5 || p != p6 || p != p7)
5933 /* On some systems (e.g. IRIX 3.3),
5934 vfork doesn't separate parent from child file descriptors.
5935 If the child closes a descriptor before it execs or exits,
5936 this munges the parent's descriptor as well.
5937 Test for this by closing stdout in the child. */
5938 _exit(close(fileno(stdout)) != 0);
5943 while (wait(&status) != child)
5946 /* Was there some problem with vforking? */
5949 /* Did the child fail? (This shouldn't happen.) */
5952 /* Did the vfork/compiler bug occur? */
5953 || parent != getpid()
5955 /* Did the file descriptor bug occur? */
5956 || fstat(fileno(stdout), &st) != 0
5961 if { (eval echo configure
:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5963 ac_cv_func_vfork_works
=yes
5965 echo "configure: failed program was:" >&5
5966 cat conftest.
$ac_ext >&5
5968 ac_cv_func_vfork_works
=no
5975 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
5976 if test $ac_cv_func_vfork_works = no
; then
5977 cat >> confdefs.h
<<\EOF
5983 for ac_func
in canonicalize_file_name realpath
5985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5986 echo "configure:5987: checking for $ac_func" >&5
5987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 cat > conftest.
$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 /* System header to define __stub macros and hopefully few prototypes,
5994 which can conflict with char $ac_func(); below. */
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
6003 /* The GNU C library defines this for functions which it implements
6004 to always fail with ENOSYS. Some functions are actually named
6005 something starting with __ and the normal name is an alias. */
6006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6014 if { (eval echo configure
:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6016 eval "ac_cv_func_$ac_func=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.
$ac_ext >&5
6021 eval "ac_cv_func_$ac_func=no"
6026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6028 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6029 cat >> confdefs.h
<<EOF
6030 #define $ac_tr_func 1
6034 echo "$ac_t""no" 1>&6
6040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6041 echo "configure:6042: checking for $ac_func" >&5
6042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 cat > conftest.
$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 /* System header to define __stub macros and hopefully few prototypes,
6049 which can conflict with char $ac_func(); below. */
6051 /* Override any gcc2 internal prototype to avoid an error. */
6052 /* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6058 /* The GNU C library defines this for functions which it implements
6059 to always fail with ENOSYS. Some functions are actually named
6060 something starting with __ and the normal name is an alias. */
6061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6069 if { (eval echo configure
:6070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6071 eval "ac_cv_func_$ac_func=yes"
6073 echo "configure: failed program was:" >&5
6074 cat conftest.
$ac_ext >&5
6076 eval "ac_cv_func_$ac_func=no"
6081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6082 echo "$ac_t""yes" 1>&6
6083 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6084 cat >> confdefs.h
<<EOF
6085 #define $ac_tr_func 1
6089 echo "$ac_t""no" 1>&6
6095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6096 echo "configure:6097: checking for $ac_func" >&5
6097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6100 cat > conftest.
$ac_ext <<EOF
6101 #line 6102 "configure"
6102 #include "confdefs.h"
6103 /* System header to define __stub macros and hopefully few prototypes,
6104 which can conflict with char $ac_func(); below. */
6106 /* Override any gcc2 internal prototype to avoid an error. */
6107 /* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */
6113 /* The GNU C library defines this for functions which it implements
6114 to always fail with ENOSYS. Some functions are actually named
6115 something starting with __ and the normal name is an alias. */
6116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6124 if { (eval echo configure
:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6126 eval "ac_cv_func_$ac_func=yes"
6128 echo "configure: failed program was:" >&5
6129 cat conftest.
$ac_ext >&5
6131 eval "ac_cv_func_$ac_func=no"
6136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6137 echo "$ac_t""yes" 1>&6
6138 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6139 cat >> confdefs.h
<<EOF
6140 #define $ac_tr_func 1
6144 echo "$ac_t""no" 1>&6
6148 for ac_func
in setpgid setpgrp
6150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6151 echo "configure:6152: checking for $ac_func" >&5
6152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 cat > conftest.
$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 /* System header to define __stub macros and hopefully few prototypes,
6159 which can conflict with char $ac_func(); below. */
6161 /* Override any gcc2 internal prototype to avoid an error. */
6162 /* We use char because int might match the return type of a gcc2
6163 builtin and then its argument prototype would still apply. */
6168 /* The GNU C library defines this for functions which it implements
6169 to always fail with ENOSYS. Some functions are actually named
6170 something starting with __ and the normal name is an alias. */
6171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6179 if { (eval echo configure
:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6181 eval "ac_cv_func_$ac_func=yes"
6183 echo "configure: failed program was:" >&5
6184 cat conftest.
$ac_ext >&5
6186 eval "ac_cv_func_$ac_func=no"
6191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6192 echo "$ac_t""yes" 1>&6
6193 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6194 cat >> confdefs.h
<<EOF
6195 #define $ac_tr_func 1
6199 echo "$ac_t""no" 1>&6
6203 for ac_func
in sigaction sigprocmask sigsetmask
6205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6206 echo "configure:6207: checking for $ac_func" >&5
6207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6210 cat > conftest.
$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6213 /* System header to define __stub macros and hopefully few prototypes,
6214 which can conflict with char $ac_func(); below. */
6216 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6223 /* The GNU C library defines this for functions which it implements
6224 to always fail with ENOSYS. Some functions are actually named
6225 something starting with __ and the normal name is an alias. */
6226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6234 if { (eval echo configure
:6235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6236 eval "ac_cv_func_$ac_func=yes"
6238 echo "configure: failed program was:" >&5
6239 cat conftest.
$ac_ext >&5
6241 eval "ac_cv_func_$ac_func=no"
6246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6247 echo "$ac_t""yes" 1>&6
6248 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6249 cat >> confdefs.h
<<EOF
6250 #define $ac_tr_func 1
6254 echo "$ac_t""no" 1>&6
6258 for ac_func
in socketpair
6260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6261 echo "configure:6262: checking for $ac_func" >&5
6262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6263 echo $ac_n "(cached) $ac_c" 1>&6
6265 cat > conftest.
$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 /* System header to define __stub macros and hopefully few prototypes,
6269 which can conflict with char $ac_func(); below. */
6271 /* Override any gcc2 internal prototype to avoid an error. */
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6278 /* The GNU C library defines this for functions which it implements
6279 to always fail with ENOSYS. Some functions are actually named
6280 something starting with __ and the normal name is an alias. */
6281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6289 if { (eval echo configure
:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6291 eval "ac_cv_func_$ac_func=yes"
6293 echo "configure: failed program was:" >&5
6294 cat conftest.
$ac_ext >&5
6296 eval "ac_cv_func_$ac_func=no"
6301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6302 echo "$ac_t""yes" 1>&6
6303 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6304 cat >> confdefs.h
<<EOF
6305 #define $ac_tr_func 1
6309 echo "$ac_t""no" 1>&6
6314 if test "$cross_compiling" = no
; then
6315 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6316 echo "configure:6317: checking whether setpgrp takes no argument" >&5
6317 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6320 if test "$cross_compiling" = yes; then
6321 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6323 cat > conftest.
$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6327 #ifdef HAVE_UNISTD_H
6332 * If this system has a BSD-style setpgrp, which takes arguments, exit
6337 if (setpgrp(1,1) == -1)
6344 if { (eval echo configure
:6345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6346 ac_cv_func_setpgrp_void
=no
6348 echo "configure: failed program was:" >&5
6349 cat conftest.
$ac_ext >&5
6351 ac_cv_func_setpgrp_void
=yes
6359 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6360 if test $ac_cv_func_setpgrp_void = yes; then
6361 cat >> confdefs.h
<<\EOF
6362 #define SETPGRP_VOID 1
6368 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6369 echo "configure:6370: checking whether setpgrp takes no argument" >&5
6370 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 cat > conftest.
$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6381 if (setpgrp(1,1) == -1)
6388 if { (eval echo configure
:6389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6390 ac_cv_func_setpgrp_void
=no
6392 echo "configure: failed program was:" >&5
6393 cat conftest.
$ac_ext >&5
6395 ac_cv_func_setpgrp_void
=yes
6400 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6401 if test $ac_cv_func_setpgrp_void = yes; then
6402 cat >> confdefs.h
<<\EOF
6403 #define SETPGRP_VOID 1
6409 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6410 # since sigsetjmp might only be defined as a macro.
6411 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6412 echo "configure:6413: checking for sigsetjmp" >&5
6413 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6416 cat > conftest.
$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6423 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6426 if { (eval echo configure
:6427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6428 gdb_cv_func_sigsetjmp
=yes
6430 echo "configure: failed program was:" >&5
6431 cat conftest.
$ac_ext >&5
6433 gdb_cv_func_sigsetjmp
=no
6438 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6439 if test $gdb_cv_func_sigsetjmp = yes; then
6440 cat >> confdefs.h
<<\EOF
6441 #define HAVE_SIGSETJMP 1
6446 # Assume we'll default to using the included libiberty regex.
6447 gdb_use_included_regex
=yes
6449 # However, if the system regex is GNU regex, then default to *not*
6450 # using the included regex.
6451 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6452 echo "configure:6453: checking for GNU regex" >&5
6453 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6456 cat > conftest.
$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6459 #include <gnu-versions.h>
6461 #define REGEX_INTERFACE_VERSION 1
6462 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
6463 # error "Version mismatch"
6467 if { (eval echo configure
:6468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6469 gdb_cv_have_gnu_regex
=yes
6471 echo "configure: failed program was:" >&5
6472 cat conftest.
$ac_ext >&5
6474 gdb_cv_have_gnu_regex
=no
6479 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6480 if test $gdb_cv_have_gnu_regex = yes; then
6481 gdb_use_included_regex
=no
6484 # Check whether --with-included-regex or --without-included-regex was given.
6485 if test "${with_included_regex+set}" = set; then
6486 withval
="$with_included_regex"
6487 gdb_with_regex
=$withval
6489 gdb_with_regex
=$gdb_use_included_regex
6492 if test "$gdb_with_regex" = yes; then
6493 cat >> confdefs.h
<<\EOF
6494 #define USE_INCLUDED_REGEX 1
6499 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6500 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6501 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6502 echo "configure:6503: checking for r_fs in struct reg" >&5
6503 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6504 echo $ac_n "(cached) $ac_c" 1>&6
6506 cat > conftest.
$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6509 #include <machine/reg.h>
6511 struct reg r; r.r_fs;
6514 if { (eval echo configure
:6515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6516 gdb_cv_struct_reg_r_fs
=yes
6518 echo "configure: failed program was:" >&5
6519 cat conftest.
$ac_ext >&5
6521 gdb_cv_struct_reg_r_fs
=no
6526 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6527 if test $gdb_cv_struct_reg_r_fs = yes; then
6528 cat >> confdefs.h
<<\EOF
6529 #define HAVE_STRUCT_REG_R_FS 1
6533 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6534 echo "configure:6535: checking for r_gs in struct reg" >&5
6535 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 cat > conftest.
$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 #include <machine/reg.h>
6543 struct reg r; r.r_gs;
6546 if { (eval echo configure
:6547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6548 gdb_cv_struct_reg_r_gs
=yes
6550 echo "configure: failed program was:" >&5
6551 cat conftest.
$ac_ext >&5
6553 gdb_cv_struct_reg_r_gs
=no
6558 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6559 if test $gdb_cv_struct_reg_r_gs = yes; then
6560 cat >> confdefs.h
<<\EOF
6561 #define HAVE_STRUCT_REG_R_GS 1
6566 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6567 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6568 echo "configure:6569: checking for PTRACE_GETREGS" >&5
6569 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 cat > conftest.
$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6575 #include <sys/ptrace.h>
6580 if { (eval echo configure
:6581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6582 gdb_cv_have_ptrace_getregs
=yes
6584 echo "configure: failed program was:" >&5
6585 cat conftest.
$ac_ext >&5
6587 gdb_cv_have_ptrace_getregs
=no
6592 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6593 if test $gdb_cv_have_ptrace_getregs = yes; then
6594 cat >> confdefs.h
<<\EOF
6595 #define HAVE_PTRACE_GETREGS 1
6600 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6601 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6602 echo "configure:6603: checking for PTRACE_GETFPXREGS" >&5
6603 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.
$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 #include <sys/ptrace.h>
6614 if { (eval echo configure
:6615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6616 gdb_cv_have_ptrace_getfpxregs
=yes
6618 echo "configure: failed program was:" >&5
6619 cat conftest.
$ac_ext >&5
6621 gdb_cv_have_ptrace_getfpxregs
=no
6626 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6627 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6628 cat >> confdefs.h
<<\EOF
6629 #define HAVE_PTRACE_GETFPXREGS 1
6634 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6635 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6636 echo "configure:6637: checking for PT_GETDBREGS" >&5
6637 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6640 cat > conftest.
$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 #include <sys/types.h>
6644 #include <sys/ptrace.h>
6649 if { (eval echo configure
:6650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6651 gdb_cv_have_pt_getdbregs
=yes
6653 echo "configure: failed program was:" >&5
6654 cat conftest.
$ac_ext >&5
6656 gdb_cv_have_pt_getdbregs
=no
6661 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6662 if test $gdb_cv_have_pt_getdbregs = yes; then
6663 cat >> confdefs.h
<<\EOF
6664 #define HAVE_PT_GETDBREGS 1
6669 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6670 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6671 echo "configure:6672: checking for PT_GETXMMREGS" >&5
6672 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 cat > conftest.
$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 #include <sys/types.h>
6679 #include <sys/ptrace.h>
6684 if { (eval echo configure
:6685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6686 gdb_cv_have_pt_getxmmregs
=yes
6688 echo "configure: failed program was:" >&5
6689 cat conftest.
$ac_ext >&5
6691 gdb_cv_have_pt_getxmmregs
=no
6696 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6697 if test $gdb_cv_have_pt_getxmmregs = yes; then
6698 cat >> confdefs.h
<<\EOF
6699 #define HAVE_PT_GETXMMREGS 1
6705 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6706 echo "configure:6707: checking whether malloc must be declared" >&5
6707 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
6708 echo $ac_n "(cached) $ac_c" 1>&6
6710 cat > conftest.
$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6715 #ifdef HAVE_STRING_H
6718 #ifdef HAVE_STRINGS_H
6719 #include <strings.h>
6722 #ifdef HAVE_STDLIB_H
6725 #ifdef HAVE_UNISTD_H
6729 char *(*pfn) = (char *(*)) malloc
6732 if { (eval echo configure
:6733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6734 bfd_cv_decl_needed_malloc
=no
6736 echo "configure: failed program was:" >&5
6737 cat conftest.
$ac_ext >&5
6739 bfd_cv_decl_needed_malloc
=yes
6744 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
6745 if test $bfd_cv_decl_needed_malloc = yes; then
6746 cat >> confdefs.h
<<\EOF
6747 #define NEED_DECLARATION_MALLOC 1
6752 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
6753 echo "configure:6754: checking whether realloc must be declared" >&5
6754 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 cat > conftest.
$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6762 #ifdef HAVE_STRING_H
6765 #ifdef HAVE_STRINGS_H
6766 #include <strings.h>
6769 #ifdef HAVE_STDLIB_H
6772 #ifdef HAVE_UNISTD_H
6776 char *(*pfn) = (char *(*)) realloc
6779 if { (eval echo configure
:6780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6781 bfd_cv_decl_needed_realloc
=no
6783 echo "configure: failed program was:" >&5
6784 cat conftest.
$ac_ext >&5
6786 bfd_cv_decl_needed_realloc
=yes
6791 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
6792 if test $bfd_cv_decl_needed_realloc = yes; then
6793 cat >> confdefs.h
<<\EOF
6794 #define NEED_DECLARATION_REALLOC 1
6799 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
6800 echo "configure:6801: checking whether free must be declared" >&5
6801 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 cat > conftest.
$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6809 #ifdef HAVE_STRING_H
6812 #ifdef HAVE_STRINGS_H
6813 #include <strings.h>
6816 #ifdef HAVE_STDLIB_H
6819 #ifdef HAVE_UNISTD_H
6823 char *(*pfn) = (char *(*)) free
6826 if { (eval echo configure
:6827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6828 bfd_cv_decl_needed_free
=no
6830 echo "configure: failed program was:" >&5
6831 cat conftest.
$ac_ext >&5
6833 bfd_cv_decl_needed_free
=yes
6838 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
6839 if test $bfd_cv_decl_needed_free = yes; then
6840 cat >> confdefs.h
<<\EOF
6841 #define NEED_DECLARATION_FREE 1
6846 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
6847 echo "configure:6848: checking whether strerror must be declared" >&5
6848 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
6849 echo $ac_n "(cached) $ac_c" 1>&6
6851 cat > conftest.
$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6856 #ifdef HAVE_STRING_H
6859 #ifdef HAVE_STRINGS_H
6860 #include <strings.h>
6863 #ifdef HAVE_STDLIB_H
6866 #ifdef HAVE_UNISTD_H
6870 char *(*pfn) = (char *(*)) strerror
6873 if { (eval echo configure
:6874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6875 bfd_cv_decl_needed_strerror
=no
6877 echo "configure: failed program was:" >&5
6878 cat conftest.
$ac_ext >&5
6880 bfd_cv_decl_needed_strerror
=yes
6885 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
6886 if test $bfd_cv_decl_needed_strerror = yes; then
6887 cat >> confdefs.h
<<\EOF
6888 #define NEED_DECLARATION_STRERROR 1
6893 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
6894 echo "configure:6895: checking whether strdup must be declared" >&5
6895 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 cat > conftest.
$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6903 #ifdef HAVE_STRING_H
6906 #ifdef HAVE_STRINGS_H
6907 #include <strings.h>
6910 #ifdef HAVE_STDLIB_H
6913 #ifdef HAVE_UNISTD_H
6917 char *(*pfn) = (char *(*)) strdup
6920 if { (eval echo configure
:6921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6922 bfd_cv_decl_needed_strdup
=no
6924 echo "configure: failed program was:" >&5
6925 cat conftest.
$ac_ext >&5
6927 bfd_cv_decl_needed_strdup
=yes
6932 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
6933 if test $bfd_cv_decl_needed_strdup = yes; then
6934 cat >> confdefs.h
<<\EOF
6935 #define NEED_DECLARATION_STRDUP 1
6940 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
6941 echo "configure:6942: checking whether strstr must be declared" >&5
6942 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 cat > conftest.
$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6950 #ifdef HAVE_STRING_H
6953 #ifdef HAVE_STRINGS_H
6954 #include <strings.h>
6957 #ifdef HAVE_STDLIB_H
6960 #ifdef HAVE_UNISTD_H
6964 char *(*pfn) = (char *(*)) strstr
6967 if { (eval echo configure
:6968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6969 bfd_cv_decl_needed_strstr
=no
6971 echo "configure: failed program was:" >&5
6972 cat conftest.
$ac_ext >&5
6974 bfd_cv_decl_needed_strstr
=yes
6979 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
6980 if test $bfd_cv_decl_needed_strstr = yes; then
6981 cat >> confdefs.h
<<\EOF
6982 #define NEED_DECLARATION_STRSTR 1
6987 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
6988 echo "configure:6989: checking whether canonicalize_file_name must be declared" >&5
6989 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
6990 echo $ac_n "(cached) $ac_c" 1>&6
6992 cat > conftest.
$ac_ext <<EOF
6993 #line 6994 "configure"
6994 #include "confdefs.h"
6997 #ifdef HAVE_STRING_H
7000 #ifdef HAVE_STRINGS_H
7001 #include <strings.h>
7004 #ifdef HAVE_STDLIB_H
7007 #ifdef HAVE_UNISTD_H
7011 char *(*pfn) = (char *(*)) canonicalize_file_name
7014 if { (eval echo configure
:7015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7016 bfd_cv_decl_needed_canonicalize_file_name
=no
7018 echo "configure: failed program was:" >&5
7019 cat conftest.
$ac_ext >&5
7021 bfd_cv_decl_needed_canonicalize_file_name
=yes
7026 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7027 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7028 cat >> confdefs.h
<<\EOF
7029 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7035 # The following save_state_t checkery is only necessary for HPUX
7036 # versions earlier than 10.20. When those fade from memory, this
7037 # could be expunged. --jsm 1999-03-22
7039 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7040 echo "configure:7041: checking for HPUX save_state structure" >&5
7041 cat > conftest.
$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 #include <machine/save_state.h>
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047 egrep "save_state_t" >/dev
/null
2>&1; then
7049 gdb_cv_hpux_savestate
=yes
7052 gdb_cv_hpux_savestate
=no
7056 cat > conftest.
$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 #include <machine/save_state.h>
7061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062 egrep "ss_wide" >/dev
/null
2>&1; then
7064 gdb_cv_hpux_sswide
=yes
7067 gdb_cv_hpux_sswide
=no
7071 if test $gdb_cv_hpux_savestate = yes
7073 cat >> confdefs.h
<<\EOF
7074 #define HAVE_STRUCT_SAVE_STATE_T 1
7078 if test $gdb_cv_hpux_sswide = yes
7080 cat >> confdefs.h
<<\EOF
7081 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7085 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7088 # If we are configured native on GNU/Linux, work around problems with
7090 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7092 if test "${target}" = "${host}"; then
7095 cat >> confdefs.h
<<\EOF
7096 #define START_INFERIOR_TRAPS_EXPECTED 2
7099 cat >> confdefs.h
<<\EOF
7100 #define sys_quotactl 1
7105 cat >> confdefs.h
<<\EOF
7106 #define NEW_PROC_API 1
7110 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7111 cat >> confdefs.h
<<\EOF
7112 #define NEW_PROC_API 1
7117 cat >> confdefs.h
<<\EOF
7118 #define NEW_PROC_API 1
7125 if test "$ac_cv_header_sys_procfs_h" = yes; then
7126 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7127 echo "configure:7128: checking for pstatus_t in sys/procfs.h" >&5
7128 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.
$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7136 #include <sys/procfs.h>
7141 if { (eval echo configure
:7142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7143 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7145 echo "configure: failed program was:" >&5
7146 cat conftest.
$ac_ext >&5
7148 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7154 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7155 cat >> confdefs.h
<<\EOF
7156 #define HAVE_PSTATUS_T 1
7160 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7162 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7163 echo "configure:7164: checking for prrun_t in sys/procfs.h" >&5
7164 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 cat > conftest.
$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7172 #include <sys/procfs.h>
7177 if { (eval echo configure
:7178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7179 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7181 echo "configure: failed program was:" >&5
7182 cat conftest.
$ac_ext >&5
7184 bfd_cv_have_sys_procfs_type_prrun_t
=no
7190 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7191 cat >> confdefs.h
<<\EOF
7192 #define HAVE_PRRUN_T 1
7196 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7198 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7199 echo "configure:7200: checking for gregset_t in sys/procfs.h" >&5
7200 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7203 cat > conftest.
$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7208 #include <sys/procfs.h>
7213 if { (eval echo configure
:7214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7215 bfd_cv_have_sys_procfs_type_gregset_t
=yes
7217 echo "configure: failed program was:" >&5
7218 cat conftest.
$ac_ext >&5
7220 bfd_cv_have_sys_procfs_type_gregset_t
=no
7226 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7227 cat >> confdefs.h
<<\EOF
7228 #define HAVE_GREGSET_T 1
7232 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7234 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7235 echo "configure:7236: checking for fpregset_t in sys/procfs.h" >&5
7236 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7237 echo $ac_n "(cached) $ac_c" 1>&6
7239 cat > conftest.
$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7244 #include <sys/procfs.h>
7249 if { (eval echo configure
:7250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7251 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
7253 echo "configure: failed program was:" >&5
7254 cat conftest.
$ac_ext >&5
7256 bfd_cv_have_sys_procfs_type_fpregset_t
=no
7262 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7263 cat >> confdefs.h
<<\EOF
7264 #define HAVE_FPREGSET_T 1
7268 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7270 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7271 echo "configure:7272: checking for prgregset_t in sys/procfs.h" >&5
7272 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.
$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7280 #include <sys/procfs.h>
7285 if { (eval echo configure
:7286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7287 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7289 echo "configure: failed program was:" >&5
7290 cat conftest.
$ac_ext >&5
7292 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7298 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7299 cat >> confdefs.h
<<\EOF
7300 #define HAVE_PRGREGSET_T 1
7304 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7306 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7307 echo "configure:7308: checking for prfpregset_t in sys/procfs.h" >&5
7308 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.
$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7316 #include <sys/procfs.h>
7321 if { (eval echo configure
:7322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7323 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7325 echo "configure: failed program was:" >&5
7326 cat conftest.
$ac_ext >&5
7328 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7334 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7335 cat >> confdefs.h
<<\EOF
7336 #define HAVE_PRFPREGSET_T 1
7340 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7342 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7343 echo "configure:7344: checking for prgregset32_t in sys/procfs.h" >&5
7344 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7347 cat > conftest.
$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7352 #include <sys/procfs.h>
7357 if { (eval echo configure
:7358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7359 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
7361 echo "configure: failed program was:" >&5
7362 cat conftest.
$ac_ext >&5
7364 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
7370 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7371 cat >> confdefs.h
<<\EOF
7372 #define HAVE_PRGREGSET32_T 1
7376 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7378 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7379 echo "configure:7380: checking for prfpregset32_t in sys/procfs.h" >&5
7380 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7383 cat > conftest.
$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7388 #include <sys/procfs.h>
7393 if { (eval echo configure
:7394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
7397 echo "configure: failed program was:" >&5
7398 cat conftest.
$ac_ext >&5
7400 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
7406 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7407 cat >> confdefs.h
<<\EOF
7408 #define HAVE_PRFPREGSET32_T 1
7412 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7414 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7415 echo "configure:7416: checking for lwpid_t in sys/procfs.h" >&5
7416 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 cat > conftest.
$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7424 #include <sys/procfs.h>
7429 if { (eval echo configure
:7430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7431 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7433 echo "configure: failed program was:" >&5
7434 cat conftest.
$ac_ext >&5
7436 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7442 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7443 cat >> confdefs.h
<<\EOF
7444 #define HAVE_LWPID_T 1
7448 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7450 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7451 echo "configure:7452: checking for psaddr_t in sys/procfs.h" >&5
7452 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 cat > conftest.
$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7460 #include <sys/procfs.h>
7465 if { (eval echo configure
:7466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7467 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7469 echo "configure: failed program was:" >&5
7470 cat conftest.
$ac_ext >&5
7472 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7478 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7479 cat >> confdefs.h
<<\EOF
7480 #define HAVE_PSADDR_T 1
7484 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7486 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7487 echo "configure:7488: checking for prsysent_t in sys/procfs.h" >&5
7488 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7489 echo $ac_n "(cached) $ac_c" 1>&6
7491 cat > conftest.
$ac_ext <<EOF
7492 #line 7493 "configure"
7493 #include "confdefs.h"
7496 #include <sys/procfs.h>
7501 if { (eval echo configure
:7502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7503 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
7505 echo "configure: failed program was:" >&5
7506 cat conftest.
$ac_ext >&5
7508 bfd_cv_have_sys_procfs_type_prsysent_t
=no
7514 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7515 cat >> confdefs.h
<<\EOF
7516 #define HAVE_PRSYSENT_T 1
7520 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7522 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7523 echo "configure:7524: checking for pr_sigset_t in sys/procfs.h" >&5
7524 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7525 echo $ac_n "(cached) $ac_c" 1>&6
7527 cat > conftest.
$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7532 #include <sys/procfs.h>
7537 if { (eval echo configure
:7538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7539 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
7541 echo "configure: failed program was:" >&5
7542 cat conftest.
$ac_ext >&5
7544 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
7550 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7551 cat >> confdefs.h
<<\EOF
7552 #define HAVE_PR_SIGSET_T 1
7556 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7558 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7559 echo "configure:7560: checking for pr_sigaction64_t in sys/procfs.h" >&5
7560 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7563 cat > conftest.
$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7568 #include <sys/procfs.h>
7570 pr_sigaction64_t avar
7573 if { (eval echo configure
:7574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7575 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
7577 echo "configure: failed program was:" >&5
7578 cat conftest.
$ac_ext >&5
7580 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
7586 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7587 cat >> confdefs.h
<<\EOF
7588 #define HAVE_PR_SIGACTION64_T 1
7592 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7594 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7595 echo "configure:7596: checking for pr_siginfo64_t in sys/procfs.h" >&5
7596 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7599 cat > conftest.
$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7604 #include <sys/procfs.h>
7609 if { (eval echo configure
:7610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7611 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
7613 echo "configure: failed program was:" >&5
7614 cat conftest.
$ac_ext >&5
7616 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
7622 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7623 cat >> confdefs.h
<<\EOF
7624 #define HAVE_PR_SIGINFO64_T 1
7628 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7634 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7635 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7636 echo "configure:7637: checking whether prfpregset_t type is broken" >&5
7637 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7640 if test "$cross_compiling" = yes; then
7641 gdb_cv_prfpregset_t_broken
=yes
7643 cat > conftest.
$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 #include <sys/procfs.h>
7649 if (sizeof (prfpregset_t) == sizeof (void *))
7654 if { (eval echo configure
:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7656 gdb_cv_prfpregset_t_broken
=no
7658 echo "configure: failed program was:" >&5
7659 cat conftest.
$ac_ext >&5
7661 gdb_cv_prfpregset_t_broken
=yes
7668 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7669 if test $gdb_cv_prfpregset_t_broken = yes; then
7670 cat >> confdefs.h
<<\EOF
7671 #define PRFPREGSET_T_BROKEN 1
7678 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7679 echo "configure:7680: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7680 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7681 echo $ac_n "(cached) $ac_c" 1>&6
7683 cat > conftest.
$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7687 #include <sys/types.h>
7688 #include <sys/procfs.h>
7693 dummy = ioctl(0, PIOCSET, &dummy);
7697 if { (eval echo configure
:7698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7699 gdb_cv_have_procfs_piocset
=yes
7701 echo "configure: failed program was:" >&5
7702 cat conftest.
$ac_ext >&5
7704 gdb_cv_have_procfs_piocset
=no
7709 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
7710 if test $gdb_cv_have_procfs_piocset = yes; then
7711 cat >> confdefs.h
<<\EOF
7712 #define HAVE_PROCFS_PIOCSET 1
7718 if test ${host} = ${target} ; then
7720 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
7721 echo "configure:7722: checking for member l_addr in struct link_map" >&5
7722 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7725 cat > conftest.
$ac_ext <<EOF
7726 #line 7727 "configure"
7727 #include "confdefs.h"
7730 struct link_map lm; (void) lm.l_addr;
7733 if { (eval echo configure
:7734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7735 gdb_cv_have_struct_link_map_with_l_members
=yes
7737 echo "configure: failed program was:" >&5
7738 cat conftest.
$ac_ext >&5
7740 gdb_cv_have_struct_link_map_with_l_members
=no
7745 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
7746 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
7747 cat >> confdefs.h
<<\EOF
7748 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
7754 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
7755 echo "configure:7756: checking for member lm_addr in struct link_map" >&5
7756 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7759 cat > conftest.
$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762 #include <sys/types.h>
7765 struct link_map lm; (void) lm.lm_addr;
7768 if { (eval echo configure
:7769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7770 gdb_cv_have_struct_link_map_with_lm_members
=yes
7772 echo "configure: failed program was:" >&5
7773 cat conftest.
$ac_ext >&5
7775 gdb_cv_have_struct_link_map_with_lm_members
=no
7780 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
7781 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
7782 cat >> confdefs.h
<<\EOF
7783 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
7789 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
7790 echo "configure:7791: checking for member som_addr in struct so_map" >&5
7791 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7794 cat > conftest.
$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 #include <sys/types.h>
7803 struct so_map lm; (void) lm.som_addr;
7806 if { (eval echo configure
:7807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7808 gdb_cv_have_struct_so_map_with_som_members
=yes
7810 echo "configure: failed program was:" >&5
7811 cat conftest.
$ac_ext >&5
7813 gdb_cv_have_struct_so_map_with_som_members
=no
7818 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
7819 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
7820 cat >> confdefs.h
<<\EOF
7821 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
7827 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
7828 echo "configure:7829: checking for struct link_map32 in sys/link.h" >&5
7829 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7832 cat > conftest.
$ac_ext <<EOF
7833 #line 7834 "configure"
7834 #include "confdefs.h"
7836 #include <sys/link.h>
7838 struct link_map32 l;
7841 if { (eval echo configure
:7842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7843 gdb_cv_have_struct_link_map32
=yes
7845 echo "configure: failed program was:" >&5
7846 cat conftest.
$ac_ext >&5
7848 gdb_cv_have_struct_link_map32
=no
7853 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
7854 if test $gdb_cv_have_struct_link_map32 = yes; then
7855 cat >> confdefs.h
<<\EOF
7856 #define HAVE_STRUCT_LINK_MAP32 1
7859 cat >> confdefs.h
<<\EOF
7860 #define _SYSCALL32 1
7867 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
7868 echo "configure:7869: checking for long long support in compiler" >&5
7869 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7872 cat > conftest.
$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7878 extern long long foo;
7879 switch (foo & 2) { case 0: return 1; }
7883 if { (eval echo configure
:7884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885 gdb_cv_c_long_long
=yes
7887 echo "configure: failed program was:" >&5
7888 cat conftest.
$ac_ext >&5
7890 gdb_cv_c_long_long
=no
7895 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
7896 if test $gdb_cv_c_long_long = yes; then
7897 cat >> confdefs.h
<<\EOF
7898 #define CC_HAS_LONG_LONG 1
7904 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
7905 echo "configure:7906: checking for long long support in printf" >&5
7906 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7909 if test "$cross_compiling" = yes; then
7910 gdb_cv_printf_has_long_long
=no
7912 cat > conftest.
$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7919 l = (l << 16) + 0x0123;
7920 l = (l << 16) + 0x4567;
7921 l = (l << 16) + 0x89ab;
7922 l = (l << 16) + 0xcdef;
7923 sprintf (buf, "0x%016llx", l);
7924 return (strcmp ("0x0123456789abcdef", buf));
7927 if { (eval echo configure
:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7929 gdb_cv_printf_has_long_long
=yes
7931 echo "configure: failed program was:" >&5
7932 cat conftest.
$ac_ext >&5
7934 gdb_cv_printf_has_long_long
=no
7941 if test $gdb_cv_printf_has_long_long = yes; then
7942 cat >> confdefs.h
<<\EOF
7943 #define PRINTF_HAS_LONG_LONG 1
7947 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
7950 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
7951 echo "configure:7952: checking for long double support in compiler" >&5
7952 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7955 cat > conftest.
$ac_ext <<EOF
7956 #line 7957 "configure"
7957 #include "confdefs.h"
7963 if { (eval echo configure
:7964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7965 ac_cv_c_long_double
=yes
7967 echo "configure: failed program was:" >&5
7968 cat conftest.
$ac_ext >&5
7970 ac_cv_c_long_double
=no
7975 echo "$ac_t""$ac_cv_c_long_double" 1>&6
7976 if test $ac_cv_c_long_double = yes; then
7977 cat >> confdefs.h
<<\EOF
7978 #define HAVE_LONG_DOUBLE 1
7984 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
7985 echo "configure:7986: checking for long double support in printf" >&5
7986 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7989 if test "$cross_compiling" = yes; then
7990 gdb_cv_printf_has_long_double
=no
7992 cat > conftest.
$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7998 long double f = 3.141592653;
7999 sprintf (buf, "%Lg", f);
8000 return (strncmp ("3.14159", buf, 7));
8003 if { (eval echo configure
:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8005 gdb_cv_printf_has_long_double
=yes
8007 echo "configure: failed program was:" >&5
8008 cat conftest.
$ac_ext >&5
8010 gdb_cv_printf_has_long_double
=no
8017 if test $gdb_cv_printf_has_long_double = yes; then
8018 cat >> confdefs.h
<<\EOF
8019 #define PRINTF_HAS_LONG_DOUBLE 1
8023 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8026 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8027 echo "configure:8028: checking for long double support in scanf" >&5
8028 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 if test "$cross_compiling" = yes; then
8032 gdb_cv_scanf_has_long_double
=no
8034 cat > conftest.
$ac_ext <<EOF
8035 #line 8036 "configure"
8036 #include "confdefs.h"
8039 char *buf = "3.141592653";
8041 sscanf (buf, "%Lg", &f);
8042 return !(f > 3.14159 && f < 3.14160);
8045 if { (eval echo configure
:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8047 gdb_cv_scanf_has_long_double
=yes
8049 echo "configure: failed program was:" >&5
8050 cat conftest.
$ac_ext >&5
8052 gdb_cv_scanf_has_long_double
=no
8059 if test $gdb_cv_scanf_has_long_double = yes; then
8060 cat >> confdefs.h
<<\EOF
8061 #define SCANF_HAS_LONG_DOUBLE 1
8065 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8069 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8070 echo "configure:8071: checking for -bbigtoc option" >&5
8071 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8072 echo $ac_n "(cached) $ac_c" 1>&6
8075 SAVE_LDFLAGS
=$LDFLAGS
8078 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8079 *) gdb_cv_bigtoc
=-bbigtoc ;;
8082 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8083 cat > conftest.
$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8091 if { (eval echo configure
:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8094 echo "configure: failed program was:" >&5
8095 cat conftest.
$ac_ext >&5
8103 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8104 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8110 if test ${build} = ${host} -a ${host} = ${target} ; then
8113 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8114 echo "configure:8115: checking for HPUX/OSF thread support" >&5
8115 if test -f /usr
/include
/dce
/cma_config.h
; then
8116 if test "$GCC" = "yes" ; then
8117 echo "$ac_t""yes" 1>&6
8118 cat >> confdefs.h
<<\EOF
8119 #define HAVE_HPUX_THREAD_SUPPORT 1
8122 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8123 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8125 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8128 echo "$ac_t""no" 1>&6
8132 # See if thread_db library is around for Solaris thread debugging.
8133 # Note that we must explicitly test for version 1 of the library
8134 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8136 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8137 echo "configure:8138: checking for Solaris thread debugging library" >&5
8138 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8139 echo "$ac_t""yes" 1>&6
8140 cat >> confdefs.h
<<\EOF
8141 #define HAVE_THREAD_DB_LIB 1
8144 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8145 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8146 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8147 echo "configure:8148: checking for dlopen in -ldl" >&5
8148 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8152 ac_save_LIBS
="$LIBS"
8154 cat > conftest.
$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8166 if { (eval echo configure
:8167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8168 eval "ac_cv_lib_$ac_lib_var=yes"
8170 echo "configure: failed program was:" >&5
8171 cat conftest.
$ac_ext >&5
8173 eval "ac_cv_lib_$ac_lib_var=no"
8176 LIBS
="$ac_save_LIBS"
8179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8180 echo "$ac_t""yes" 1>&6
8181 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8183 cat >> confdefs.h
<<EOF
8184 #define $ac_tr_lib 1
8190 echo "$ac_t""no" 1>&6
8193 if test "$GCC" = "yes" ; then
8194 # The GNU linker requires the -export-dynamic option to make
8195 # all symbols visible in the dynamic symbol table.
8196 hold_ldflags
=$LDFLAGS
8197 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8198 echo "configure:8199: checking for the ld -export-dynamic flag" >&5
8199 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8200 cat > conftest.
$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8208 if { (eval echo configure
:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8212 echo "configure: failed program was:" >&5
8213 cat conftest.
$ac_ext >&5
8218 LDFLAGS
=$hold_ldflags
8219 echo "$ac_t""$found" 1>&6
8220 if test $found = yes; then
8221 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8224 # Sun randomly tweaked the prototypes in <proc_service.h>
8226 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8227 echo "configure:8228: checking if <proc_service.h> is old" >&5
8228 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8232 cat > conftest.
$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8236 #include <proc_service.h>
8238 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8244 if { (eval echo configure
:8245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8246 gdb_cv_proc_service_is_old
=no
8248 echo "configure: failed program was:" >&5
8249 cat conftest.
$ac_ext >&5
8251 gdb_cv_proc_service_is_old
=yes
8257 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8258 if test $gdb_cv_proc_service_is_old = yes; then
8259 cat >> confdefs.h
<<\EOF
8260 #define PROC_SERVICE_IS_OLD 1
8265 echo "$ac_t""no" 1>&6
8269 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8270 echo "configure:8271: checking for AiX thread debugging library" >&5
8271 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.
$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 #include <sys/pthdebug.h>
8279 #ifndef PTHDB_VERSION_3
8284 if { (eval echo configure
:8285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8286 gdb_cv_have_aix_thread_debug
=yes
8288 echo "configure: failed program was:" >&5
8289 cat conftest.
$ac_ext >&5
8291 gdb_cv_have_aix_thread_debug
=no
8296 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8297 if test $gdb_cv_have_aix_thread_debug = yes; then
8298 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
8299 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
8300 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8307 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8308 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8309 echo "configure:8310: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8310 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.
$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 #include <thread_db.h>
8318 int i = TD_NOTALLOC;
8321 if { (eval echo configure
:8322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8323 gdb_cv_thread_db_h_has_td_notalloc
=yes
8325 echo "configure: failed program was:" >&5
8326 cat conftest.
$ac_ext >&5
8328 gdb_cv_thread_db_h_has_td_notalloc
=no
8335 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8337 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8338 cat >> confdefs.h
<<\EOF
8339 #define THREAD_DB_HAS_TD_NOTALLOC 1
8344 if test $host = $target; then
8348 CFLAGS
="$CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8349 cat > conftest.
$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8354 pread64 (0, NULL, 0, 0);
8357 if { (eval echo configure
:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8359 ENABLE_CFLAGS
="$ENABLE_CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8360 cat >> confdefs.h
<<\EOF
8361 #define HAVE_PREAD64 1
8365 echo "configure: failed program was:" >&5
8366 cat conftest.
$ac_ext >&5
8375 # Check whether --enable-gdbcli or --disable-gdbcli was given.
8376 if test "${enable_gdbcli+set}" = set; then
8377 enableval
="$enable_gdbcli"
8379 case "${enableval}" in
8380 yes) enable_gdbcli
=yes ;;
8381 "") enable_gdbcli
=yes ;;
8383 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
8386 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
8394 case ${enable_gdbcli} in
8396 if test -d "${srcdir}/cli" ; then
8397 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
8398 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
8399 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
8400 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
8401 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
8402 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
8403 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
8404 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
8405 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
8411 # Check whether --enable-gdbmi or --disable-gdbmi was given.
8412 if test "${enable_gdbmi+set}" = set; then
8413 enableval
="$enable_gdbmi"
8415 case "${enable_gdbmi}" in
8417 "") enable_gdbmi
=yes ;;
8419 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
8427 case ${enable_gdbmi} in
8429 if test -d "${srcdir}/mi" ; then
8430 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
8431 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
8432 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
8433 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
8434 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
8435 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
8436 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
8437 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
8438 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
8443 # Configure UI_OUT by default (before 5.2 it can be disabled)
8444 # It must be configured if gdbmi is configured
8449 # Check whether --with-uiout or --without-uiout was given.
8450 if test "${with_uiout+set}" = set; then
8451 withval
="$with_uiout"
8452 case "${withval}" in
8453 yes) want_uiout
=true
;;
8454 no
) if test $enable_gdbmi = yes; then
8455 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
8459 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
8465 if test $want_uiout = true
; then
8466 UIOUT_CFLAGS
="-DUI_OUT=1"
8469 # Check whether --enable-netrom or --disable-netrom was given.
8470 if test "${enable_netrom+set}" = set; then
8471 enableval
="$enable_netrom"
8472 case "${enableval}" in
8473 yes) enable_netrom
=yes ;;
8474 no
) enable_netrom
=no
;;
8475 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
8480 if test "${enable_netrom}" = "yes"; then
8481 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
8482 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
8486 # NOTE: Don't add -Wall or -Wunused, they both include
8487 # -Wunused-parameter which reports bogus warnings.
8488 # NOTE: If you add to this list, remember to update
8489 # gdb/doc/gdbint.texinfo.
8490 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8491 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8492 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8493 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8494 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8495 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8496 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8497 # -Woverloaded-virtual -Winline -Werror"
8498 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8499 if test "${enable_build_warnings+set}" = set; then
8500 enableval
="$enable_build_warnings"
8501 case "${enableval}" in
8503 no
) build_warnings
="-w";;
8504 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8505 build_warnings
="${build_warnings} ${t}";;
8506 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8507 build_warnings
="${t} ${build_warnings}";;
8508 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8510 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8511 echo "Setting compiler warning flags = $build_warnings" 6>&1
8514 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8515 if test "${enable_gdb_build_warnings+set}" = set; then
8516 enableval
="$enable_gdb_build_warnings"
8517 case "${enableval}" in
8519 no
) build_warnings
="-w";;
8520 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8521 build_warnings
="${build_warnings} ${t}";;
8522 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8523 build_warnings
="${t} ${build_warnings}";;
8524 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8526 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8527 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8532 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8534 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8535 echo "configure:8536: checking compiler warning flags" >&5
8536 # Separate out the -Werror flag as some files just cannot be
8537 # compiled with it enabled.
8538 for w
in ${build_warnings}; do
8540 -Werr*) WERROR_CFLAGS
=-Werror ;;
8541 *) # Check that GCC accepts it
8542 saved_CFLAGS
="$CFLAGS"
8544 cat > conftest.
$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8552 if { (eval echo configure
:8553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8554 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8556 echo "configure: failed program was:" >&5
8557 cat conftest.
$ac_ext >&5
8560 CFLAGS
="$saved_CFLAGS"
8563 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8573 # Check whether --with-mmalloc or --without-mmalloc was given.
8574 if test "${with_mmalloc+set}" = set; then
8575 withval
="$with_mmalloc"
8576 case "${withval}" in
8577 yes) want_mmalloc
=true
;;
8578 no
) want_mmalloc
=false
;;
8579 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8585 if test x
$want_mmalloc = xtrue
; then
8586 cat >> confdefs.h
<<\EOF
8587 #define USE_MMALLOC 1
8590 cat >> confdefs.h
<<\EOF
8591 #define MMCHECK_FORCE 1
8594 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8595 MMALLOC
='../mmalloc/libmmalloc.a'
8598 # In the Cygwin environment, we need some additional flags.
8599 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8600 echo "configure:8601: checking for cygwin" >&5
8601 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8604 cat > conftest.
$ac_ext <<EOF
8605 #line 8606 "configure"
8606 #include "confdefs.h"
8608 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8613 egrep "lose" >/dev
/null
2>&1; then
8615 gdb_cv_os_cygwin
=yes
8624 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8627 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8629 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8630 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8634 # libreadline needs libuser32.a in a cygwin environment
8636 if test x
$gdb_cv_os_cygwin = xyes
; then
8637 WIN32LIBS
="-luser32"
8639 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8645 LIBGUI
="../libgui/src/libgui.a"
8646 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8650 # Check whether --with-cpu or --without-cpu was given.
8651 if test "${with_cpu+set}" = set; then
8654 powerpc-
* | powerpcle-
* )
8655 ## It would be nice to keep this table in sync with the one in
8657 case "${with_cpu}" in
8658 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
8660 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
8662 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
8663 ## These are all RS6000 variants, as far as GDB is concerned.
8673 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
8679 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
8682 cat >> confdefs.h
<<EOF
8683 #define TARGET_CPU_DEFAULT "${with_cpu}"
8691 # Check whether --enable-gdbtk or --disable-gdbtk was given.
8692 if test "${enable_gdbtk+set}" = set; then
8693 enableval
="$enable_gdbtk"
8694 case "${enableval}" in
8698 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8701 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8709 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
8713 # Default is on for everything but go32 and Cygwin
8718 if test -d "${srcdir}/gdbtk" ; then
8734 if test "${enable_gdbtk}" = "yes"; then
8736 # Gdbtk must have an absolute path to srcdir in order to run
8737 # properly when not installed.
8745 # Ok, lets find the tcl configuration
8746 # First, look for one uninstalled.
8747 # the alternative search directory is invoked by --with-tclconfig
8750 if test x
"${no_tcl}" = x
; then
8751 # we reset no_tcl in case something fails here
8753 # Check whether --with-tclconfig or --without-tclconfig was given.
8754 if test "${with_tclconfig+set}" = set; then
8755 withval
="$with_tclconfig"
8756 with_tclconfig
=${withval}
8759 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8760 echo "configure:8761: checking for Tcl configuration" >&5
8761 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8766 # First check to see if --with-tclconfig was specified.
8767 if test x
"${with_tclconfig}" != x
; then
8768 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8769 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8771 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8775 # then check for a private Tcl installation
8776 if test x
"${ac_cv_c_tclconfig}" = x
; then
8779 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8781 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8783 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8784 if test -f "$i/${configdir}/tclConfig.sh" ; then
8785 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8790 # check in a few common install locations
8791 if test x
"${ac_cv_c_tclconfig}" = x
; then
8792 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8793 if test -f "$i/tclConfig.sh" ; then
8794 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8799 # check in a few other private locations
8800 if test x
"${ac_cv_c_tclconfig}" = x
; then
8803 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8804 if test -f "$i/${configdir}/tclConfig.sh" ; then
8805 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8813 if test x
"${ac_cv_c_tclconfig}" = x
; then
8814 TCLCONFIG
="# no Tcl configs found"
8815 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8818 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8819 echo "$ac_t""found $TCLCONFIG" 1>&6
8823 if test -z "${no_tcl}"; then
8853 # Ok, lets find the tk configuration
8854 # First, look for one uninstalled.
8855 # the alternative search directory is invoked by --with-tkconfig
8858 if test x
"${no_tk}" = x
; then
8859 # we reset no_tk in case something fails here
8861 # Check whether --with-tkconfig or --without-tkconfig was given.
8862 if test "${with_tkconfig+set}" = set; then
8863 withval
="$with_tkconfig"
8864 with_tkconfig
=${withval}
8867 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8868 echo "configure:8869: checking for Tk configuration" >&5
8869 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
8874 # First check to see if --with-tkconfig was specified.
8875 if test x
"${with_tkconfig}" != x
; then
8876 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8877 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8879 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8883 # then check for a private Tk library
8884 if test x
"${ac_cv_c_tkconfig}" = x
; then
8887 `ls -dr ../tk[4-9]* 2>/dev/null` \
8889 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8891 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8892 if test -f "$i/${configdir}/tkConfig.sh" ; then
8893 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8898 # check in a few common install locations
8899 if test x
"${ac_cv_c_tkconfig}" = x
; then
8900 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8901 if test -f "$i/tkConfig.sh" ; then
8902 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8907 # check in a few other private locations
8908 if test x
"${ac_cv_c_tkconfig}" = x
; then
8911 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8912 if test -f "$i/${configdir}/tkConfig.sh" ; then
8913 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8921 if test x
"${ac_cv_c_tkconfig}" = x
; then
8922 TKCONFIG
="# no Tk configs found"
8923 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
8926 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
8927 echo "$ac_t""found $TKCONFIG" 1>&6
8933 # now look for Tcl library stuff
8944 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
8946 # If $no_tk is nonempty, then we can't do Tk, and there is no
8947 # point to doing Tcl.
8948 if test -z "${no_tk}"; then
8950 if test -f "$TKCONFIG" ; then
8968 # Ok, lets find the tcl source trees so we can use the headers
8969 # Warning: transition of version 9 to 10 will break this algorithm
8970 # because 10 sorts before 9. We also look for just tcl. We have to
8971 # be careful that we don't match stuff like tclX by accident.
8972 # the alternative search directory is involked by --with-tclinclude
8976 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
8977 echo "configure:8978: checking for Tcl private headers. dir=${configdir}" >&5
8978 # Check whether --with-tclinclude or --without-tclinclude was given.
8979 if test "${with_tclinclude+set}" = set; then
8980 withval
="$with_tclinclude"
8981 with_tclinclude
=${withval}
8984 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8988 # first check to see if --with-tclinclude was specified
8989 if test x
"${with_tclinclude}" != x
; then
8990 if test -f ${with_tclinclude}/tclInt.h
; then
8991 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
8992 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
8993 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
8995 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
8999 # next check if it came with Tcl configuration file
9000 if test x
"${ac_cv_c_tclconfig}" = x
; then
9001 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9002 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9006 # next check in private source directory
9008 # since ls returns lowest version numbers first, reverse its output
9009 if test x
"${ac_cv_c_tclh}" = x
; then
9012 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9013 ${srcdir}/..
/..
/tcl \
9014 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9015 ${srcdir}/..
/..
/..
/tcl \
9016 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9017 if test -f $i/generic
/tclInt.h
; then
9018 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9023 # finally check in a few common install locations
9025 # since ls returns lowest version numbers first, reverse its output
9026 if test x
"${ac_cv_c_tclh}" = x
; then
9028 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9029 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9030 /usr
/local
/src
/tcl \
9031 /usr
/local
/lib
/tcl \
9032 ${prefix}/include
; do
9033 if test -f $i/generic
/tclInt.h
; then
9034 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9039 # see if one is installed
9040 if test x
"${ac_cv_c_tclh}" = x
; then
9041 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9042 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9043 echo "configure:9044: checking for tclInt.h" >&5
9044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9047 cat > conftest.
$ac_ext <<EOF
9048 #line 9049 "configure"
9049 #include "confdefs.h"
9052 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9053 { (eval echo configure
:9054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9054 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9055 if test -z "$ac_err"; then
9057 eval "ac_cv_header_$ac_safe=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.
$ac_ext >&5
9063 eval "ac_cv_header_$ac_safe=no"
9067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9068 echo "$ac_t""yes" 1>&6
9069 ac_cv_c_tclh
=installed
9071 echo "$ac_t""no" 1>&6
9079 if test x
"${ac_cv_c_tclh}" = x
; then
9080 TCLHDIR
="# no Tcl private headers found"
9081 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9083 if test x
"${ac_cv_c_tclh}" != x
; then
9085 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9086 echo "$ac_t""is installed" 1>&6
9089 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9090 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9091 TCLHDIR
="-I${ac_cv_c_tclh}"
9099 # Ok, lets find the tk source trees so we can use the headers
9100 # If the directory (presumably symlink) named "tk" exists, use that one
9101 # in preference to any others. Same logic is used when choosing library
9102 # and again with Tcl. The search order is the best place to look first, then in
9103 # decreasing significance. The loop breaks if the trigger file is found.
9104 # Note the gross little conversion here of srcdir by cd'ing to the found
9105 # directory. This converts the path from a relative to an absolute, so
9106 # recursive cache variables for the path will work right. We check all
9107 # the possible paths in one loop rather than many seperate loops to speed
9109 # the alternative search directory is involked by --with-tkinclude
9112 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9113 echo "configure:9114: checking for Tk private headers" >&5
9114 # Check whether --with-tkinclude or --without-tkinclude was given.
9115 if test "${with_tkinclude+set}" = set; then
9116 withval
="$with_tkinclude"
9117 with_tkinclude
=${withval}
9120 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9124 # first check to see if --with-tkinclude was specified
9125 if test x
"${with_tkinclude}" != x
; then
9126 if test -f ${with_tkinclude}/tk.h
; then
9127 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9128 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9129 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9131 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9135 # next check if it came with Tk configuration file
9136 if test x
"${ac_cv_c_tkconfig}" = x
; then
9137 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9138 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9142 # next check in private source directory
9144 # since ls returns lowest version numbers first, reverse its output
9145 if test x
"${ac_cv_c_tkh}" = x
; then
9148 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9149 ${srcdir}/..
/..
/tk \
9150 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9151 ${srcdir}/..
/..
/..
/tk \
9152 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9153 if test -f $i/generic
/tk.h
; then
9154 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9159 # finally check in a few common install locations
9161 # since ls returns lowest version numbers first, reverse its output
9162 if test x
"${ac_cv_c_tkh}" = x
; then
9164 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9165 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9168 ${prefix}/include
; do
9169 if test -f $i/generic
/tk.h
; then
9170 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9175 # see if one is installed
9176 if test x
"${ac_cv_c_tkh}" = x
; then
9177 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9178 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9179 echo "configure:9180: checking for tk.h" >&5
9180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9183 cat > conftest.
$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9188 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9189 { (eval echo configure
:9190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9190 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9191 if test -z "$ac_err"; then
9193 eval "ac_cv_header_$ac_safe=yes"
9196 echo "configure: failed program was:" >&5
9197 cat conftest.
$ac_ext >&5
9199 eval "ac_cv_header_$ac_safe=no"
9203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9204 echo "$ac_t""yes" 1>&6
9205 ac_cv_c_tkh
=installed
9207 echo "$ac_t""no" 1>&6
9215 if test x
"${ac_cv_c_tkh}" != x
; then
9217 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9218 echo "$ac_t""is installed" 1>&6
9221 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9222 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9223 TKHDIR
="-I${ac_cv_c_tkh}"
9226 TKHDIR
="# no Tk directory found"
9227 echo "configure: warning: Can't find Tk private headers" 1>&2
9234 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9235 echo "configure:9236: checking for Itcl private headers. srcdir=${srcdir}" >&5
9236 if test x
"${ac_cv_c_itclh}" = x
; then
9237 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9238 if test -f $i/generic
/itcl.h
; then
9239 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9244 if test x
"${ac_cv_c_itclh}" = x
; then
9245 ITCLHDIR
="# no Itcl private headers found"
9246 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9248 if test x
"${ac_cv_c_itclh}" != x
; then
9249 ITCLHDIR
="-I${ac_cv_c_itclh}"
9251 # should always be here
9252 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9257 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9258 echo "configure:9259: checking for Itk private headers. srcdir=${srcdir}" >&5
9259 if test x
"${ac_cv_c_itkh}" = x
; then
9260 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9261 if test -f $i/generic
/itk.h
; then
9262 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9267 if test x
"${ac_cv_c_itkh}" = x
; then
9268 ITKHDIR
="# no Itk private headers found"
9269 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9271 if test x
"${ac_cv_c_itkh}" != x
; then
9272 ITKHDIR
="-I${ac_cv_c_itkh}"
9274 # should always be here
9275 # ITKLIB="../itcl/itk/unix/libitk.a"
9281 # now look for Tk library stuff
9292 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9294 # now look for Itcl library stuff
9298 # Ok, lets find the itcl configuration
9299 # First, look for one uninstalled.
9300 # the alternative search directory is invoked by --with-itclconfig
9303 if test x
"${no_itcl}" = x
; then
9304 # we reset no_itcl in case something fails here
9306 # Check whether --with-itclconfig or --without-itclconfig was given.
9307 if test "${with_itclconfig+set}" = set; then
9308 withval
="$with_itclconfig"
9309 with_itclconfig
=${withval}
9312 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9313 echo "configure:9314: checking for Itcl configuration" >&5
9314 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9319 # First check to see if --with-itclconfig was specified.
9320 if test x
"${with_itclconfig}" != x
; then
9321 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9322 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9324 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9328 # then check for a private Itcl library
9329 if test x
"${ac_cv_c_itclconfig}" = x
; then
9332 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9334 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9336 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9337 if test -f "$i/itclConfig.sh" ; then
9338 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9343 # check in a few common install locations
9344 if test x
"${ac_cv_c_itclconfig}" = x
; then
9345 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9346 if test -f "$i/itclConfig.sh" ; then
9347 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9352 # check in a few other private locations
9353 if test x
"${ac_cv_c_itclconfig}" = x
; then
9355 ${srcdir}/..
/itcl
/itcl \
9356 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9357 if test -f "$i/itclConfig.sh" ; then
9358 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9366 if test x
"${ac_cv_c_itclconfig}" = x
; then
9367 ITCLCONFIG
="# no Itcl configs found"
9368 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9371 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9372 echo "$ac_t""found $ITCLCONFIG" 1>&6
9376 if test -z "${no_itcl}"; then
9378 if test -f "$ITCLCONFIG" ; then
9393 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9394 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9398 # now look for Itk library stuff
9401 # Ok, lets find the itk configuration
9402 # First, look for one uninstalled.
9403 # the alternative search directory is invoked by --with-itkconfig
9406 if test x
"${no_itk}" = x
; then
9407 # we reset no_itk in case something fails here
9409 # Check whether --with-itkconfig or --without-itkconfig was given.
9410 if test "${with_itkconfig+set}" = set; then
9411 withval
="$with_itkconfig"
9412 with_itkconfig
=${withval}
9415 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9416 echo "configure:9417: checking for Itk configuration" >&5
9417 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9422 # First check to see if --with-itkconfig was specified.
9423 if test x
"${with_itkconfig}" != x
; then
9424 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9425 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9427 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9431 # then check for a private Itk library
9432 if test x
"${ac_cv_c_itkconfig}" = x
; then
9435 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9437 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9439 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9440 if test -f "$i/itkConfig.sh" ; then
9441 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9446 # check in a few common install locations
9447 if test x
"${ac_cv_c_itkconfig}" = x
; then
9448 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9449 if test -f "$i/itkConfig.sh" ; then
9450 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9455 # check in a few other private locations
9456 if test x
"${ac_cv_c_itkconfig}" = x
; then
9458 ${srcdir}/..
/itcl
/itk \
9459 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9460 if test -f "$i/itkConfig.sh" ; then
9461 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9469 if test x
"${ac_cv_c_itkconfig}" = x
; then
9470 ITKCONFIG
="# no Itk configs found"
9471 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9474 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9475 echo "$ac_t""found $ITKCONFIG" 1>&6
9480 if test -z "${no_itcl}"; then
9482 if test -f "$ITKCONFIG" ; then
9497 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9498 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9501 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9502 # Tcl/Tk 8.1 require -fwritable strings. I don't
9503 # know whether 8.2 will or not, but I bet it will.
9504 # I don't have to worry about 7.x since we don't support it.
9506 if test "$GCC" = "yes"; then
9507 if test "$TCL_VERSION" != "8.0" ; then
9508 GDBTK_CFLAGS
="-fwritable-strings"
9512 # Include some libraries that Tcl and Tk want.
9513 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9514 # Yes, the ordering seems wrong here. But it isn't.
9515 # TK_LIBS is the list of libraries that need to be linked
9516 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9517 # were in LIBS then any link tests after this point would
9518 # try to include things like `$(LIBGUI)', which wouldn't work.
9519 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9521 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9522 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9523 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9524 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9525 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9526 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9527 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9528 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9530 if test x
$gdb_cv_os_cygwin = xyes
; then
9531 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9532 WIN32LDAPP
="-Wl,--subsystem,console"
9533 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9538 SUBDIRS
="${SUBDIRS} gdbtk"
9539 configdirs
="${configdirs} gdbtk"
9555 # If we find X, set shell vars x_includes and x_libraries to the
9556 # paths, otherwise set no_x=yes.
9557 # Uses ac_ vars as temps to allow command line to override cache and checks.
9558 # --without-x overrides everything else, but does not touch the cache.
9559 echo $ac_n "checking for X""... $ac_c" 1>&6
9560 echo "configure:9561: checking for X" >&5
9562 # Check whether --with-x or --without-x was given.
9563 if test "${with_x+set}" = set; then
9568 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9569 if test "x$with_x" = xno
; then
9570 # The user explicitly disabled X.
9573 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9574 # Both variables are already set.
9577 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9578 echo $ac_n "(cached) $ac_c" 1>&6
9580 # One or both of the vars are not set, and there is no cached value.
9581 ac_x_includes
=NO ac_x_libraries
=NO
9583 if mkdir conftestdir
; then
9585 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9586 cat > Imakefile
<<'EOF'
9588 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9590 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9591 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9592 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9593 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9594 for ac_extension
in a so sl
; do
9595 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9596 test -f $ac_im_libdir/libX11.
$ac_extension; then
9597 ac_im_usrlibdir
=$ac_im_libdir; break
9600 # Screen out bogus values from the imake configuration. They are
9601 # bogus both because they are the default anyway, and because
9602 # using them would break gcc on systems where it needs fixed includes.
9603 case "$ac_im_incroot" in
9605 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9607 case "$ac_im_usrlibdir" in
9609 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9616 if test "$ac_x_includes" = NO
; then
9617 # Guess where to find include files, by looking for this one X11 .h file.
9618 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9620 # First, try using that file with no special directory specified.
9621 cat > conftest.
$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 #include <$x_direct_test_include>
9626 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9627 { (eval echo configure
:9628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9628 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9629 if test -z "$ac_err"; then
9631 # We can compile using X headers with no special include directory.
9635 echo "configure: failed program was:" >&5
9636 cat conftest.
$ac_ext >&5
9638 # Look for the header file in a standard set of common directories.
9639 # Check X11 before X11Rn because it is often a symlink to the current release.
9642 /usr
/X11R
6/include \
9643 /usr
/X11R
5/include \
9644 /usr
/X11R
4/include \
9647 /usr
/include
/X11R6 \
9648 /usr
/include
/X11R5 \
9649 /usr
/include
/X11R4 \
9651 /usr
/local
/X11
/include \
9652 /usr
/local
/X11R
6/include \
9653 /usr
/local
/X11R
5/include \
9654 /usr
/local
/X11R
4/include \
9656 /usr
/local
/include
/X11 \
9657 /usr
/local
/include
/X11R6 \
9658 /usr
/local
/include
/X11R5 \
9659 /usr
/local
/include
/X11R4 \
9663 /usr
/XFree86
/include
/X11 \
9666 /usr
/local
/include \
9667 /usr
/unsupported
/include \
9668 /usr
/athena
/include \
9669 /usr
/local
/x11r
5/include \
9670 /usr
/lpp
/Xamples
/include \
9672 /usr
/openwin
/include \
9673 /usr
/openwin
/share
/include \
9676 if test -r "$ac_dir/$x_direct_test_include"; then
9677 ac_x_includes
=$ac_dir
9683 fi # $ac_x_includes = NO
9685 if test "$ac_x_libraries" = NO
; then
9686 # Check for the libraries.
9688 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9689 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9691 # See if we find them without any special options.
9692 # Don't add to $LIBS permanently.
9693 ac_save_LIBS
="$LIBS"
9694 LIBS
="-l$x_direct_test_library $LIBS"
9695 cat > conftest.
$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9700 ${x_direct_test_function}()
9703 if { (eval echo configure
:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9705 LIBS
="$ac_save_LIBS"
9706 # We can link X programs with no special library path.
9709 echo "configure: failed program was:" >&5
9710 cat conftest.
$ac_ext >&5
9712 LIBS
="$ac_save_LIBS"
9713 # First see if replacing the include by lib works.
9714 # Check X11 before X11Rn because it is often a symlink to the current release.
9715 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9726 /usr
/local
/X11
/lib \
9727 /usr
/local
/X11R
6/lib \
9728 /usr
/local
/X11R
5/lib \
9729 /usr
/local
/X11R
4/lib \
9731 /usr
/local
/lib
/X11 \
9732 /usr
/local
/lib
/X11R6 \
9733 /usr
/local
/lib
/X11R5 \
9734 /usr
/local
/lib
/X11R4 \
9738 /usr
/XFree86
/lib
/X11 \
9742 /usr
/unsupported
/lib \
9744 /usr
/local
/x11r
5/lib \
9745 /usr
/lpp
/Xamples
/lib \
9749 /usr
/openwin
/share
/lib \
9752 for ac_extension
in a so sl
; do
9753 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9754 ac_x_libraries
=$ac_dir
9761 fi # $ac_x_libraries = NO
9763 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9764 # Didn't find X anywhere. Cache the known absence of X.
9765 ac_cv_have_x
="have_x=no"
9767 # Record where we found X for the cache.
9768 ac_cv_have_x
="have_x=yes \
9769 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9773 eval "$ac_cv_have_x"
9776 if test "$have_x" != yes; then
9777 echo "$ac_t""$have_x" 1>&6
9780 # If each of the values was on the command line, it overrides each guess.
9781 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9782 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9783 # Update the cache value to reflect the command line values.
9784 ac_cv_have_x
="have_x=yes \
9785 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9786 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9791 # Unlike the sim directory, whether a simulator is linked is controlled by
9792 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9793 # This code just checks for a few cases where we'd like to ignore those
9794 # definitions, even when they're present in the '.mt' file. These cases
9795 # are when --disable-sim is specified, or if the simulator directory is
9796 # not part of the source tree.
9798 # Check whether --enable-sim or --disable-sim was given.
9799 if test "${enable_sim+set}" = set; then
9800 enableval
="$enable_sim"
9801 echo "enable_sim = $enable_sim";
9802 echo "enableval = ${enableval}";
9803 case "${enableval}" in
9804 yes) ignore_sim
=false
;;
9805 no
) ignore_sim
=true
;;
9806 *) ignore_sim
=false
;;
9813 if test ! -d "${srcdir}/../sim"; then
9817 if test "${ignore_sim}" = "true"; then
9819 IGNORE_SIM_OBS
="SIM_OBS="
9823 cat >> confdefs.h
<<\EOF
9843 # Begin stuff to support --enable-shared
9844 # Check whether --enable-shared or --disable-shared was given.
9845 if test "${enable_shared+set}" = set; then
9846 enableval
="$enable_shared"
9847 case "${enableval}" in
9856 # If we have shared libraries, try to set rpath reasonably.
9857 if test "${shared}" = "true"; then
9860 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
9862 *-*-irix5* |
*-*-irix6*)
9863 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9867 *-*-linux* |
*-pc-linux-gnu*)
9868 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9871 HLDFLAGS
='-R $(libdir)'
9874 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;'
9879 # On SunOS, if the linker supports the -rpath option, use it to
9880 # prevent ../bfd and ../opcodes from being included in the run time
9884 echo 'main () { }' > conftest.c
9885 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
9886 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
9888 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
9890 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
9892 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
9894 elif test "${shared}" = "true"; then
9895 HLDFLAGS
='-Wl,-rpath=$(libdir)'
9897 HLDFLAGS
='-Wl,-rpath='
9899 rm -f conftest.t conftest.c conftest
9904 # End stuff to support --enable-shared
9906 # target_subdir is used by the testsuite to find the target libraries.
9908 if test "${host}" != "${target}"; then
9909 target_subdir
="${target_alias}/"
9914 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9915 if test ! -f ${host_makefile_frag}; then
9916 # When building a native debuger the .mh file containing things
9917 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9918 # since it no longer contains anything useful.
9919 if test "${target}" = "${host}"; then
9920 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9922 host_makefile_frag
=/dev
/null
9925 frags
="$frags $host_makefile_frag"
9927 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9928 if test ! -f ${target_makefile_frag}; then
9929 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9931 frags
="$frags $target_makefile_frag"
9938 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9939 ' ${host_makefile_frag}`
9941 targetfile
=`sed -n '
9942 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9943 ' ${target_makefile_frag}`
9945 GDB_MULTI_ARCH
=`sed -n '
9946 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9947 ' ${target_makefile_frag}`
9949 if test "${target}" = "${host}"; then
9950 # We pick this up from the host configuration file (.mh) because we
9951 # do not have a native configuration Makefile fragment.
9952 nativefile
=`sed -n '
9953 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9954 ' ${host_makefile_frag}`
9958 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9959 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9960 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
9961 # will be the default.
9962 if test x
"${GDB_MULTI_ARCH}" = x
; then
9963 case "${gdb_multi_arch}" in
9964 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
9965 no
) GDB_MULTI_ARCH
=0 ;;
9966 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
9969 if test x
"${GDB_MULTI_ARCH}" != x
; then
9970 cat >> confdefs.h
<<EOF
9971 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
9975 # Warn the user when they use an old practice
9976 case "${GDB_MULTI_ARCH}" in
9978 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
9979 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
9980 GDB_MULTI_ARCH_PURE
)
9981 if test x
"${targetfile}" != x
; then
9982 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
9985 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
9988 if test "${enable_multi_ice}" = "yes"; then
9989 SUBDIRS
="${SUBDIRS} multi-ice"
9992 # ``gdbserver'' can only be built in a native configuration.
9993 if test x
"${target}" = x
"${host}"; then
9994 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
9995 echo "configure:9996: checking whether gdbserver is supported on this host" >&5
9996 if test x
"${build_gdbserver}" = xyes
; then
9997 configdirs
="${configdirs} gdbserver"
9998 SUBDIRS
="${SUBDIRS} gdbserver"
9999 echo "$ac_t""yes" 1>&6
10001 echo "$ac_t""no" 1>&6
10007 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10008 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10016 if test "${hostfile}" != ""; then
10018 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10019 files
="${files} ${GDB_XM_FILE}"
10020 links
="${links} xm.h"
10021 cat >> confdefs.h
<<EOF
10022 #define GDB_XM_FILE ${GDB_XM_FILE}
10030 if test "${targetfile}" != ""; then
10032 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10033 files
="${files} ${GDB_TM_FILE}"
10034 links
="${links} tm.h"
10035 cat >> confdefs.h
<<EOF
10036 #define GDB_TM_FILE ${GDB_TM_FILE}
10044 if test "${nativefile}" != ""; then
10046 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10047 files
="${files} ${GDB_NM_FILE}"
10048 links
="${links} nm.h"
10049 cat >> confdefs.h
<<EOF
10050 #define GDB_NM_FILE ${GDB_NM_FILE}
10058 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10059 echo "configure:10060: checking for Cygwin environment" >&5
10060 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10063 cat > conftest.
$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10070 #define __CYGWIN__ __CYGWIN32__
10075 if { (eval echo configure
:10076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10079 echo "configure: failed program was:" >&5
10080 cat conftest.
$ac_ext >&5
10088 echo "$ac_t""$ac_cv_cygwin" 1>&6
10090 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10091 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10092 echo "configure:10093: checking for mingw32 environment" >&5
10093 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10094 echo $ac_n "(cached) $ac_c" 1>&6
10096 cat > conftest.
$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10101 return __MINGW32__;
10104 if { (eval echo configure
:10105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10108 echo "configure: failed program was:" >&5
10109 cat conftest.
$ac_ext >&5
10117 echo "$ac_t""$ac_cv_mingw32" 1>&6
10119 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10122 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10123 echo "configure:10124: checking for executable suffix" >&5
10124 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10127 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10131 echo 'int main () { return 0; }' > conftest.
$ac_ext
10133 if { (eval echo configure
:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10134 for file in conftest.
*; do
10136 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10137 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10141 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10144 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10149 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10150 echo "$ac_t""${ac_cv_exeext}" 1>&6
10155 cat >> confdefs.h
<<\EOF
10156 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10162 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10163 if test "${with_libiconv_prefix+set}" = set; then
10164 withval
="$with_libiconv_prefix"
10166 for dir
in `echo "$withval" | tr : ' '`; do
10167 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10168 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10174 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10175 echo "configure:10176: checking for iconv" >&5
10176 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10180 am_cv_func_iconv
="no, consider installing GNU libiconv"
10182 cat > conftest.
$ac_ext <<EOF
10183 #line 10184 "configure"
10184 #include "confdefs.h"
10185 #include <stdlib.h>
10188 iconv_t cd = iconv_open("","");
10189 iconv(cd,NULL,NULL,NULL,NULL);
10193 if { (eval echo configure
:10194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10195 am_cv_func_iconv
=yes
10197 echo "configure: failed program was:" >&5
10198 cat conftest.
$ac_ext >&5
10201 if test "$am_cv_func_iconv" != yes; then
10202 am_save_LIBS
="$LIBS"
10203 LIBS
="$LIBS -liconv"
10204 cat > conftest.
$ac_ext <<EOF
10205 #line 10206 "configure"
10206 #include "confdefs.h"
10207 #include <stdlib.h>
10210 iconv_t cd = iconv_open("","");
10211 iconv(cd,NULL,NULL,NULL,NULL);
10215 if { (eval echo configure
:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10217 am_cv_lib_iconv
=yes
10218 am_cv_func_iconv
=yes
10220 echo "configure: failed program was:" >&5
10221 cat conftest.
$ac_ext >&5
10224 LIBS
="$am_save_LIBS"
10229 echo "$ac_t""$am_cv_func_iconv" 1>&6
10230 if test "$am_cv_func_iconv" = yes; then
10231 cat >> confdefs.h
<<\EOF
10232 #define HAVE_ICONV 1
10235 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10236 echo "configure:10237: checking for iconv declaration" >&5
10237 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10241 cat > conftest.
$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10245 #include <stdlib.h>
10251 #if defined(__STDC__) || defined(__cplusplus)
10252 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10261 if { (eval echo configure
:10262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10263 am_cv_proto_iconv_arg1
=""
10265 echo "configure: failed program was:" >&5
10266 cat conftest.
$ac_ext >&5
10268 am_cv_proto_iconv_arg1
="const"
10271 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);"
10274 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10275 echo "$ac_t""${ac_t:-
10276 }$am_cv_proto_iconv" 1>&6
10277 cat >> confdefs.h
<<EOF
10278 #define ICONV_CONST $am_cv_proto_iconv_arg1
10283 if test "$am_cv_lib_iconv" = yes; then
10289 subdirs
="$configdirs"
10292 cat > confcache
<<\EOF
10293 # This file is a shell script that caches the results of configure
10294 # tests run on this system so they can be shared between configure
10295 # scripts and configure runs. It is not useful on other systems.
10296 # If it contains results you don't want to keep, you may remove or edit it.
10298 # By default, configure uses ./config.cache as the cache file,
10299 # creating it if it does not exist already. You can give configure
10300 # the --cache-file=FILE option to use a different cache file; that is
10301 # what configure does when it calls configure scripts in
10302 # subdirectories, so they share the cache.
10303 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10304 # config.status only pays attention to the cache file if you give it the
10305 # --recheck option to rerun configure.
10308 # The following way of writing the cache mishandles newlines in values,
10309 # but we know of no workaround that is simple, portable, and efficient.
10310 # So, don't put newlines in cache variables' values.
10311 # Ultrix sh set writes to stderr and can't be redirected directly,
10312 # and sets the high bit in the cache file unless we assign to the vars.
10314 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10316 # `set' does not quote correctly, so add quotes (double-quote substitution
10317 # turns \\\\ into \\, and sed turns \\ into \).
10319 -e "s/'/'\\\\''/g" \
10320 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10323 # `set' quotes correctly as required by POSIX, so do not add quotes.
10324 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10327 if cmp -s $cache_file confcache
; then
10330 if test -w $cache_file; then
10331 echo "updating cache $cache_file"
10332 cat confcache
> $cache_file
10334 echo "not updating unwritable cache $cache_file"
10339 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10341 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10342 # Let make expand exec_prefix.
10343 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10345 # Any assignment to VPATH causes Sun make to only execute
10346 # the first set of double-colon rules, so remove it if not needed.
10347 # If there is a colon in the path, we need to keep it.
10348 if test "x$srcdir" = x.
; then
10349 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10352 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10354 DEFS
=-DHAVE_CONFIG_H
10356 # Without the "./", some shells look in PATH for config.status.
10357 : ${CONFIG_STATUS=./config.status}
10359 echo creating
$CONFIG_STATUS
10360 rm -f $CONFIG_STATUS
10361 cat > $CONFIG_STATUS <<EOF
10363 # Generated automatically by configure.
10364 # Run this file to recreate the current configuration.
10365 # This directory was configured as follows,
10366 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10368 # $0 $ac_configure_args
10370 # Compiler output produced by configure, useful for debugging
10371 # configure, is in ./config.log if it exists.
10373 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10376 case "\$ac_option" in
10377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10378 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10379 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10380 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10381 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10383 -help | --help | --hel | --he | --h)
10384 echo "\$ac_cs_usage"; exit 0 ;;
10385 *) echo "\$ac_cs_usage"; exit 1 ;;
10389 ac_given_srcdir=$srcdir
10390 ac_given_INSTALL="$INSTALL"
10392 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10394 cat >> $CONFIG_STATUS <<EOF
10396 # Protect against being on the right side of a sed subst in config.status.
10397 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10398 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10402 s%@CFLAGS@%$CFLAGS%g
10403 s%@CPPFLAGS@%$CPPFLAGS%g
10404 s%@CXXFLAGS@%$CXXFLAGS%g
10405 s%@FFLAGS@%$FFLAGS%g
10407 s%@LDFLAGS@%$LDFLAGS%g
10409 s%@exec_prefix@%$exec_prefix%g
10410 s%@prefix@%$prefix%g
10411 s%@program_transform_name@%$program_transform_name%g
10412 s%@bindir@%$bindir%g
10413 s%@sbindir@%$sbindir%g
10414 s%@libexecdir@%$libexecdir%g
10415 s%@datadir@%$datadir%g
10416 s%@sysconfdir@%$sysconfdir%g
10417 s%@sharedstatedir@%$sharedstatedir%g
10418 s%@localstatedir@%$localstatedir%g
10419 s%@libdir@%$libdir%g
10420 s%@includedir@%$includedir%g
10421 s%@oldincludedir@%$oldincludedir%g
10422 s%@infodir@%$infodir%g
10423 s%@mandir@%$mandir%g
10424 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10425 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10430 s%@host_alias@%$host_alias%g
10431 s%@host_cpu@%$host_cpu%g
10432 s%@host_vendor@%$host_vendor%g
10433 s%@host_os@%$host_os%g
10434 s%@target@%$target%g
10435 s%@target_alias@%$target_alias%g
10436 s%@target_cpu@%$target_cpu%g
10437 s%@target_vendor@%$target_vendor%g
10438 s%@target_os@%$target_os%g
10440 s%@build_alias@%$build_alias%g
10441 s%@build_cpu@%$build_cpu%g
10442 s%@build_vendor@%$build_vendor%g
10443 s%@build_os@%$build_os%g
10444 s%@RANLIB@%$RANLIB%g
10445 s%@SET_MAKE@%$SET_MAKE%g
10446 s%@ALLOCA@%$ALLOCA%g
10447 s%@USE_NLS@%$USE_NLS%g
10448 s%@MSGFMT@%$MSGFMT%g
10449 s%@GMSGFMT@%$GMSGFMT%g
10450 s%@XGETTEXT@%$XGETTEXT%g
10451 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10452 s%@CATALOGS@%$CATALOGS%g
10453 s%@CATOBJEXT@%$CATOBJEXT%g
10454 s%@DATADIRNAME@%$DATADIRNAME%g
10455 s%@GMOFILES@%$GMOFILES%g
10456 s%@INSTOBJEXT@%$INSTOBJEXT%g
10457 s%@INTLDEPS@%$INTLDEPS%g
10458 s%@INTLLIBS@%$INTLLIBS%g
10459 s%@INTLOBJS@%$INTLOBJS%g
10460 s%@POFILES@%$POFILES%g
10462 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10464 s%@GT_YES@%$GT_YES%g
10465 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10468 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10469 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10470 s%@INSTALL_DATA@%$INSTALL_DATA%g
10474 s%@DLLTOOL@%$DLLTOOL%g
10475 s%@WINDRES@%$WINDRES%g
10477 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10478 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
10479 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10480 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10481 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10482 s%@MMALLOC@%$MMALLOC%g
10483 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10484 s%@WIN32LIBS@%$WIN32LIBS%g
10485 s%@LIBGUI@%$LIBGUI%g
10486 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10487 s%@WIN32LDAPP@%$WIN32LDAPP%g
10488 s%@TCL_VERSION@%$TCL_VERSION%g
10489 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10490 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10491 s%@TCL_CC@%$TCL_CC%g
10492 s%@TCL_DEFS@%$TCL_DEFS%g
10493 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10494 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10495 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10496 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10497 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10498 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10499 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10500 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10501 s%@TCL_RANLIB@%$TCL_RANLIB%g
10502 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10503 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10504 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10505 s%@TK_VERSION@%$TK_VERSION%g
10506 s%@TK_DEFS@%$TK_DEFS%g
10507 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10508 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10509 s%@TK_XLIBSW@%$TK_XLIBSW%g
10510 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10511 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10512 s%@TCLHDIR@%$TCLHDIR%g
10513 s%@TKHDIR@%$TKHDIR%g
10514 s%@ITCLHDIR@%$ITCLHDIR%g
10515 s%@ITKHDIR@%$ITKHDIR%g
10516 s%@ITCL_VERSION@%$ITCL_VERSION%g
10517 s%@ITCL_DEFS@%$ITCL_DEFS%g
10518 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10519 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10520 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10521 s%@ITK_VERSION@%$ITK_VERSION%g
10522 s%@ITK_DEFS@%$ITK_DEFS%g
10523 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10524 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10525 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10526 s%@X_CFLAGS@%$X_CFLAGS%g
10527 s%@X_LDFLAGS@%$X_LDFLAGS%g
10528 s%@X_LIBS@%$X_LIBS%g
10529 s%@TCL_DEPS@%$TCL_DEPS%g
10530 s%@TK_DEPS@%$TK_DEPS%g
10531 s%@ITCLLIB@%$ITCLLIB%g
10532 s%@ITCL_DEPS@%$ITCL_DEPS%g
10533 s%@ITKLIB@%$ITKLIB%g
10534 s%@ITK_DEPS@%$ITK_DEPS%g
10535 s%@GDBTKLIBS@%$GDBTKLIBS%g
10536 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10537 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10538 s%@IGNORE_SIM@%$IGNORE_SIM%g
10539 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10540 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10541 s%@CONFIG_OBS@%$CONFIG_OBS%g
10542 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10543 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10544 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10545 s%@CONFIG_INITS@%$CONFIG_INITS%g
10546 s%@CONFIG_ALL@%$CONFIG_ALL%g
10547 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10548 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10549 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10550 s%@HLDFLAGS@%$HLDFLAGS%g
10551 s%@HLDENV@%$HLDENV%g
10552 s%@target_subdir@%$target_subdir%g
10553 /@host_makefile_frag@/r $host_makefile_frag
10554 s%@host_makefile_frag@%%g
10555 /@target_makefile_frag@/r $target_makefile_frag
10556 s%@target_makefile_frag@%%g
10558 s%@SUBDIRS@%$SUBDIRS%g
10562 s%@EXEEXT@%$EXEEXT%g
10563 s%@LIBICONV@%$LIBICONV%g
10564 s%@subdirs@%$subdirs%g
10569 cat >> $CONFIG_STATUS <<\EOF
10571 # Split the substitutions into bite-sized pieces for seds with
10572 # small command number limits, like on Digital OSF/1 and HP-UX.
10573 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10574 ac_file
=1 # Number of current file.
10575 ac_beg
=1 # First line for current file.
10576 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10579 while $ac_more_lines; do
10580 if test $ac_beg -gt 1; then
10581 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10583 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10585 if test ! -s conftest.s
$ac_file; then
10586 ac_more_lines
=false
10587 rm -f conftest.s
$ac_file
10589 if test -z "$ac_sed_cmds"; then
10590 ac_sed_cmds
="sed -f conftest.s$ac_file"
10592 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10594 ac_file
=`expr $ac_file + 1`
10596 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10599 if test -z "$ac_sed_cmds"; then
10604 cat >> $CONFIG_STATUS <<EOF
10606 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10608 cat >> $CONFIG_STATUS <<\EOF
10609 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10612 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10613 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10614 *) ac_file_in
="${ac_file}.in" ;;
10617 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10619 # Remove last slash and all that follows it. Not all systems have dirname.
10620 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10621 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10622 # The file is in a subdirectory.
10623 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10624 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10625 # A "../" for each directory in $ac_dir_suffix.
10626 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10628 ac_dir_suffix
= ac_dots
=
10631 case "$ac_given_srcdir" in
10633 if test -z "$ac_dots"; then top_srcdir
=.
10634 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10635 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10636 *) # Relative path.
10637 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10638 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10641 case "$ac_given_INSTALL" in
10642 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10643 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10646 echo creating
"$ac_file"
10648 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10650 *Makefile
*) ac_comsub
="1i\\
10651 # $configure_input" ;;
10655 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10657 s%@configure_input@%$configure_input%g
10658 s%@srcdir@%$srcdir%g
10659 s%@top_srcdir@%$top_srcdir%g
10660 s%@INSTALL@%$INSTALL%g
10661 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10665 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10666 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10668 # ac_d sets the value in "#define NAME VALUE" lines.
10669 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10670 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10673 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10674 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10675 ac_uB
='\([ ]\)%\1#\2define\3'
10678 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10679 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10680 ac_eB
='$%\1#\2define\3'
10684 if test "${CONFIG_HEADERS+set}" != set; then
10686 cat >> $CONFIG_STATUS <<EOF
10687 CONFIG_HEADERS="config.h:config.in"
10689 cat >> $CONFIG_STATUS <<\EOF
10691 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10694 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10695 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10696 *) ac_file_in
="${ac_file}.in" ;;
10699 echo creating
$ac_file
10701 rm -f conftest.frag conftest.
in conftest.out
10702 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10703 cat $ac_file_inputs > conftest.
in
10707 # Transform confdefs.h into a sed script conftest.vals that substitutes
10708 # the proper values into config.h.in to produce config.h. And first:
10709 # Protect against being on the right side of a sed subst in config.status.
10710 # Protect against being in an unquoted here document in config.status.
10711 rm -f conftest.vals
10712 cat > conftest.hdr
<<\EOF
10715 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10719 sed -n -f conftest.hdr confdefs.h > conftest.vals
10722 # This sed command replaces #undef with comments. This is necessary, for
10723 # example, in the case of _POSIX_SOURCE, which is predefined and required
10724 # on some systems where configure will not decide to define it.
10725 cat >> conftest.vals <<\EOF
10726 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10729 # Break up conftest.vals because some shells have a limit on
10730 # the size of here documents, and old seds have small limits too.
10732 rm -f conftest.tail
10735 ac_lines=`grep -c . conftest.vals
`
10736 # grep -c gives empty output for an empty file on some AIX systems.
10737 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10738 # Write a limited-size here document to conftest.frag.
10739 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10740 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10742 sed -f conftest.frag conftest.in > conftest.out
10744 mv conftest.out conftest.in
10745 ' >> $CONFIG_STATUS
10746 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10747 rm -f conftest.vals
10748 mv conftest.tail conftest.vals
10750 rm -f conftest.vals
10752 cat >> $CONFIG_STATUS <<\EOF
10753 rm -f conftest.frag conftest.h
10754 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10755 cat conftest.in >> conftest.h
10757 if cmp -s $ac_file conftest.h 2>/dev/null; then
10758 echo "$ac_file is unchanged"
10761 # Remove last slash and all that follows it. Not all systems have dirname.
10762 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10763 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10764 # The file is in a subdirectory.
10765 test ! -d "$ac_dir" && mkdir "$ac_dir"
10768 mv conftest.h $ac_file
10774 cat >> $CONFIG_STATUS <<EOF
10775 ac_sources="$files"
10779 cat >> $CONFIG_STATUS <<\EOF
10780 srcdir=$ac_given_srcdir
10781 while test -n "$ac_sources"; do
10782 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10783 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10785 echo "linking $srcdir/$ac_source to $ac_dest"
10787 if test ! -r $srcdir/$ac_source; then
10788 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10792 # Make relative symlinks.
10793 # Remove last slash and all that follows it. Not all systems have dirname.
10794 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10795 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10796 # The dest file is in a subdirectory.
10797 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10798 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10799 # A "../" for each directory in $ac_dest_dir_suffix.
10800 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10802 ac_dest_dir_suffix= ac_dots=
10806 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10807 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10810 # Make a symlink if possible; otherwise try a hard link.
10811 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10812 ln $srcdir/$ac_source $ac_dest; then :
10814 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10818 cat >> $CONFIG_STATUS <<EOF
10820 gdb_host_cpu=$gdb_host_cpu
10821 gdb_target_cpu=$gdb_target_cpu
10822 nativefile=$nativefile
10825 cat >> $CONFIG_STATUS <<\EOF
10827 if test "${nativefile}" = ""; then
10829 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10830 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10831 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10833 mv -f Makefile.tem Makefile
10836 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10837 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10838 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10839 mv -f Makefile.tmp Makefile
10842 case x$CONFIG_HEADERS in
10843 xconfig.h:config.in)
10849 chmod +x $CONFIG_STATUS
10850 rm -fr confdefs* $ac_clean_files
10851 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10853 if test "$no_recursion" != yes; then
10855 # Remove --cache-file and --srcdir arguments so they do not pile up.
10856 ac_sub_configure_args=
10858 for ac_arg in $ac_configure_args; do
10859 if test -n "$ac_prev"; then
10864 -cache-file | --cache-file | --cache-fil | --cache-fi \
10865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10866 ac_prev=cache_file ;;
10867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10870 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10872 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10874 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10878 for ac_config_dir in $configdirs; do
10880 # Do not complain, so a configure script can configure whichever
10881 # parts of a large source tree are present.
10882 if test ! -d $srcdir/$ac_config_dir; then
10886 echo configuring in $ac_config_dir
10891 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10893 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10901 # A "../" for each directory in /$ac_config_dir.
10902 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10905 .) # No --srcdir option. We are building in place.
10906 ac_sub_srcdir=$srcdir ;;
10907 /*) # Absolute path.
10908 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10909 *) # Relative path.
10910 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10913 # Check for guested configure; otherwise get Cygnus style configure.
10914 if test -f $ac_sub_srcdir/configure; then
10915 ac_sub_configure=$ac_sub_srcdir/configure
10916 elif test -f $ac_sub_srcdir/configure.in; then
10917 ac_sub_configure=$ac_configure
10919 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10923 # The recursion is here.
10924 if test -n "$ac_sub_configure"; then
10926 # Make the cache file name correct relative to the subdirectory.
10927 case "$cache_file" in
10928 /*) ac_sub_cache_file=$cache_file ;;
10929 *) # Relative path.
10930 ac_sub_cache_file="$ac_dots$cache_file" ;;
10932 case "$ac_given_INSTALL" in
10933 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10934 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10937 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10938 # The eval makes quoting arguments work.
10939 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10942 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }