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 --disable-gdbcli disable command-line interface (CLI)"
24 --disable-gdbmi disable machine-interface (MI)"
26 --enable-tui enable full-screen terminal user interface (TUI)"
28 --without-included-regex don't use included regex; this is the default
29 on systems with version 2 of the GNU C library
30 (use with caution on other system)"
32 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
34 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
36 --with-mmalloc Use memory mapped malloc package"
38 --enable-gdbtk Enable GDBTK GUI front end"
40 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
42 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
44 --with-tclinclude=DIR Directory where tcl private headers are"
46 --with-tkinclude=DIR Directory where tk private headers are"
48 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
50 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
52 --with-x use the X Window System"
54 --enable-sim Link gdb with simulator"
56 --enable-shared Use shared libraries"
58 --enable-multi-ice build the multi-ice-gdb-server"
60 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file
=.
/config.cache
75 program_transform_name
=s
,x
,x
,
84 bindir
='${exec_prefix}/bin'
85 sbindir
='${exec_prefix}/sbin'
86 libexecdir
='${exec_prefix}/libexec'
87 datadir
='${prefix}/share'
88 sysconfdir
='${prefix}/etc'
89 sharedstatedir
='${prefix}/com'
90 localstatedir
='${prefix}/var'
91 libdir
='${exec_prefix}/lib'
92 includedir
='${prefix}/include'
93 oldincludedir
='/usr/include'
94 infodir
='${prefix}/info'
95 mandir
='${prefix}/man'
97 # Initialize some other variables.
100 SHELL
=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
126 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
127 bindir
="$ac_optarg" ;;
129 -build |
--build |
--buil |
--bui |
--bu)
131 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
132 build
="$ac_optarg" ;;
134 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
135 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
136 ac_prev
=cache_file
;;
137 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
138 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
139 cache_file
="$ac_optarg" ;;
141 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
143 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
145 datadir
="$ac_optarg" ;;
147 -disable-* |
--disable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* |
--enable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
170 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
171 |
--exec |
--exe |
--ex)
172 ac_prev
=exec_prefix
;;
173 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
174 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
175 |
--exec=* |
--exe=* |
--ex=*)
176 exec_prefix
="$ac_optarg" ;;
178 -gas |
--gas |
--ga |
--g)
179 # Obsolete; use --with-gas.
182 -help |
--help |
--hel |
--he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --site-file=FILE use FILE as the site file
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host |
--host |
--hos |
--ho)
240 -host=* |
--host=* |
--hos=* |
--ho=*)
243 -includedir |
--includedir |
--includedi |
--included |
--include \
244 |
--includ |
--inclu |
--incl |
--inc)
245 ac_prev
=includedir
;;
246 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
247 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
248 includedir
="$ac_optarg" ;;
250 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
252 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
253 infodir
="$ac_optarg" ;;
255 -libdir |
--libdir |
--libdi |
--libd)
257 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
258 libdir
="$ac_optarg" ;;
260 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
261 |
--libexe |
--libex |
--libe)
262 ac_prev
=libexecdir
;;
263 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
264 |
--libexe=* |
--libex=* |
--libe=*)
265 libexecdir
="$ac_optarg" ;;
267 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
268 |
--localstate |
--localstat |
--localsta |
--localst \
269 |
--locals |
--local |
--loca |
--loc |
--lo)
270 ac_prev
=localstatedir
;;
271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
273 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
274 localstatedir
="$ac_optarg" ;;
276 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
278 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
279 mandir
="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
289 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
290 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
293 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
294 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
295 |
--oldin |
--oldi |
--old |
--ol |
--o)
296 ac_prev
=oldincludedir
;;
297 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
298 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
299 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
300 oldincludedir
="$ac_optarg" ;;
302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
305 prefix
="$ac_optarg" ;;
307 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
308 |
--program-pre |
--program-pr |
--program-p)
309 ac_prev
=program_prefix
;;
310 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
311 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
312 program_prefix
="$ac_optarg" ;;
314 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
315 |
--program-suf |
--program-su |
--program-s)
316 ac_prev
=program_suffix
;;
317 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
318 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
319 program_suffix
="$ac_optarg" ;;
321 -program-transform-name |
--program-transform-name \
322 |
--program-transform-nam |
--program-transform-na \
323 |
--program-transform-n |
--program-transform- \
324 |
--program-transform |
--program-transfor \
325 |
--program-transfo |
--program-transf \
326 |
--program-trans |
--program-tran \
327 |
--progr-tra |
--program-tr |
--program-t)
328 ac_prev
=program_transform_name
;;
329 -program-transform-name=* |
--program-transform-name=* \
330 |
--program-transform-nam=* |
--program-transform-na=* \
331 |
--program-transform-n=* |
--program-transform-=* \
332 |
--program-transform=* |
--program-transfor=* \
333 |
--program-transfo=* |
--program-transf=* \
334 |
--program-trans=* |
--program-tran=* \
335 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
336 program_transform_name
="$ac_optarg" ;;
338 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
339 |
-silent |
--silent |
--silen |
--sile |
--sil)
342 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
344 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
346 sbindir
="$ac_optarg" ;;
348 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
349 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
350 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
352 ac_prev
=sharedstatedir
;;
353 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
354 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
355 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
357 sharedstatedir
="$ac_optarg" ;;
359 -site |
--site |
--sit)
361 -site=* |
--site=* |
--sit=*)
364 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
366 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
367 sitefile
="$ac_optarg" ;;
369 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
371 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
372 srcdir
="$ac_optarg" ;;
374 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
375 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
376 ac_prev
=sysconfdir
;;
377 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
378 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
379 sysconfdir
="$ac_optarg" ;;
381 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
383 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
384 target
="$ac_optarg" ;;
386 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
389 -version |
--version |
--versio |
--versi |
--vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* |
--without-*)
407 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
420 |
--x-incl |
--x-inc |
--x-in |
--x-i)
421 ac_prev
=x_includes
;;
422 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
423 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
424 x_includes
="$ac_optarg" ;;
426 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
427 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
428 ac_prev
=x_libraries
;;
429 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
430 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
431 x_libraries
="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE
; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c) ;;
483 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
484 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
485 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest
* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file
=main.c
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted
=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted
=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$sitefile"; then
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE
; then
537 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 CONFIG_SITE
="$sitefile"
545 for ac_site_file
in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp
='$CPP $CPPFLAGS'
563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling
=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
578 ac_n
= ac_c
='\c' ac_t
=
583 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
584 echo "configure:585: checking whether to enable maintainer-specific portions of Makefiles" >&5
585 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
586 if test "${enable_maintainer_mode+set}" = set; then
587 enableval
="$enable_maintainer_mode"
588 USE_MAINTAINER_MODE
=$enableval
590 USE_MAINTAINER_MODE
=no
593 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
596 if test $USE_MAINTAINER_MODE = yes; then
597 MAINTAINER_MODE_TRUE
=
598 MAINTAINER_MODE_FALSE
='#'
600 MAINTAINER_MODE_TRUE
='#'
601 MAINTAINER_MODE_FALSE
=
603 MAINT
=$MAINTAINER_MODE_TRUE
607 # Extract the first word of "gcc", so it can be a program name with args.
608 set dummy gcc
; ac_word
=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC
="$CC" # Let the user override the test.
617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
619 for ac_dir
in $ac_dummy; do
620 test -z "$ac_dir" && ac_dir
=.
621 if test -f $ac_dir/$ac_word; then
630 if test -n "$CC"; then
631 echo "$ac_t""$CC" 1>&6
633 echo "$ac_t""no" 1>&6
636 if test -z "$CC"; then
637 # Extract the first word of "cc", so it can be a program name with args.
638 set dummy cc
; ac_word
=$2
639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
640 echo "configure:641: checking for $ac_word" >&5
641 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 if test -n "$CC"; then
645 ac_cv_prog_CC
="$CC" # Let the user override the test.
647 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
650 for ac_dir
in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir
=.
652 if test -f $ac_dir/$ac_word; then
653 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
662 if test $ac_prog_rejected = yes; then
663 # We found a bogon in the path, so make sure we never use it.
664 set dummy
$ac_cv_prog_CC
666 if test $# -gt 0; then
667 # We chose a different compiler from the bogus one.
668 # However, it has the same basename, so the bogon will be chosen
669 # first if we set CC to just the basename; use the full file name.
671 set dummy
"$ac_dir/$ac_word" "$@"
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
685 if test -z "$CC"; then
688 # Extract the first word of "cl", so it can be a program name with args.
689 set dummy cl
; ac_word
=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC
="$CC" # Let the user override the test.
698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
700 for ac_dir
in $ac_dummy; do
701 test -z "$ac_dir" && ac_dir
=.
702 if test -f $ac_dir/$ac_word; then
711 if test -n "$CC"; then
712 echo "$ac_t""$CC" 1>&6
714 echo "$ac_t""no" 1>&6
719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
723 echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
727 ac_cpp
='$CPP $CPPFLAGS'
728 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
729 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
730 cross_compiling
=$ac_cv_prog_cc_cross
732 cat > conftest.
$ac_ext << EOF
734 #line 735 "configure"
735 #include "confdefs.h"
739 if { (eval echo configure
:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
740 ac_cv_prog_cc_works
=yes
741 # If we can't run a trivial program, we are probably using a cross compiler.
742 if (.
/conftest
; exit) 2>/dev
/null
; then
743 ac_cv_prog_cc_cross
=no
745 ac_cv_prog_cc_cross
=yes
748 echo "configure: failed program was:" >&5
749 cat conftest.
$ac_ext >&5
750 ac_cv_prog_cc_works
=no
754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
755 ac_cpp
='$CPP $CPPFLAGS'
756 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
757 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
758 cross_compiling
=$ac_cv_prog_cc_cross
760 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
761 if test $ac_cv_prog_cc_works = no
; then
762 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
765 echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
766 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
767 cross_compiling
=$ac_cv_prog_cc_cross
769 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
770 echo "configure:771: checking whether we are using GNU C" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 cat > conftest.c
<<EOF
779 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
786 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
788 if test $ac_cv_prog_gcc = yes; then
794 ac_test_CFLAGS
="${CFLAGS+set}"
795 ac_save_CFLAGS
="$CFLAGS"
797 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
798 echo "configure:799: checking whether ${CC-cc} accepts -g" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 echo 'void f(){}' > conftest.c
803 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
813 if test "$ac_test_CFLAGS" = set; then
814 CFLAGS
="$ac_save_CFLAGS"
815 elif test $ac_cv_prog_cc_g = yes; then
816 if test "$GCC" = yes; then
822 if test "$GCC" = yes; then
829 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
830 echo "configure:831: checking how to run the C preprocessor" >&5
831 # On Suns, sometimes $CPP names a directory.
832 if test -n "$CPP" && test -d "$CPP"; then
835 if test -z "$CPP"; then
836 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 # This must be in double quotes, not single quotes, because CPP may get
840 # substituted into the Makefile and "${CC-cc}" will confuse make.
842 # On the NeXT, cc -E runs the code through the compiler's parser,
843 # not just through cpp.
844 cat > conftest.
$ac_ext <<EOF
845 #line 846 "configure"
846 #include "confdefs.h"
850 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
851 { (eval echo configure
:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
852 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
853 if test -z "$ac_err"; then
857 echo "configure: failed program was:" >&5
858 cat conftest.
$ac_ext >&5
860 CPP
="${CC-cc} -E -traditional-cpp"
861 cat > conftest.
$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
868 { (eval echo configure
:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
869 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
870 if test -z "$ac_err"; then
874 echo "configure: failed program was:" >&5
875 cat conftest.
$ac_ext >&5
877 CPP
="${CC-cc} -nologo -E"
878 cat > conftest.
$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
885 { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
887 if test -z "$ac_err"; then
891 echo "configure: failed program was:" >&5
892 cat conftest.
$ac_ext >&5
901 ac_cv_prog_CPP
="$CPP"
903 CPP
="$ac_cv_prog_CPP"
905 ac_cv_prog_CPP
="$CPP"
907 echo "$ac_t""$CPP" 1>&6
909 echo $ac_n "checking for AIX""... $ac_c" 1>&6
910 echo "configure:911: checking for AIX" >&5
911 cat > conftest.
$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
920 egrep "yes" >/dev
/null
2>&1; then
922 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
923 #define _ALL_SOURCE 1
928 echo "$ac_t""no" 1>&6
933 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
934 echo "configure:935: checking for POSIXized ISC" >&5
935 if test -d /etc
/conf
/kconfig.d
&&
936 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
938 echo "$ac_t""yes" 1>&6
939 ISC
=yes # If later tests want to check for ISC.
940 cat >> confdefs.h
<<\EOF
941 #define _POSIX_SOURCE 1
944 if test "$GCC" = yes; then
950 echo "$ac_t""no" 1>&6
957 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
958 echo "configure:959: checking for ${CC-cc} option to accept ANSI C" >&5
959 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 am_cv_prog_cc_stdc
=no
964 # Don't try gcc -ansi; that turns off useful extensions and
965 # breaks some systems' header files.
967 # Ultrix and OSF/1 -std1
968 # HP-UX 10.20 and later -Ae
969 # HP-UX older versions -Aa -D_HPUX_SOURCE
970 # SVR4 -Xc -D__EXTENSIONS__
971 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
973 CC
="$ac_save_CC $ac_arg"
974 cat > conftest.
$ac_ext <<EOF
975 #line 976 "configure"
976 #include "confdefs.h"
979 #include <sys/types.h>
980 #include <sys/stat.h>
981 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
982 struct buf { int x; };
983 FILE * (*rcsopen) (struct buf *, struct stat *, int);
984 static char *e (p, i)
990 static char *f (char * (*g) (char **, int), char **p, ...)
995 s = g (p, va_arg (v,int));
999 int test (int i, double x);
1000 struct s1 {int (*f) (int a);};
1001 struct s2 {int (*f) (double a);};
1002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1012 if { (eval echo configure
:1013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1014 am_cv_prog_cc_stdc
="$ac_arg"; break
1016 echo "configure: failed program was:" >&5
1017 cat conftest.
$ac_ext >&5
1025 if test -z "$am_cv_prog_cc_stdc"; then
1026 echo "$ac_t""none needed" 1>&6
1028 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1030 case "x$am_cv_prog_cc_stdc" in
1032 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1037 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1038 if test -f $ac_dir/install-sh
; then
1040 ac_install_sh
="$ac_aux_dir/install-sh -c"
1042 elif test -f $ac_dir/install.sh
; then
1044 ac_install_sh
="$ac_aux_dir/install.sh -c"
1048 if test -z "$ac_aux_dir"; then
1049 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1051 ac_config_guess
=$ac_aux_dir/config.guess
1052 ac_config_sub
=$ac_aux_dir/config.sub
1053 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1056 # Do some error checking and defaulting for the host and target type.
1058 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1061 # 1. You are not allowed to specify --host, --target, and nonopt at the
1063 # 2. Host defaults to nonopt.
1064 # 3. If nonopt is not specified, then host defaults to the current host,
1065 # as determined by config.guess.
1066 # 4. Target and build default to nonopt.
1067 # 5. If nonopt is not specified, then target and build default to host.
1069 # The aliases save the names the user supplied, while $host etc.
1070 # will get canonicalized.
1071 case $host---$target---$nonopt in
1072 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1073 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1077 # Make sure we can run config.sub.
1078 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1079 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1082 echo $ac_n "checking host system type""... $ac_c" 1>&6
1083 echo "configure:1084: checking host system type" >&5
1086 case "$host_alias" in
1090 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1091 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1093 *) host_alias
=$nonopt ;;
1097 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1098 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101 echo "$ac_t""$host" 1>&6
1103 echo $ac_n "checking target system type""... $ac_c" 1>&6
1104 echo "configure:1105: checking target system type" >&5
1106 target_alias
=$target
1107 case "$target_alias" in
1110 NONE
) target_alias
=$host_alias ;;
1111 *) target_alias
=$nonopt ;;
1115 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1116 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1117 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1118 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1119 echo "$ac_t""$target" 1>&6
1121 echo $ac_n "checking build system type""... $ac_c" 1>&6
1122 echo "configure:1123: checking build system type" >&5
1125 case "$build_alias" in
1128 NONE
) build_alias
=$host_alias ;;
1129 *) build_alias
=$nonopt ;;
1133 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1134 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1135 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1136 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1137 echo "$ac_t""$build" 1>&6
1139 test "$host_alias" != "$target_alias" &&
1140 test "$program_prefix$program_suffix$program_transform_name" = \
1142 program_prefix
=${target_alias}-
1145 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1146 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1147 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1148 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1149 # AC_PROG_RANLIB. This can be removed when we switch to # Autoconf
1151 if test $host != $build; then
1152 ac_tool_prefix
=${host_alias}-
1157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1158 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$RANLIB"; then
1165 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1167 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1169 for ac_dir
in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir
=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1179 RANLIB
="$ac_cv_prog_RANLIB"
1180 if test -n "$RANLIB"; then
1181 echo "$ac_t""$RANLIB" 1>&6
1183 echo "$ac_t""no" 1>&6
1187 if test -z "$ac_cv_prog_RANLIB"; then
1188 if test -n "$ac_tool_prefix"; then
1189 # Extract the first word of "ranlib", so it can be a program name with args.
1190 set dummy ranlib
; ac_word
=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$RANLIB"; then
1197 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1201 for ac_dir
in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir
=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_RANLIB
="ranlib"
1209 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1212 RANLIB
="$ac_cv_prog_RANLIB"
1213 if test -n "$RANLIB"; then
1214 echo "$ac_t""$RANLIB" 1>&6
1216 echo "$ac_t""no" 1>&6
1226 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether ${MAKE-make} sets \${MAKE}" >&5
1228 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1229 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 cat > conftestmake
<<\EOF
1234 @
echo 'ac_maketemp="${MAKE}"'
1236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1237 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1238 if test -n "$ac_maketemp"; then
1239 eval ac_cv_prog_make_
${ac_make}_set
=yes
1241 eval ac_cv_prog_make_
${ac_make}_set
=no
1245 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1249 echo "$ac_t""no" 1>&6
1250 SET_MAKE
="MAKE=${MAKE-make}"
1253 # Extract the first word of "ranlib", so it can be a program name with args.
1254 set dummy ranlib
; ac_word
=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test -n "$RANLIB"; then
1261 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1265 for ac_dir
in $ac_dummy; do
1266 test -z "$ac_dir" && ac_dir
=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_prog_RANLIB
="ranlib"
1273 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1276 RANLIB
="$ac_cv_prog_RANLIB"
1277 if test -n "$RANLIB"; then
1278 echo "$ac_t""$RANLIB" 1>&6
1280 echo "$ac_t""no" 1>&6
1283 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1284 echo "configure:1285: checking for ANSI C header files" >&5
1285 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1296 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1297 { (eval echo configure
:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1298 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1299 if test -z "$ac_err"; then
1301 ac_cv_header_stdc
=yes
1304 echo "configure: failed program was:" >&5
1305 cat conftest.
$ac_ext >&5
1307 ac_cv_header_stdc
=no
1311 if test $ac_cv_header_stdc = yes; then
1312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1313 cat > conftest.
$ac_ext <<EOF
1314 #line 1315 "configure"
1315 #include "confdefs.h"
1318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1319 egrep "memchr" >/dev
/null
2>&1; then
1323 ac_cv_header_stdc
=no
1329 if test $ac_cv_header_stdc = yes; then
1330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1331 cat > conftest.
$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1337 egrep "free" >/dev
/null
2>&1; then
1341 ac_cv_header_stdc
=no
1347 if test $ac_cv_header_stdc = yes; then
1348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1349 if test "$cross_compiling" = yes; then
1352 cat > conftest.
$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1356 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1357 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1359 int main () { int i; for (i = 0; i < 256; i++)
1360 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1364 if { (eval echo configure
:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1368 echo "configure: failed program was:" >&5
1369 cat conftest.
$ac_ext >&5
1371 ac_cv_header_stdc
=no
1379 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1380 if test $ac_cv_header_stdc = yes; then
1381 cat >> confdefs.h
<<\EOF
1382 #define STDC_HEADERS 1
1387 echo $ac_n "checking for working const""... $ac_c" 1>&6
1388 echo "configure:1389: checking for working const" >&5
1389 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 cat > conftest.
$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1398 /* Ultrix mips cc rejects this. */
1399 typedef int charset[2]; const charset x;
1400 /* SunOS 4.1.1 cc rejects this. */
1401 char const *const *ccp;
1403 /* NEC SVR4.0.2 mips cc rejects this. */
1404 struct point {int x, y;};
1405 static struct point const zero = {0,0};
1406 /* AIX XL C 1.02.0.0 rejects this.
1407 It does not let you subtract one const X* pointer from another in an arm
1408 of an if-expression whose if-part is not a constant expression */
1409 const char *g = "string";
1410 ccp = &g + (g ? g-g : 0);
1411 /* HPUX 7.0 cc rejects these. */
1414 ccp = (char const *const *) p;
1415 { /* SCO 3.2v4 cc rejects this. */
1417 char const *s = 0 ? (char *) 0 : (char const *) 0;
1421 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1423 const int *foo = &x[0];
1426 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1427 typedef const int *iptr;
1431 { /* AIX XL C 1.02.0.0 rejects this saying
1432 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1433 struct s { int j; const int *ap[3]; };
1434 struct s *b; b->j = 5;
1436 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1442 if { (eval echo configure
:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1446 echo "configure: failed program was:" >&5
1447 cat conftest.
$ac_ext >&5
1454 echo "$ac_t""$ac_cv_c_const" 1>&6
1455 if test $ac_cv_c_const = no
; then
1456 cat >> confdefs.h
<<\EOF
1462 echo $ac_n "checking for inline""... $ac_c" 1>&6
1463 echo "configure:1464: checking for inline" >&5
1464 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1468 for ac_kw
in inline __inline__ __inline
; do
1469 cat > conftest.
$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1477 if { (eval echo configure
:1478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1479 ac_cv_c_inline
=$ac_kw; break
1481 echo "configure: failed program was:" >&5
1482 cat conftest.
$ac_ext >&5
1489 echo "$ac_t""$ac_cv_c_inline" 1>&6
1490 case "$ac_cv_c_inline" in
1492 no
) cat >> confdefs.h
<<\EOF
1496 *) cat >> confdefs.h
<<EOF
1497 #define inline $ac_cv_c_inline
1502 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1503 echo "configure:1504: checking for off_t" >&5
1504 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 cat > conftest.
$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1510 #include <sys/types.h>
1516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1517 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1519 ac_cv_type_off_t
=yes
1527 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1528 if test $ac_cv_type_off_t = no
; then
1529 cat >> confdefs.h
<<\EOF
1535 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1536 echo "configure:1537: checking for size_t" >&5
1537 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat > conftest.
$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543 #include <sys/types.h>
1549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1550 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1552 ac_cv_type_size_t
=yes
1555 ac_cv_type_size_t
=no
1560 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1561 if test $ac_cv_type_size_t = no
; then
1562 cat >> confdefs.h
<<\EOF
1563 #define size_t unsigned
1568 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1569 # for constant arguments. Useless!
1570 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1571 echo "configure:1572: checking for working alloca.h" >&5
1572 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 cat > conftest.
$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1580 char *p = alloca(2 * sizeof(int));
1583 if { (eval echo configure
:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1585 ac_cv_header_alloca_h
=yes
1587 echo "configure: failed program was:" >&5
1588 cat conftest.
$ac_ext >&5
1590 ac_cv_header_alloca_h
=no
1595 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1596 if test $ac_cv_header_alloca_h = yes; then
1597 cat >> confdefs.h
<<\EOF
1598 #define HAVE_ALLOCA_H 1
1603 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1604 echo "configure:1605: checking for alloca" >&5
1605 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1613 # define alloca __builtin_alloca
1616 # include <malloc.h>
1617 # define alloca _alloca
1620 # include <alloca.h>
1625 # ifndef alloca /* predefined by HP cc +Olibcalls */
1634 char *p = (char *) alloca(1);
1637 if { (eval echo configure
:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1639 ac_cv_func_alloca_works
=yes
1641 echo "configure: failed program was:" >&5
1642 cat conftest.
$ac_ext >&5
1644 ac_cv_func_alloca_works
=no
1649 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1650 if test $ac_cv_func_alloca_works = yes; then
1651 cat >> confdefs.h
<<\EOF
1652 #define HAVE_ALLOCA 1
1657 if test $ac_cv_func_alloca_works = no
; then
1658 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1659 # that cause trouble. Some versions do not even contain alloca or
1660 # contain a buggy version. If you still want to use their alloca,
1661 # use ar to extract alloca.o from them instead of compiling alloca.c.
1662 ALLOCA
=alloca.
${ac_objext}
1663 cat >> confdefs.h
<<\EOF
1668 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether alloca needs Cray hooks" >&5
1670 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.
$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 #if defined(CRAY) && ! defined(CRAY2)
1683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1684 egrep "webecray" >/dev
/null
2>&1; then
1695 echo "$ac_t""$ac_cv_os_cray" 1>&6
1696 if test $ac_cv_os_cray = yes; then
1697 for ac_func
in _getb67 GETB67 getb67
; do
1698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1699 echo "configure:1700: checking for $ac_func" >&5
1700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 cat > conftest.
$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706 /* System header to define __stub macros and hopefully few prototypes,
1707 which can conflict with char $ac_func(); below. */
1709 /* Override any gcc2 internal prototype to avoid an error. */
1710 /* We use char because int might match the return type of a gcc2
1711 builtin and then its argument prototype would still apply. */
1716 /* The GNU C library defines this for functions which it implements
1717 to always fail with ENOSYS. Some functions are actually named
1718 something starting with __ and the normal name is an alias. */
1719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1727 if { (eval echo configure
:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1729 eval "ac_cv_func_$ac_func=yes"
1731 echo "configure: failed program was:" >&5
1732 cat conftest.
$ac_ext >&5
1734 eval "ac_cv_func_$ac_func=no"
1739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1740 echo "$ac_t""yes" 1>&6
1741 cat >> confdefs.h
<<EOF
1742 #define CRAY_STACKSEG_END $ac_func
1747 echo "$ac_t""no" 1>&6
1753 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1754 echo "configure:1755: checking stack direction for C alloca" >&5
1755 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 if test "$cross_compiling" = yes; then
1759 ac_cv_c_stack_direction
=0
1761 cat > conftest.
$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 find_stack_direction ()
1766 static char *addr = 0;
1771 return find_stack_direction ();
1774 return (&dummy > addr) ? 1 : -1;
1778 exit (find_stack_direction() < 0);
1781 if { (eval echo configure
:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1783 ac_cv_c_stack_direction
=1
1785 echo "configure: failed program was:" >&5
1786 cat conftest.
$ac_ext >&5
1788 ac_cv_c_stack_direction
=-1
1795 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1796 cat >> confdefs.h
<<EOF
1797 #define STACK_DIRECTION $ac_cv_c_stack_direction
1802 for ac_hdr
in unistd.h
1804 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_hdr" >&5
1807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.
$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1815 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1816 { (eval echo configure
:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1817 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1818 if test -z "$ac_err"; then
1820 eval "ac_cv_header_$ac_safe=yes"
1823 echo "configure: failed program was:" >&5
1824 cat conftest.
$ac_ext >&5
1826 eval "ac_cv_header_$ac_safe=no"
1830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1832 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1833 cat >> confdefs.h
<<EOF
1834 #define $ac_tr_hdr 1
1838 echo "$ac_t""no" 1>&6
1842 for ac_func
in getpagesize
1844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_func" >&5
1846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $ac_func(); below. */
1855 /* Override any gcc2 internal prototype to avoid an error. */
1856 /* We use char because int might match the return type of a gcc2
1857 builtin and then its argument prototype would still apply. */
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1873 if { (eval echo configure
:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1875 eval "ac_cv_func_$ac_func=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.
$ac_ext >&5
1880 eval "ac_cv_func_$ac_func=no"
1885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1888 cat >> confdefs.h
<<EOF
1889 #define $ac_tr_func 1
1893 echo "$ac_t""no" 1>&6
1897 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1898 echo "configure:1899: checking for working mmap" >&5
1899 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 if test "$cross_compiling" = yes; then
1903 ac_cv_func_mmap_fixed_mapped
=no
1905 cat > conftest.
$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1909 /* Thanks to Mike Haertel and Jim Avera for this test.
1910 Here is a matrix of mmap possibilities:
1911 mmap private not fixed
1912 mmap private fixed at somewhere currently unmapped
1913 mmap private fixed at somewhere already mapped
1914 mmap shared not fixed
1915 mmap shared fixed at somewhere currently unmapped
1916 mmap shared fixed at somewhere already mapped
1917 For private mappings, we should verify that changes cannot be read()
1918 back from the file, nor mmap's back from the file at a different
1919 address. (There have been systems where private was not correctly
1920 implemented like the infamous i386 svr4.0, and systems where the
1921 VM page cache was not coherent with the filesystem buffer cache
1922 like early versions of FreeBSD and possibly contemporary NetBSD.)
1923 For shared mappings, we should conversely verify that changes get
1924 propogated back to all the places they're supposed to be.
1926 Grep wants private fixed already mapped.
1927 The main things grep needs to know about mmap are:
1928 * does it exist and is it safe to write into the mmap'd area
1929 * how to use it (BSD variants) */
1930 #include <sys/types.h>
1932 #include <sys/mman.h>
1934 /* This mess was copied from the GNU getpagesize.h. */
1935 #ifndef HAVE_GETPAGESIZE
1936 # ifdef HAVE_UNISTD_H
1937 # include <unistd.h>
1940 /* Assume that all systems that can run configure have sys/param.h. */
1941 # ifndef HAVE_SYS_PARAM_H
1942 # define HAVE_SYS_PARAM_H 1
1945 # ifdef _SC_PAGESIZE
1946 # define getpagesize() sysconf(_SC_PAGESIZE)
1947 # else /* no _SC_PAGESIZE */
1948 # ifdef HAVE_SYS_PARAM_H
1949 # include <sys/param.h>
1950 # ifdef EXEC_PAGESIZE
1951 # define getpagesize() EXEC_PAGESIZE
1952 # else /* no EXEC_PAGESIZE */
1954 # define getpagesize() NBPG * CLSIZE
1957 # endif /* no CLSIZE */
1958 # else /* no NBPG */
1960 # define getpagesize() NBPC
1961 # else /* no NBPC */
1963 # define getpagesize() PAGESIZE
1964 # endif /* PAGESIZE */
1965 # endif /* no NBPC */
1966 # endif /* no NBPG */
1967 # endif /* no EXEC_PAGESIZE */
1968 # else /* no HAVE_SYS_PARAM_H */
1969 # define getpagesize() 8192 /* punt totally */
1970 # endif /* no HAVE_SYS_PARAM_H */
1971 # endif /* no _SC_PAGESIZE */
1973 #endif /* no HAVE_GETPAGESIZE */
1976 extern "C" { void *malloc(unsigned); }
1984 char *data, *data2, *data3;
1988 pagesize = getpagesize();
1991 * First, make a file with some known garbage in it.
1993 data = malloc(pagesize);
1996 for (i = 0; i < pagesize; ++i)
1997 *(data + i) = rand();
1999 fd = creat("conftestmmap", 0600);
2002 if (write(fd, data, pagesize) != pagesize)
2007 * Next, try to mmap the file at a fixed address which
2008 * already has something else allocated at it. If we can,
2009 * also make sure that we see the same garbage.
2011 fd = open("conftestmmap", O_RDWR);
2014 data2 = malloc(2 * pagesize);
2017 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2018 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2019 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2021 for (i = 0; i < pagesize; ++i)
2022 if (*(data + i) != *(data2 + i))
2026 * Finally, make sure that changes to the mapped area
2027 * do not percolate back to the file as seen by read().
2028 * (This is a bug on some variants of i386 svr4.0.)
2030 for (i = 0; i < pagesize; ++i)
2031 *(data2 + i) = *(data2 + i) + 1;
2032 data3 = malloc(pagesize);
2035 if (read(fd, data3, pagesize) != pagesize)
2037 for (i = 0; i < pagesize; ++i)
2038 if (*(data + i) != *(data3 + i))
2041 unlink("conftestmmap");
2046 if { (eval echo configure
:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2048 ac_cv_func_mmap_fixed_mapped
=yes
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2053 ac_cv_func_mmap_fixed_mapped
=no
2060 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2062 cat >> confdefs.h
<<\EOF
2069 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2070 unistd.h values.h sys
/param.h
2072 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_hdr" >&5
2075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2083 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2084 { (eval echo configure
:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2085 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2086 if test -z "$ac_err"; then
2088 eval "ac_cv_header_$ac_safe=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 eval "ac_cv_header_$ac_safe=no"
2098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2101 cat >> confdefs.h
<<EOF
2102 #define $ac_tr_hdr 1
2106 echo "$ac_t""no" 1>&6
2110 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2111 __argz_count __argz_stringify __argz_next
2113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2114 echo "configure:2115: checking for $ac_func" >&5
2115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.
$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $ac_func(); below. */
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2142 if { (eval echo configure
:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2144 eval "ac_cv_func_$ac_func=yes"
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 eval "ac_cv_func_$ac_func=no"
2154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2157 cat >> confdefs.h
<<EOF
2158 #define $ac_tr_func 1
2162 echo "$ac_t""no" 1>&6
2167 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2168 for ac_func
in stpcpy
2170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_func" >&5
2172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 cat > conftest.
$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 /* System header to define __stub macros and hopefully few prototypes,
2179 which can conflict with char $ac_func(); below. */
2181 /* Override any gcc2 internal prototype to avoid an error. */
2182 /* We use char because int might match the return type of a gcc2
2183 builtin and then its argument prototype would still apply. */
2188 /* The GNU C library defines this for functions which it implements
2189 to always fail with ENOSYS. Some functions are actually named
2190 something starting with __ and the normal name is an alias. */
2191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2201 eval "ac_cv_func_$ac_func=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_func_$ac_func=no"
2211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2214 cat >> confdefs.h
<<EOF
2215 #define $ac_tr_func 1
2219 echo "$ac_t""no" 1>&6
2224 if test "${ac_cv_func_stpcpy}" = "yes"; then
2225 cat >> confdefs.h
<<\EOF
2226 #define HAVE_STPCPY 1
2231 if test $ac_cv_header_locale_h = yes; then
2232 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2233 echo "configure:2234: checking for LC_MESSAGES" >&5
2234 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2245 if { (eval echo configure
:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2247 am_cv_val_LC_MESSAGES
=yes
2249 echo "configure: failed program was:" >&5
2250 cat conftest.
$ac_ext >&5
2252 am_cv_val_LC_MESSAGES
=no
2257 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2258 if test $am_cv_val_LC_MESSAGES = yes; then
2259 cat >> confdefs.h
<<\EOF
2260 #define HAVE_LC_MESSAGES 1
2265 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2266 echo "configure:2267: checking whether NLS is requested" >&5
2267 # Check whether --enable-nls or --disable-nls was given.
2268 if test "${enable_nls+set}" = set; then
2269 enableval
="$enable_nls"
2275 echo "$ac_t""$USE_NLS" 1>&6
2278 USE_INCLUDED_LIBINTL
=no
2280 if test "$USE_NLS" = "yes"; then
2281 cat >> confdefs.h
<<\EOF
2282 #define ENABLE_NLS 1
2285 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2286 echo "configure:2287: checking whether included gettext is requested" >&5
2287 # Check whether --with-included-gettext or --without-included-gettext was given.
2288 if test "${with_included_gettext+set}" = set; then
2289 withval
="$with_included_gettext"
2290 nls_cv_force_use_gnu_gettext
=$withval
2292 nls_cv_force_use_gnu_gettext
=no
2295 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2297 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2298 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2300 nls_cv_header_libgt
=
2303 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2304 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2305 echo "configure:2306: checking for libintl.h" >&5
2306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 cat > conftest.
$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 #include <libintl.h>
2314 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure
:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2319 eval "ac_cv_header_$ac_safe=yes"
2322 echo "configure: failed program was:" >&5
2323 cat conftest.
$ac_ext >&5
2325 eval "ac_cv_header_$ac_safe=no"
2329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2330 echo "$ac_t""yes" 1>&6
2331 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2332 echo "configure:2333: checking for gettext in libc" >&5
2333 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 #include <libintl.h>
2341 return (int) gettext ("")
2344 if { (eval echo configure
:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2346 gt_cv_func_gettext_libc
=yes
2348 echo "configure: failed program was:" >&5
2349 cat conftest.
$ac_ext >&5
2351 gt_cv_func_gettext_libc
=no
2356 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2358 if test "$gt_cv_func_gettext_libc" != "yes"; then
2359 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2360 echo "configure:2361: checking for bindtextdomain in -lintl" >&5
2361 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_save_LIBS
="$LIBS"
2367 cat > conftest.
$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2370 /* Override any gcc2 internal prototype to avoid an error. */
2371 /* We use char because int might match the return type of a gcc2
2372 builtin and then its argument prototype would still apply. */
2373 char bindtextdomain();
2379 if { (eval echo configure
:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2381 eval "ac_cv_lib_$ac_lib_var=yes"
2383 echo "configure: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2386 eval "ac_cv_lib_$ac_lib_var=no"
2389 LIBS
="$ac_save_LIBS"
2392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2395 echo "configure:2396: checking for gettext in libintl" >&5
2396 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2404 return (int) gettext ("")
2407 if { (eval echo configure
:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2409 gt_cv_func_gettext_libintl
=yes
2411 echo "configure: failed program was:" >&5
2412 cat conftest.
$ac_ext >&5
2414 gt_cv_func_gettext_libintl
=no
2419 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2421 echo "$ac_t""no" 1>&6
2426 if test "$gt_cv_func_gettext_libc" = "yes" \
2427 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2428 cat >> confdefs.h
<<\EOF
2429 #define HAVE_GETTEXT 1
2432 # Extract the first word of "msgfmt", so it can be a program name with args.
2433 set dummy msgfmt
; ac_word
=$2
2434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_word" >&5
2436 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2441 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2444 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2445 for ac_dir
in $PATH; do
2446 test -z "$ac_dir" && ac_dir
=.
2447 if test -f $ac_dir/$ac_word; then
2448 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2449 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2455 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2459 MSGFMT
="$ac_cv_path_MSGFMT"
2460 if test -n "$MSGFMT"; then
2461 echo "$ac_t""$MSGFMT" 1>&6
2463 echo "$ac_t""no" 1>&6
2465 if test "$MSGFMT" != "no"; then
2466 for ac_func
in dcgettext
2468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_func" >&5
2470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.
$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 /* System header to define __stub macros and hopefully few prototypes,
2477 which can conflict with char $ac_func(); below. */
2479 /* Override any gcc2 internal prototype to avoid an error. */
2480 /* We use char because int might match the return type of a gcc2
2481 builtin and then its argument prototype would still apply. */
2486 /* The GNU C library defines this for functions which it implements
2487 to always fail with ENOSYS. Some functions are actually named
2488 something starting with __ and the normal name is an alias. */
2489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2497 if { (eval echo configure
:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2499 eval "ac_cv_func_$ac_func=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.
$ac_ext >&5
2504 eval "ac_cv_func_$ac_func=no"
2509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2510 echo "$ac_t""yes" 1>&6
2511 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2512 cat >> confdefs.h
<<EOF
2513 #define $ac_tr_func 1
2517 echo "$ac_t""no" 1>&6
2521 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2522 set dummy gmsgfmt
; ac_word
=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2530 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2533 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2536 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2538 for ac_dir
in $ac_dummy; do
2539 test -z "$ac_dir" && ac_dir
=.
2540 if test -f $ac_dir/$ac_word; then
2541 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2546 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2550 GMSGFMT
="$ac_cv_path_GMSGFMT"
2551 if test -n "$GMSGFMT"; then
2552 echo "$ac_t""$GMSGFMT" 1>&6
2554 echo "$ac_t""no" 1>&6
2557 # Extract the first word of "xgettext", so it can be a program name with args.
2558 set dummy xgettext
; ac_word
=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5
2561 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2566 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2569 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2570 for ac_dir
in $PATH; do
2571 test -z "$ac_dir" && ac_dir
=.
2572 if test -f $ac_dir/$ac_word; then
2573 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2574 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2580 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2584 XGETTEXT
="$ac_cv_path_XGETTEXT"
2585 if test -n "$XGETTEXT"; then
2586 echo "$ac_t""$XGETTEXT" 1>&6
2588 echo "$ac_t""no" 1>&6
2591 cat > conftest.
$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2596 extern int _nl_msg_cat_cntr;
2597 return _nl_msg_cat_cntr
2600 if { (eval echo configure
:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2605 echo "configure: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2617 echo "$ac_t""no" 1>&6
2622 if test "$CATOBJEXT" = "NONE"; then
2623 nls_cv_use_gnu_gettext
=yes
2627 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2628 INTLOBJS
="\$(GETTOBJS)"
2629 # Extract the first word of "msgfmt", so it can be a program name with args.
2630 set dummy msgfmt
; ac_word
=$2
2631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2632 echo "configure:2633: checking for $ac_word" >&5
2633 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2638 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2642 for ac_dir
in $PATH; do
2643 test -z "$ac_dir" && ac_dir
=.
2644 if test -f $ac_dir/$ac_word; then
2645 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2646 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2652 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2656 MSGFMT
="$ac_cv_path_MSGFMT"
2657 if test -n "$MSGFMT"; then
2658 echo "$ac_t""$MSGFMT" 1>&6
2660 echo "$ac_t""no" 1>&6
2663 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2664 set dummy gmsgfmt
; ac_word
=$2
2665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2666 echo "configure:2667: checking for $ac_word" >&5
2667 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2672 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2675 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2678 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2680 for ac_dir
in $ac_dummy; do
2681 test -z "$ac_dir" && ac_dir
=.
2682 if test -f $ac_dir/$ac_word; then
2683 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2688 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2692 GMSGFMT
="$ac_cv_path_GMSGFMT"
2693 if test -n "$GMSGFMT"; then
2694 echo "$ac_t""$GMSGFMT" 1>&6
2696 echo "$ac_t""no" 1>&6
2699 # Extract the first word of "xgettext", so it can be a program name with args.
2700 set dummy xgettext
; ac_word
=$2
2701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_word" >&5
2703 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2708 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2711 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2712 for ac_dir
in $PATH; do
2713 test -z "$ac_dir" && ac_dir
=.
2714 if test -f $ac_dir/$ac_word; then
2715 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2716 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2722 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2726 XGETTEXT
="$ac_cv_path_XGETTEXT"
2727 if test -n "$XGETTEXT"; then
2728 echo "$ac_t""$XGETTEXT" 1>&6
2730 echo "$ac_t""no" 1>&6
2734 USE_INCLUDED_LIBINTL
=yes
2738 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2740 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2741 nls_cv_header_intl
=libintl.h
2742 nls_cv_header_libgt
=libgettext.h
2745 if test "$XGETTEXT" != ":"; then
2746 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2749 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2754 # We need to process the po/ directory.
2758 nls_cv_header_intl
=libintl.h
2759 nls_cv_header_libgt
=libgettext.h
2762 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2763 # because some of the sources are only built for this goal.
2764 if test "$PACKAGE" = gettext; then
2766 USE_INCLUDED_LIBINTL
=yes
2769 for lang
in $ALL_LINGUAS; do
2770 GMOFILES
="$GMOFILES $lang.gmo"
2771 POFILES
="$POFILES $lang.po"
2787 if test "x$CATOBJEXT" != "x"; then
2788 if test "x$ALL_LINGUAS" = "x"; then
2791 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2792 echo "configure:2793: checking for catalogs to be installed" >&5
2794 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2795 case "$ALL_LINGUAS" in
2796 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2799 LINGUAS
=$NEW_LINGUAS
2800 echo "$ac_t""$LINGUAS" 1>&6
2803 if test -n "$LINGUAS"; then
2804 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2808 if test $ac_cv_header_locale_h = yes; then
2809 INCLUDE_LOCALE_H
="#include <locale.h>"
2812 /* The system does not provide the header <locale.h>. Take care yourself. */"
2816 if test -f $srcdir/po2tbl.
sed.
in; then
2817 if test "$CATOBJEXT" = ".cat"; then
2818 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2819 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2820 echo "configure:2821: checking for linux/version.h" >&5
2821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.
$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #include <linux/version.h>
2829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure
:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832 if test -z "$ac_err"; then
2834 eval "ac_cv_header_$ac_safe=yes"
2837 echo "configure: failed program was:" >&5
2838 cat conftest.
$ac_ext >&5
2840 eval "ac_cv_header_$ac_safe=no"
2844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2848 echo "$ac_t""no" 1>&6
2853 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2855 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2856 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2859 if test "$PACKAGE" = "gettext"; then
2869 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2875 if test -f $srcdir/po
/POTFILES.
in; then
2876 test -d po || mkdir po
2877 if test "x$srcdir" != "x."; then
2878 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2879 posrcprefix
="$srcdir/"
2881 posrcprefix
="../$srcdir/"
2887 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2888 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2891 cat >> confdefs.h
<<\EOF
2892 #define PACKAGE "gdb"
2909 subdirs
="doc testsuite"
2913 .
$srcdir/configure.
host
2915 .
$srcdir/configure.tgt
2917 # Fetch the default architecture and default target vector from BFD.
2918 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2920 # We only want the first architecture, so strip off the others if
2921 # there is more than one.
2922 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2924 if test "x$targ_archs" != x
; then
2925 cat >> confdefs.h
<<EOF
2926 #define DEFAULT_BFD_ARCH $targ_archs
2930 if test "x$targ_defvec" != x
; then
2931 cat >> confdefs.h
<<EOF
2932 #define DEFAULT_BFD_VEC $targ_defvec
2937 if test "$program_transform_name" = s
,x
,x
,; then
2938 program_transform_name
=
2940 # Double any \ or $. echo might interpret backslashes.
2941 cat <<\EOF_SED
> conftestsed
2942 s
,\\,\\\\,g
; s
,\$
,$$
,g
2944 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2947 test "$program_prefix" != NONE
&&
2948 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2949 # Use a double $ so make ignores it.
2950 test "$program_suffix" != NONE
&&
2951 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2953 # sed with no file args requires a program.
2954 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2957 # The CLI cannot be disabled yet, but may be in the future.
2960 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2961 if test "${enable_gdbcli+set}" = set; then
2962 enableval
="$enable_gdbcli"
2967 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2969 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
2975 if test x
"$enable_gdbcli" = xyes
; then
2976 if test -d $srcdir/cli
; then
2977 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
2978 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
2979 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
2980 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
2981 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
2982 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
2983 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
2984 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
2985 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
2990 # Check whether --enable-gdbmi or --disable-gdbmi was given.
2991 if test "${enable_gdbmi+set}" = set; then
2992 enableval
="$enable_gdbmi"
2997 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3003 if test x
"$enable_gdbmi" = xyes
; then
3004 if test -d $srcdir/mi
; then
3005 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3006 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3007 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3008 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3009 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3010 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3011 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3012 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3013 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3018 # Check whether --enable-tui or --disable-tui was given.
3019 if test "${enable_tui+set}" = set; then
3020 enableval
="$enable_tui"
3025 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3029 if test x
"$enable_tui" = xyes
; then
3030 if test -d $srcdir/tui
; then
3031 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3032 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3033 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3034 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3035 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3036 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3037 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3038 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3039 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3044 # --------------------- #
3045 # Checks for programs. #
3046 # --------------------- #
3048 for ac_prog
in mawk gawk nawk
awk
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy
$ac_prog; ac_word
=$2
3052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_word" >&5
3054 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 if test -n "$AWK"; then
3058 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3062 for ac_dir
in $ac_dummy; do
3063 test -z "$ac_dir" && ac_dir
=.
3064 if test -f $ac_dir/$ac_word; then
3065 ac_cv_prog_AWK
="$ac_prog"
3072 AWK
="$ac_cv_prog_AWK"
3073 if test -n "$AWK"; then
3074 echo "$ac_t""$AWK" 1>&6
3076 echo "$ac_t""no" 1>&6
3079 test -n "$AWK" && break
3082 # Find a good install program. We prefer a C program (faster),
3083 # so one script is as good as another. But avoid the broken or
3084 # incompatible versions:
3085 # SysV /etc/install, /usr/sbin/install
3086 # SunOS /usr/etc/install
3087 # IRIX /sbin/install
3089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3092 # ./install, which can be erroneously created by make from ./install.sh.
3093 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3094 echo "configure:3095: checking for a BSD compatible install" >&5
3095 if test -z "$INSTALL"; then
3096 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3100 for ac_dir
in $PATH; do
3101 # Account for people who put trailing slashes in PATH elements.
3103 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3105 # OSF1 and SCO ODT 3.0 have their own names for install.
3106 # Don't use installbsd from OSF since it installs stuff as root
3108 for ac_prog
in ginstall scoinst
install; do
3109 if test -f $ac_dir/$ac_prog; then
3110 if test $ac_prog = install &&
3111 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3112 # AIX install. It has an incompatible calling convention.
3115 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3126 if test "${ac_cv_path_install+set}" = set; then
3127 INSTALL
="$ac_cv_path_install"
3129 # As a last resort, use the slow shell script. We don't cache a
3130 # path for INSTALL within a source directory, because that will
3131 # break other packages using the cache if that directory is
3132 # removed, or if the path is relative.
3133 INSTALL
="$ac_install_sh"
3136 echo "$ac_t""$INSTALL" 1>&6
3138 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3139 # It thinks the first close brace ends the variable substitution.
3140 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3142 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3144 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3146 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3147 echo "configure:3148: checking whether ln -s works" >&5
3148 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3152 if ln -s X conftestdata
2>/dev
/null
3155 ac_cv_prog_LN_S
="ln -s"
3160 LN_S
="$ac_cv_prog_LN_S"
3161 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3162 echo "$ac_t""yes" 1>&6
3164 echo "$ac_t""no" 1>&6
3167 # Extract the first word of "ranlib", so it can be a program name with args.
3168 set dummy ranlib
; ac_word
=$2
3169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_word" >&5
3171 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 if test -n "$RANLIB"; then
3175 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3177 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3179 for ac_dir
in $ac_dummy; do
3180 test -z "$ac_dir" && ac_dir
=.
3181 if test -f $ac_dir/$ac_word; then
3182 ac_cv_prog_RANLIB
="ranlib"
3187 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3190 RANLIB
="$ac_cv_prog_RANLIB"
3191 if test -n "$RANLIB"; then
3192 echo "$ac_t""$RANLIB" 1>&6
3194 echo "$ac_t""no" 1>&6
3197 for ac_prog
in 'bison -y' byacc
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy
$ac_prog; ac_word
=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3203 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 if test -n "$YACC"; then
3207 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3209 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3211 for ac_dir
in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir
=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_prog_YACC
="$ac_prog"
3221 YACC
="$ac_cv_prog_YACC"
3222 if test -n "$YACC"; then
3223 echo "$ac_t""$YACC" 1>&6
3225 echo "$ac_t""no" 1>&6
3228 test -n "$YACC" && break
3230 test -n "$YACC" || YACC
="yacc"
3233 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3234 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_word" >&5
3237 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 if test -n "$AR"; then
3241 ac_cv_prog_AR
="$AR" # Let the user override the test.
3243 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3245 for ac_dir
in $ac_dummy; do
3246 test -z "$ac_dir" && ac_dir
=.
3247 if test -f $ac_dir/$ac_word; then
3248 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3253 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3257 if test -n "$AR"; then
3258 echo "$ac_t""$AR" 1>&6
3260 echo "$ac_t""no" 1>&6
3265 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3266 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3268 echo "configure:3269: checking for $ac_word" >&5
3269 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 if test -n "$DLLTOOL"; then
3273 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3275 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3277 for ac_dir
in $ac_dummy; do
3278 test -z "$ac_dir" && ac_dir
=.
3279 if test -f $ac_dir/$ac_word; then
3280 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3285 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3288 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3289 if test -n "$DLLTOOL"; then
3290 echo "$ac_t""$DLLTOOL" 1>&6
3292 echo "$ac_t""no" 1>&6
3297 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3298 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_word" >&5
3301 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 if test -n "$WINDRES"; then
3305 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3307 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3309 for ac_dir
in $ac_dummy; do
3310 test -z "$ac_dir" && ac_dir
=.
3311 if test -f $ac_dir/$ac_word; then
3312 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3317 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3320 WINDRES
="$ac_cv_prog_WINDRES"
3321 if test -n "$WINDRES"; then
3322 echo "$ac_t""$WINDRES" 1>&6
3324 echo "$ac_t""no" 1>&6
3330 # Needed for GNU/Hurd.
3331 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3332 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3334 echo "configure:3335: checking for $ac_word" >&5
3335 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 if test -n "$MIG"; then
3339 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3341 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3343 for ac_dir
in $ac_dummy; do
3344 test -z "$ac_dir" && ac_dir
=.
3345 if test -f $ac_dir/$ac_word; then
3346 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3351 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3354 MIG
="$ac_cv_prog_MIG"
3355 if test -n "$MIG"; then
3356 echo "$ac_t""$MIG" 1>&6
3358 echo "$ac_t""no" 1>&6
3364 # ---------------------- #
3365 # Checks for libraries. #
3366 # ---------------------- #
3368 # We might need to link with -lm; most simulators need it.
3369 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3370 echo "configure:3371: checking for main in -lm" >&5
3371 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 ac_save_LIBS
="$LIBS"
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3385 if { (eval echo configure
:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3387 eval "ac_cv_lib_$ac_lib_var=yes"
3389 echo "configure: failed program was:" >&5
3390 cat conftest.
$ac_ext >&5
3392 eval "ac_cv_lib_$ac_lib_var=no"
3395 LIBS
="$ac_save_LIBS"
3398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3402 cat >> confdefs.h
<<EOF
3403 #define $ac_tr_lib 1
3409 echo "$ac_t""no" 1>&6
3413 # We need to link with -lw to get `wctype' on Solaris before Solaris
3414 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3415 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3416 # is known to have this problem). Therefore we avoid libw if we can.
3417 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3418 echo "configure:3419: checking for wctype" >&5
3419 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 cat > conftest.
$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 /* System header to define __stub macros and hopefully few prototypes,
3426 which can conflict with char wctype(); below. */
3428 /* Override any gcc2 internal prototype to avoid an error. */
3429 /* We use char because int might match the return type of a gcc2
3430 builtin and then its argument prototype would still apply. */
3435 /* The GNU C library defines this for functions which it implements
3436 to always fail with ENOSYS. Some functions are actually named
3437 something starting with __ and the normal name is an alias. */
3438 #if defined (__stub_wctype) || defined (__stub___wctype)
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_func_wctype=yes"
3450 echo "configure: failed program was:" >&5
3451 cat conftest.
$ac_ext >&5
3453 eval "ac_cv_func_wctype=no"
3458 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3459 echo "$ac_t""yes" 1>&6
3462 echo "$ac_t""no" 1>&6
3463 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3464 echo "configure:3465: checking for wctype in -lw" >&5
3465 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 ac_save_LIBS
="$LIBS"
3471 cat > conftest.
$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3483 if { (eval echo configure
:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3485 eval "ac_cv_lib_$ac_lib_var=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.
$ac_ext >&5
3490 eval "ac_cv_lib_$ac_lib_var=no"
3493 LIBS
="$ac_save_LIBS"
3496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3500 cat >> confdefs.h
<<EOF
3501 #define $ac_tr_lib 1
3507 echo "$ac_t""no" 1>&6
3513 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3515 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3516 echo "configure:3517: checking for library containing socketpair" >&5
3517 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 ac_func_search_save_LIBS
="$LIBS"
3521 ac_cv_search_socketpair
="no"
3522 cat > conftest.
$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3534 if { (eval echo configure
:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3536 ac_cv_search_socketpair
="none required"
3538 echo "configure: failed program was:" >&5
3539 cat conftest.
$ac_ext >&5
3542 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3543 LIBS
="-l$i $ac_func_search_save_LIBS"
3544 cat > conftest.
$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 /* Override any gcc2 internal prototype to avoid an error. */
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3556 if { (eval echo configure
:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3558 ac_cv_search_socketpair
="-l$i"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.
$ac_ext >&5
3566 LIBS
="$ac_func_search_save_LIBS"
3569 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3570 if test "$ac_cv_search_socketpair" != "no"; then
3571 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3577 # Since GDB uses Readline, we need termcap functionality, so we need
3578 # to find a library that provides that. When GDB is configured with
3579 # --enable-tui, we need full curses functionality.
3581 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3582 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3583 # Makefile fragments. That's why we need to have `Hcurses' before
3584 # `curses'. I don't see why we should use HP curses if a more
3585 # standard curses is available, except that according to HP's
3586 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3587 # HP-UX 10.10 and 10.20.
3589 if test "$need_curses" = yes; then
3591 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3592 echo "configure:3593: checking for library containing initscr" >&5
3593 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 ac_func_search_save_LIBS
="$LIBS"
3597 ac_cv_search_initscr
="no"
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3610 if { (eval echo configure
:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3612 ac_cv_search_initscr
="none required"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3618 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
3619 LIBS
="-l$i $ac_func_search_save_LIBS"
3620 cat > conftest.
$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3632 if { (eval echo configure
:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3634 ac_cv_search_initscr
="-l$i"
3637 echo "configure: failed program was:" >&5
3638 cat conftest.
$ac_ext >&5
3642 LIBS
="$ac_func_search_save_LIBS"
3645 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3646 if test "$ac_cv_search_initscr" != "no"; then
3647 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
3650 { echo "configure: error: no curses library found" 1>&2; exit 1; }
3656 if test -d $srcdir/libtermcap
; then
3657 LIBS
="../libtermcap/libtermcap.a $LIBS"
3658 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
3661 # ??? Is this really true?
3662 ac_cv_search_tgetent
="none required"
3665 # Readline prefers curses over termcap on AIX.
3668 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3669 echo "configure:3670: checking for library containing tgetent" >&5
3670 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 ac_func_search_save_LIBS
="$LIBS"
3674 ac_cv_search_tgetent
="no"
3675 cat > conftest.
$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 /* Override any gcc2 internal prototype to avoid an error. */
3679 /* We use char because int might match the return type of a gcc2
3680 builtin and then its argument prototype would still apply. */
3687 if { (eval echo configure
:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3689 ac_cv_search_tgetent
="none required"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.
$ac_ext >&5
3695 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
3696 LIBS
="-l$i $ac_func_search_save_LIBS"
3697 cat > conftest.
$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3709 if { (eval echo configure
:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3711 ac_cv_search_tgetent
="-l$i"
3714 echo "configure: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3719 LIBS
="$ac_func_search_save_LIBS"
3722 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3723 if test "$ac_cv_search_tgetent" != "no"; then
3724 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3732 # Note: We used to check for libtermlib and libterminfo too, but
3733 # Readline doesn't, so I think we're safe with leaving them out.
3735 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3736 echo "configure:3737: checking for library containing tgetent" >&5
3737 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 ac_func_search_save_LIBS
="$LIBS"
3741 ac_cv_search_tgetent
="no"
3742 cat > conftest.
$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* Override any gcc2 internal prototype to avoid an error. */
3746 /* We use char because int might match the return type of a gcc2
3747 builtin and then its argument prototype would still apply. */
3754 if { (eval echo configure
:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3756 ac_cv_search_tgetent
="none required"
3758 echo "configure: failed program was:" >&5
3759 cat conftest.
$ac_ext >&5
3762 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
3763 LIBS
="-l$i $ac_func_search_save_LIBS"
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 /* Override any gcc2 internal prototype to avoid an error. */
3768 /* We use char because int might match the return type of a gcc2
3769 builtin and then its argument prototype would still apply. */
3776 if { (eval echo configure
:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3778 ac_cv_search_tgetent
="-l$i"
3781 echo "configure: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3786 LIBS
="$ac_func_search_save_LIBS"
3789 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3790 if test "$ac_cv_search_tgetent" != "no"; then
3791 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3797 if test "$ac_cv_search_tgetent" = no
; then
3798 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
3801 # ------------------------- #
3802 # Checks for header files. #
3803 # ------------------------- #
3806 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3808 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3809 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3810 echo "configure:3811: checking for $ac_hdr that defines DIR" >&5
3811 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.
$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 #include <sys/types.h>
3823 if { (eval echo configure
:3824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3825 eval "ac_cv_header_dirent_$ac_safe=yes"
3827 echo "configure: failed program was:" >&5
3828 cat conftest.
$ac_ext >&5
3830 eval "ac_cv_header_dirent_$ac_safe=no"
3834 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3837 cat >> confdefs.h
<<EOF
3838 #define $ac_tr_hdr 1
3840 ac_header_dirent
=$ac_hdr; break
3842 echo "$ac_t""no" 1>&6
3845 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3846 if test $ac_header_dirent = dirent.h
; then
3847 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3848 echo "configure:3849: checking for opendir in -ldir" >&5
3849 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 ac_save_LIBS
="$LIBS"
3855 cat > conftest.
$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3867 if { (eval echo configure
:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3869 eval "ac_cv_lib_$ac_lib_var=yes"
3871 echo "configure: failed program was:" >&5
3872 cat conftest.
$ac_ext >&5
3874 eval "ac_cv_lib_$ac_lib_var=no"
3877 LIBS
="$ac_save_LIBS"
3880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3881 echo "$ac_t""yes" 1>&6
3884 echo "$ac_t""no" 1>&6
3888 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3889 echo "configure:3890: checking for opendir in -lx" >&5
3890 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 ac_save_LIBS
="$LIBS"
3896 cat > conftest.
$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3908 if { (eval echo configure
:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3910 eval "ac_cv_lib_$ac_lib_var=yes"
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 eval "ac_cv_lib_$ac_lib_var=no"
3918 LIBS
="$ac_save_LIBS"
3921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3925 echo "$ac_t""no" 1>&6
3930 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3931 echo "configure:3932: checking whether stat file-mode macros are broken" >&5
3932 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 cat > conftest.
$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 #include <sys/types.h>
3939 #include <sys/stat.h>
3941 #if defined(S_ISBLK) && defined(S_IFDIR)
3942 # if S_ISBLK (S_IFDIR)
3947 #if defined(S_ISBLK) && defined(S_IFCHR)
3948 # if S_ISBLK (S_IFCHR)
3953 #if defined(S_ISLNK) && defined(S_IFREG)
3954 # if S_ISLNK (S_IFREG)
3959 #if defined(S_ISSOCK) && defined(S_IFREG)
3960 # if S_ISSOCK (S_IFREG)
3966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3967 egrep "You lose" >/dev
/null
2>&1; then
3969 ac_cv_header_stat_broken
=yes
3972 ac_cv_header_stat_broken
=no
3978 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3979 if test $ac_cv_header_stat_broken = yes; then
3980 cat >> confdefs.h
<<\EOF
3981 #define STAT_MACROS_BROKEN 1
3986 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3987 echo "configure:3988: checking for ANSI C header files" >&5
3988 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3991 cat > conftest.
$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3999 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4000 { (eval echo configure
:4001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4001 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4002 if test -z "$ac_err"; then
4004 ac_cv_header_stdc
=yes
4007 echo "configure: failed program was:" >&5
4008 cat conftest.
$ac_ext >&5
4010 ac_cv_header_stdc
=no
4014 if test $ac_cv_header_stdc = yes; then
4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4016 cat > conftest.
$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 egrep "memchr" >/dev
/null
2>&1; then
4026 ac_cv_header_stdc
=no
4032 if test $ac_cv_header_stdc = yes; then
4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034 cat > conftest.
$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 egrep "free" >/dev
/null
2>&1; then
4044 ac_cv_header_stdc
=no
4050 if test $ac_cv_header_stdc = yes; then
4051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4052 if test "$cross_compiling" = yes; then
4055 cat > conftest.
$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4059 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4062 int main () { int i; for (i = 0; i < 256; i++)
4063 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4067 if { (eval echo configure
:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4071 echo "configure: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 ac_cv_header_stdc
=no
4082 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4083 if test $ac_cv_header_stdc = yes; then
4084 cat >> confdefs.h
<<\EOF
4085 #define STDC_HEADERS 1
4090 for ac_hdr
in link.h
4092 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4094 echo "configure:4095: checking for $ac_hdr" >&5
4095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 cat > conftest.
$ac_ext <<EOF
4099 #line 4100 "configure"
4100 #include "confdefs.h"
4103 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4104 { (eval echo configure
:4105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4105 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4106 if test -z "$ac_err"; then
4108 eval "ac_cv_header_$ac_safe=yes"
4111 echo "configure: failed program was:" >&5
4112 cat conftest.
$ac_ext >&5
4114 eval "ac_cv_header_$ac_safe=no"
4118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4121 cat >> confdefs.h
<<EOF
4122 #define $ac_tr_hdr 1
4126 echo "$ac_t""no" 1>&6
4130 for ac_hdr
in nlist.h
4132 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4134 echo "configure:4135: checking for $ac_hdr" >&5
4135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.
$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4143 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4144 { (eval echo configure
:4145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4145 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4146 if test -z "$ac_err"; then
4148 eval "ac_cv_header_$ac_safe=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.
$ac_ext >&5
4154 eval "ac_cv_header_$ac_safe=no"
4158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4160 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4161 cat >> confdefs.h
<<EOF
4162 #define $ac_tr_hdr 1
4166 echo "$ac_t""no" 1>&6
4170 for ac_hdr
in poll.h sys
/poll.h
4172 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4174 echo "configure:4175: checking for $ac_hdr" >&5
4175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4178 cat > conftest.
$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4183 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4184 { (eval echo configure
:4185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4185 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4186 if test -z "$ac_err"; then
4188 eval "ac_cv_header_$ac_safe=yes"
4191 echo "configure: failed program was:" >&5
4192 cat conftest.
$ac_ext >&5
4194 eval "ac_cv_header_$ac_safe=no"
4198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4201 cat >> confdefs.h
<<EOF
4202 #define $ac_tr_hdr 1
4206 echo "$ac_t""no" 1>&6
4210 for ac_hdr
in proc_service.h thread_db.h
4212 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_hdr" >&5
4215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.
$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure
:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4226 if test -z "$ac_err"; then
4228 eval "ac_cv_header_$ac_safe=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.
$ac_ext >&5
4234 eval "ac_cv_header_$ac_safe=no"
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4241 cat >> confdefs.h
<<EOF
4242 #define $ac_tr_hdr 1
4246 echo "$ac_t""no" 1>&6
4250 for ac_hdr
in stddef.h
4252 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_hdr" >&5
4255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.
$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4263 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4264 { (eval echo configure
:4265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4265 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4266 if test -z "$ac_err"; then
4268 eval "ac_cv_header_$ac_safe=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.
$ac_ext >&5
4274 eval "ac_cv_header_$ac_safe=no"
4278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4281 cat >> confdefs.h
<<EOF
4282 #define $ac_tr_hdr 1
4286 echo "$ac_t""no" 1>&6
4290 for ac_hdr
in stdlib.h
4292 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_hdr" >&5
4295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.
$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4303 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4304 { (eval echo configure
:4305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4305 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4306 if test -z "$ac_err"; then
4308 eval "ac_cv_header_$ac_safe=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.
$ac_ext >&5
4314 eval "ac_cv_header_$ac_safe=no"
4318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4321 cat >> confdefs.h
<<EOF
4322 #define $ac_tr_hdr 1
4326 echo "$ac_t""no" 1>&6
4330 for ac_hdr
in stdint.h
4332 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_hdr" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.
$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure
:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4348 eval "ac_cv_header_$ac_safe=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.
$ac_ext >&5
4354 eval "ac_cv_header_$ac_safe=no"
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4361 cat >> confdefs.h
<<EOF
4362 #define $ac_tr_hdr 1
4366 echo "$ac_t""no" 1>&6
4370 for ac_hdr
in string.h memory.h
strings.h
4372 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_hdr" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 cat > conftest.
$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4383 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4384 { (eval echo configure
:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4385 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4386 if test -z "$ac_err"; then
4388 eval "ac_cv_header_$ac_safe=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.
$ac_ext >&5
4394 eval "ac_cv_header_$ac_safe=no"
4398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4401 cat >> confdefs.h
<<EOF
4402 #define $ac_tr_hdr 1
4406 echo "$ac_t""no" 1>&6
4410 for ac_hdr
in sys
/fault.h
4412 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4414 echo "configure:4415: checking for $ac_hdr" >&5
4415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 cat > conftest.
$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4423 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4424 { (eval echo configure
:4425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4425 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4426 if test -z "$ac_err"; then
4428 eval "ac_cv_header_$ac_safe=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.
$ac_ext >&5
4434 eval "ac_cv_header_$ac_safe=no"
4438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4441 cat >> confdefs.h
<<EOF
4442 #define $ac_tr_hdr 1
4446 echo "$ac_t""no" 1>&6
4450 for ac_hdr
in sys
/file.h
4452 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_hdr" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.
$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure
:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4468 eval "ac_cv_header_$ac_safe=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.
$ac_ext >&5
4474 eval "ac_cv_header_$ac_safe=no"
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4481 cat >> confdefs.h
<<EOF
4482 #define $ac_tr_hdr 1
4486 echo "$ac_t""no" 1>&6
4490 for ac_hdr
in sys
/filio.h
4492 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4494 echo "configure:4495: checking for $ac_hdr" >&5
4495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.
$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4503 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4504 { (eval echo configure
:4505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4505 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4506 if test -z "$ac_err"; then
4508 eval "ac_cv_header_$ac_safe=yes"
4511 echo "configure: failed program was:" >&5
4512 cat conftest.
$ac_ext >&5
4514 eval "ac_cv_header_$ac_safe=no"
4518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4520 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4521 cat >> confdefs.h
<<EOF
4522 #define $ac_tr_hdr 1
4526 echo "$ac_t""no" 1>&6
4530 for ac_hdr
in sys
/ioctl.h
4532 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_hdr" >&5
4535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.
$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4543 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure
:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4548 eval "ac_cv_header_$ac_safe=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.
$ac_ext >&5
4554 eval "ac_cv_header_$ac_safe=no"
4558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4561 cat >> confdefs.h
<<EOF
4562 #define $ac_tr_hdr 1
4566 echo "$ac_t""no" 1>&6
4570 for ac_hdr
in sys
/param.h
4572 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4574 echo "configure:4575: checking for $ac_hdr" >&5
4575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 cat > conftest.
$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4583 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4584 { (eval echo configure
:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4585 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4586 if test -z "$ac_err"; then
4588 eval "ac_cv_header_$ac_safe=yes"
4591 echo "configure: failed program was:" >&5
4592 cat conftest.
$ac_ext >&5
4594 eval "ac_cv_header_$ac_safe=no"
4598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4601 cat >> confdefs.h
<<EOF
4602 #define $ac_tr_hdr 1
4606 echo "$ac_t""no" 1>&6
4610 for ac_hdr
in sys
/proc.h
4612 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.
$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure
:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4628 eval "ac_cv_header_$ac_safe=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4634 eval "ac_cv_header_$ac_safe=no"
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h
<<EOF
4642 #define $ac_tr_hdr 1
4646 echo "$ac_t""no" 1>&6
4650 for ac_hdr
in sys
/procfs.h
4652 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_hdr" >&5
4655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 cat > conftest.
$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4663 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure
:4665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4665 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4666 if test -z "$ac_err"; then
4668 eval "ac_cv_header_$ac_safe=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.
$ac_ext >&5
4674 eval "ac_cv_header_$ac_safe=no"
4678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4681 cat >> confdefs.h
<<EOF
4682 #define $ac_tr_hdr 1
4686 echo "$ac_t""no" 1>&6
4690 for ac_hdr
in sys
/ptrace.h ptrace.h
4692 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_hdr" >&5
4695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.
$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4703 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4704 { (eval echo configure
:4705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4705 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4706 if test -z "$ac_err"; then
4708 eval "ac_cv_header_$ac_safe=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.
$ac_ext >&5
4714 eval "ac_cv_header_$ac_safe=no"
4718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4721 cat >> confdefs.h
<<EOF
4722 #define $ac_tr_hdr 1
4726 echo "$ac_t""no" 1>&6
4730 for ac_hdr
in sys
/reg.h sys
/debugreg.h
4732 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_hdr" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.
$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure
:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4748 eval "ac_cv_header_$ac_safe=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4754 eval "ac_cv_header_$ac_safe=no"
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4760 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4761 cat >> confdefs.h
<<EOF
4762 #define $ac_tr_hdr 1
4766 echo "$ac_t""no" 1>&6
4770 for ac_hdr
in sys
/select.h
4772 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_hdr" >&5
4775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.
$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4784 { (eval echo configure
:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4786 if test -z "$ac_err"; then
4788 eval "ac_cv_header_$ac_safe=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.
$ac_ext >&5
4794 eval "ac_cv_header_$ac_safe=no"
4798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4801 cat >> confdefs.h
<<EOF
4802 #define $ac_tr_hdr 1
4806 echo "$ac_t""no" 1>&6
4810 for ac_hdr
in sys
/syscall.h
4812 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4814 echo "configure:4815: checking for $ac_hdr" >&5
4815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4818 cat > conftest.
$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4823 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4824 { (eval echo configure
:4825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4825 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4826 if test -z "$ac_err"; then
4828 eval "ac_cv_header_$ac_safe=yes"
4831 echo "configure: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4834 eval "ac_cv_header_$ac_safe=no"
4838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4840 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4841 cat >> confdefs.h
<<EOF
4842 #define $ac_tr_hdr 1
4846 echo "$ac_t""no" 1>&6
4850 for ac_hdr
in sys
/user.h
4852 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4854 echo "configure:4855: checking for $ac_hdr" >&5
4855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.
$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4863 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4864 { (eval echo configure
:4865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4865 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4866 if test -z "$ac_err"; then
4868 eval "ac_cv_header_$ac_safe=yes"
4871 echo "configure: failed program was:" >&5
4872 cat conftest.
$ac_ext >&5
4874 eval "ac_cv_header_$ac_safe=no"
4878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4881 cat >> confdefs.h
<<EOF
4882 #define $ac_tr_hdr 1
4886 echo "$ac_t""no" 1>&6
4890 for ac_hdr
in sys
/wait.h
wait.h
4892 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4894 echo "configure:4895: checking for $ac_hdr" >&5
4895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 cat > conftest.
$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4903 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4904 { (eval echo configure
:4905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4905 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4906 if test -z "$ac_err"; then
4908 eval "ac_cv_header_$ac_safe=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.
$ac_ext >&5
4914 eval "ac_cv_header_$ac_safe=no"
4918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4921 cat >> confdefs.h
<<EOF
4922 #define $ac_tr_hdr 1
4926 echo "$ac_t""no" 1>&6
4930 for ac_hdr
in termios.h termio.h sgtty.h
4932 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_hdr" >&5
4935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 cat > conftest.
$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4943 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4944 { (eval echo configure
:4945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4945 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4946 if test -z "$ac_err"; then
4948 eval "ac_cv_header_$ac_safe=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.
$ac_ext >&5
4954 eval "ac_cv_header_$ac_safe=no"
4958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4961 cat >> confdefs.h
<<EOF
4962 #define $ac_tr_hdr 1
4966 echo "$ac_t""no" 1>&6
4970 for ac_hdr
in unistd.h
4972 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_hdr" >&5
4975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.
$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4983 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4984 { (eval echo configure
:4985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4985 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4986 if test -z "$ac_err"; then
4988 eval "ac_cv_header_$ac_safe=yes"
4991 echo "configure: failed program was:" >&5
4992 cat conftest.
$ac_ext >&5
4994 eval "ac_cv_header_$ac_safe=no"
4998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5000 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5001 cat >> confdefs.h
<<EOF
5002 #define $ac_tr_hdr 1
5006 echo "$ac_t""no" 1>&6
5011 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5012 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5013 # think that we don't have <curses.h> if we're using GCC.
5016 if test "$GCC" = yes; then
5017 cat >> confdefs.h
<<\EOF
5018 #define _MSE_INT_H 1
5023 for ac_hdr
in curses.h ncurses.h term.h
5025 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5027 echo "configure:5028: checking for $ac_hdr" >&5
5028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
5031 cat > conftest.
$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5036 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5037 { (eval echo configure
:5038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5038 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5039 if test -z "$ac_err"; then
5041 eval "ac_cv_header_$ac_safe=yes"
5044 echo "configure: failed program was:" >&5
5045 cat conftest.
$ac_ext >&5
5047 eval "ac_cv_header_$ac_safe=no"
5051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5054 cat >> confdefs.h
<<EOF
5055 #define $ac_tr_hdr 1
5059 echo "$ac_t""no" 1>&6
5064 # FIXME: kettenis/20030102: In most cases we include these
5065 # unconditionally, so what's the point in checking these?
5066 for ac_hdr
in ctype.h
time.h
5068 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5070 echo "configure:5071: checking for $ac_hdr" >&5
5071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.
$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5080 { (eval echo configure
:5081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5081 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5082 if test -z "$ac_err"; then
5084 eval "ac_cv_header_$ac_safe=yes"
5087 echo "configure: failed program was:" >&5
5088 cat conftest.
$ac_ext >&5
5090 eval "ac_cv_header_$ac_safe=no"
5094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5095 echo "$ac_t""yes" 1>&6
5096 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5097 cat >> confdefs.h
<<EOF
5098 #define $ac_tr_hdr 1
5102 echo "$ac_t""no" 1>&6
5107 # ------------------ #
5108 # Checks for types. #
5109 # ------------------ #
5111 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5112 echo "configure:5113: checking return type of signal handlers" >&5
5113 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 cat > conftest.
$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 #include <sys/types.h>
5125 extern "C" void (*signal (int, void (*)(int)))(int);
5127 void (*signal ()) ();
5134 if { (eval echo configure
:5135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5136 ac_cv_type_signal
=void
5138 echo "configure: failed program was:" >&5
5139 cat conftest.
$ac_ext >&5
5141 ac_cv_type_signal
=int
5146 echo "$ac_t""$ac_cv_type_signal" 1>&6
5147 cat >> confdefs.h
<<EOF
5148 #define RETSIGTYPE $ac_cv_type_signal
5153 # ------------------------------------- #
5154 # Checks for compiler characteristics. #
5155 # ------------------------------------- #
5157 echo $ac_n "checking for working const""... $ac_c" 1>&6
5158 echo "configure:5159: checking for working const" >&5
5159 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5162 cat > conftest.
$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5168 /* Ultrix mips cc rejects this. */
5169 typedef int charset[2]; const charset x;
5170 /* SunOS 4.1.1 cc rejects this. */
5171 char const *const *ccp;
5173 /* NEC SVR4.0.2 mips cc rejects this. */
5174 struct point {int x, y;};
5175 static struct point const zero = {0,0};
5176 /* AIX XL C 1.02.0.0 rejects this.
5177 It does not let you subtract one const X* pointer from another in an arm
5178 of an if-expression whose if-part is not a constant expression */
5179 const char *g = "string";
5180 ccp = &g + (g ? g-g : 0);
5181 /* HPUX 7.0 cc rejects these. */
5184 ccp = (char const *const *) p;
5185 { /* SCO 3.2v4 cc rejects this. */
5187 char const *s = 0 ? (char *) 0 : (char const *) 0;
5191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5193 const int *foo = &x[0];
5196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5197 typedef const int *iptr;
5201 { /* AIX XL C 1.02.0.0 rejects this saying
5202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5203 struct s { int j; const int *ap[3]; };
5204 struct s *b; b->j = 5;
5206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5212 if { (eval echo configure
:5213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5216 echo "configure: failed program was:" >&5
5217 cat conftest.
$ac_ext >&5
5224 echo "$ac_t""$ac_cv_c_const" 1>&6
5225 if test $ac_cv_c_const = no
; then
5226 cat >> confdefs.h
<<\EOF
5232 echo $ac_n "checking for inline""... $ac_c" 1>&6
5233 echo "configure:5234: checking for inline" >&5
5234 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5238 for ac_kw
in inline __inline__ __inline
; do
5239 cat > conftest.
$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5247 if { (eval echo configure
:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 ac_cv_c_inline
=$ac_kw; break
5251 echo "configure: failed program was:" >&5
5252 cat conftest.
$ac_ext >&5
5259 echo "$ac_t""$ac_cv_c_inline" 1>&6
5260 case "$ac_cv_c_inline" in
5262 no
) cat >> confdefs.h
<<\EOF
5266 *) cat >> confdefs.h
<<EOF
5267 #define inline $ac_cv_c_inline
5273 # ------------------------------ #
5274 # Checks for library functions. #
5275 # ------------------------------ #
5277 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5278 # for constant arguments. Useless!
5279 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5280 echo "configure:5281: checking for working alloca.h" >&5
5281 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 cat > conftest.
$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5289 char *p = alloca(2 * sizeof(int));
5292 if { (eval echo configure
:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5294 ac_cv_header_alloca_h
=yes
5296 echo "configure: failed program was:" >&5
5297 cat conftest.
$ac_ext >&5
5299 ac_cv_header_alloca_h
=no
5304 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5305 if test $ac_cv_header_alloca_h = yes; then
5306 cat >> confdefs.h
<<\EOF
5307 #define HAVE_ALLOCA_H 1
5312 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5313 echo "configure:5314: checking for alloca" >&5
5314 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.
$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5322 # define alloca __builtin_alloca
5325 # include <malloc.h>
5326 # define alloca _alloca
5329 # include <alloca.h>
5334 # ifndef alloca /* predefined by HP cc +Olibcalls */
5343 char *p = (char *) alloca(1);
5346 if { (eval echo configure
:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5348 ac_cv_func_alloca_works
=yes
5350 echo "configure: failed program was:" >&5
5351 cat conftest.
$ac_ext >&5
5353 ac_cv_func_alloca_works
=no
5358 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5359 if test $ac_cv_func_alloca_works = yes; then
5360 cat >> confdefs.h
<<\EOF
5361 #define HAVE_ALLOCA 1
5366 if test $ac_cv_func_alloca_works = no
; then
5367 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5368 # that cause trouble. Some versions do not even contain alloca or
5369 # contain a buggy version. If you still want to use their alloca,
5370 # use ar to extract alloca.o from them instead of compiling alloca.c.
5371 ALLOCA
=alloca.
${ac_objext}
5372 cat >> confdefs.h
<<\EOF
5377 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5378 echo "configure:5379: checking whether alloca needs Cray hooks" >&5
5379 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5380 echo $ac_n "(cached) $ac_c" 1>&6
5382 cat > conftest.
$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 #if defined(CRAY) && ! defined(CRAY2)
5392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5393 egrep "webecray" >/dev
/null
2>&1; then
5404 echo "$ac_t""$ac_cv_os_cray" 1>&6
5405 if test $ac_cv_os_cray = yes; then
5406 for ac_func
in _getb67 GETB67 getb67
; do
5407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5408 echo "configure:5409: checking for $ac_func" >&5
5409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5412 cat > conftest.
$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 /* System header to define __stub macros and hopefully few prototypes,
5416 which can conflict with char $ac_func(); below. */
5418 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5425 /* The GNU C library defines this for functions which it implements
5426 to always fail with ENOSYS. Some functions are actually named
5427 something starting with __ and the normal name is an alias. */
5428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5436 if { (eval echo configure
:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5438 eval "ac_cv_func_$ac_func=yes"
5440 echo "configure: failed program was:" >&5
5441 cat conftest.
$ac_ext >&5
5443 eval "ac_cv_func_$ac_func=no"
5448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5450 cat >> confdefs.h
<<EOF
5451 #define CRAY_STACKSEG_END $ac_func
5456 echo "$ac_t""no" 1>&6
5462 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5463 echo "configure:5464: checking stack direction for C alloca" >&5
5464 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5467 if test "$cross_compiling" = yes; then
5468 ac_cv_c_stack_direction
=0
5470 cat > conftest.
$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 find_stack_direction ()
5475 static char *addr = 0;
5480 return find_stack_direction ();
5483 return (&dummy > addr) ? 1 : -1;
5487 exit (find_stack_direction() < 0);
5490 if { (eval echo configure
:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5492 ac_cv_c_stack_direction
=1
5494 echo "configure: failed program was:" >&5
5495 cat conftest.
$ac_ext >&5
5497 ac_cv_c_stack_direction
=-1
5504 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5505 cat >> confdefs.h
<<EOF
5506 #define STACK_DIRECTION $ac_cv_c_stack_direction
5511 for ac_hdr
in unistd.h
5513 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5515 echo "configure:5516: checking for $ac_hdr" >&5
5516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 cat > conftest.
$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5525 { (eval echo configure
:5526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5527 if test -z "$ac_err"; then
5529 eval "ac_cv_header_$ac_safe=yes"
5532 echo "configure: failed program was:" >&5
5533 cat conftest.
$ac_ext >&5
5535 eval "ac_cv_header_$ac_safe=no"
5539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5540 echo "$ac_t""yes" 1>&6
5541 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5542 cat >> confdefs.h
<<EOF
5543 #define $ac_tr_hdr 1
5547 echo "$ac_t""no" 1>&6
5551 for ac_func
in getpagesize
5553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5554 echo "configure:5555: checking for $ac_func" >&5
5555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 cat > conftest.
$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char $ac_func(); below. */
5564 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5571 /* The GNU C library defines this for functions which it implements
5572 to always fail with ENOSYS. Some functions are actually named
5573 something starting with __ and the normal name is an alias. */
5574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5582 if { (eval echo configure
:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5584 eval "ac_cv_func_$ac_func=yes"
5586 echo "configure: failed program was:" >&5
5587 cat conftest.
$ac_ext >&5
5589 eval "ac_cv_func_$ac_func=no"
5594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5595 echo "$ac_t""yes" 1>&6
5596 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5597 cat >> confdefs.h
<<EOF
5598 #define $ac_tr_func 1
5602 echo "$ac_t""no" 1>&6
5606 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5607 echo "configure:5608: checking for working mmap" >&5
5608 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 if test "$cross_compiling" = yes; then
5612 ac_cv_func_mmap_fixed_mapped
=no
5614 cat > conftest.
$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5618 /* Thanks to Mike Haertel and Jim Avera for this test.
5619 Here is a matrix of mmap possibilities:
5620 mmap private not fixed
5621 mmap private fixed at somewhere currently unmapped
5622 mmap private fixed at somewhere already mapped
5623 mmap shared not fixed
5624 mmap shared fixed at somewhere currently unmapped
5625 mmap shared fixed at somewhere already mapped
5626 For private mappings, we should verify that changes cannot be read()
5627 back from the file, nor mmap's back from the file at a different
5628 address. (There have been systems where private was not correctly
5629 implemented like the infamous i386 svr4.0, and systems where the
5630 VM page cache was not coherent with the filesystem buffer cache
5631 like early versions of FreeBSD and possibly contemporary NetBSD.)
5632 For shared mappings, we should conversely verify that changes get
5633 propogated back to all the places they're supposed to be.
5635 Grep wants private fixed already mapped.
5636 The main things grep needs to know about mmap are:
5637 * does it exist and is it safe to write into the mmap'd area
5638 * how to use it (BSD variants) */
5639 #include <sys/types.h>
5641 #include <sys/mman.h>
5643 /* This mess was copied from the GNU getpagesize.h. */
5644 #ifndef HAVE_GETPAGESIZE
5645 # ifdef HAVE_UNISTD_H
5646 # include <unistd.h>
5649 /* Assume that all systems that can run configure have sys/param.h. */
5650 # ifndef HAVE_SYS_PARAM_H
5651 # define HAVE_SYS_PARAM_H 1
5654 # ifdef _SC_PAGESIZE
5655 # define getpagesize() sysconf(_SC_PAGESIZE)
5656 # else /* no _SC_PAGESIZE */
5657 # ifdef HAVE_SYS_PARAM_H
5658 # include <sys/param.h>
5659 # ifdef EXEC_PAGESIZE
5660 # define getpagesize() EXEC_PAGESIZE
5661 # else /* no EXEC_PAGESIZE */
5663 # define getpagesize() NBPG * CLSIZE
5666 # endif /* no CLSIZE */
5667 # else /* no NBPG */
5669 # define getpagesize() NBPC
5670 # else /* no NBPC */
5672 # define getpagesize() PAGESIZE
5673 # endif /* PAGESIZE */
5674 # endif /* no NBPC */
5675 # endif /* no NBPG */
5676 # endif /* no EXEC_PAGESIZE */
5677 # else /* no HAVE_SYS_PARAM_H */
5678 # define getpagesize() 8192 /* punt totally */
5679 # endif /* no HAVE_SYS_PARAM_H */
5680 # endif /* no _SC_PAGESIZE */
5682 #endif /* no HAVE_GETPAGESIZE */
5685 extern "C" { void *malloc(unsigned); }
5693 char *data, *data2, *data3;
5697 pagesize = getpagesize();
5700 * First, make a file with some known garbage in it.
5702 data = malloc(pagesize);
5705 for (i = 0; i < pagesize; ++i)
5706 *(data + i) = rand();
5708 fd = creat("conftestmmap", 0600);
5711 if (write(fd, data, pagesize) != pagesize)
5716 * Next, try to mmap the file at a fixed address which
5717 * already has something else allocated at it. If we can,
5718 * also make sure that we see the same garbage.
5720 fd = open("conftestmmap", O_RDWR);
5723 data2 = malloc(2 * pagesize);
5726 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5727 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5728 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5730 for (i = 0; i < pagesize; ++i)
5731 if (*(data + i) != *(data2 + i))
5735 * Finally, make sure that changes to the mapped area
5736 * do not percolate back to the file as seen by read().
5737 * (This is a bug on some variants of i386 svr4.0.)
5739 for (i = 0; i < pagesize; ++i)
5740 *(data2 + i) = *(data2 + i) + 1;
5741 data3 = malloc(pagesize);
5744 if (read(fd, data3, pagesize) != pagesize)
5746 for (i = 0; i < pagesize; ++i)
5747 if (*(data + i) != *(data3 + i))
5750 unlink("conftestmmap");
5755 if { (eval echo configure
:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5757 ac_cv_func_mmap_fixed_mapped
=yes
5759 echo "configure: failed program was:" >&5
5760 cat conftest.
$ac_ext >&5
5762 ac_cv_func_mmap_fixed_mapped
=no
5769 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5770 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5771 cat >> confdefs.h
<<\EOF
5777 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5778 echo "configure:5779: checking for pid_t" >&5
5779 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5782 cat > conftest.
$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 #include <sys/types.h>
5791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5792 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5794 ac_cv_type_pid_t
=yes
5802 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5803 if test $ac_cv_type_pid_t = no
; then
5804 cat >> confdefs.h
<<\EOF
5810 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5811 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5812 echo "configure:5813: checking for vfork.h" >&5
5813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 cat > conftest.
$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5821 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5822 { (eval echo configure
:5823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5823 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5824 if test -z "$ac_err"; then
5826 eval "ac_cv_header_$ac_safe=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.
$ac_ext >&5
5832 eval "ac_cv_header_$ac_safe=no"
5836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5837 echo "$ac_t""yes" 1>&6
5838 cat >> confdefs.h
<<\EOF
5839 #define HAVE_VFORK_H 1
5843 echo "$ac_t""no" 1>&6
5846 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
5847 echo "configure:5848: checking for working vfork" >&5
5848 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 if test "$cross_compiling" = yes; then
5852 echo $ac_n "checking for vfork""... $ac_c" 1>&6
5853 echo "configure:5854: checking for vfork" >&5
5854 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
5855 echo $ac_n "(cached) $ac_c" 1>&6
5857 cat > conftest.
$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 /* System header to define __stub macros and hopefully few prototypes,
5861 which can conflict with char vfork(); below. */
5863 /* Override any gcc2 internal prototype to avoid an error. */
5864 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */
5870 /* The GNU C library defines this for functions which it implements
5871 to always fail with ENOSYS. Some functions are actually named
5872 something starting with __ and the normal name is an alias. */
5873 #if defined (__stub_vfork) || defined (__stub___vfork)
5881 if { (eval echo configure
:5882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5883 eval "ac_cv_func_vfork=yes"
5885 echo "configure: failed program was:" >&5
5886 cat conftest.
$ac_ext >&5
5888 eval "ac_cv_func_vfork=no"
5893 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
5894 echo "$ac_t""yes" 1>&6
5897 echo "$ac_t""no" 1>&6
5900 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5902 cat > conftest.
$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 /* Thanks to Paul Eggert for this test. */
5907 #include <sys/types.h>
5908 #include <sys/stat.h>
5909 #ifdef HAVE_UNISTD_H
5915 /* On some sparc systems, changes by the child to local and incoming
5916 argument registers are propagated back to the parent.
5917 The compiler is told about this with #include <vfork.h>,
5918 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
5919 Test for this by using a static variable whose address
5920 is put into a register that is clobbered by the vfork. */
5923 sparc_address_test (int arg)
5925 sparc_address_test (arg) int arg;
5943 pid_t parent = getpid ();
5946 sparc_address_test ();
5951 /* Here is another test for sparc vfork register problems.
5952 This test uses lots of local variables, at least
5953 as many local variables as main has allocated so far
5954 including compiler temporaries. 4 locals are enough for
5955 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
5956 A buggy compiler should reuse the register of parent
5957 for one of the local variables, since it will think that
5958 parent can't possibly be used any more in this routine.
5959 Assigning to the local variable will thus munge parent
5960 in the parent process. */
5962 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5963 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5964 /* Convince the compiler that p..p7 are live; otherwise, it might
5965 use the same hardware register for all 8 local variables. */
5966 if (p != p1 || p != p2 || p != p3 || p != p4
5967 || p != p5 || p != p6 || p != p7)
5970 /* On some systems (e.g. IRIX 3.3),
5971 vfork doesn't separate parent from child file descriptors.
5972 If the child closes a descriptor before it execs or exits,
5973 this munges the parent's descriptor as well.
5974 Test for this by closing stdout in the child. */
5975 _exit(close(fileno(stdout)) != 0);
5980 while (wait(&status) != child)
5983 /* Was there some problem with vforking? */
5986 /* Did the child fail? (This shouldn't happen.) */
5989 /* Did the vfork/compiler bug occur? */
5990 || parent != getpid()
5992 /* Did the file descriptor bug occur? */
5993 || fstat(fileno(stdout), &st) != 0
5998 if { (eval echo configure
:5999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6000 ac_cv_func_vfork_works
=yes
6002 echo "configure: failed program was:" >&5
6003 cat conftest.
$ac_ext >&5
6005 ac_cv_func_vfork_works
=no
6012 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6013 if test $ac_cv_func_vfork_works = no
; then
6014 cat >> confdefs.h
<<\EOF
6020 for ac_func
in canonicalize_file_name realpath
6022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6023 echo "configure:6024: checking for $ac_func" >&5
6024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.
$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 /* System header to define __stub macros and hopefully few prototypes,
6031 which can conflict with char $ac_func(); below. */
6033 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6040 /* The GNU C library defines this for functions which it implements
6041 to always fail with ENOSYS. Some functions are actually named
6042 something starting with __ and the normal name is an alias. */
6043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6051 if { (eval echo configure
:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6053 eval "ac_cv_func_$ac_func=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.
$ac_ext >&5
6058 eval "ac_cv_func_$ac_func=no"
6063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6064 echo "$ac_t""yes" 1>&6
6065 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6066 cat >> confdefs.h
<<EOF
6067 #define $ac_tr_func 1
6071 echo "$ac_t""no" 1>&6
6077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6078 echo "configure:6079: checking for $ac_func" >&5
6079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 cat > conftest.
$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6085 /* System header to define __stub macros and hopefully few prototypes,
6086 which can conflict with char $ac_func(); below. */
6088 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6095 /* The GNU C library defines this for functions which it implements
6096 to always fail with ENOSYS. Some functions are actually named
6097 something starting with __ and the normal name is an alias. */
6098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6106 if { (eval echo configure
:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6108 eval "ac_cv_func_$ac_func=yes"
6110 echo "configure: failed program was:" >&5
6111 cat conftest.
$ac_ext >&5
6113 eval "ac_cv_func_$ac_func=no"
6118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6120 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6121 cat >> confdefs.h
<<EOF
6122 #define $ac_tr_func 1
6126 echo "$ac_t""no" 1>&6
6132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_func" >&5
6134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.
$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func(); below. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6150 /* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 if { (eval echo configure
:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6163 eval "ac_cv_func_$ac_func=yes"
6165 echo "configure: failed program was:" >&5
6166 cat conftest.
$ac_ext >&5
6168 eval "ac_cv_func_$ac_func=no"
6173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6174 echo "$ac_t""yes" 1>&6
6175 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6176 cat >> confdefs.h
<<EOF
6177 #define $ac_tr_func 1
6181 echo "$ac_t""no" 1>&6
6185 for ac_func
in setpgid setpgrp
6187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6188 echo "configure:6189: checking for $ac_func" >&5
6189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 cat > conftest.
$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 /* System header to define __stub macros and hopefully few prototypes,
6196 which can conflict with char $ac_func(); below. */
6198 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6205 /* The GNU C library defines this for functions which it implements
6206 to always fail with ENOSYS. Some functions are actually named
6207 something starting with __ and the normal name is an alias. */
6208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6216 if { (eval echo configure
:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6218 eval "ac_cv_func_$ac_func=yes"
6220 echo "configure: failed program was:" >&5
6221 cat conftest.
$ac_ext >&5
6223 eval "ac_cv_func_$ac_func=no"
6228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6229 echo "$ac_t""yes" 1>&6
6230 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6231 cat >> confdefs.h
<<EOF
6232 #define $ac_tr_func 1
6236 echo "$ac_t""no" 1>&6
6240 for ac_func
in sigaction sigprocmask sigsetmask
6242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6243 echo "configure:6244: checking for $ac_func" >&5
6244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6247 cat > conftest.
$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 /* System header to define __stub macros and hopefully few prototypes,
6251 which can conflict with char $ac_func(); below. */
6253 /* Override any gcc2 internal prototype to avoid an error. */
6254 /* We use char because int might match the return type of a gcc2
6255 builtin and then its argument prototype would still apply. */
6260 /* The GNU C library defines this for functions which it implements
6261 to always fail with ENOSYS. Some functions are actually named
6262 something starting with __ and the normal name is an alias. */
6263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6271 if { (eval echo configure
:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6273 eval "ac_cv_func_$ac_func=yes"
6275 echo "configure: failed program was:" >&5
6276 cat conftest.
$ac_ext >&5
6278 eval "ac_cv_func_$ac_func=no"
6283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6284 echo "$ac_t""yes" 1>&6
6285 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6286 cat >> confdefs.h
<<EOF
6287 #define $ac_tr_func 1
6291 echo "$ac_t""no" 1>&6
6295 for ac_func
in socketpair
6297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_func" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.
$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char $ac_func(); below. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6315 /* The GNU C library defines this for functions which it implements
6316 to always fail with ENOSYS. Some functions are actually named
6317 something starting with __ and the normal name is an alias. */
6318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6326 if { (eval echo configure
:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6328 eval "ac_cv_func_$ac_func=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.
$ac_ext >&5
6333 eval "ac_cv_func_$ac_func=no"
6338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6341 cat >> confdefs.h
<<EOF
6342 #define $ac_tr_func 1
6346 echo "$ac_t""no" 1>&6
6351 if test "$cross_compiling" = no
; then
6352 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6353 echo "configure:6354: checking whether setpgrp takes no argument" >&5
6354 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6357 if test "$cross_compiling" = yes; then
6358 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6360 cat > conftest.
$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6364 #ifdef HAVE_UNISTD_H
6369 * If this system has a BSD-style setpgrp, which takes arguments, exit
6374 if (setpgrp(1,1) == -1)
6381 if { (eval echo configure
:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6383 ac_cv_func_setpgrp_void
=no
6385 echo "configure: failed program was:" >&5
6386 cat conftest.
$ac_ext >&5
6388 ac_cv_func_setpgrp_void
=yes
6396 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6397 if test $ac_cv_func_setpgrp_void = yes; then
6398 cat >> confdefs.h
<<\EOF
6399 #define SETPGRP_VOID 1
6405 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6406 echo "configure:6407: checking whether setpgrp takes no argument" >&5
6407 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6410 cat > conftest.
$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6418 if (setpgrp(1,1) == -1)
6425 if { (eval echo configure
:6426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6427 ac_cv_func_setpgrp_void
=no
6429 echo "configure: failed program was:" >&5
6430 cat conftest.
$ac_ext >&5
6432 ac_cv_func_setpgrp_void
=yes
6437 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6438 if test $ac_cv_func_setpgrp_void = yes; then
6439 cat >> confdefs.h
<<\EOF
6440 #define SETPGRP_VOID 1
6446 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6447 # since sigsetjmp might only be defined as a macro.
6448 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6449 echo "configure:6450: checking for sigsetjmp" >&5
6450 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6453 cat > conftest.
$ac_ext <<EOF
6454 #line 6455 "configure"
6455 #include "confdefs.h"
6460 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6463 if { (eval echo configure
:6464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6465 gdb_cv_func_sigsetjmp
=yes
6467 echo "configure: failed program was:" >&5
6468 cat conftest.
$ac_ext >&5
6470 gdb_cv_func_sigsetjmp
=no
6475 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6476 if test $gdb_cv_func_sigsetjmp = yes; then
6477 cat >> confdefs.h
<<\EOF
6478 #define HAVE_SIGSETJMP 1
6483 # Assume we'll default to using the included libiberty regex.
6484 gdb_use_included_regex
=yes
6486 # However, if the system regex is GNU regex, then default to *not*
6487 # using the included regex.
6488 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6489 echo "configure:6490: checking for GNU regex" >&5
6490 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6493 cat > conftest.
$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 #include <gnu-versions.h>
6498 #define REGEX_INTERFACE_VERSION 1
6499 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
6500 # error "Version mismatch"
6504 if { (eval echo configure
:6505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6506 gdb_cv_have_gnu_regex
=yes
6508 echo "configure: failed program was:" >&5
6509 cat conftest.
$ac_ext >&5
6511 gdb_cv_have_gnu_regex
=no
6516 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6517 if test $gdb_cv_have_gnu_regex = yes; then
6518 gdb_use_included_regex
=no
6521 # Check whether --with-included-regex or --without-included-regex was given.
6522 if test "${with_included_regex+set}" = set; then
6523 withval
="$with_included_regex"
6524 gdb_with_regex
=$withval
6526 gdb_with_regex
=$gdb_use_included_regex
6529 if test "$gdb_with_regex" = yes; then
6530 cat >> confdefs.h
<<\EOF
6531 #define USE_INCLUDED_REGEX 1
6536 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6537 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6538 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6539 echo "configure:6540: checking for r_fs in struct reg" >&5
6540 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 cat > conftest.
$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 #include <machine/reg.h>
6548 struct reg r; r.r_fs;
6551 if { (eval echo configure
:6552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6553 gdb_cv_struct_reg_r_fs
=yes
6555 echo "configure: failed program was:" >&5
6556 cat conftest.
$ac_ext >&5
6558 gdb_cv_struct_reg_r_fs
=no
6563 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6564 if test $gdb_cv_struct_reg_r_fs = yes; then
6565 cat >> confdefs.h
<<\EOF
6566 #define HAVE_STRUCT_REG_R_FS 1
6570 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6571 echo "configure:6572: checking for r_gs in struct reg" >&5
6572 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6575 cat > conftest.
$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 #include <machine/reg.h>
6580 struct reg r; r.r_gs;
6583 if { (eval echo configure
:6584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6585 gdb_cv_struct_reg_r_gs
=yes
6587 echo "configure: failed program was:" >&5
6588 cat conftest.
$ac_ext >&5
6590 gdb_cv_struct_reg_r_gs
=no
6595 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6596 if test $gdb_cv_struct_reg_r_gs = yes; then
6597 cat >> confdefs.h
<<\EOF
6598 #define HAVE_STRUCT_REG_R_GS 1
6603 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6604 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6605 echo "configure:6606: checking for PTRACE_GETREGS" >&5
6606 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.
$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 #include <sys/ptrace.h>
6617 if { (eval echo configure
:6618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6619 gdb_cv_have_ptrace_getregs
=yes
6621 echo "configure: failed program was:" >&5
6622 cat conftest.
$ac_ext >&5
6624 gdb_cv_have_ptrace_getregs
=no
6629 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6630 if test $gdb_cv_have_ptrace_getregs = yes; then
6631 cat >> confdefs.h
<<\EOF
6632 #define HAVE_PTRACE_GETREGS 1
6637 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6638 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6639 echo "configure:6640: checking for PTRACE_GETFPXREGS" >&5
6640 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6643 cat > conftest.
$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 #include <sys/ptrace.h>
6651 if { (eval echo configure
:6652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6653 gdb_cv_have_ptrace_getfpxregs
=yes
6655 echo "configure: failed program was:" >&5
6656 cat conftest.
$ac_ext >&5
6658 gdb_cv_have_ptrace_getfpxregs
=no
6663 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6664 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6665 cat >> confdefs.h
<<\EOF
6666 #define HAVE_PTRACE_GETFPXREGS 1
6671 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6672 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6673 echo "configure:6674: checking for PT_GETDBREGS" >&5
6674 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6675 echo $ac_n "(cached) $ac_c" 1>&6
6677 cat > conftest.
$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 #include <sys/types.h>
6681 #include <sys/ptrace.h>
6686 if { (eval echo configure
:6687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6688 gdb_cv_have_pt_getdbregs
=yes
6690 echo "configure: failed program was:" >&5
6691 cat conftest.
$ac_ext >&5
6693 gdb_cv_have_pt_getdbregs
=no
6698 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6699 if test $gdb_cv_have_pt_getdbregs = yes; then
6700 cat >> confdefs.h
<<\EOF
6701 #define HAVE_PT_GETDBREGS 1
6706 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6707 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6708 echo "configure:6709: checking for PT_GETXMMREGS" >&5
6709 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
6710 echo $ac_n "(cached) $ac_c" 1>&6
6712 cat > conftest.
$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6715 #include <sys/types.h>
6716 #include <sys/ptrace.h>
6721 if { (eval echo configure
:6722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6723 gdb_cv_have_pt_getxmmregs
=yes
6725 echo "configure: failed program was:" >&5
6726 cat conftest.
$ac_ext >&5
6728 gdb_cv_have_pt_getxmmregs
=no
6733 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6734 if test $gdb_cv_have_pt_getxmmregs = yes; then
6735 cat >> confdefs.h
<<\EOF
6736 #define HAVE_PT_GETXMMREGS 1
6742 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6743 echo "configure:6744: checking whether malloc must be declared" >&5
6744 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 cat > conftest.
$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6752 #ifdef HAVE_STRING_H
6755 #ifdef HAVE_STRINGS_H
6756 #include <strings.h>
6759 #ifdef HAVE_STDLIB_H
6762 #ifdef HAVE_UNISTD_H
6766 char *(*pfn) = (char *(*)) malloc
6769 if { (eval echo configure
:6770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6771 bfd_cv_decl_needed_malloc
=no
6773 echo "configure: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6776 bfd_cv_decl_needed_malloc
=yes
6781 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
6782 if test $bfd_cv_decl_needed_malloc = yes; then
6783 cat >> confdefs.h
<<\EOF
6784 #define NEED_DECLARATION_MALLOC 1
6789 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
6790 echo "configure:6791: checking whether realloc must be declared" >&5
6791 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6794 cat > conftest.
$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6799 #ifdef HAVE_STRING_H
6802 #ifdef HAVE_STRINGS_H
6803 #include <strings.h>
6806 #ifdef HAVE_STDLIB_H
6809 #ifdef HAVE_UNISTD_H
6813 char *(*pfn) = (char *(*)) realloc
6816 if { (eval echo configure
:6817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6818 bfd_cv_decl_needed_realloc
=no
6820 echo "configure: failed program was:" >&5
6821 cat conftest.
$ac_ext >&5
6823 bfd_cv_decl_needed_realloc
=yes
6828 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
6829 if test $bfd_cv_decl_needed_realloc = yes; then
6830 cat >> confdefs.h
<<\EOF
6831 #define NEED_DECLARATION_REALLOC 1
6836 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
6837 echo "configure:6838: checking whether free must be declared" >&5
6838 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6
6841 cat > conftest.
$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6846 #ifdef HAVE_STRING_H
6849 #ifdef HAVE_STRINGS_H
6850 #include <strings.h>
6853 #ifdef HAVE_STDLIB_H
6856 #ifdef HAVE_UNISTD_H
6860 char *(*pfn) = (char *(*)) free
6863 if { (eval echo configure
:6864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6865 bfd_cv_decl_needed_free
=no
6867 echo "configure: failed program was:" >&5
6868 cat conftest.
$ac_ext >&5
6870 bfd_cv_decl_needed_free
=yes
6875 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
6876 if test $bfd_cv_decl_needed_free = yes; then
6877 cat >> confdefs.h
<<\EOF
6878 #define NEED_DECLARATION_FREE 1
6883 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
6884 echo "configure:6885: checking whether strerror must be declared" >&5
6885 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6888 cat > conftest.
$ac_ext <<EOF
6889 #line 6890 "configure"
6890 #include "confdefs.h"
6893 #ifdef HAVE_STRING_H
6896 #ifdef HAVE_STRINGS_H
6897 #include <strings.h>
6900 #ifdef HAVE_STDLIB_H
6903 #ifdef HAVE_UNISTD_H
6907 char *(*pfn) = (char *(*)) strerror
6910 if { (eval echo configure
:6911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6912 bfd_cv_decl_needed_strerror
=no
6914 echo "configure: failed program was:" >&5
6915 cat conftest.
$ac_ext >&5
6917 bfd_cv_decl_needed_strerror
=yes
6922 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
6923 if test $bfd_cv_decl_needed_strerror = yes; then
6924 cat >> confdefs.h
<<\EOF
6925 #define NEED_DECLARATION_STRERROR 1
6930 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
6931 echo "configure:6932: checking whether strdup must be declared" >&5
6932 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6935 cat > conftest.
$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6940 #ifdef HAVE_STRING_H
6943 #ifdef HAVE_STRINGS_H
6944 #include <strings.h>
6947 #ifdef HAVE_STDLIB_H
6950 #ifdef HAVE_UNISTD_H
6954 char *(*pfn) = (char *(*)) strdup
6957 if { (eval echo configure
:6958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6959 bfd_cv_decl_needed_strdup
=no
6961 echo "configure: failed program was:" >&5
6962 cat conftest.
$ac_ext >&5
6964 bfd_cv_decl_needed_strdup
=yes
6969 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
6970 if test $bfd_cv_decl_needed_strdup = yes; then
6971 cat >> confdefs.h
<<\EOF
6972 #define NEED_DECLARATION_STRDUP 1
6977 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
6978 echo "configure:6979: checking whether strstr must be declared" >&5
6979 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6982 cat > conftest.
$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6987 #ifdef HAVE_STRING_H
6990 #ifdef HAVE_STRINGS_H
6991 #include <strings.h>
6994 #ifdef HAVE_STDLIB_H
6997 #ifdef HAVE_UNISTD_H
7001 char *(*pfn) = (char *(*)) strstr
7004 if { (eval echo configure
:7005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7006 bfd_cv_decl_needed_strstr
=no
7008 echo "configure: failed program was:" >&5
7009 cat conftest.
$ac_ext >&5
7011 bfd_cv_decl_needed_strstr
=yes
7016 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7017 if test $bfd_cv_decl_needed_strstr = yes; then
7018 cat >> confdefs.h
<<\EOF
7019 #define NEED_DECLARATION_STRSTR 1
7024 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7025 echo "configure:7026: checking whether canonicalize_file_name must be declared" >&5
7026 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 cat > conftest.
$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7034 #ifdef HAVE_STRING_H
7037 #ifdef HAVE_STRINGS_H
7038 #include <strings.h>
7041 #ifdef HAVE_STDLIB_H
7044 #ifdef HAVE_UNISTD_H
7048 char *(*pfn) = (char *(*)) canonicalize_file_name
7051 if { (eval echo configure
:7052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7053 bfd_cv_decl_needed_canonicalize_file_name
=no
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 bfd_cv_decl_needed_canonicalize_file_name
=yes
7063 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7064 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7065 cat >> confdefs.h
<<\EOF
7066 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7072 # The following save_state_t checkery is only necessary for HPUX
7073 # versions earlier than 10.20. When those fade from memory, this
7074 # could be expunged. --jsm 1999-03-22
7076 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7077 echo "configure:7078: checking for HPUX save_state structure" >&5
7078 cat > conftest.
$ac_ext <<EOF
7079 #line 7080 "configure"
7080 #include "confdefs.h"
7081 #include <machine/save_state.h>
7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084 egrep "save_state_t" >/dev
/null
2>&1; then
7086 gdb_cv_hpux_savestate
=yes
7089 gdb_cv_hpux_savestate
=no
7093 cat > conftest.
$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7096 #include <machine/save_state.h>
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 egrep "ss_wide" >/dev
/null
2>&1; then
7101 gdb_cv_hpux_sswide
=yes
7104 gdb_cv_hpux_sswide
=no
7108 if test $gdb_cv_hpux_savestate = yes
7110 cat >> confdefs.h
<<\EOF
7111 #define HAVE_STRUCT_SAVE_STATE_T 1
7115 if test $gdb_cv_hpux_sswide = yes
7117 cat >> confdefs.h
<<\EOF
7118 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7122 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7125 # If we are configured native on GNU/Linux, work around problems with
7127 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7129 if test "${target}" = "${host}"; then
7132 cat >> confdefs.h
<<\EOF
7133 #define START_INFERIOR_TRAPS_EXPECTED 2
7136 cat >> confdefs.h
<<\EOF
7137 #define sys_quotactl 1
7142 cat >> confdefs.h
<<\EOF
7143 #define NEW_PROC_API 1
7147 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7148 cat >> confdefs.h
<<\EOF
7149 #define NEW_PROC_API 1
7154 cat >> confdefs.h
<<\EOF
7155 #define NEW_PROC_API 1
7162 if test "$ac_cv_header_sys_procfs_h" = yes; then
7163 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7164 echo "configure:7165: checking for pstatus_t in sys/procfs.h" >&5
7165 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7168 cat > conftest.
$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7173 #include <sys/procfs.h>
7178 if { (eval echo configure
:7179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7180 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7182 echo "configure: failed program was:" >&5
7183 cat conftest.
$ac_ext >&5
7185 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7191 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7192 cat >> confdefs.h
<<\EOF
7193 #define HAVE_PSTATUS_T 1
7197 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7199 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7200 echo "configure:7201: checking for prrun_t in sys/procfs.h" >&5
7201 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 cat > conftest.
$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7209 #include <sys/procfs.h>
7214 if { (eval echo configure
:7215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7216 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7218 echo "configure: failed program was:" >&5
7219 cat conftest.
$ac_ext >&5
7221 bfd_cv_have_sys_procfs_type_prrun_t
=no
7227 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7228 cat >> confdefs.h
<<\EOF
7229 #define HAVE_PRRUN_T 1
7233 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7235 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7236 echo "configure:7237: checking for gregset_t in sys/procfs.h" >&5
7237 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7240 cat > conftest.
$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7245 #include <sys/procfs.h>
7250 if { (eval echo configure
:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7252 bfd_cv_have_sys_procfs_type_gregset_t
=yes
7254 echo "configure: failed program was:" >&5
7255 cat conftest.
$ac_ext >&5
7257 bfd_cv_have_sys_procfs_type_gregset_t
=no
7263 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7264 cat >> confdefs.h
<<\EOF
7265 #define HAVE_GREGSET_T 1
7269 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7271 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7272 echo "configure:7273: checking for fpregset_t in sys/procfs.h" >&5
7273 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.
$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7281 #include <sys/procfs.h>
7286 if { (eval echo configure
:7287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7288 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
7290 echo "configure: failed program was:" >&5
7291 cat conftest.
$ac_ext >&5
7293 bfd_cv_have_sys_procfs_type_fpregset_t
=no
7299 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7300 cat >> confdefs.h
<<\EOF
7301 #define HAVE_FPREGSET_T 1
7305 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7307 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7308 echo "configure:7309: checking for prgregset_t in sys/procfs.h" >&5
7309 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 cat > conftest.
$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7317 #include <sys/procfs.h>
7322 if { (eval echo configure
:7323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7324 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7326 echo "configure: failed program was:" >&5
7327 cat conftest.
$ac_ext >&5
7329 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7335 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7336 cat >> confdefs.h
<<\EOF
7337 #define HAVE_PRGREGSET_T 1
7341 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7343 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7344 echo "configure:7345: checking for prfpregset_t in sys/procfs.h" >&5
7345 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 cat > conftest.
$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7353 #include <sys/procfs.h>
7358 if { (eval echo configure
:7359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7360 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7362 echo "configure: failed program was:" >&5
7363 cat conftest.
$ac_ext >&5
7365 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7371 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7372 cat >> confdefs.h
<<\EOF
7373 #define HAVE_PRFPREGSET_T 1
7377 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7379 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7380 echo "configure:7381: checking for prgregset32_t in sys/procfs.h" >&5
7381 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7384 cat > conftest.
$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7389 #include <sys/procfs.h>
7394 if { (eval echo configure
:7395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7396 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
7398 echo "configure: failed program was:" >&5
7399 cat conftest.
$ac_ext >&5
7401 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
7407 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7408 cat >> confdefs.h
<<\EOF
7409 #define HAVE_PRGREGSET32_T 1
7413 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7415 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7416 echo "configure:7417: checking for prfpregset32_t in sys/procfs.h" >&5
7417 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7420 cat > conftest.
$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7425 #include <sys/procfs.h>
7430 if { (eval echo configure
:7431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7432 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
7434 echo "configure: failed program was:" >&5
7435 cat conftest.
$ac_ext >&5
7437 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
7443 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7444 cat >> confdefs.h
<<\EOF
7445 #define HAVE_PRFPREGSET32_T 1
7449 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7451 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7452 echo "configure:7453: checking for lwpid_t in sys/procfs.h" >&5
7453 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 cat > conftest.
$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7461 #include <sys/procfs.h>
7466 if { (eval echo configure
:7467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7468 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7470 echo "configure: failed program was:" >&5
7471 cat conftest.
$ac_ext >&5
7473 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7479 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7480 cat >> confdefs.h
<<\EOF
7481 #define HAVE_LWPID_T 1
7485 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7487 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7488 echo "configure:7489: checking for psaddr_t in sys/procfs.h" >&5
7489 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7492 cat > conftest.
$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7497 #include <sys/procfs.h>
7502 if { (eval echo configure
:7503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7504 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7506 echo "configure: failed program was:" >&5
7507 cat conftest.
$ac_ext >&5
7509 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7515 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7516 cat >> confdefs.h
<<\EOF
7517 #define HAVE_PSADDR_T 1
7521 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7523 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7524 echo "configure:7525: checking for prsysent_t in sys/procfs.h" >&5
7525 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7526 echo $ac_n "(cached) $ac_c" 1>&6
7528 cat > conftest.
$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7533 #include <sys/procfs.h>
7538 if { (eval echo configure
:7539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7540 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
7542 echo "configure: failed program was:" >&5
7543 cat conftest.
$ac_ext >&5
7545 bfd_cv_have_sys_procfs_type_prsysent_t
=no
7551 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7552 cat >> confdefs.h
<<\EOF
7553 #define HAVE_PRSYSENT_T 1
7557 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7559 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7560 echo "configure:7561: checking for pr_sigset_t in sys/procfs.h" >&5
7561 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7564 cat > conftest.
$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7569 #include <sys/procfs.h>
7574 if { (eval echo configure
:7575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7576 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
7578 echo "configure: failed program was:" >&5
7579 cat conftest.
$ac_ext >&5
7581 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
7587 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7588 cat >> confdefs.h
<<\EOF
7589 #define HAVE_PR_SIGSET_T 1
7593 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7595 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7596 echo "configure:7597: checking for pr_sigaction64_t in sys/procfs.h" >&5
7597 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7600 cat > conftest.
$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7605 #include <sys/procfs.h>
7607 pr_sigaction64_t avar
7610 if { (eval echo configure
:7611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7612 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
7614 echo "configure: failed program was:" >&5
7615 cat conftest.
$ac_ext >&5
7617 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
7623 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7624 cat >> confdefs.h
<<\EOF
7625 #define HAVE_PR_SIGACTION64_T 1
7629 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7631 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7632 echo "configure:7633: checking for pr_siginfo64_t in sys/procfs.h" >&5
7633 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7634 echo $ac_n "(cached) $ac_c" 1>&6
7636 cat > conftest.
$ac_ext <<EOF
7637 #line 7638 "configure"
7638 #include "confdefs.h"
7641 #include <sys/procfs.h>
7646 if { (eval echo configure
:7647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7648 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
7650 echo "configure: failed program was:" >&5
7651 cat conftest.
$ac_ext >&5
7653 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
7659 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7660 cat >> confdefs.h
<<\EOF
7661 #define HAVE_PR_SIGINFO64_T 1
7665 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7671 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7672 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7673 echo "configure:7674: checking whether prfpregset_t type is broken" >&5
7674 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7675 echo $ac_n "(cached) $ac_c" 1>&6
7677 if test "$cross_compiling" = yes; then
7678 gdb_cv_prfpregset_t_broken
=yes
7680 cat > conftest.
$ac_ext <<EOF
7681 #line 7682 "configure"
7682 #include "confdefs.h"
7683 #include <sys/procfs.h>
7686 if (sizeof (prfpregset_t) == sizeof (void *))
7691 if { (eval echo configure
:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7693 gdb_cv_prfpregset_t_broken
=no
7695 echo "configure: failed program was:" >&5
7696 cat conftest.
$ac_ext >&5
7698 gdb_cv_prfpregset_t_broken
=yes
7705 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7706 if test $gdb_cv_prfpregset_t_broken = yes; then
7707 cat >> confdefs.h
<<\EOF
7708 #define PRFPREGSET_T_BROKEN 1
7715 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7716 echo "configure:7717: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7717 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 cat > conftest.
$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7724 #include <sys/types.h>
7725 #include <sys/procfs.h>
7730 dummy = ioctl(0, PIOCSET, &dummy);
7734 if { (eval echo configure
:7735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7736 gdb_cv_have_procfs_piocset
=yes
7738 echo "configure: failed program was:" >&5
7739 cat conftest.
$ac_ext >&5
7741 gdb_cv_have_procfs_piocset
=no
7746 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
7747 if test $gdb_cv_have_procfs_piocset = yes; then
7748 cat >> confdefs.h
<<\EOF
7749 #define HAVE_PROCFS_PIOCSET 1
7755 if test ${host} = ${target} ; then
7757 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
7758 echo "configure:7759: checking for member l_addr in struct link_map" >&5
7759 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7762 cat > conftest.
$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7767 struct link_map lm; (void) lm.l_addr;
7770 if { (eval echo configure
:7771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7772 gdb_cv_have_struct_link_map_with_l_members
=yes
7774 echo "configure: failed program was:" >&5
7775 cat conftest.
$ac_ext >&5
7777 gdb_cv_have_struct_link_map_with_l_members
=no
7782 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
7783 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
7784 cat >> confdefs.h
<<\EOF
7785 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
7791 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
7792 echo "configure:7793: checking for member lm_addr in struct link_map" >&5
7793 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
7794 echo $ac_n "(cached) $ac_c" 1>&6
7796 cat > conftest.
$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7799 #include <sys/types.h>
7802 struct link_map lm; (void) lm.lm_addr;
7805 if { (eval echo configure
:7806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7807 gdb_cv_have_struct_link_map_with_lm_members
=yes
7809 echo "configure: failed program was:" >&5
7810 cat conftest.
$ac_ext >&5
7812 gdb_cv_have_struct_link_map_with_lm_members
=no
7817 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
7818 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
7819 cat >> confdefs.h
<<\EOF
7820 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
7826 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
7827 echo "configure:7828: checking for member som_addr in struct so_map" >&5
7828 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7831 cat > conftest.
$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 #include <sys/types.h>
7840 struct so_map lm; (void) lm.som_addr;
7843 if { (eval echo configure
:7844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7845 gdb_cv_have_struct_so_map_with_som_members
=yes
7847 echo "configure: failed program was:" >&5
7848 cat conftest.
$ac_ext >&5
7850 gdb_cv_have_struct_so_map_with_som_members
=no
7855 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
7856 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
7857 cat >> confdefs.h
<<\EOF
7858 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
7864 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
7865 echo "configure:7866: checking for struct link_map32 in sys/link.h" >&5
7866 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7869 cat > conftest.
$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7873 #include <sys/link.h>
7875 struct link_map32 l;
7878 if { (eval echo configure
:7879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7880 gdb_cv_have_struct_link_map32
=yes
7882 echo "configure: failed program was:" >&5
7883 cat conftest.
$ac_ext >&5
7885 gdb_cv_have_struct_link_map32
=no
7890 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
7891 if test $gdb_cv_have_struct_link_map32 = yes; then
7892 cat >> confdefs.h
<<\EOF
7893 #define HAVE_STRUCT_LINK_MAP32 1
7896 cat >> confdefs.h
<<\EOF
7897 #define _SYSCALL32 1
7904 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
7905 echo "configure:7906: checking for long long support in compiler" >&5
7906 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7909 cat > conftest.
$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7915 extern long long foo;
7916 switch (foo & 2) { case 0: return 1; }
7920 if { (eval echo configure
:7921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7922 gdb_cv_c_long_long
=yes
7924 echo "configure: failed program was:" >&5
7925 cat conftest.
$ac_ext >&5
7927 gdb_cv_c_long_long
=no
7932 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
7933 if test $gdb_cv_c_long_long = yes; then
7934 cat >> confdefs.h
<<\EOF
7935 #define CC_HAS_LONG_LONG 1
7941 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
7942 echo "configure:7943: checking for long long support in printf" >&5
7943 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 if test "$cross_compiling" = yes; then
7947 gdb_cv_printf_has_long_long
=no
7949 cat > conftest.
$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7956 l = (l << 16) + 0x0123;
7957 l = (l << 16) + 0x4567;
7958 l = (l << 16) + 0x89ab;
7959 l = (l << 16) + 0xcdef;
7960 sprintf (buf, "0x%016llx", l);
7961 return (strcmp ("0x0123456789abcdef", buf));
7964 if { (eval echo configure
:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7966 gdb_cv_printf_has_long_long
=yes
7968 echo "configure: failed program was:" >&5
7969 cat conftest.
$ac_ext >&5
7971 gdb_cv_printf_has_long_long
=no
7978 if test $gdb_cv_printf_has_long_long = yes; then
7979 cat >> confdefs.h
<<\EOF
7980 #define PRINTF_HAS_LONG_LONG 1
7984 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
7987 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
7988 echo "configure:7989: checking for long double support in compiler" >&5
7989 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7992 cat > conftest.
$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
8000 if { (eval echo configure
:8001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8002 ac_cv_c_long_double
=yes
8004 echo "configure: failed program was:" >&5
8005 cat conftest.
$ac_ext >&5
8007 ac_cv_c_long_double
=no
8012 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8013 if test $ac_cv_c_long_double = yes; then
8014 cat >> confdefs.h
<<\EOF
8015 #define HAVE_LONG_DOUBLE 1
8021 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8022 echo "configure:8023: checking for long double support in printf" >&5
8023 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8024 echo $ac_n "(cached) $ac_c" 1>&6
8026 if test "$cross_compiling" = yes; then
8027 gdb_cv_printf_has_long_double
=no
8029 cat > conftest.
$ac_ext <<EOF
8030 #line 8031 "configure"
8031 #include "confdefs.h"
8035 long double f = 3.141592653;
8036 sprintf (buf, "%Lg", f);
8037 return (strncmp ("3.14159", buf, 7));
8040 if { (eval echo configure
:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8042 gdb_cv_printf_has_long_double
=yes
8044 echo "configure: failed program was:" >&5
8045 cat conftest.
$ac_ext >&5
8047 gdb_cv_printf_has_long_double
=no
8054 if test $gdb_cv_printf_has_long_double = yes; then
8055 cat >> confdefs.h
<<\EOF
8056 #define PRINTF_HAS_LONG_DOUBLE 1
8060 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8063 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8064 echo "configure:8065: checking for long double support in scanf" >&5
8065 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8068 if test "$cross_compiling" = yes; then
8069 gdb_cv_scanf_has_long_double
=no
8071 cat > conftest.
$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8076 char *buf = "3.141592653";
8078 sscanf (buf, "%Lg", &f);
8079 return !(f > 3.14159 && f < 3.14160);
8082 if { (eval echo configure
:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8084 gdb_cv_scanf_has_long_double
=yes
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8089 gdb_cv_scanf_has_long_double
=no
8096 if test $gdb_cv_scanf_has_long_double = yes; then
8097 cat >> confdefs.h
<<\EOF
8098 #define SCANF_HAS_LONG_DOUBLE 1
8102 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8106 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8107 echo "configure:8108: checking for -bbigtoc option" >&5
8108 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8112 SAVE_LDFLAGS
=$LDFLAGS
8115 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8116 *) gdb_cv_bigtoc
=-bbigtoc ;;
8119 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8120 cat > conftest.
$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8128 if { (eval echo configure
:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8131 echo "configure: failed program was:" >&5
8132 cat conftest.
$ac_ext >&5
8140 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8141 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8147 if test ${build} = ${host} -a ${host} = ${target} ; then
8150 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8151 echo "configure:8152: checking for HPUX/OSF thread support" >&5
8152 if test -f /usr
/include
/dce
/cma_config.h
; then
8153 if test "$GCC" = "yes" ; then
8154 echo "$ac_t""yes" 1>&6
8155 cat >> confdefs.h
<<\EOF
8156 #define HAVE_HPUX_THREAD_SUPPORT 1
8159 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8160 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8162 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8165 echo "$ac_t""no" 1>&6
8169 # See if thread_db library is around for Solaris thread debugging.
8170 # Note that we must explicitly test for version 1 of the library
8171 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8173 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8174 echo "configure:8175: checking for Solaris thread debugging library" >&5
8175 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8176 echo "$ac_t""yes" 1>&6
8177 cat >> confdefs.h
<<\EOF
8178 #define HAVE_THREAD_DB_LIB 1
8181 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8182 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8183 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8184 echo "configure:8185: checking for dlopen in -ldl" >&5
8185 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8189 ac_save_LIBS
="$LIBS"
8191 cat > conftest.
$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 /* Override any gcc2 internal prototype to avoid an error. */
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8203 if { (eval echo configure
:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8205 eval "ac_cv_lib_$ac_lib_var=yes"
8207 echo "configure: failed program was:" >&5
8208 cat conftest.
$ac_ext >&5
8210 eval "ac_cv_lib_$ac_lib_var=no"
8213 LIBS
="$ac_save_LIBS"
8216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8217 echo "$ac_t""yes" 1>&6
8218 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8220 cat >> confdefs.h
<<EOF
8221 #define $ac_tr_lib 1
8227 echo "$ac_t""no" 1>&6
8230 if test "$GCC" = "yes" ; then
8231 # The GNU linker requires the -export-dynamic option to make
8232 # all symbols visible in the dynamic symbol table.
8233 hold_ldflags
=$LDFLAGS
8234 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8235 echo "configure:8236: checking for the ld -export-dynamic flag" >&5
8236 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8237 cat > conftest.
$ac_ext <<EOF
8238 #line 8239 "configure"
8239 #include "confdefs.h"
8245 if { (eval echo configure
:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8249 echo "configure: failed program was:" >&5
8250 cat conftest.
$ac_ext >&5
8255 LDFLAGS
=$hold_ldflags
8256 echo "$ac_t""$found" 1>&6
8257 if test $found = yes; then
8258 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8261 # Sun randomly tweaked the prototypes in <proc_service.h>
8263 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8264 echo "configure:8265: checking if <proc_service.h> is old" >&5
8265 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8266 echo $ac_n "(cached) $ac_c" 1>&6
8269 cat > conftest.
$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8273 #include <proc_service.h>
8275 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8281 if { (eval echo configure
:8282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8283 gdb_cv_proc_service_is_old
=no
8285 echo "configure: failed program was:" >&5
8286 cat conftest.
$ac_ext >&5
8288 gdb_cv_proc_service_is_old
=yes
8294 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8295 if test $gdb_cv_proc_service_is_old = yes; then
8296 cat >> confdefs.h
<<\EOF
8297 #define PROC_SERVICE_IS_OLD 1
8302 echo "$ac_t""no" 1>&6
8306 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8307 echo "configure:8308: checking for AiX thread debugging library" >&5
8308 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8311 cat > conftest.
$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8314 #include <sys/pthdebug.h>
8316 #ifndef PTHDB_VERSION_3
8321 if { (eval echo configure
:8322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8323 gdb_cv_have_aix_thread_debug
=yes
8325 echo "configure: failed program was:" >&5
8326 cat conftest.
$ac_ext >&5
8328 gdb_cv_have_aix_thread_debug
=no
8333 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8334 if test $gdb_cv_have_aix_thread_debug = yes; then
8335 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
8336 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
8337 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8344 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8345 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8346 echo "configure:8347: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8347 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8348 echo $ac_n "(cached) $ac_c" 1>&6
8350 cat > conftest.
$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8353 #include <thread_db.h>
8355 int i = TD_NOTALLOC;
8358 if { (eval echo configure
:8359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8360 gdb_cv_thread_db_h_has_td_notalloc
=yes
8362 echo "configure: failed program was:" >&5
8363 cat conftest.
$ac_ext >&5
8365 gdb_cv_thread_db_h_has_td_notalloc
=no
8372 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8374 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8375 cat >> confdefs.h
<<\EOF
8376 #define THREAD_DB_HAS_TD_NOTALLOC 1
8381 if test $host = $target; then
8385 CFLAGS
="$CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8386 cat > conftest.
$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8391 pread64 (0, NULL, 0, 0);
8394 if { (eval echo configure
:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8396 ENABLE_CFLAGS
="$ENABLE_CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8397 cat >> confdefs.h
<<\EOF
8398 #define HAVE_PREAD64 1
8402 echo "configure: failed program was:" >&5
8403 cat conftest.
$ac_ext >&5
8412 # NOTE: Don't add -Wall or -Wunused, they both include
8413 # -Wunused-parameter which reports bogus warnings.
8414 # NOTE: If you add to this list, remember to update
8415 # gdb/doc/gdbint.texinfo.
8416 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8417 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8418 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8419 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8420 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8421 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8422 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8423 # -Woverloaded-virtual -Winline -Werror"
8424 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8425 if test "${enable_build_warnings+set}" = set; then
8426 enableval
="$enable_build_warnings"
8427 case "${enableval}" in
8429 no
) build_warnings
="-w";;
8430 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8431 build_warnings
="${build_warnings} ${t}";;
8432 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8433 build_warnings
="${t} ${build_warnings}";;
8434 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8436 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8437 echo "Setting compiler warning flags = $build_warnings" 6>&1
8440 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8441 if test "${enable_gdb_build_warnings+set}" = set; then
8442 enableval
="$enable_gdb_build_warnings"
8443 case "${enableval}" in
8445 no
) build_warnings
="-w";;
8446 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8447 build_warnings
="${build_warnings} ${t}";;
8448 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8449 build_warnings
="${t} ${build_warnings}";;
8450 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8452 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8453 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8458 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8460 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8461 echo "configure:8462: checking compiler warning flags" >&5
8462 # Separate out the -Werror flag as some files just cannot be
8463 # compiled with it enabled.
8464 for w
in ${build_warnings}; do
8466 -Werr*) WERROR_CFLAGS
=-Werror ;;
8467 *) # Check that GCC accepts it
8468 saved_CFLAGS
="$CFLAGS"
8470 cat > conftest.
$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8478 if { (eval echo configure
:8479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8480 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8482 echo "configure: failed program was:" >&5
8483 cat conftest.
$ac_ext >&5
8486 CFLAGS
="$saved_CFLAGS"
8489 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8499 # Check whether --with-mmalloc or --without-mmalloc was given.
8500 if test "${with_mmalloc+set}" = set; then
8501 withval
="$with_mmalloc"
8502 case "${withval}" in
8503 yes) want_mmalloc
=true
;;
8504 no
) want_mmalloc
=false
;;
8505 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8511 if test x
$want_mmalloc = xtrue
; then
8512 cat >> confdefs.h
<<\EOF
8513 #define USE_MMALLOC 1
8516 cat >> confdefs.h
<<\EOF
8517 #define MMCHECK_FORCE 1
8520 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8521 MMALLOC
='../mmalloc/libmmalloc.a'
8524 # In the Cygwin environment, we need some additional flags.
8525 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8526 echo "configure:8527: checking for cygwin" >&5
8527 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.
$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8534 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 egrep "lose" >/dev
/null
2>&1; then
8541 gdb_cv_os_cygwin
=yes
8550 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8553 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8555 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8556 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8560 # libreadline needs libuser32.a in a cygwin environment
8562 if test x
$gdb_cv_os_cygwin = xyes
; then
8563 WIN32LIBS
="-luser32"
8565 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8571 LIBGUI
="../libgui/src/libgui.a"
8572 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8576 # Check whether --enable-gdbtk or --disable-gdbtk was given.
8577 if test "${enable_gdbtk+set}" = set; then
8578 enableval
="$enable_gdbtk"
8579 case "${enableval}" in
8583 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8586 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8594 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
8598 # Default is on for everything but go32 and Cygwin
8603 if test -d "${srcdir}/gdbtk" ; then
8619 if test "${enable_gdbtk}" = "yes"; then
8621 # Gdbtk must have an absolute path to srcdir in order to run
8622 # properly when not installed.
8630 # Ok, lets find the tcl configuration
8631 # First, look for one uninstalled.
8632 # the alternative search directory is invoked by --with-tclconfig
8635 if test x
"${no_tcl}" = x
; then
8636 # we reset no_tcl in case something fails here
8638 # Check whether --with-tclconfig or --without-tclconfig was given.
8639 if test "${with_tclconfig+set}" = set; then
8640 withval
="$with_tclconfig"
8641 with_tclconfig
=${withval}
8644 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8645 echo "configure:8646: checking for Tcl configuration" >&5
8646 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8651 # First check to see if --with-tclconfig was specified.
8652 if test x
"${with_tclconfig}" != x
; then
8653 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8654 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8656 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8660 # then check for a private Tcl installation
8661 if test x
"${ac_cv_c_tclconfig}" = x
; then
8664 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8666 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8668 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8669 if test -f "$i/${configdir}/tclConfig.sh" ; then
8670 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8675 # check in a few common install locations
8676 if test x
"${ac_cv_c_tclconfig}" = x
; then
8677 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8678 if test -f "$i/tclConfig.sh" ; then
8679 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8684 # check in a few other private locations
8685 if test x
"${ac_cv_c_tclconfig}" = x
; then
8688 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8689 if test -f "$i/${configdir}/tclConfig.sh" ; then
8690 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8698 if test x
"${ac_cv_c_tclconfig}" = x
; then
8699 TCLCONFIG
="# no Tcl configs found"
8700 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8703 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8704 echo "$ac_t""found $TCLCONFIG" 1>&6
8708 if test -z "${no_tcl}"; then
8738 # Ok, lets find the tk configuration
8739 # First, look for one uninstalled.
8740 # the alternative search directory is invoked by --with-tkconfig
8743 if test x
"${no_tk}" = x
; then
8744 # we reset no_tk in case something fails here
8746 # Check whether --with-tkconfig or --without-tkconfig was given.
8747 if test "${with_tkconfig+set}" = set; then
8748 withval
="$with_tkconfig"
8749 with_tkconfig
=${withval}
8752 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8753 echo "configure:8754: checking for Tk configuration" >&5
8754 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8755 echo $ac_n "(cached) $ac_c" 1>&6
8759 # First check to see if --with-tkconfig was specified.
8760 if test x
"${with_tkconfig}" != x
; then
8761 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8762 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8764 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8768 # then check for a private Tk library
8769 if test x
"${ac_cv_c_tkconfig}" = x
; then
8772 `ls -dr ../tk[4-9]* 2>/dev/null` \
8774 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8776 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8777 if test -f "$i/${configdir}/tkConfig.sh" ; then
8778 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8783 # check in a few common install locations
8784 if test x
"${ac_cv_c_tkconfig}" = x
; then
8785 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8786 if test -f "$i/tkConfig.sh" ; then
8787 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8792 # check in a few other private locations
8793 if test x
"${ac_cv_c_tkconfig}" = x
; then
8796 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8797 if test -f "$i/${configdir}/tkConfig.sh" ; then
8798 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8806 if test x
"${ac_cv_c_tkconfig}" = x
; then
8807 TKCONFIG
="# no Tk configs found"
8808 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
8811 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
8812 echo "$ac_t""found $TKCONFIG" 1>&6
8818 # now look for Tcl library stuff
8829 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
8831 # If $no_tk is nonempty, then we can't do Tk, and there is no
8832 # point to doing Tcl.
8833 if test -z "${no_tk}"; then
8835 if test -f "$TKCONFIG" ; then
8853 # Ok, lets find the tcl source trees so we can use the headers
8854 # Warning: transition of version 9 to 10 will break this algorithm
8855 # because 10 sorts before 9. We also look for just tcl. We have to
8856 # be careful that we don't match stuff like tclX by accident.
8857 # the alternative search directory is involked by --with-tclinclude
8861 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
8862 echo "configure:8863: checking for Tcl private headers. dir=${configdir}" >&5
8863 # Check whether --with-tclinclude or --without-tclinclude was given.
8864 if test "${with_tclinclude+set}" = set; then
8865 withval
="$with_tclinclude"
8866 with_tclinclude
=${withval}
8869 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
8873 # first check to see if --with-tclinclude was specified
8874 if test x
"${with_tclinclude}" != x
; then
8875 if test -f ${with_tclinclude}/tclInt.h
; then
8876 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
8877 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
8878 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
8880 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
8884 # next check if it came with Tcl configuration file
8885 if test x
"${ac_cv_c_tclconfig}" = x
; then
8886 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
8887 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
8891 # next check in private source directory
8893 # since ls returns lowest version numbers first, reverse its output
8894 if test x
"${ac_cv_c_tclh}" = x
; then
8897 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
8898 ${srcdir}/..
/..
/tcl \
8899 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
8900 ${srcdir}/..
/..
/..
/tcl \
8901 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
8902 if test -f $i/generic
/tclInt.h
; then
8903 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8908 # finally check in a few common install locations
8910 # since ls returns lowest version numbers first, reverse its output
8911 if test x
"${ac_cv_c_tclh}" = x
; then
8913 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
8914 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
8915 /usr
/local
/src
/tcl \
8916 /usr
/local
/lib
/tcl \
8917 ${prefix}/include
; do
8918 if test -f $i/generic
/tclInt.h
; then
8919 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8924 # see if one is installed
8925 if test x
"${ac_cv_c_tclh}" = x
; then
8926 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
8927 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
8928 echo "configure:8929: checking for tclInt.h" >&5
8929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8932 cat > conftest.
$ac_ext <<EOF
8933 #line 8934 "configure"
8934 #include "confdefs.h"
8937 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8938 { (eval echo configure
:8939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8939 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8940 if test -z "$ac_err"; then
8942 eval "ac_cv_header_$ac_safe=yes"
8945 echo "configure: failed program was:" >&5
8946 cat conftest.
$ac_ext >&5
8948 eval "ac_cv_header_$ac_safe=no"
8952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8953 echo "$ac_t""yes" 1>&6
8954 ac_cv_c_tclh
=installed
8956 echo "$ac_t""no" 1>&6
8964 if test x
"${ac_cv_c_tclh}" = x
; then
8965 TCLHDIR
="# no Tcl private headers found"
8966 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
8968 if test x
"${ac_cv_c_tclh}" != x
; then
8970 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
8971 echo "$ac_t""is installed" 1>&6
8974 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
8975 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
8976 TCLHDIR
="-I${ac_cv_c_tclh}"
8984 # Ok, lets find the tk source trees so we can use the headers
8985 # If the directory (presumably symlink) named "tk" exists, use that one
8986 # in preference to any others. Same logic is used when choosing library
8987 # and again with Tcl. The search order is the best place to look first, then in
8988 # decreasing significance. The loop breaks if the trigger file is found.
8989 # Note the gross little conversion here of srcdir by cd'ing to the found
8990 # directory. This converts the path from a relative to an absolute, so
8991 # recursive cache variables for the path will work right. We check all
8992 # the possible paths in one loop rather than many seperate loops to speed
8994 # the alternative search directory is involked by --with-tkinclude
8997 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
8998 echo "configure:8999: checking for Tk private headers" >&5
8999 # Check whether --with-tkinclude or --without-tkinclude was given.
9000 if test "${with_tkinclude+set}" = set; then
9001 withval
="$with_tkinclude"
9002 with_tkinclude
=${withval}
9005 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9009 # first check to see if --with-tkinclude was specified
9010 if test x
"${with_tkinclude}" != x
; then
9011 if test -f ${with_tkinclude}/tk.h
; then
9012 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9013 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9014 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9016 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9020 # next check if it came with Tk configuration file
9021 if test x
"${ac_cv_c_tkconfig}" = x
; then
9022 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9023 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9027 # next check in private source directory
9029 # since ls returns lowest version numbers first, reverse its output
9030 if test x
"${ac_cv_c_tkh}" = x
; then
9033 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9034 ${srcdir}/..
/..
/tk \
9035 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9036 ${srcdir}/..
/..
/..
/tk \
9037 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9038 if test -f $i/generic
/tk.h
; then
9039 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9044 # finally check in a few common install locations
9046 # since ls returns lowest version numbers first, reverse its output
9047 if test x
"${ac_cv_c_tkh}" = x
; then
9049 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9050 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9053 ${prefix}/include
; do
9054 if test -f $i/generic
/tk.h
; then
9055 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9060 # see if one is installed
9061 if test x
"${ac_cv_c_tkh}" = x
; then
9062 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9063 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9064 echo "configure:9065: checking for tk.h" >&5
9065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9068 cat > conftest.
$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9074 { (eval echo configure
:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9075 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9076 if test -z "$ac_err"; then
9078 eval "ac_cv_header_$ac_safe=yes"
9081 echo "configure: failed program was:" >&5
9082 cat conftest.
$ac_ext >&5
9084 eval "ac_cv_header_$ac_safe=no"
9088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9089 echo "$ac_t""yes" 1>&6
9090 ac_cv_c_tkh
=installed
9092 echo "$ac_t""no" 1>&6
9100 if test x
"${ac_cv_c_tkh}" != x
; then
9102 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9103 echo "$ac_t""is installed" 1>&6
9106 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9107 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9108 TKHDIR
="-I${ac_cv_c_tkh}"
9111 TKHDIR
="# no Tk directory found"
9112 echo "configure: warning: Can't find Tk private headers" 1>&2
9119 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9120 echo "configure:9121: checking for Itcl private headers. srcdir=${srcdir}" >&5
9121 if test x
"${ac_cv_c_itclh}" = x
; then
9122 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9123 if test -f $i/generic
/itcl.h
; then
9124 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9129 if test x
"${ac_cv_c_itclh}" = x
; then
9130 ITCLHDIR
="# no Itcl private headers found"
9131 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9133 if test x
"${ac_cv_c_itclh}" != x
; then
9134 ITCLHDIR
="-I${ac_cv_c_itclh}"
9136 # should always be here
9137 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9142 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9143 echo "configure:9144: checking for Itk private headers. srcdir=${srcdir}" >&5
9144 if test x
"${ac_cv_c_itkh}" = x
; then
9145 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9146 if test -f $i/generic
/itk.h
; then
9147 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9152 if test x
"${ac_cv_c_itkh}" = x
; then
9153 ITKHDIR
="# no Itk private headers found"
9154 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9156 if test x
"${ac_cv_c_itkh}" != x
; then
9157 ITKHDIR
="-I${ac_cv_c_itkh}"
9159 # should always be here
9160 # ITKLIB="../itcl/itk/unix/libitk.a"
9166 # now look for Tk library stuff
9177 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9179 # now look for Itcl library stuff
9183 # Ok, lets find the itcl configuration
9184 # First, look for one uninstalled.
9185 # the alternative search directory is invoked by --with-itclconfig
9188 if test x
"${no_itcl}" = x
; then
9189 # we reset no_itcl in case something fails here
9191 # Check whether --with-itclconfig or --without-itclconfig was given.
9192 if test "${with_itclconfig+set}" = set; then
9193 withval
="$with_itclconfig"
9194 with_itclconfig
=${withval}
9197 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9198 echo "configure:9199: checking for Itcl configuration" >&5
9199 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9204 # First check to see if --with-itclconfig was specified.
9205 if test x
"${with_itclconfig}" != x
; then
9206 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9207 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9209 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9213 # then check for a private Itcl library
9214 if test x
"${ac_cv_c_itclconfig}" = x
; then
9217 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9219 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9221 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9222 if test -f "$i/itclConfig.sh" ; then
9223 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9228 # check in a few common install locations
9229 if test x
"${ac_cv_c_itclconfig}" = x
; then
9230 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9231 if test -f "$i/itclConfig.sh" ; then
9232 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9237 # check in a few other private locations
9238 if test x
"${ac_cv_c_itclconfig}" = x
; then
9240 ${srcdir}/..
/itcl
/itcl \
9241 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9242 if test -f "$i/itclConfig.sh" ; then
9243 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9251 if test x
"${ac_cv_c_itclconfig}" = x
; then
9252 ITCLCONFIG
="# no Itcl configs found"
9253 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9256 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9257 echo "$ac_t""found $ITCLCONFIG" 1>&6
9261 if test -z "${no_itcl}"; then
9263 if test -f "$ITCLCONFIG" ; then
9278 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9279 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9283 # now look for Itk library stuff
9286 # Ok, lets find the itk configuration
9287 # First, look for one uninstalled.
9288 # the alternative search directory is invoked by --with-itkconfig
9291 if test x
"${no_itk}" = x
; then
9292 # we reset no_itk in case something fails here
9294 # Check whether --with-itkconfig or --without-itkconfig was given.
9295 if test "${with_itkconfig+set}" = set; then
9296 withval
="$with_itkconfig"
9297 with_itkconfig
=${withval}
9300 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9301 echo "configure:9302: checking for Itk configuration" >&5
9302 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9307 # First check to see if --with-itkconfig was specified.
9308 if test x
"${with_itkconfig}" != x
; then
9309 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9310 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9312 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9316 # then check for a private Itk library
9317 if test x
"${ac_cv_c_itkconfig}" = x
; then
9320 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9322 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9324 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9325 if test -f "$i/itkConfig.sh" ; then
9326 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9331 # check in a few common install locations
9332 if test x
"${ac_cv_c_itkconfig}" = x
; then
9333 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9334 if test -f "$i/itkConfig.sh" ; then
9335 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9340 # check in a few other private locations
9341 if test x
"${ac_cv_c_itkconfig}" = x
; then
9343 ${srcdir}/..
/itcl
/itk \
9344 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9345 if test -f "$i/itkConfig.sh" ; then
9346 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9354 if test x
"${ac_cv_c_itkconfig}" = x
; then
9355 ITKCONFIG
="# no Itk configs found"
9356 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9359 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9360 echo "$ac_t""found $ITKCONFIG" 1>&6
9365 if test -z "${no_itcl}"; then
9367 if test -f "$ITKCONFIG" ; then
9382 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9383 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9386 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9387 # Tcl/Tk 8.1 require -fwritable strings. I don't
9388 # know whether 8.2 will or not, but I bet it will.
9389 # I don't have to worry about 7.x since we don't support it.
9391 if test "$GCC" = "yes"; then
9392 if test "$TCL_VERSION" != "8.0" ; then
9393 GDBTK_CFLAGS
="-fwritable-strings"
9397 # Include some libraries that Tcl and Tk want.
9398 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9399 # Yes, the ordering seems wrong here. But it isn't.
9400 # TK_LIBS is the list of libraries that need to be linked
9401 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9402 # were in LIBS then any link tests after this point would
9403 # try to include things like `$(LIBGUI)', which wouldn't work.
9404 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9406 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9407 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9408 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9409 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9410 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9411 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9412 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9413 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9415 if test x
$gdb_cv_os_cygwin = xyes
; then
9416 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9417 WIN32LDAPP
="-Wl,--subsystem,console"
9418 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9423 configdirs
="${configdirs} gdbtk"
9439 # If we find X, set shell vars x_includes and x_libraries to the
9440 # paths, otherwise set no_x=yes.
9441 # Uses ac_ vars as temps to allow command line to override cache and checks.
9442 # --without-x overrides everything else, but does not touch the cache.
9443 echo $ac_n "checking for X""... $ac_c" 1>&6
9444 echo "configure:9445: checking for X" >&5
9446 # Check whether --with-x or --without-x was given.
9447 if test "${with_x+set}" = set; then
9452 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9453 if test "x$with_x" = xno
; then
9454 # The user explicitly disabled X.
9457 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9458 # Both variables are already set.
9461 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9464 # One or both of the vars are not set, and there is no cached value.
9465 ac_x_includes
=NO ac_x_libraries
=NO
9467 if mkdir conftestdir
; then
9469 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9470 cat > Imakefile
<<'EOF'
9472 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9474 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9476 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9477 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9478 for ac_extension
in a so sl
; do
9479 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9480 test -f $ac_im_libdir/libX11.
$ac_extension; then
9481 ac_im_usrlibdir
=$ac_im_libdir; break
9484 # Screen out bogus values from the imake configuration. They are
9485 # bogus both because they are the default anyway, and because
9486 # using them would break gcc on systems where it needs fixed includes.
9487 case "$ac_im_incroot" in
9489 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9491 case "$ac_im_usrlibdir" in
9493 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9500 if test "$ac_x_includes" = NO
; then
9501 # Guess where to find include files, by looking for this one X11 .h file.
9502 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9504 # First, try using that file with no special directory specified.
9505 cat > conftest.
$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9508 #include <$x_direct_test_include>
9510 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9511 { (eval echo configure
:9512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9512 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9513 if test -z "$ac_err"; then
9515 # We can compile using X headers with no special include directory.
9519 echo "configure: failed program was:" >&5
9520 cat conftest.
$ac_ext >&5
9522 # Look for the header file in a standard set of common directories.
9523 # Check X11 before X11Rn because it is often a symlink to the current release.
9526 /usr
/X11R
6/include \
9527 /usr
/X11R
5/include \
9528 /usr
/X11R
4/include \
9531 /usr
/include
/X11R6 \
9532 /usr
/include
/X11R5 \
9533 /usr
/include
/X11R4 \
9535 /usr
/local
/X11
/include \
9536 /usr
/local
/X11R
6/include \
9537 /usr
/local
/X11R
5/include \
9538 /usr
/local
/X11R
4/include \
9540 /usr
/local
/include
/X11 \
9541 /usr
/local
/include
/X11R6 \
9542 /usr
/local
/include
/X11R5 \
9543 /usr
/local
/include
/X11R4 \
9547 /usr
/XFree86
/include
/X11 \
9550 /usr
/local
/include \
9551 /usr
/unsupported
/include \
9552 /usr
/athena
/include \
9553 /usr
/local
/x11r
5/include \
9554 /usr
/lpp
/Xamples
/include \
9556 /usr
/openwin
/include \
9557 /usr
/openwin
/share
/include \
9560 if test -r "$ac_dir/$x_direct_test_include"; then
9561 ac_x_includes
=$ac_dir
9567 fi # $ac_x_includes = NO
9569 if test "$ac_x_libraries" = NO
; then
9570 # Check for the libraries.
9572 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9573 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9575 # See if we find them without any special options.
9576 # Don't add to $LIBS permanently.
9577 ac_save_LIBS
="$LIBS"
9578 LIBS
="-l$x_direct_test_library $LIBS"
9579 cat > conftest.
$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9584 ${x_direct_test_function}()
9587 if { (eval echo configure
:9588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9589 LIBS
="$ac_save_LIBS"
9590 # We can link X programs with no special library path.
9593 echo "configure: failed program was:" >&5
9594 cat conftest.
$ac_ext >&5
9596 LIBS
="$ac_save_LIBS"
9597 # First see if replacing the include by lib works.
9598 # Check X11 before X11Rn because it is often a symlink to the current release.
9599 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9610 /usr
/local
/X11
/lib \
9611 /usr
/local
/X11R
6/lib \
9612 /usr
/local
/X11R
5/lib \
9613 /usr
/local
/X11R
4/lib \
9615 /usr
/local
/lib
/X11 \
9616 /usr
/local
/lib
/X11R6 \
9617 /usr
/local
/lib
/X11R5 \
9618 /usr
/local
/lib
/X11R4 \
9622 /usr
/XFree86
/lib
/X11 \
9626 /usr
/unsupported
/lib \
9628 /usr
/local
/x11r
5/lib \
9629 /usr
/lpp
/Xamples
/lib \
9633 /usr
/openwin
/share
/lib \
9636 for ac_extension
in a so sl
; do
9637 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9638 ac_x_libraries
=$ac_dir
9645 fi # $ac_x_libraries = NO
9647 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9648 # Didn't find X anywhere. Cache the known absence of X.
9649 ac_cv_have_x
="have_x=no"
9651 # Record where we found X for the cache.
9652 ac_cv_have_x
="have_x=yes \
9653 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9657 eval "$ac_cv_have_x"
9660 if test "$have_x" != yes; then
9661 echo "$ac_t""$have_x" 1>&6
9664 # If each of the values was on the command line, it overrides each guess.
9665 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9666 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9667 # Update the cache value to reflect the command line values.
9668 ac_cv_have_x
="have_x=yes \
9669 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9670 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9675 # Unlike the sim directory, whether a simulator is linked is controlled by
9676 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9677 # This code just checks for a few cases where we'd like to ignore those
9678 # definitions, even when they're present in the '.mt' file. These cases
9679 # are when --disable-sim is specified, or if the simulator directory is
9680 # not part of the source tree.
9682 # Check whether --enable-sim or --disable-sim was given.
9683 if test "${enable_sim+set}" = set; then
9684 enableval
="$enable_sim"
9685 echo "enable_sim = $enable_sim";
9686 echo "enableval = ${enableval}";
9687 case "${enableval}" in
9688 yes) ignore_sim
=false
;;
9689 no
) ignore_sim
=true
;;
9690 *) ignore_sim
=false
;;
9697 if test ! -d "${srcdir}/../sim"; then
9701 if test "${ignore_sim}" = "true"; then
9703 IGNORE_SIM_OBS
="SIM_OBS="
9707 cat >> confdefs.h
<<\EOF
9727 # Begin stuff to support --enable-shared
9728 # Check whether --enable-shared or --disable-shared was given.
9729 if test "${enable_shared+set}" = set; then
9730 enableval
="$enable_shared"
9731 case "${enableval}" in
9740 # If we have shared libraries, try to set rpath reasonably.
9741 if test "${shared}" = "true"; then
9744 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
9746 *-*-irix5* |
*-*-irix6*)
9747 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9751 *-*-linux* |
*-pc-linux-gnu*)
9752 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9755 HLDFLAGS
='-R $(libdir)'
9758 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;'
9763 # On SunOS, if the linker supports the -rpath option, use it to
9764 # prevent ../bfd and ../opcodes from being included in the run time
9768 echo 'main () { }' > conftest.c
9769 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
9770 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
9772 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
9774 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
9776 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
9778 elif test "${shared}" = "true"; then
9779 HLDFLAGS
='-Wl,-rpath=$(libdir)'
9781 HLDFLAGS
='-Wl,-rpath='
9783 rm -f conftest.t conftest.c conftest
9788 # End stuff to support --enable-shared
9790 # target_subdir is used by the testsuite to find the target libraries.
9792 if test "${host}" != "${target}"; then
9793 target_subdir
="${target_alias}/"
9798 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9799 if test ! -f ${host_makefile_frag}; then
9800 # When building a native debuger the .mh file containing things
9801 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9802 # since it no longer contains anything useful.
9803 if test "${target}" = "${host}"; then
9804 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9806 host_makefile_frag
=/dev
/null
9809 frags
="$frags $host_makefile_frag"
9811 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9812 if test ! -f ${target_makefile_frag}; then
9813 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9815 frags
="$frags $target_makefile_frag"
9822 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9823 ' ${host_makefile_frag}`
9825 targetfile
=`sed -n '
9826 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9827 ' ${target_makefile_frag}`
9829 GDB_MULTI_ARCH
=`sed -n '
9830 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9831 ' ${target_makefile_frag}`
9833 if test "${target}" = "${host}"; then
9834 # We pick this up from the host configuration file (.mh) because we
9835 # do not have a native configuration Makefile fragment.
9836 nativefile
=`sed -n '
9837 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9838 ' ${host_makefile_frag}`
9842 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9843 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9844 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
9845 # will be the default.
9846 if test x
"${GDB_MULTI_ARCH}" = x
; then
9847 case "${gdb_multi_arch}" in
9848 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
9849 no
) GDB_MULTI_ARCH
=0 ;;
9850 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
9853 if test x
"${GDB_MULTI_ARCH}" != x
; then
9854 cat >> confdefs.h
<<EOF
9855 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
9859 # Warn the user when they use an old practice
9860 case "${GDB_MULTI_ARCH}" in
9862 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
9863 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
9864 GDB_MULTI_ARCH_PURE
)
9865 if test x
"${targetfile}" != x
; then
9866 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
9869 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
9872 # Enable multi-ice-gdb-server.
9873 # Check whether --enable-multi-ice or --disable-multi-ice was given.
9874 if test "${enable_multi_ice+set}" = set; then
9875 enableval
="$enable_multi_ice"
9879 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
9883 if test "x$enable_multi_ice" = xyes
; then
9884 configdirs
="$configdirs multi-ice"
9887 # We only build gdbserver automatically if host and target are the same.
9888 if test "x$target" = "x$host"; then
9889 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
9890 echo "configure:9891: checking whether gdbserver is supported on this host" >&5
9891 if test "x$build_gdbserver" = xyes
; then
9892 configdirs
="$configdirs gdbserver"
9893 echo "$ac_t""yes" 1>&6
9895 echo "$ac_t""no" 1>&6
9899 subdirs
="doc testsuite $configdirs"
9904 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
9905 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
9913 if test "${hostfile}" != ""; then
9915 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
9916 files
="${files} ${GDB_XM_FILE}"
9917 links
="${links} xm.h"
9918 cat >> confdefs.h
<<EOF
9919 #define GDB_XM_FILE ${GDB_XM_FILE}
9927 if test "${targetfile}" != ""; then
9929 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
9930 files
="${files} ${GDB_TM_FILE}"
9931 links
="${links} tm.h"
9932 cat >> confdefs.h
<<EOF
9933 #define GDB_TM_FILE ${GDB_TM_FILE}
9941 if test "${nativefile}" != ""; then
9943 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
9944 files
="${files} ${GDB_NM_FILE}"
9945 links
="${links} nm.h"
9946 cat >> confdefs.h
<<EOF
9947 #define GDB_NM_FILE ${GDB_NM_FILE}
9955 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
9956 echo "configure:9957: checking for Cygwin environment" >&5
9957 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9960 cat > conftest.
$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9967 #define __CYGWIN__ __CYGWIN32__
9972 if { (eval echo configure
:9973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9976 echo "configure: failed program was:" >&5
9977 cat conftest.
$ac_ext >&5
9985 echo "$ac_t""$ac_cv_cygwin" 1>&6
9987 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
9988 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
9989 echo "configure:9990: checking for mingw32 environment" >&5
9990 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9993 cat > conftest.
$ac_ext <<EOF
9994 #line 9995 "configure"
9995 #include "confdefs.h"
10001 if { (eval echo configure
:10002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10005 echo "configure: failed program was:" >&5
10006 cat conftest.
$ac_ext >&5
10014 echo "$ac_t""$ac_cv_mingw32" 1>&6
10016 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10019 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10020 echo "configure:10021: checking for executable suffix" >&5
10021 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10024 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10028 echo 'int main () { return 0; }' > conftest.
$ac_ext
10030 if { (eval echo configure
:10031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10031 for file in conftest.
*; do
10033 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10034 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10038 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10041 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10046 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10047 echo "$ac_t""${ac_cv_exeext}" 1>&6
10052 cat >> confdefs.h
<<\EOF
10053 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10059 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10060 if test "${with_libiconv_prefix+set}" = set; then
10061 withval
="$with_libiconv_prefix"
10063 for dir
in `echo "$withval" | tr : ' '`; do
10064 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10065 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10071 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10072 echo "configure:10073: checking for iconv" >&5
10073 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10077 am_cv_func_iconv
="no, consider installing GNU libiconv"
10079 cat > conftest.
$ac_ext <<EOF
10080 #line 10081 "configure"
10081 #include "confdefs.h"
10082 #include <stdlib.h>
10085 iconv_t cd = iconv_open("","");
10086 iconv(cd,NULL,NULL,NULL,NULL);
10090 if { (eval echo configure
:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10092 am_cv_func_iconv
=yes
10094 echo "configure: failed program was:" >&5
10095 cat conftest.
$ac_ext >&5
10098 if test "$am_cv_func_iconv" != yes; then
10099 am_save_LIBS
="$LIBS"
10100 LIBS
="$LIBS -liconv"
10101 cat > conftest.
$ac_ext <<EOF
10102 #line 10103 "configure"
10103 #include "confdefs.h"
10104 #include <stdlib.h>
10107 iconv_t cd = iconv_open("","");
10108 iconv(cd,NULL,NULL,NULL,NULL);
10112 if { (eval echo configure
:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10114 am_cv_lib_iconv
=yes
10115 am_cv_func_iconv
=yes
10117 echo "configure: failed program was:" >&5
10118 cat conftest.
$ac_ext >&5
10121 LIBS
="$am_save_LIBS"
10126 echo "$ac_t""$am_cv_func_iconv" 1>&6
10127 if test "$am_cv_func_iconv" = yes; then
10128 cat >> confdefs.h
<<\EOF
10129 #define HAVE_ICONV 1
10132 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10133 echo "configure:10134: checking for iconv declaration" >&5
10134 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10135 echo $ac_n "(cached) $ac_c" 1>&6
10138 cat > conftest.
$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10142 #include <stdlib.h>
10148 #if defined(__STDC__) || defined(__cplusplus)
10149 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10158 if { (eval echo configure
:10159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10160 am_cv_proto_iconv_arg1
=""
10162 echo "configure: failed program was:" >&5
10163 cat conftest.
$ac_ext >&5
10165 am_cv_proto_iconv_arg1
="const"
10168 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);"
10171 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10172 echo "$ac_t""${ac_t:-
10173 }$am_cv_proto_iconv" 1>&6
10174 cat >> confdefs.h
<<EOF
10175 #define ICONV_CONST $am_cv_proto_iconv_arg1
10180 if test "$am_cv_lib_iconv" = yes; then
10187 cat > confcache
<<\EOF
10188 # This file is a shell script that caches the results of configure
10189 # tests run on this system so they can be shared between configure
10190 # scripts and configure runs. It is not useful on other systems.
10191 # If it contains results you don't want to keep, you may remove or edit it.
10193 # By default, configure uses ./config.cache as the cache file,
10194 # creating it if it does not exist already. You can give configure
10195 # the --cache-file=FILE option to use a different cache file; that is
10196 # what configure does when it calls configure scripts in
10197 # subdirectories, so they share the cache.
10198 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10199 # config.status only pays attention to the cache file if you give it the
10200 # --recheck option to rerun configure.
10203 # The following way of writing the cache mishandles newlines in values,
10204 # but we know of no workaround that is simple, portable, and efficient.
10205 # So, don't put newlines in cache variables' values.
10206 # Ultrix sh set writes to stderr and can't be redirected directly,
10207 # and sets the high bit in the cache file unless we assign to the vars.
10209 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10211 # `set' does not quote correctly, so add quotes (double-quote substitution
10212 # turns \\\\ into \\, and sed turns \\ into \).
10214 -e "s/'/'\\\\''/g" \
10215 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10218 # `set' quotes correctly as required by POSIX, so do not add quotes.
10219 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10222 if cmp -s $cache_file confcache
; then
10225 if test -w $cache_file; then
10226 echo "updating cache $cache_file"
10227 cat confcache
> $cache_file
10229 echo "not updating unwritable cache $cache_file"
10234 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10236 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10237 # Let make expand exec_prefix.
10238 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10240 # Any assignment to VPATH causes Sun make to only execute
10241 # the first set of double-colon rules, so remove it if not needed.
10242 # If there is a colon in the path, we need to keep it.
10243 if test "x$srcdir" = x.
; then
10244 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10247 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10249 DEFS
=-DHAVE_CONFIG_H
10251 # Without the "./", some shells look in PATH for config.status.
10252 : ${CONFIG_STATUS=./config.status}
10254 echo creating
$CONFIG_STATUS
10255 rm -f $CONFIG_STATUS
10256 cat > $CONFIG_STATUS <<EOF
10258 # Generated automatically by configure.
10259 # Run this file to recreate the current configuration.
10260 # This directory was configured as follows,
10261 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10263 # $0 $ac_configure_args
10265 # Compiler output produced by configure, useful for debugging
10266 # configure, is in ./config.log if it exists.
10268 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10271 case "\$ac_option" in
10272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10273 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10274 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10275 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10276 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10278 -help | --help | --hel | --he | --h)
10279 echo "\$ac_cs_usage"; exit 0 ;;
10280 *) echo "\$ac_cs_usage"; exit 1 ;;
10284 ac_given_srcdir=$srcdir
10285 ac_given_INSTALL="$INSTALL"
10287 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10289 cat >> $CONFIG_STATUS <<EOF
10291 # Protect against being on the right side of a sed subst in config.status.
10292 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10293 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10297 s%@CFLAGS@%$CFLAGS%g
10298 s%@CPPFLAGS@%$CPPFLAGS%g
10299 s%@CXXFLAGS@%$CXXFLAGS%g
10300 s%@FFLAGS@%$FFLAGS%g
10302 s%@LDFLAGS@%$LDFLAGS%g
10304 s%@exec_prefix@%$exec_prefix%g
10305 s%@prefix@%$prefix%g
10306 s%@program_transform_name@%$program_transform_name%g
10307 s%@bindir@%$bindir%g
10308 s%@sbindir@%$sbindir%g
10309 s%@libexecdir@%$libexecdir%g
10310 s%@datadir@%$datadir%g
10311 s%@sysconfdir@%$sysconfdir%g
10312 s%@sharedstatedir@%$sharedstatedir%g
10313 s%@localstatedir@%$localstatedir%g
10314 s%@libdir@%$libdir%g
10315 s%@includedir@%$includedir%g
10316 s%@oldincludedir@%$oldincludedir%g
10317 s%@infodir@%$infodir%g
10318 s%@mandir@%$mandir%g
10319 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10320 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10325 s%@host_alias@%$host_alias%g
10326 s%@host_cpu@%$host_cpu%g
10327 s%@host_vendor@%$host_vendor%g
10328 s%@host_os@%$host_os%g
10329 s%@target@%$target%g
10330 s%@target_alias@%$target_alias%g
10331 s%@target_cpu@%$target_cpu%g
10332 s%@target_vendor@%$target_vendor%g
10333 s%@target_os@%$target_os%g
10335 s%@build_alias@%$build_alias%g
10336 s%@build_cpu@%$build_cpu%g
10337 s%@build_vendor@%$build_vendor%g
10338 s%@build_os@%$build_os%g
10339 s%@RANLIB@%$RANLIB%g
10340 s%@SET_MAKE@%$SET_MAKE%g
10341 s%@ALLOCA@%$ALLOCA%g
10342 s%@USE_NLS@%$USE_NLS%g
10343 s%@MSGFMT@%$MSGFMT%g
10344 s%@GMSGFMT@%$GMSGFMT%g
10345 s%@XGETTEXT@%$XGETTEXT%g
10346 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10347 s%@CATALOGS@%$CATALOGS%g
10348 s%@CATOBJEXT@%$CATOBJEXT%g
10349 s%@DATADIRNAME@%$DATADIRNAME%g
10350 s%@GMOFILES@%$GMOFILES%g
10351 s%@INSTOBJEXT@%$INSTOBJEXT%g
10352 s%@INTLDEPS@%$INTLDEPS%g
10353 s%@INTLLIBS@%$INTLLIBS%g
10354 s%@INTLOBJS@%$INTLOBJS%g
10355 s%@POFILES@%$POFILES%g
10357 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10359 s%@GT_YES@%$GT_YES%g
10360 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10362 s%@subdirs@%$subdirs%g
10364 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10365 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10366 s%@INSTALL_DATA@%$INSTALL_DATA%g
10370 s%@DLLTOOL@%$DLLTOOL%g
10371 s%@WINDRES@%$WINDRES%g
10373 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10374 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10375 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10376 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10377 s%@MMALLOC@%$MMALLOC%g
10378 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10379 s%@WIN32LIBS@%$WIN32LIBS%g
10380 s%@LIBGUI@%$LIBGUI%g
10381 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10382 s%@WIN32LDAPP@%$WIN32LDAPP%g
10383 s%@TCL_VERSION@%$TCL_VERSION%g
10384 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10385 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10386 s%@TCL_CC@%$TCL_CC%g
10387 s%@TCL_DEFS@%$TCL_DEFS%g
10388 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10389 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10390 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10391 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10392 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10393 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10394 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10395 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10396 s%@TCL_RANLIB@%$TCL_RANLIB%g
10397 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10398 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10399 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10400 s%@TK_VERSION@%$TK_VERSION%g
10401 s%@TK_DEFS@%$TK_DEFS%g
10402 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10403 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10404 s%@TK_XLIBSW@%$TK_XLIBSW%g
10405 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10406 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10407 s%@TCLHDIR@%$TCLHDIR%g
10408 s%@TKHDIR@%$TKHDIR%g
10409 s%@ITCLHDIR@%$ITCLHDIR%g
10410 s%@ITKHDIR@%$ITKHDIR%g
10411 s%@ITCL_VERSION@%$ITCL_VERSION%g
10412 s%@ITCL_DEFS@%$ITCL_DEFS%g
10413 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10414 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10415 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10416 s%@ITK_VERSION@%$ITK_VERSION%g
10417 s%@ITK_DEFS@%$ITK_DEFS%g
10418 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10419 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10420 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10421 s%@X_CFLAGS@%$X_CFLAGS%g
10422 s%@X_LDFLAGS@%$X_LDFLAGS%g
10423 s%@X_LIBS@%$X_LIBS%g
10424 s%@TCL_DEPS@%$TCL_DEPS%g
10425 s%@TK_DEPS@%$TK_DEPS%g
10426 s%@ITCLLIB@%$ITCLLIB%g
10427 s%@ITCL_DEPS@%$ITCL_DEPS%g
10428 s%@ITKLIB@%$ITKLIB%g
10429 s%@ITK_DEPS@%$ITK_DEPS%g
10430 s%@GDBTKLIBS@%$GDBTKLIBS%g
10431 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10432 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10433 s%@IGNORE_SIM@%$IGNORE_SIM%g
10434 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10435 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10436 s%@CONFIG_OBS@%$CONFIG_OBS%g
10437 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10438 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10439 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10440 s%@CONFIG_INITS@%$CONFIG_INITS%g
10441 s%@CONFIG_ALL@%$CONFIG_ALL%g
10442 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10443 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10444 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10445 s%@HLDFLAGS@%$HLDFLAGS%g
10446 s%@HLDENV@%$HLDENV%g
10447 s%@target_subdir@%$target_subdir%g
10448 /@host_makefile_frag@/r $host_makefile_frag
10449 s%@host_makefile_frag@%%g
10450 /@target_makefile_frag@/r $target_makefile_frag
10451 s%@target_makefile_frag@%%g
10453 s%@SUBDIRS@%$SUBDIRS%g
10457 s%@EXEEXT@%$EXEEXT%g
10458 s%@LIBICONV@%$LIBICONV%g
10463 cat >> $CONFIG_STATUS <<\EOF
10465 # Split the substitutions into bite-sized pieces for seds with
10466 # small command number limits, like on Digital OSF/1 and HP-UX.
10467 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10468 ac_file
=1 # Number of current file.
10469 ac_beg
=1 # First line for current file.
10470 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10473 while $ac_more_lines; do
10474 if test $ac_beg -gt 1; then
10475 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10477 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10479 if test ! -s conftest.s
$ac_file; then
10480 ac_more_lines
=false
10481 rm -f conftest.s
$ac_file
10483 if test -z "$ac_sed_cmds"; then
10484 ac_sed_cmds
="sed -f conftest.s$ac_file"
10486 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10488 ac_file
=`expr $ac_file + 1`
10490 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10493 if test -z "$ac_sed_cmds"; then
10498 cat >> $CONFIG_STATUS <<EOF
10500 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10502 cat >> $CONFIG_STATUS <<\EOF
10503 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10506 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10507 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10508 *) ac_file_in
="${ac_file}.in" ;;
10511 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10513 # Remove last slash and all that follows it. Not all systems have dirname.
10514 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10515 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10516 # The file is in a subdirectory.
10517 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10518 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10519 # A "../" for each directory in $ac_dir_suffix.
10520 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10522 ac_dir_suffix
= ac_dots
=
10525 case "$ac_given_srcdir" in
10527 if test -z "$ac_dots"; then top_srcdir
=.
10528 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10529 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10530 *) # Relative path.
10531 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10532 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10535 case "$ac_given_INSTALL" in
10536 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10537 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10540 echo creating
"$ac_file"
10542 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10544 *Makefile
*) ac_comsub
="1i\\
10545 # $configure_input" ;;
10549 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10551 s%@configure_input@%$configure_input%g
10552 s%@srcdir@%$srcdir%g
10553 s%@top_srcdir@%$top_srcdir%g
10554 s%@INSTALL@%$INSTALL%g
10555 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10559 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10560 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10562 # ac_d sets the value in "#define NAME VALUE" lines.
10563 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10564 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10567 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10568 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10569 ac_uB
='\([ ]\)%\1#\2define\3'
10572 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10573 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10574 ac_eB
='$%\1#\2define\3'
10578 if test "${CONFIG_HEADERS+set}" != set; then
10580 cat >> $CONFIG_STATUS <<EOF
10581 CONFIG_HEADERS="config.h:config.in"
10583 cat >> $CONFIG_STATUS <<\EOF
10585 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10586 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10588 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10589 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10590 *) ac_file_in
="${ac_file}.in" ;;
10593 echo creating
$ac_file
10595 rm -f conftest.frag conftest.
in conftest.out
10596 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10597 cat $ac_file_inputs > conftest.
in
10601 # Transform confdefs.h into a sed script conftest.vals that substitutes
10602 # the proper values into config.h.in to produce config.h. And first:
10603 # Protect against being on the right side of a sed subst in config.status.
10604 # Protect against being in an unquoted here document in config.status.
10605 rm -f conftest.vals
10606 cat > conftest.hdr
<<\EOF
10609 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10613 sed -n -f conftest.hdr confdefs.h > conftest.vals
10616 # This sed command replaces #undef with comments. This is necessary, for
10617 # example, in the case of _POSIX_SOURCE, which is predefined and required
10618 # on some systems where configure will not decide to define it.
10619 cat >> conftest.vals <<\EOF
10620 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10623 # Break up conftest.vals because some shells have a limit on
10624 # the size of here documents, and old seds have small limits too.
10626 rm -f conftest.tail
10629 ac_lines=`grep -c . conftest.vals
`
10630 # grep -c gives empty output for an empty file on some AIX systems.
10631 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10632 # Write a limited-size here document to conftest.frag.
10633 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10634 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10636 sed -f conftest.frag conftest.in > conftest.out
10638 mv conftest.out conftest.in
10639 ' >> $CONFIG_STATUS
10640 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10641 rm -f conftest.vals
10642 mv conftest.tail conftest.vals
10644 rm -f conftest.vals
10646 cat >> $CONFIG_STATUS <<\EOF
10647 rm -f conftest.frag conftest.h
10648 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10649 cat conftest.in >> conftest.h
10651 if cmp -s $ac_file conftest.h 2>/dev/null; then
10652 echo "$ac_file is unchanged"
10655 # Remove last slash and all that follows it. Not all systems have dirname.
10656 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10657 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10658 # The file is in a subdirectory.
10659 test ! -d "$ac_dir" && mkdir "$ac_dir"
10662 mv conftest.h $ac_file
10668 cat >> $CONFIG_STATUS <<EOF
10669 ac_sources="$files"
10673 cat >> $CONFIG_STATUS <<\EOF
10674 srcdir=$ac_given_srcdir
10675 while test -n "$ac_sources"; do
10676 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10677 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10679 echo "linking $srcdir/$ac_source to $ac_dest"
10681 if test ! -r $srcdir/$ac_source; then
10682 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10686 # Make relative symlinks.
10687 # Remove last slash and all that follows it. Not all systems have dirname.
10688 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10689 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10690 # The dest file is in a subdirectory.
10691 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10692 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10693 # A "../" for each directory in $ac_dest_dir_suffix.
10694 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10696 ac_dest_dir_suffix= ac_dots=
10700 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10701 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10704 # Make a symlink if possible; otherwise try a hard link.
10705 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10706 ln $srcdir/$ac_source $ac_dest; then :
10708 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10712 cat >> $CONFIG_STATUS <<EOF
10714 gdb_host_cpu=$gdb_host_cpu
10715 gdb_target_cpu=$gdb_target_cpu
10716 nativefile=$nativefile
10719 cat >> $CONFIG_STATUS <<\EOF
10721 if test "${nativefile}" = ""; then
10723 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10724 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10725 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10727 mv -f Makefile.tem Makefile
10730 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10731 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10732 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10733 mv -f Makefile.tmp Makefile
10736 case x$CONFIG_HEADERS in
10737 xconfig.h:config.in)
10743 chmod +x $CONFIG_STATUS
10744 rm -fr confdefs* $ac_clean_files
10745 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10747 if test "$no_recursion" != yes; then
10749 # Remove --cache-file and --srcdir arguments so they do not pile up.
10750 ac_sub_configure_args=
10752 for ac_arg in $ac_configure_args; do
10753 if test -n "$ac_prev"; then
10758 -cache-file | --cache-file | --cache-fil | --cache-fi \
10759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10760 ac_prev=cache_file ;;
10761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10768 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10772 for ac_config_dir in doc testsuite $configdirs; do
10774 # Do not complain, so a configure script can configure whichever
10775 # parts of a large source tree are present.
10776 if test ! -d $srcdir/$ac_config_dir; then
10780 echo configuring in $ac_config_dir
10785 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10787 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10795 # A "../" for each directory in /$ac_config_dir.
10796 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10799 .) # No --srcdir option. We are building in place.
10800 ac_sub_srcdir=$srcdir ;;
10801 /*) # Absolute path.
10802 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10803 *) # Relative path.
10804 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10807 # Check for guested configure; otherwise get Cygnus style configure.
10808 if test -f $ac_sub_srcdir/configure; then
10809 ac_sub_configure=$ac_sub_srcdir/configure
10810 elif test -f $ac_sub_srcdir/configure.in; then
10811 ac_sub_configure=$ac_configure
10813 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10817 # The recursion is here.
10818 if test -n "$ac_sub_configure"; then
10820 # Make the cache file name correct relative to the subdirectory.
10821 case "$cache_file" in
10822 /*) ac_sub_cache_file=$cache_file ;;
10823 *) # Relative path.
10824 ac_sub_cache_file="$ac_dots$cache_file" ;;
10826 case "$ac_given_INSTALL" in
10827 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10828 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10831 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10832 # The eval makes quoting arguments work.
10833 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10836 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }