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 --enable-gtk enable gdbtk graphical user interface (GUI)"
30 --without-included-regex don't use included regex; this is the default
31 on systems with version 2 of the GNU C library
32 (use with caution on other system)"
34 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
36 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
38 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
40 --with-mmalloc Use memory mapped malloc package"
42 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
44 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
46 --with-tclinclude=DIR Directory where tcl private headers are"
48 --with-tkinclude=DIR Directory where tk private headers are"
50 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
52 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
54 --with-x use the X Window System"
56 --enable-sim Link gdb with simulator"
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 cat >> confdefs.h
<<\EOF
830 #define _GNU_SOURCE 1
834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
835 echo "configure:836: checking how to run the C preprocessor" >&5
836 # On Suns, sometimes $CPP names a directory.
837 if test -n "$CPP" && test -d "$CPP"; then
840 if test -z "$CPP"; then
841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 # This must be in double quotes, not single quotes, because CPP may get
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
847 # On the NeXT, cc -E runs the code through the compiler's parser,
848 # not just through cpp.
849 cat > conftest.
$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
855 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure
:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
858 if test -z "$ac_err"; then
862 echo "configure: failed program was:" >&5
863 cat conftest.
$ac_ext >&5
865 CPP
="${CC-cc} -E -traditional-cpp"
866 cat > conftest.
$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
872 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure
:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
875 if test -z "$ac_err"; then
879 echo "configure: failed program was:" >&5
880 cat conftest.
$ac_ext >&5
882 CPP
="${CC-cc} -nologo -E"
883 cat > conftest.
$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure
:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
896 echo "configure: failed program was:" >&5
897 cat conftest.
$ac_ext >&5
906 ac_cv_prog_CPP
="$CPP"
908 CPP
="$ac_cv_prog_CPP"
910 ac_cv_prog_CPP
="$CPP"
912 echo "$ac_t""$CPP" 1>&6
914 echo $ac_n "checking for AIX""... $ac_c" 1>&6
915 echo "configure:916: checking for AIX" >&5
916 cat > conftest.
$ac_ext <<EOF
917 #line 918 "configure"
918 #include "confdefs.h"
924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
925 egrep "yes" >/dev
/null
2>&1; then
927 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
928 #define _ALL_SOURCE 1
933 echo "$ac_t""no" 1>&6
938 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
939 echo "configure:940: checking for POSIXized ISC" >&5
940 if test -d /etc
/conf
/kconfig.d
&&
941 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
943 echo "$ac_t""yes" 1>&6
944 ISC
=yes # If later tests want to check for ISC.
945 cat >> confdefs.h
<<\EOF
946 #define _POSIX_SOURCE 1
949 if test "$GCC" = yes; then
955 echo "$ac_t""no" 1>&6
962 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
963 echo "configure:964: checking for ${CC-cc} option to accept ANSI C" >&5
964 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 am_cv_prog_cc_stdc
=no
969 # Don't try gcc -ansi; that turns off useful extensions and
970 # breaks some systems' header files.
972 # Ultrix and OSF/1 -std1
973 # HP-UX 10.20 and later -Ae
974 # HP-UX older versions -Aa -D_HPUX_SOURCE
975 # SVR4 -Xc -D__EXTENSIONS__
976 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
978 CC
="$ac_save_CC $ac_arg"
979 cat > conftest.
$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
984 #include <sys/types.h>
985 #include <sys/stat.h>
986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
987 struct buf { int x; };
988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
989 static char *e (p, i)
995 static char *f (char * (*g) (char **, int), char **p, ...)
1000 s = g (p, va_arg (v,int));
1004 int test (int i, double x);
1005 struct s1 {int (*f) (int a);};
1006 struct s2 {int (*f) (double a);};
1007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1013 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1017 if { (eval echo configure
:1018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1019 am_cv_prog_cc_stdc
="$ac_arg"; break
1021 echo "configure: failed program was:" >&5
1022 cat conftest.
$ac_ext >&5
1030 if test -z "$am_cv_prog_cc_stdc"; then
1031 echo "$ac_t""none needed" 1>&6
1033 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1035 case "x$am_cv_prog_cc_stdc" in
1037 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1042 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1043 if test -f $ac_dir/install-sh
; then
1045 ac_install_sh
="$ac_aux_dir/install-sh -c"
1047 elif test -f $ac_dir/install.sh
; then
1049 ac_install_sh
="$ac_aux_dir/install.sh -c"
1053 if test -z "$ac_aux_dir"; then
1054 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1056 ac_config_guess
=$ac_aux_dir/config.guess
1057 ac_config_sub
=$ac_aux_dir/config.sub
1058 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1061 # Do some error checking and defaulting for the host and target type.
1063 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1066 # 1. You are not allowed to specify --host, --target, and nonopt at the
1068 # 2. Host defaults to nonopt.
1069 # 3. If nonopt is not specified, then host defaults to the current host,
1070 # as determined by config.guess.
1071 # 4. Target and build default to nonopt.
1072 # 5. If nonopt is not specified, then target and build default to host.
1074 # The aliases save the names the user supplied, while $host etc.
1075 # will get canonicalized.
1076 case $host---$target---$nonopt in
1077 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1078 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1082 # Make sure we can run config.sub.
1083 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1084 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1087 echo $ac_n "checking host system type""... $ac_c" 1>&6
1088 echo "configure:1089: checking host system type" >&5
1091 case "$host_alias" in
1095 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1096 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1098 *) host_alias
=$nonopt ;;
1102 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1103 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1104 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1105 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1106 echo "$ac_t""$host" 1>&6
1108 echo $ac_n "checking target system type""... $ac_c" 1>&6
1109 echo "configure:1110: checking target system type" >&5
1111 target_alias
=$target
1112 case "$target_alias" in
1115 NONE
) target_alias
=$host_alias ;;
1116 *) target_alias
=$nonopt ;;
1120 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1121 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1122 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1123 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1124 echo "$ac_t""$target" 1>&6
1126 echo $ac_n "checking build system type""... $ac_c" 1>&6
1127 echo "configure:1128: checking build system type" >&5
1130 case "$build_alias" in
1133 NONE
) build_alias
=$host_alias ;;
1134 *) build_alias
=$nonopt ;;
1138 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1139 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1140 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1141 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1142 echo "$ac_t""$build" 1>&6
1144 test "$host_alias" != "$target_alias" &&
1145 test "$program_prefix$program_suffix$program_transform_name" = \
1147 program_prefix
=${target_alias}-
1150 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1151 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1152 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1153 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1154 # AC_PROG_RANLIB. This can be removed when we switch to # Autoconf
1156 if test $host != $build; then
1157 ac_tool_prefix
=${host_alias}-
1162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -n "$RANLIB"; then
1170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1174 for ac_dir
in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir
=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1184 RANLIB
="$ac_cv_prog_RANLIB"
1185 if test -n "$RANLIB"; then
1186 echo "$ac_t""$RANLIB" 1>&6
1188 echo "$ac_t""no" 1>&6
1192 if test -z "$ac_cv_prog_RANLIB"; then
1193 if test -n "$ac_tool_prefix"; then
1194 # Extract the first word of "ranlib", so it can be a program name with args.
1195 set dummy ranlib
; ac_word
=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$RANLIB"; then
1202 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1206 for ac_dir
in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir
=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_RANLIB
="ranlib"
1214 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1217 RANLIB
="$ac_cv_prog_RANLIB"
1218 if test -n "$RANLIB"; then
1219 echo "$ac_t""$RANLIB" 1>&6
1221 echo "$ac_t""no" 1>&6
1231 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether ${MAKE-make} sets \${MAKE}" >&5
1233 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1234 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftestmake
<<\EOF
1239 @
echo 'ac_maketemp="${MAKE}"'
1241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1242 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1243 if test -n "$ac_maketemp"; then
1244 eval ac_cv_prog_make_
${ac_make}_set
=yes
1246 eval ac_cv_prog_make_
${ac_make}_set
=no
1250 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1254 echo "$ac_t""no" 1>&6
1255 SET_MAKE
="MAKE=${MAKE-make}"
1258 # Extract the first word of "ranlib", so it can be a program name with args.
1259 set dummy ranlib
; ac_word
=$2
1260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1261 echo "configure:1262: checking for $ac_word" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 if test -n "$RANLIB"; then
1266 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1268 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1270 for ac_dir
in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir
=.
1272 if test -f $ac_dir/$ac_word; then
1273 ac_cv_prog_RANLIB
="ranlib"
1278 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1281 RANLIB
="$ac_cv_prog_RANLIB"
1282 if test -n "$RANLIB"; then
1283 echo "$ac_t""$RANLIB" 1>&6
1285 echo "$ac_t""no" 1>&6
1288 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1289 echo "configure:1290: checking for ANSI C header files" >&5
1290 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 cat > conftest.
$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1301 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1302 { (eval echo configure
:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1303 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1304 if test -z "$ac_err"; then
1306 ac_cv_header_stdc
=yes
1309 echo "configure: failed program was:" >&5
1310 cat conftest.
$ac_ext >&5
1312 ac_cv_header_stdc
=no
1316 if test $ac_cv_header_stdc = yes; then
1317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1318 cat > conftest.
$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1324 egrep "memchr" >/dev
/null
2>&1; then
1328 ac_cv_header_stdc
=no
1334 if test $ac_cv_header_stdc = yes; then
1335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1336 cat > conftest.
$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1342 egrep "free" >/dev
/null
2>&1; then
1346 ac_cv_header_stdc
=no
1352 if test $ac_cv_header_stdc = yes; then
1353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1354 if test "$cross_compiling" = yes; then
1357 cat > conftest.
$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1361 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1362 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1364 int main () { int i; for (i = 0; i < 256; i++)
1365 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1369 if { (eval echo configure
:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1373 echo "configure: failed program was:" >&5
1374 cat conftest.
$ac_ext >&5
1376 ac_cv_header_stdc
=no
1384 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1385 if test $ac_cv_header_stdc = yes; then
1386 cat >> confdefs.h
<<\EOF
1387 #define STDC_HEADERS 1
1392 echo $ac_n "checking for working const""... $ac_c" 1>&6
1393 echo "configure:1394: checking for working const" >&5
1394 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.
$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1403 /* Ultrix mips cc rejects this. */
1404 typedef int charset[2]; const charset x;
1405 /* SunOS 4.1.1 cc rejects this. */
1406 char const *const *ccp;
1408 /* NEC SVR4.0.2 mips cc rejects this. */
1409 struct point {int x, y;};
1410 static struct point const zero = {0,0};
1411 /* AIX XL C 1.02.0.0 rejects this.
1412 It does not let you subtract one const X* pointer from another in an arm
1413 of an if-expression whose if-part is not a constant expression */
1414 const char *g = "string";
1415 ccp = &g + (g ? g-g : 0);
1416 /* HPUX 7.0 cc rejects these. */
1419 ccp = (char const *const *) p;
1420 { /* SCO 3.2v4 cc rejects this. */
1422 char const *s = 0 ? (char *) 0 : (char const *) 0;
1426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1428 const int *foo = &x[0];
1431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1432 typedef const int *iptr;
1436 { /* AIX XL C 1.02.0.0 rejects this saying
1437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1438 struct s { int j; const int *ap[3]; };
1439 struct s *b; b->j = 5;
1441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1447 if { (eval echo configure
:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1459 echo "$ac_t""$ac_cv_c_const" 1>&6
1460 if test $ac_cv_c_const = no
; then
1461 cat >> confdefs.h
<<\EOF
1467 echo $ac_n "checking for inline""... $ac_c" 1>&6
1468 echo "configure:1469: checking for inline" >&5
1469 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1473 for ac_kw
in inline __inline__ __inline
; do
1474 cat > conftest.
$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1482 if { (eval echo configure
:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 ac_cv_c_inline
=$ac_kw; break
1486 echo "configure: failed program was:" >&5
1487 cat conftest.
$ac_ext >&5
1494 echo "$ac_t""$ac_cv_c_inline" 1>&6
1495 case "$ac_cv_c_inline" in
1497 no
) cat >> confdefs.h
<<\EOF
1501 *) cat >> confdefs.h
<<EOF
1502 #define inline $ac_cv_c_inline
1507 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1508 echo "configure:1509: checking for off_t" >&5
1509 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 cat > conftest.
$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1515 #include <sys/types.h>
1521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1522 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1524 ac_cv_type_off_t
=yes
1532 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1533 if test $ac_cv_type_off_t = no
; then
1534 cat >> confdefs.h
<<\EOF
1540 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1541 echo "configure:1542: checking for size_t" >&5
1542 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.
$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 #include <sys/types.h>
1554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1555 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1557 ac_cv_type_size_t
=yes
1560 ac_cv_type_size_t
=no
1565 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1566 if test $ac_cv_type_size_t = no
; then
1567 cat >> confdefs.h
<<\EOF
1568 #define size_t unsigned
1573 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1574 # for constant arguments. Useless!
1575 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1576 echo "configure:1577: checking for working alloca.h" >&5
1577 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1580 cat > conftest.
$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1585 char *p = alloca(2 * sizeof(int));
1588 if { (eval echo configure
:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1590 ac_cv_header_alloca_h
=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.
$ac_ext >&5
1595 ac_cv_header_alloca_h
=no
1600 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1601 if test $ac_cv_header_alloca_h = yes; then
1602 cat >> confdefs.h
<<\EOF
1603 #define HAVE_ALLOCA_H 1
1608 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1609 echo "configure:1610: checking for alloca" >&5
1610 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 cat > conftest.
$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1618 # define alloca __builtin_alloca
1621 # include <malloc.h>
1622 # define alloca _alloca
1625 # include <alloca.h>
1630 # ifndef alloca /* predefined by HP cc +Olibcalls */
1639 char *p = (char *) alloca(1);
1642 if { (eval echo configure
:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1644 ac_cv_func_alloca_works
=yes
1646 echo "configure: failed program was:" >&5
1647 cat conftest.
$ac_ext >&5
1649 ac_cv_func_alloca_works
=no
1654 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1655 if test $ac_cv_func_alloca_works = yes; then
1656 cat >> confdefs.h
<<\EOF
1657 #define HAVE_ALLOCA 1
1662 if test $ac_cv_func_alloca_works = no
; then
1663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1664 # that cause trouble. Some versions do not even contain alloca or
1665 # contain a buggy version. If you still want to use their alloca,
1666 # use ar to extract alloca.o from them instead of compiling alloca.c.
1667 ALLOCA
=alloca.
${ac_objext}
1668 cat >> confdefs.h
<<\EOF
1673 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1674 echo "configure:1675: checking whether alloca needs Cray hooks" >&5
1675 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 cat > conftest.
$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681 #if defined(CRAY) && ! defined(CRAY2)
1688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1689 egrep "webecray" >/dev
/null
2>&1; then
1700 echo "$ac_t""$ac_cv_os_cray" 1>&6
1701 if test $ac_cv_os_cray = yes; then
1702 for ac_func
in _getb67 GETB67 getb67
; do
1703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_func" >&5
1705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.
$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char $ac_func(); below. */
1714 /* Override any gcc2 internal prototype to avoid an error. */
1715 /* We use char because int might match the return type of a gcc2
1716 builtin and then its argument prototype would still apply. */
1721 /* The GNU C library defines this for functions which it implements
1722 to always fail with ENOSYS. Some functions are actually named
1723 something starting with __ and the normal name is an alias. */
1724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1732 if { (eval echo configure
:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1734 eval "ac_cv_func_$ac_func=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.
$ac_ext >&5
1739 eval "ac_cv_func_$ac_func=no"
1744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1746 cat >> confdefs.h
<<EOF
1747 #define CRAY_STACKSEG_END $ac_func
1752 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1759 echo "configure:1760: checking stack direction for C alloca" >&5
1760 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 if test "$cross_compiling" = yes; then
1764 ac_cv_c_stack_direction
=0
1766 cat > conftest.
$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 find_stack_direction ()
1771 static char *addr = 0;
1776 return find_stack_direction ();
1779 return (&dummy > addr) ? 1 : -1;
1783 exit (find_stack_direction() < 0);
1786 if { (eval echo configure
:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1788 ac_cv_c_stack_direction
=1
1790 echo "configure: failed program was:" >&5
1791 cat conftest.
$ac_ext >&5
1793 ac_cv_c_stack_direction
=-1
1800 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1801 cat >> confdefs.h
<<EOF
1802 #define STACK_DIRECTION $ac_cv_c_stack_direction
1807 for ac_hdr
in unistd.h
1809 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_hdr" >&5
1812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest.
$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure
:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1825 eval "ac_cv_header_$ac_safe=yes"
1828 echo "configure: failed program was:" >&5
1829 cat conftest.
$ac_ext >&5
1831 eval "ac_cv_header_$ac_safe=no"
1835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1837 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1838 cat >> confdefs.h
<<EOF
1839 #define $ac_tr_hdr 1
1843 echo "$ac_t""no" 1>&6
1847 for ac_func
in getpagesize
1849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_func" >&5
1851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 cat > conftest.
$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $ac_func(); below. */
1860 /* Override any gcc2 internal prototype to avoid an error. */
1861 /* We use char because int might match the return type of a gcc2
1862 builtin and then its argument prototype would still apply. */
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1878 if { (eval echo configure
:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1880 eval "ac_cv_func_$ac_func=yes"
1882 echo "configure: failed program was:" >&5
1883 cat conftest.
$ac_ext >&5
1885 eval "ac_cv_func_$ac_func=no"
1890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1892 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1893 cat >> confdefs.h
<<EOF
1894 #define $ac_tr_func 1
1898 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1903 echo "configure:1904: checking for working mmap" >&5
1904 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test "$cross_compiling" = yes; then
1908 ac_cv_func_mmap_fixed_mapped
=no
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1914 /* Thanks to Mike Haertel and Jim Avera for this test.
1915 Here is a matrix of mmap possibilities:
1916 mmap private not fixed
1917 mmap private fixed at somewhere currently unmapped
1918 mmap private fixed at somewhere already mapped
1919 mmap shared not fixed
1920 mmap shared fixed at somewhere currently unmapped
1921 mmap shared fixed at somewhere already mapped
1922 For private mappings, we should verify that changes cannot be read()
1923 back from the file, nor mmap's back from the file at a different
1924 address. (There have been systems where private was not correctly
1925 implemented like the infamous i386 svr4.0, and systems where the
1926 VM page cache was not coherent with the filesystem buffer cache
1927 like early versions of FreeBSD and possibly contemporary NetBSD.)
1928 For shared mappings, we should conversely verify that changes get
1929 propogated back to all the places they're supposed to be.
1931 Grep wants private fixed already mapped.
1932 The main things grep needs to know about mmap are:
1933 * does it exist and is it safe to write into the mmap'd area
1934 * how to use it (BSD variants) */
1935 #include <sys/types.h>
1937 #include <sys/mman.h>
1939 /* This mess was copied from the GNU getpagesize.h. */
1940 #ifndef HAVE_GETPAGESIZE
1941 # ifdef HAVE_UNISTD_H
1942 # include <unistd.h>
1945 /* Assume that all systems that can run configure have sys/param.h. */
1946 # ifndef HAVE_SYS_PARAM_H
1947 # define HAVE_SYS_PARAM_H 1
1950 # ifdef _SC_PAGESIZE
1951 # define getpagesize() sysconf(_SC_PAGESIZE)
1952 # else /* no _SC_PAGESIZE */
1953 # ifdef HAVE_SYS_PARAM_H
1954 # include <sys/param.h>
1955 # ifdef EXEC_PAGESIZE
1956 # define getpagesize() EXEC_PAGESIZE
1957 # else /* no EXEC_PAGESIZE */
1959 # define getpagesize() NBPG * CLSIZE
1962 # endif /* no CLSIZE */
1963 # else /* no NBPG */
1965 # define getpagesize() NBPC
1966 # else /* no NBPC */
1968 # define getpagesize() PAGESIZE
1969 # endif /* PAGESIZE */
1970 # endif /* no NBPC */
1971 # endif /* no NBPG */
1972 # endif /* no EXEC_PAGESIZE */
1973 # else /* no HAVE_SYS_PARAM_H */
1974 # define getpagesize() 8192 /* punt totally */
1975 # endif /* no HAVE_SYS_PARAM_H */
1976 # endif /* no _SC_PAGESIZE */
1978 #endif /* no HAVE_GETPAGESIZE */
1981 extern "C" { void *malloc(unsigned); }
1989 char *data, *data2, *data3;
1993 pagesize = getpagesize();
1996 * First, make a file with some known garbage in it.
1998 data = malloc(pagesize);
2001 for (i = 0; i < pagesize; ++i)
2002 *(data + i) = rand();
2004 fd = creat("conftestmmap", 0600);
2007 if (write(fd, data, pagesize) != pagesize)
2012 * Next, try to mmap the file at a fixed address which
2013 * already has something else allocated at it. If we can,
2014 * also make sure that we see the same garbage.
2016 fd = open("conftestmmap", O_RDWR);
2019 data2 = malloc(2 * pagesize);
2022 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2023 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2024 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2026 for (i = 0; i < pagesize; ++i)
2027 if (*(data + i) != *(data2 + i))
2031 * Finally, make sure that changes to the mapped area
2032 * do not percolate back to the file as seen by read().
2033 * (This is a bug on some variants of i386 svr4.0.)
2035 for (i = 0; i < pagesize; ++i)
2036 *(data2 + i) = *(data2 + i) + 1;
2037 data3 = malloc(pagesize);
2040 if (read(fd, data3, pagesize) != pagesize)
2042 for (i = 0; i < pagesize; ++i)
2043 if (*(data + i) != *(data3 + i))
2046 unlink("conftestmmap");
2051 if { (eval echo configure
:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2053 ac_cv_func_mmap_fixed_mapped
=yes
2055 echo "configure: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 ac_cv_func_mmap_fixed_mapped
=no
2065 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2066 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2067 cat >> confdefs.h
<<\EOF
2074 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2075 unistd.h values.h sys
/param.h
2077 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_hdr" >&5
2080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2088 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2089 { (eval echo configure
:2090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2090 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2091 if test -z "$ac_err"; then
2093 eval "ac_cv_header_$ac_safe=yes"
2096 echo "configure: failed program was:" >&5
2097 cat conftest.
$ac_ext >&5
2099 eval "ac_cv_header_$ac_safe=no"
2103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2104 echo "$ac_t""yes" 1>&6
2105 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2106 cat >> confdefs.h
<<EOF
2107 #define $ac_tr_hdr 1
2111 echo "$ac_t""no" 1>&6
2115 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2116 __argz_count __argz_stringify __argz_next
2118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_func" >&5
2120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 cat > conftest.
$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $ac_func(); below. */
2129 /* Override any gcc2 internal prototype to avoid an error. */
2130 /* We use char because int might match the return type of a gcc2
2131 builtin and then its argument prototype would still apply. */
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2147 if { (eval echo configure
:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2149 eval "ac_cv_func_$ac_func=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.
$ac_ext >&5
2154 eval "ac_cv_func_$ac_func=no"
2159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2161 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2162 cat >> confdefs.h
<<EOF
2163 #define $ac_tr_func 1
2167 echo "$ac_t""no" 1>&6
2172 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2173 for ac_func
in stpcpy
2175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2176 echo "configure:2177: checking for $ac_func" >&5
2177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 /* System header to define __stub macros and hopefully few prototypes,
2184 which can conflict with char $ac_func(); below. */
2186 /* Override any gcc2 internal prototype to avoid an error. */
2187 /* We use char because int might match the return type of a gcc2
2188 builtin and then its argument prototype would still apply. */
2193 /* The GNU C library defines this for functions which it implements
2194 to always fail with ENOSYS. Some functions are actually named
2195 something starting with __ and the normal name is an alias. */
2196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2204 if { (eval echo configure
:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2206 eval "ac_cv_func_$ac_func=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.
$ac_ext >&5
2211 eval "ac_cv_func_$ac_func=no"
2216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2219 cat >> confdefs.h
<<EOF
2220 #define $ac_tr_func 1
2224 echo "$ac_t""no" 1>&6
2229 if test "${ac_cv_func_stpcpy}" = "yes"; then
2230 cat >> confdefs.h
<<\EOF
2231 #define HAVE_STPCPY 1
2236 if test $ac_cv_header_locale_h = yes; then
2237 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2238 echo "configure:2239: checking for LC_MESSAGES" >&5
2239 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2250 if { (eval echo configure
:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2252 am_cv_val_LC_MESSAGES
=yes
2254 echo "configure: failed program was:" >&5
2255 cat conftest.
$ac_ext >&5
2257 am_cv_val_LC_MESSAGES
=no
2262 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2263 if test $am_cv_val_LC_MESSAGES = yes; then
2264 cat >> confdefs.h
<<\EOF
2265 #define HAVE_LC_MESSAGES 1
2270 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2271 echo "configure:2272: checking whether NLS is requested" >&5
2272 # Check whether --enable-nls or --disable-nls was given.
2273 if test "${enable_nls+set}" = set; then
2274 enableval
="$enable_nls"
2280 echo "$ac_t""$USE_NLS" 1>&6
2283 USE_INCLUDED_LIBINTL
=no
2285 if test "$USE_NLS" = "yes"; then
2286 cat >> confdefs.h
<<\EOF
2287 #define ENABLE_NLS 1
2290 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether included gettext is requested" >&5
2292 # Check whether --with-included-gettext or --without-included-gettext was given.
2293 if test "${with_included_gettext+set}" = set; then
2294 withval
="$with_included_gettext"
2295 nls_cv_force_use_gnu_gettext
=$withval
2297 nls_cv_force_use_gnu_gettext
=no
2300 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2302 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2303 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2305 nls_cv_header_libgt
=
2308 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2309 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2310 echo "configure:2311: checking for libintl.h" >&5
2311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 cat > conftest.
$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 #include <libintl.h>
2319 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2320 { (eval echo configure
:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2321 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2322 if test -z "$ac_err"; then
2324 eval "ac_cv_header_$ac_safe=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.
$ac_ext >&5
2330 eval "ac_cv_header_$ac_safe=no"
2334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2336 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2337 echo "configure:2338: checking for gettext in libc" >&5
2338 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <libintl.h>
2346 return (int) gettext ("")
2349 if { (eval echo configure
:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2351 gt_cv_func_gettext_libc
=yes
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2356 gt_cv_func_gettext_libc
=no
2361 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2363 if test "$gt_cv_func_gettext_libc" != "yes"; then
2364 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2365 echo "configure:2366: checking for bindtextdomain in -lintl" >&5
2366 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 ac_save_LIBS
="$LIBS"
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2378 char bindtextdomain();
2384 if { (eval echo configure
:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2386 eval "ac_cv_lib_$ac_lib_var=yes"
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2391 eval "ac_cv_lib_$ac_lib_var=no"
2394 LIBS
="$ac_save_LIBS"
2397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2398 echo "$ac_t""yes" 1>&6
2399 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2400 echo "configure:2401: checking for gettext in libintl" >&5
2401 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.
$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2409 return (int) gettext ("")
2412 if { (eval echo configure
:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2414 gt_cv_func_gettext_libintl
=yes
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 gt_cv_func_gettext_libintl
=no
2424 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2426 echo "$ac_t""no" 1>&6
2431 if test "$gt_cv_func_gettext_libc" = "yes" \
2432 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2433 cat >> confdefs.h
<<\EOF
2434 #define HAVE_GETTEXT 1
2437 # Extract the first word of "msgfmt", so it can be a program name with args.
2438 set dummy msgfmt
; ac_word
=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2446 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2449 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2450 for ac_dir
in $PATH; do
2451 test -z "$ac_dir" && ac_dir
=.
2452 if test -f $ac_dir/$ac_word; then
2453 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2454 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2460 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2464 MSGFMT
="$ac_cv_path_MSGFMT"
2465 if test -n "$MSGFMT"; then
2466 echo "$ac_t""$MSGFMT" 1>&6
2468 echo "$ac_t""no" 1>&6
2470 if test "$MSGFMT" != "no"; then
2471 for ac_func
in dcgettext
2473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_func" >&5
2475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 /* System header to define __stub macros and hopefully few prototypes,
2482 which can conflict with char $ac_func(); below. */
2484 /* Override any gcc2 internal prototype to avoid an error. */
2485 /* We use char because int might match the return type of a gcc2
2486 builtin and then its argument prototype would still apply. */
2491 /* The GNU C library defines this for functions which it implements
2492 to always fail with ENOSYS. Some functions are actually named
2493 something starting with __ and the normal name is an alias. */
2494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2502 if { (eval echo configure
:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2504 eval "ac_cv_func_$ac_func=yes"
2506 echo "configure: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2509 eval "ac_cv_func_$ac_func=no"
2514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2517 cat >> confdefs.h
<<EOF
2518 #define $ac_tr_func 1
2522 echo "$ac_t""no" 1>&6
2526 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2527 set dummy gmsgfmt
; ac_word
=$2
2528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_word" >&5
2530 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2535 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2538 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2543 for ac_dir
in $ac_dummy; do
2544 test -z "$ac_dir" && ac_dir
=.
2545 if test -f $ac_dir/$ac_word; then
2546 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2551 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2555 GMSGFMT
="$ac_cv_path_GMSGFMT"
2556 if test -n "$GMSGFMT"; then
2557 echo "$ac_t""$GMSGFMT" 1>&6
2559 echo "$ac_t""no" 1>&6
2562 # Extract the first word of "xgettext", so it can be a program name with args.
2563 set dummy xgettext
; ac_word
=$2
2564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_word" >&5
2566 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2571 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2575 for ac_dir
in $PATH; do
2576 test -z "$ac_dir" && ac_dir
=.
2577 if test -f $ac_dir/$ac_word; then
2578 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2579 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2585 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2589 XGETTEXT
="$ac_cv_path_XGETTEXT"
2590 if test -n "$XGETTEXT"; then
2591 echo "$ac_t""$XGETTEXT" 1>&6
2593 echo "$ac_t""no" 1>&6
2596 cat > conftest.
$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2601 extern int _nl_msg_cat_cntr;
2602 return _nl_msg_cat_cntr
2605 if { (eval echo configure
:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2610 echo "configure: failed program was:" >&5
2611 cat conftest.
$ac_ext >&5
2622 echo "$ac_t""no" 1>&6
2627 if test "$CATOBJEXT" = "NONE"; then
2628 nls_cv_use_gnu_gettext
=yes
2632 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2633 INTLOBJS
="\$(GETTOBJS)"
2634 # Extract the first word of "msgfmt", so it can be a program name with args.
2635 set dummy msgfmt
; ac_word
=$2
2636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $ac_word" >&5
2638 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2643 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2646 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2647 for ac_dir
in $PATH; do
2648 test -z "$ac_dir" && ac_dir
=.
2649 if test -f $ac_dir/$ac_word; then
2650 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2651 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2657 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2661 MSGFMT
="$ac_cv_path_MSGFMT"
2662 if test -n "$MSGFMT"; then
2663 echo "$ac_t""$MSGFMT" 1>&6
2665 echo "$ac_t""no" 1>&6
2668 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2669 set dummy gmsgfmt
; ac_word
=$2
2670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_word" >&5
2672 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2677 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2680 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2683 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2685 for ac_dir
in $ac_dummy; do
2686 test -z "$ac_dir" && ac_dir
=.
2687 if test -f $ac_dir/$ac_word; then
2688 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2693 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2697 GMSGFMT
="$ac_cv_path_GMSGFMT"
2698 if test -n "$GMSGFMT"; then
2699 echo "$ac_t""$GMSGFMT" 1>&6
2701 echo "$ac_t""no" 1>&6
2704 # Extract the first word of "xgettext", so it can be a program name with args.
2705 set dummy xgettext
; ac_word
=$2
2706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_word" >&5
2708 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2713 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2716 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2717 for ac_dir
in $PATH; do
2718 test -z "$ac_dir" && ac_dir
=.
2719 if test -f $ac_dir/$ac_word; then
2720 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2721 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2727 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2731 XGETTEXT
="$ac_cv_path_XGETTEXT"
2732 if test -n "$XGETTEXT"; then
2733 echo "$ac_t""$XGETTEXT" 1>&6
2735 echo "$ac_t""no" 1>&6
2739 USE_INCLUDED_LIBINTL
=yes
2743 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2745 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2746 nls_cv_header_intl
=libintl.h
2747 nls_cv_header_libgt
=libgettext.h
2750 if test "$XGETTEXT" != ":"; then
2751 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2754 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2759 # We need to process the po/ directory.
2763 nls_cv_header_intl
=libintl.h
2764 nls_cv_header_libgt
=libgettext.h
2767 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2768 # because some of the sources are only built for this goal.
2769 if test "$PACKAGE" = gettext; then
2771 USE_INCLUDED_LIBINTL
=yes
2774 for lang
in $ALL_LINGUAS; do
2775 GMOFILES
="$GMOFILES $lang.gmo"
2776 POFILES
="$POFILES $lang.po"
2792 if test "x$CATOBJEXT" != "x"; then
2793 if test "x$ALL_LINGUAS" = "x"; then
2796 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2797 echo "configure:2798: checking for catalogs to be installed" >&5
2799 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2800 case "$ALL_LINGUAS" in
2801 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2804 LINGUAS
=$NEW_LINGUAS
2805 echo "$ac_t""$LINGUAS" 1>&6
2808 if test -n "$LINGUAS"; then
2809 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2813 if test $ac_cv_header_locale_h = yes; then
2814 INCLUDE_LOCALE_H
="#include <locale.h>"
2817 /* The system does not provide the header <locale.h>. Take care yourself. */"
2821 if test -f $srcdir/po2tbl.
sed.
in; then
2822 if test "$CATOBJEXT" = ".cat"; then
2823 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2825 echo "configure:2826: checking for linux/version.h" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.
$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <linux/version.h>
2834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure
:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2837 if test -z "$ac_err"; then
2839 eval "ac_cv_header_$ac_safe=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2845 eval "ac_cv_header_$ac_safe=no"
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2853 echo "$ac_t""no" 1>&6
2858 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2860 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2861 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2864 if test "$PACKAGE" = "gettext"; then
2874 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2880 if test -f $srcdir/po
/POTFILES.
in; then
2881 test -d po || mkdir po
2882 if test "x$srcdir" != "x."; then
2883 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2884 posrcprefix
="$srcdir/"
2886 posrcprefix
="../$srcdir/"
2892 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2893 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2896 cat >> confdefs.h
<<\EOF
2897 #define PACKAGE "gdb"
2914 subdirs
="doc testsuite"
2918 .
$srcdir/configure.
host
2920 .
$srcdir/configure.tgt
2922 # Fetch the default architecture and default target vector from BFD.
2923 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2925 # We only want the first architecture, so strip off the others if
2926 # there is more than one.
2927 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2929 if test "x$targ_archs" != x
; then
2930 cat >> confdefs.h
<<EOF
2931 #define DEFAULT_BFD_ARCH $targ_archs
2935 if test "x$targ_defvec" != x
; then
2936 cat >> confdefs.h
<<EOF
2937 #define DEFAULT_BFD_VEC $targ_defvec
2942 if test "$program_transform_name" = s
,x
,x
,; then
2943 program_transform_name
=
2945 # Double any \ or $. echo might interpret backslashes.
2946 cat <<\EOF_SED
> conftestsed
2947 s
,\\,\\\\,g
; s
,\$
,$$
,g
2949 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2952 test "$program_prefix" != NONE
&&
2953 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2954 # Use a double $ so make ignores it.
2955 test "$program_suffix" != NONE
&&
2956 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2958 # sed with no file args requires a program.
2959 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2962 # The CLI cannot be disabled yet, but may be in the future.
2965 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2966 if test "${enable_gdbcli+set}" = set; then
2967 enableval
="$enable_gdbcli"
2972 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2974 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
2980 if test x
"$enable_gdbcli" = xyes
; then
2981 if test -d $srcdir/cli
; then
2982 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
2983 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
2984 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
2985 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
2986 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
2987 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
2988 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
2989 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
2990 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
2995 # Check whether --enable-gdbmi or --disable-gdbmi was given.
2996 if test "${enable_gdbmi+set}" = set; then
2997 enableval
="$enable_gdbmi"
3002 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3008 if test x
"$enable_gdbmi" = xyes
; then
3009 if test -d $srcdir/mi
; then
3010 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3011 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3012 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3013 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3014 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3015 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3016 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3017 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3018 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3023 # Check whether --enable-tui or --disable-tui was given.
3024 if test "${enable_tui+set}" = set; then
3025 enableval
="$enable_tui"
3030 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3034 if test x
"$enable_tui" = xyes
; then
3035 if test -d $srcdir/tui
; then
3036 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3037 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3038 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3039 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3040 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3041 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3042 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3043 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3044 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3050 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3051 if test "${enable_gdbtk+set}" = set; then
3052 enableval
="$enable_gdbtk"
3057 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3060 if test -d $srcdir/gdbtk
; then
3067 # We unconditionally disable gdbtk tests on selected platforms.
3070 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3074 # --------------------- #
3075 # Checks for programs. #
3076 # --------------------- #
3078 for ac_prog
in mawk gawk nawk
awk
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy
$ac_prog; ac_word
=$2
3082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_word" >&5
3084 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 if test -n "$AWK"; then
3088 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3092 for ac_dir
in $ac_dummy; do
3093 test -z "$ac_dir" && ac_dir
=.
3094 if test -f $ac_dir/$ac_word; then
3095 ac_cv_prog_AWK
="$ac_prog"
3102 AWK
="$ac_cv_prog_AWK"
3103 if test -n "$AWK"; then
3104 echo "$ac_t""$AWK" 1>&6
3106 echo "$ac_t""no" 1>&6
3109 test -n "$AWK" && break
3112 # Find a good install program. We prefer a C program (faster),
3113 # so one script is as good as another. But avoid the broken or
3114 # incompatible versions:
3115 # SysV /etc/install, /usr/sbin/install
3116 # SunOS /usr/etc/install
3117 # IRIX /sbin/install
3119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3124 echo "configure:3125: checking for a BSD compatible install" >&5
3125 if test -z "$INSTALL"; then
3126 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3130 for ac_dir
in $PATH; do
3131 # Account for people who put trailing slashes in PATH elements.
3133 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3135 # OSF1 and SCO ODT 3.0 have their own names for install.
3136 # Don't use installbsd from OSF since it installs stuff as root
3138 for ac_prog
in ginstall scoinst
install; do
3139 if test -f $ac_dir/$ac_prog; then
3140 if test $ac_prog = install &&
3141 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3142 # AIX install. It has an incompatible calling convention.
3145 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3156 if test "${ac_cv_path_install+set}" = set; then
3157 INSTALL
="$ac_cv_path_install"
3159 # As a last resort, use the slow shell script. We don't cache a
3160 # path for INSTALL within a source directory, because that will
3161 # break other packages using the cache if that directory is
3162 # removed, or if the path is relative.
3163 INSTALL
="$ac_install_sh"
3166 echo "$ac_t""$INSTALL" 1>&6
3168 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3169 # It thinks the first close brace ends the variable substitution.
3170 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3172 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3174 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3176 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3177 echo "configure:3178: checking whether ln -s works" >&5
3178 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3182 if ln -s X conftestdata
2>/dev
/null
3185 ac_cv_prog_LN_S
="ln -s"
3190 LN_S
="$ac_cv_prog_LN_S"
3191 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3192 echo "$ac_t""yes" 1>&6
3194 echo "$ac_t""no" 1>&6
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198 set dummy ranlib
; ac_word
=$2
3199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_word" >&5
3201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 if test -n "$RANLIB"; then
3205 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3209 for ac_dir
in $ac_dummy; do
3210 test -z "$ac_dir" && ac_dir
=.
3211 if test -f $ac_dir/$ac_word; then
3212 ac_cv_prog_RANLIB
="ranlib"
3217 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3220 RANLIB
="$ac_cv_prog_RANLIB"
3221 if test -n "$RANLIB"; then
3222 echo "$ac_t""$RANLIB" 1>&6
3224 echo "$ac_t""no" 1>&6
3227 for ac_prog
in 'bison -y' byacc
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy
$ac_prog; ac_word
=$2
3231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_word" >&5
3233 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 if test -n "$YACC"; then
3237 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3239 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3241 for ac_dir
in $ac_dummy; do
3242 test -z "$ac_dir" && ac_dir
=.
3243 if test -f $ac_dir/$ac_word; then
3244 ac_cv_prog_YACC
="$ac_prog"
3251 YACC
="$ac_cv_prog_YACC"
3252 if test -n "$YACC"; then
3253 echo "$ac_t""$YACC" 1>&6
3255 echo "$ac_t""no" 1>&6
3258 test -n "$YACC" && break
3260 test -n "$YACC" || YACC
="yacc"
3263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3264 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test -n "$AR"; then
3271 ac_cv_prog_AR
="$AR" # Let the user override the test.
3273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3275 for ac_dir
in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir
=.
3277 if test -f $ac_dir/$ac_word; then
3278 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3283 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3287 if test -n "$AR"; then
3288 echo "$ac_t""$AR" 1>&6
3290 echo "$ac_t""no" 1>&6
3295 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3296 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_word" >&5
3299 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 if test -n "$DLLTOOL"; then
3303 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3305 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3307 for ac_dir
in $ac_dummy; do
3308 test -z "$ac_dir" && ac_dir
=.
3309 if test -f $ac_dir/$ac_word; then
3310 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3315 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3318 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3319 if test -n "$DLLTOOL"; then
3320 echo "$ac_t""$DLLTOOL" 1>&6
3322 echo "$ac_t""no" 1>&6
3327 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3328 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3330 echo "configure:3331: checking for $ac_word" >&5
3331 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 if test -n "$WINDRES"; then
3335 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3337 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3339 for ac_dir
in $ac_dummy; do
3340 test -z "$ac_dir" && ac_dir
=.
3341 if test -f $ac_dir/$ac_word; then
3342 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3347 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3350 WINDRES
="$ac_cv_prog_WINDRES"
3351 if test -n "$WINDRES"; then
3352 echo "$ac_t""$WINDRES" 1>&6
3354 echo "$ac_t""no" 1>&6
3360 # Needed for GNU/Hurd.
3361 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3362 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_word" >&5
3365 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 if test -n "$MIG"; then
3369 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3371 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3373 for ac_dir
in $ac_dummy; do
3374 test -z "$ac_dir" && ac_dir
=.
3375 if test -f $ac_dir/$ac_word; then
3376 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3381 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3384 MIG
="$ac_cv_prog_MIG"
3385 if test -n "$MIG"; then
3386 echo "$ac_t""$MIG" 1>&6
3388 echo "$ac_t""no" 1>&6
3394 # ---------------------- #
3395 # Checks for libraries. #
3396 # ---------------------- #
3398 # We might need to link with -lm; most simulators need it.
3399 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3400 echo "configure:3401: checking for main in -lm" >&5
3401 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 ac_save_LIBS
="$LIBS"
3407 cat > conftest.
$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3415 if { (eval echo configure
:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3417 eval "ac_cv_lib_$ac_lib_var=yes"
3419 echo "configure: failed program was:" >&5
3420 cat conftest.
$ac_ext >&5
3422 eval "ac_cv_lib_$ac_lib_var=no"
3425 LIBS
="$ac_save_LIBS"
3428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3429 echo "$ac_t""yes" 1>&6
3430 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3431 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3432 cat >> confdefs.h
<<EOF
3433 #define $ac_tr_lib 1
3439 echo "$ac_t""no" 1>&6
3443 # We need to link with -lw to get `wctype' on Solaris before Solaris
3444 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3445 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3446 # is known to have this problem). Therefore we avoid libw if we can.
3447 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3448 echo "configure:3449: checking for wctype" >&5
3449 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* System header to define __stub macros and hopefully few prototypes,
3456 which can conflict with char wctype(); below. */
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3465 /* The GNU C library defines this for functions which it implements
3466 to always fail with ENOSYS. Some functions are actually named
3467 something starting with __ and the normal name is an alias. */
3468 #if defined (__stub_wctype) || defined (__stub___wctype)
3476 if { (eval echo configure
:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3478 eval "ac_cv_func_wctype=yes"
3480 echo "configure: failed program was:" >&5
3481 cat conftest.
$ac_ext >&5
3483 eval "ac_cv_func_wctype=no"
3488 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3489 echo "$ac_t""yes" 1>&6
3492 echo "$ac_t""no" 1>&6
3493 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3494 echo "configure:3495: checking for wctype in -lw" >&5
3495 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS
="$LIBS"
3501 cat > conftest.
$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3513 if { (eval echo configure
:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.
$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS
="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3530 cat >> confdefs.h
<<EOF
3531 #define $ac_tr_lib 1
3537 echo "$ac_t""no" 1>&6
3543 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3545 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3546 echo "configure:3547: checking for library containing socketpair" >&5
3547 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 ac_func_search_save_LIBS
="$LIBS"
3551 ac_cv_search_socketpair
="no"
3552 cat > conftest.
$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 /* Override any gcc2 internal prototype to avoid an error. */
3556 /* We use char because int might match the return type of a gcc2
3557 builtin and then its argument prototype would still apply. */
3564 if { (eval echo configure
:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3566 ac_cv_search_socketpair
="none required"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.
$ac_ext >&5
3572 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3573 LIBS
="-l$i $ac_func_search_save_LIBS"
3574 cat > conftest.
$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3586 if { (eval echo configure
:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3588 ac_cv_search_socketpair
="-l$i"
3591 echo "configure: failed program was:" >&5
3592 cat conftest.
$ac_ext >&5
3596 LIBS
="$ac_func_search_save_LIBS"
3599 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3600 if test "$ac_cv_search_socketpair" != "no"; then
3601 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3607 # Since GDB uses Readline, we need termcap functionality, so we need
3608 # to find a library that provides that. When GDB is configured with
3609 # --enable-tui, we need full curses functionality.
3611 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3612 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3613 # Makefile fragments. That's why we need to have `Hcurses' before
3614 # `curses'. I don't see why we should use HP curses if a more
3615 # standard curses is available, except that according to HP's
3616 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3617 # HP-UX 10.10 and 10.20.
3619 if test "$need_curses" = yes; then
3621 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3622 echo "configure:3623: checking for library containing initscr" >&5
3623 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 ac_func_search_save_LIBS
="$LIBS"
3627 ac_cv_search_initscr
="no"
3628 cat > conftest.
$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 /* Override any gcc2 internal prototype to avoid an error. */
3632 /* We use char because int might match the return type of a gcc2
3633 builtin and then its argument prototype would still apply. */
3640 if { (eval echo configure
:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3642 ac_cv_search_initscr
="none required"
3644 echo "configure: failed program was:" >&5
3645 cat conftest.
$ac_ext >&5
3648 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
3649 LIBS
="-l$i $ac_func_search_save_LIBS"
3650 cat > conftest.
$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3662 if { (eval echo configure
:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3664 ac_cv_search_initscr
="-l$i"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3672 LIBS
="$ac_func_search_save_LIBS"
3675 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3676 if test "$ac_cv_search_initscr" != "no"; then
3677 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
3680 { echo "configure: error: no curses library found" 1>&2; exit 1; }
3686 if test -d $srcdir/libtermcap
; then
3687 LIBS
="../libtermcap/libtermcap.a $LIBS"
3688 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
3691 # ??? Is this really true?
3692 ac_cv_search_tgetent
="none required"
3695 # Readline prefers curses over termcap on AIX.
3698 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3699 echo "configure:3700: checking for library containing tgetent" >&5
3700 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_func_search_save_LIBS
="$LIBS"
3704 ac_cv_search_tgetent
="no"
3705 cat > conftest.
$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3717 if { (eval echo configure
:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3719 ac_cv_search_tgetent
="none required"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.
$ac_ext >&5
3725 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
3726 LIBS
="-l$i $ac_func_search_save_LIBS"
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3739 if { (eval echo configure
:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3741 ac_cv_search_tgetent
="-l$i"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.
$ac_ext >&5
3749 LIBS
="$ac_func_search_save_LIBS"
3752 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3753 if test "$ac_cv_search_tgetent" != "no"; then
3754 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3762 # Note: We used to check for libtermlib and libterminfo too, but
3763 # Readline doesn't, so I think we're safe with leaving them out.
3765 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3766 echo "configure:3767: checking for library containing tgetent" >&5
3767 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_func_search_save_LIBS
="$LIBS"
3771 ac_cv_search_tgetent
="no"
3772 cat > conftest.
$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 /* Override any gcc2 internal prototype to avoid an error. */
3776 /* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3784 if { (eval echo configure
:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3786 ac_cv_search_tgetent
="none required"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3792 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
3793 LIBS
="-l$i $ac_func_search_save_LIBS"
3794 cat > conftest.
$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 /* Override any gcc2 internal prototype to avoid an error. */
3798 /* We use char because int might match the return type of a gcc2
3799 builtin and then its argument prototype would still apply. */
3806 if { (eval echo configure
:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3808 ac_cv_search_tgetent
="-l$i"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3816 LIBS
="$ac_func_search_save_LIBS"
3819 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3820 if test "$ac_cv_search_tgetent" != "no"; then
3821 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3827 if test "$ac_cv_search_tgetent" = no
; then
3828 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
3831 # ------------------------- #
3832 # Checks for header files. #
3833 # ------------------------- #
3836 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3838 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3839 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3840 echo "configure:3841: checking for $ac_hdr that defines DIR" >&5
3841 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3842 echo $ac_n "(cached) $ac_c" 1>&6
3844 cat > conftest.
$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847 #include <sys/types.h>
3853 if { (eval echo configure
:3854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3855 eval "ac_cv_header_dirent_$ac_safe=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.
$ac_ext >&5
3860 eval "ac_cv_header_dirent_$ac_safe=no"
3864 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3867 cat >> confdefs.h
<<EOF
3868 #define $ac_tr_hdr 1
3870 ac_header_dirent
=$ac_hdr; break
3872 echo "$ac_t""no" 1>&6
3875 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3876 if test $ac_header_dirent = dirent.h
; then
3877 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3878 echo "configure:3879: checking for opendir in -ldir" >&5
3879 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3883 ac_save_LIBS
="$LIBS"
3885 cat > conftest.
$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 /* Override any gcc2 internal prototype to avoid an error. */
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3897 if { (eval echo configure
:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3899 eval "ac_cv_lib_$ac_lib_var=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 eval "ac_cv_lib_$ac_lib_var=no"
3907 LIBS
="$ac_save_LIBS"
3910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3911 echo "$ac_t""yes" 1>&6
3914 echo "$ac_t""no" 1>&6
3918 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3919 echo "configure:3920: checking for opendir in -lx" >&5
3920 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 ac_save_LIBS
="$LIBS"
3926 cat > conftest.
$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3929 /* Override any gcc2 internal prototype to avoid an error. */
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3938 if { (eval echo configure
:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3940 eval "ac_cv_lib_$ac_lib_var=yes"
3942 echo "configure: failed program was:" >&5
3943 cat conftest.
$ac_ext >&5
3945 eval "ac_cv_lib_$ac_lib_var=no"
3948 LIBS
="$ac_save_LIBS"
3951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3955 echo "$ac_t""no" 1>&6
3960 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3961 echo "configure:3962: checking whether stat file-mode macros are broken" >&5
3962 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 cat > conftest.
$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 #include <sys/types.h>
3969 #include <sys/stat.h>
3971 #if defined(S_ISBLK) && defined(S_IFDIR)
3972 # if S_ISBLK (S_IFDIR)
3977 #if defined(S_ISBLK) && defined(S_IFCHR)
3978 # if S_ISBLK (S_IFCHR)
3983 #if defined(S_ISLNK) && defined(S_IFREG)
3984 # if S_ISLNK (S_IFREG)
3989 #if defined(S_ISSOCK) && defined(S_IFREG)
3990 # if S_ISSOCK (S_IFREG)
3996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3997 egrep "You lose" >/dev
/null
2>&1; then
3999 ac_cv_header_stat_broken
=yes
4002 ac_cv_header_stat_broken
=no
4008 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4009 if test $ac_cv_header_stat_broken = yes; then
4010 cat >> confdefs.h
<<\EOF
4011 #define STAT_MACROS_BROKEN 1
4016 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4017 echo "configure:4018: checking for ANSI C header files" >&5
4018 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 cat > conftest.
$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4029 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4030 { (eval echo configure
:4031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4031 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4032 if test -z "$ac_err"; then
4034 ac_cv_header_stdc
=yes
4037 echo "configure: failed program was:" >&5
4038 cat conftest.
$ac_ext >&5
4040 ac_cv_header_stdc
=no
4044 if test $ac_cv_header_stdc = yes; then
4045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4046 cat > conftest.
$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052 egrep "memchr" >/dev
/null
2>&1; then
4056 ac_cv_header_stdc
=no
4062 if test $ac_cv_header_stdc = yes; then
4063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4064 cat > conftest.
$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 egrep "free" >/dev
/null
2>&1; then
4074 ac_cv_header_stdc
=no
4080 if test $ac_cv_header_stdc = yes; then
4081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4082 if test "$cross_compiling" = yes; then
4085 cat > conftest.
$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4089 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4090 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4092 int main () { int i; for (i = 0; i < 256; i++)
4093 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4097 if { (eval echo configure
:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 ac_cv_header_stdc
=no
4112 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4113 if test $ac_cv_header_stdc = yes; then
4114 cat >> confdefs.h
<<\EOF
4115 #define STDC_HEADERS 1
4120 for ac_hdr
in link.h
4122 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_hdr" >&5
4125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.
$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4133 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4134 { (eval echo configure
:4135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4135 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4136 if test -z "$ac_err"; then
4138 eval "ac_cv_header_$ac_safe=yes"
4141 echo "configure: failed program was:" >&5
4142 cat conftest.
$ac_ext >&5
4144 eval "ac_cv_header_$ac_safe=no"
4148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4149 echo "$ac_t""yes" 1>&6
4150 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4151 cat >> confdefs.h
<<EOF
4152 #define $ac_tr_hdr 1
4156 echo "$ac_t""no" 1>&6
4160 for ac_hdr
in nlist.h
4162 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_hdr" >&5
4165 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 cat > conftest.
$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4173 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4174 { (eval echo configure
:4175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4175 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4176 if test -z "$ac_err"; then
4178 eval "ac_cv_header_$ac_safe=yes"
4181 echo "configure: failed program was:" >&5
4182 cat conftest.
$ac_ext >&5
4184 eval "ac_cv_header_$ac_safe=no"
4188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4191 cat >> confdefs.h
<<EOF
4192 #define $ac_tr_hdr 1
4196 echo "$ac_t""no" 1>&6
4200 for ac_hdr
in poll.h sys
/poll.h
4202 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4204 echo "configure:4205: checking for $ac_hdr" >&5
4205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4213 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4214 { (eval echo configure
:4215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4215 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4216 if test -z "$ac_err"; then
4218 eval "ac_cv_header_$ac_safe=yes"
4221 echo "configure: failed program was:" >&5
4222 cat conftest.
$ac_ext >&5
4224 eval "ac_cv_header_$ac_safe=no"
4228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4230 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4231 cat >> confdefs.h
<<EOF
4232 #define $ac_tr_hdr 1
4236 echo "$ac_t""no" 1>&6
4240 for ac_hdr
in proc_service.h thread_db.h
4242 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4244 echo "configure:4245: checking for $ac_hdr" >&5
4245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4253 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4254 { (eval echo configure
:4255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4255 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4256 if test -z "$ac_err"; then
4258 eval "ac_cv_header_$ac_safe=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.
$ac_ext >&5
4264 eval "ac_cv_header_$ac_safe=no"
4268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4271 cat >> confdefs.h
<<EOF
4272 #define $ac_tr_hdr 1
4276 echo "$ac_t""no" 1>&6
4280 for ac_hdr
in stddef.h
4282 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4284 echo "configure:4285: checking for $ac_hdr" >&5
4285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4288 cat > conftest.
$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4294 { (eval echo configure
:4295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4296 if test -z "$ac_err"; then
4298 eval "ac_cv_header_$ac_safe=yes"
4301 echo "configure: failed program was:" >&5
4302 cat conftest.
$ac_ext >&5
4304 eval "ac_cv_header_$ac_safe=no"
4308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4311 cat >> confdefs.h
<<EOF
4312 #define $ac_tr_hdr 1
4316 echo "$ac_t""no" 1>&6
4320 for ac_hdr
in stdlib.h
4322 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_hdr" >&5
4325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4333 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4334 { (eval echo configure
:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4335 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4336 if test -z "$ac_err"; then
4338 eval "ac_cv_header_$ac_safe=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4344 eval "ac_cv_header_$ac_safe=no"
4348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4349 echo "$ac_t""yes" 1>&6
4350 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4351 cat >> confdefs.h
<<EOF
4352 #define $ac_tr_hdr 1
4356 echo "$ac_t""no" 1>&6
4360 for ac_hdr
in stdint.h
4362 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_hdr" >&5
4365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.
$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4373 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4374 { (eval echo configure
:4375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4375 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4376 if test -z "$ac_err"; then
4378 eval "ac_cv_header_$ac_safe=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.
$ac_ext >&5
4384 eval "ac_cv_header_$ac_safe=no"
4388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4391 cat >> confdefs.h
<<EOF
4392 #define $ac_tr_hdr 1
4396 echo "$ac_t""no" 1>&6
4400 for ac_hdr
in string.h memory.h
strings.h
4402 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_hdr" >&5
4405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.
$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4414 { (eval echo configure
:4415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4415 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4416 if test -z "$ac_err"; then
4418 eval "ac_cv_header_$ac_safe=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.
$ac_ext >&5
4424 eval "ac_cv_header_$ac_safe=no"
4428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4431 cat >> confdefs.h
<<EOF
4432 #define $ac_tr_hdr 1
4436 echo "$ac_t""no" 1>&6
4440 for ac_hdr
in sys
/fault.h
4442 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_hdr" >&5
4445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure
:4455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4458 eval "ac_cv_header_$ac_safe=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 eval "ac_cv_header_$ac_safe=no"
4468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4471 cat >> confdefs.h
<<EOF
4472 #define $ac_tr_hdr 1
4476 echo "$ac_t""no" 1>&6
4480 for ac_hdr
in sys
/file.h
4482 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_hdr" >&5
4485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4494 { (eval echo configure
:4495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4495 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4496 if test -z "$ac_err"; then
4498 eval "ac_cv_header_$ac_safe=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4504 eval "ac_cv_header_$ac_safe=no"
4508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4510 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4511 cat >> confdefs.h
<<EOF
4512 #define $ac_tr_hdr 1
4516 echo "$ac_t""no" 1>&6
4520 for ac_hdr
in sys
/filio.h
4522 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_hdr" >&5
4525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.
$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4534 { (eval echo configure
:4535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4535 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4536 if test -z "$ac_err"; then
4538 eval "ac_cv_header_$ac_safe=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.
$ac_ext >&5
4544 eval "ac_cv_header_$ac_safe=no"
4548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4551 cat >> confdefs.h
<<EOF
4552 #define $ac_tr_hdr 1
4556 echo "$ac_t""no" 1>&6
4560 for ac_hdr
in sys
/ioctl.h
4562 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_hdr" >&5
4565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4573 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4574 { (eval echo configure
:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4575 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4576 if test -z "$ac_err"; then
4578 eval "ac_cv_header_$ac_safe=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.
$ac_ext >&5
4584 eval "ac_cv_header_$ac_safe=no"
4588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4591 cat >> confdefs.h
<<EOF
4592 #define $ac_tr_hdr 1
4596 echo "$ac_t""no" 1>&6
4600 for ac_hdr
in sys
/param.h
4602 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4604 echo "configure:4605: checking for $ac_hdr" >&5
4605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 cat > conftest.
$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4613 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4614 { (eval echo configure
:4615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4615 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4616 if test -z "$ac_err"; then
4618 eval "ac_cv_header_$ac_safe=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.
$ac_ext >&5
4624 eval "ac_cv_header_$ac_safe=no"
4628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4631 cat >> confdefs.h
<<EOF
4632 #define $ac_tr_hdr 1
4636 echo "$ac_t""no" 1>&6
4640 for ac_hdr
in sys
/proc.h
4642 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4644 echo "configure:4645: checking for $ac_hdr" >&5
4645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 cat > conftest.
$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4653 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4654 { (eval echo configure
:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4655 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4656 if test -z "$ac_err"; then
4658 eval "ac_cv_header_$ac_safe=yes"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.
$ac_ext >&5
4664 eval "ac_cv_header_$ac_safe=no"
4668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4671 cat >> confdefs.h
<<EOF
4672 #define $ac_tr_hdr 1
4676 echo "$ac_t""no" 1>&6
4680 for ac_hdr
in sys
/procfs.h
4682 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4684 echo "configure:4685: checking for $ac_hdr" >&5
4685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.
$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure
:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4696 if test -z "$ac_err"; then
4698 eval "ac_cv_header_$ac_safe=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 eval "ac_cv_header_$ac_safe=no"
4708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4711 cat >> confdefs.h
<<EOF
4712 #define $ac_tr_hdr 1
4716 echo "$ac_t""no" 1>&6
4720 for ac_hdr
in sys
/ptrace.h ptrace.h
4722 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4724 echo "configure:4725: checking for $ac_hdr" >&5
4725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.
$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4734 { (eval echo configure
:4735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4736 if test -z "$ac_err"; then
4738 eval "ac_cv_header_$ac_safe=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.
$ac_ext >&5
4744 eval "ac_cv_header_$ac_safe=no"
4748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4750 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4751 cat >> confdefs.h
<<EOF
4752 #define $ac_tr_hdr 1
4756 echo "$ac_t""no" 1>&6
4760 for ac_hdr
in sys
/reg.h sys
/debugreg.h
4762 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4764 echo "configure:4765: checking for $ac_hdr" >&5
4765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 cat > conftest.
$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4773 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4774 { (eval echo configure
:4775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4775 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4776 if test -z "$ac_err"; then
4778 eval "ac_cv_header_$ac_safe=yes"
4781 echo "configure: failed program was:" >&5
4782 cat conftest.
$ac_ext >&5
4784 eval "ac_cv_header_$ac_safe=no"
4788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4791 cat >> confdefs.h
<<EOF
4792 #define $ac_tr_hdr 1
4796 echo "$ac_t""no" 1>&6
4800 for ac_hdr
in sys
/select.h
4802 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4804 echo "configure:4805: checking for $ac_hdr" >&5
4805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 cat > conftest.
$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4814 { (eval echo configure
:4815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4816 if test -z "$ac_err"; then
4818 eval "ac_cv_header_$ac_safe=yes"
4821 echo "configure: failed program was:" >&5
4822 cat conftest.
$ac_ext >&5
4824 eval "ac_cv_header_$ac_safe=no"
4828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4831 cat >> confdefs.h
<<EOF
4832 #define $ac_tr_hdr 1
4836 echo "$ac_t""no" 1>&6
4840 for ac_hdr
in sys
/syscall.h
4842 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4844 echo "configure:4845: checking for $ac_hdr" >&5
4845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4848 cat > conftest.
$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4854 { (eval echo configure
:4855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4856 if test -z "$ac_err"; then
4858 eval "ac_cv_header_$ac_safe=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.
$ac_ext >&5
4864 eval "ac_cv_header_$ac_safe=no"
4868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4869 echo "$ac_t""yes" 1>&6
4870 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4871 cat >> confdefs.h
<<EOF
4872 #define $ac_tr_hdr 1
4876 echo "$ac_t""no" 1>&6
4880 for ac_hdr
in sys
/user.h
4882 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_hdr" >&5
4885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 cat > conftest.
$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4894 { (eval echo configure
:4895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4896 if test -z "$ac_err"; then
4898 eval "ac_cv_header_$ac_safe=yes"
4901 echo "configure: failed program was:" >&5
4902 cat conftest.
$ac_ext >&5
4904 eval "ac_cv_header_$ac_safe=no"
4908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4909 echo "$ac_t""yes" 1>&6
4910 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4911 cat >> confdefs.h
<<EOF
4912 #define $ac_tr_hdr 1
4916 echo "$ac_t""no" 1>&6
4920 for ac_hdr
in sys
/wait.h
wait.h
4922 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4924 echo "configure:4925: checking for $ac_hdr" >&5
4925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 cat > conftest.
$ac_ext <<EOF
4929 #line 4930 "configure"
4930 #include "confdefs.h"
4933 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4934 { (eval echo configure
:4935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4935 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4936 if test -z "$ac_err"; then
4938 eval "ac_cv_header_$ac_safe=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.
$ac_ext >&5
4944 eval "ac_cv_header_$ac_safe=no"
4948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4949 echo "$ac_t""yes" 1>&6
4950 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4951 cat >> confdefs.h
<<EOF
4952 #define $ac_tr_hdr 1
4956 echo "$ac_t""no" 1>&6
4960 for ac_hdr
in termios.h termio.h sgtty.h
4962 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4964 echo "configure:4965: checking for $ac_hdr" >&5
4965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4968 cat > conftest.
$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4973 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4974 { (eval echo configure
:4975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4975 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4976 if test -z "$ac_err"; then
4978 eval "ac_cv_header_$ac_safe=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.
$ac_ext >&5
4984 eval "ac_cv_header_$ac_safe=no"
4988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4989 echo "$ac_t""yes" 1>&6
4990 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4991 cat >> confdefs.h
<<EOF
4992 #define $ac_tr_hdr 1
4996 echo "$ac_t""no" 1>&6
5000 for ac_hdr
in unistd.h
5002 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5004 echo "configure:5005: checking for $ac_hdr" >&5
5005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5008 cat > conftest.
$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5013 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5014 { (eval echo configure
:5015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5015 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5016 if test -z "$ac_err"; then
5018 eval "ac_cv_header_$ac_safe=yes"
5021 echo "configure: failed program was:" >&5
5022 cat conftest.
$ac_ext >&5
5024 eval "ac_cv_header_$ac_safe=no"
5028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5029 echo "$ac_t""yes" 1>&6
5030 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5031 cat >> confdefs.h
<<EOF
5032 #define $ac_tr_hdr 1
5036 echo "$ac_t""no" 1>&6
5041 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5042 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5043 # think that we don't have <curses.h> if we're using GCC.
5046 if test "$GCC" = yes; then
5047 cat >> confdefs.h
<<\EOF
5048 #define _MSE_INT_H 1
5053 for ac_hdr
in curses.h ncurses.h term.h
5055 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5057 echo "configure:5058: checking for $ac_hdr" >&5
5058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.
$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5066 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5067 { (eval echo configure
:5068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5068 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5069 if test -z "$ac_err"; then
5071 eval "ac_cv_header_$ac_safe=yes"
5074 echo "configure: failed program was:" >&5
5075 cat conftest.
$ac_ext >&5
5077 eval "ac_cv_header_$ac_safe=no"
5081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5082 echo "$ac_t""yes" 1>&6
5083 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5084 cat >> confdefs.h
<<EOF
5085 #define $ac_tr_hdr 1
5089 echo "$ac_t""no" 1>&6
5094 # FIXME: kettenis/20030102: In most cases we include these
5095 # unconditionally, so what's the point in checking these?
5096 for ac_hdr
in ctype.h
time.h
5098 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.
$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure
:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5114 eval "ac_cv_header_$ac_safe=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.
$ac_ext >&5
5120 eval "ac_cv_header_$ac_safe=no"
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127 cat >> confdefs.h
<<EOF
5128 #define $ac_tr_hdr 1
5132 echo "$ac_t""no" 1>&6
5137 # ------------------ #
5138 # Checks for types. #
5139 # ------------------ #
5141 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5142 echo "configure:5143: checking return type of signal handlers" >&5
5143 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 cat > conftest.
$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 #include <sys/types.h>
5155 extern "C" void (*signal (int, void (*)(int)))(int);
5157 void (*signal ()) ();
5164 if { (eval echo configure
:5165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5166 ac_cv_type_signal
=void
5168 echo "configure: failed program was:" >&5
5169 cat conftest.
$ac_ext >&5
5171 ac_cv_type_signal
=int
5176 echo "$ac_t""$ac_cv_type_signal" 1>&6
5177 cat >> confdefs.h
<<EOF
5178 #define RETSIGTYPE $ac_cv_type_signal
5183 # ------------------------------------- #
5184 # Checks for compiler characteristics. #
5185 # ------------------------------------- #
5187 echo $ac_n "checking for working const""... $ac_c" 1>&6
5188 echo "configure:5189: checking for working const" >&5
5189 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 cat > conftest.
$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5198 /* Ultrix mips cc rejects this. */
5199 typedef int charset[2]; const charset x;
5200 /* SunOS 4.1.1 cc rejects this. */
5201 char const *const *ccp;
5203 /* NEC SVR4.0.2 mips cc rejects this. */
5204 struct point {int x, y;};
5205 static struct point const zero = {0,0};
5206 /* AIX XL C 1.02.0.0 rejects this.
5207 It does not let you subtract one const X* pointer from another in an arm
5208 of an if-expression whose if-part is not a constant expression */
5209 const char *g = "string";
5210 ccp = &g + (g ? g-g : 0);
5211 /* HPUX 7.0 cc rejects these. */
5214 ccp = (char const *const *) p;
5215 { /* SCO 3.2v4 cc rejects this. */
5217 char const *s = 0 ? (char *) 0 : (char const *) 0;
5221 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5223 const int *foo = &x[0];
5226 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5227 typedef const int *iptr;
5231 { /* AIX XL C 1.02.0.0 rejects this saying
5232 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5233 struct s { int j; const int *ap[3]; };
5234 struct s *b; b->j = 5;
5236 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5242 if { (eval echo configure
:5243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5246 echo "configure: failed program was:" >&5
5247 cat conftest.
$ac_ext >&5
5254 echo "$ac_t""$ac_cv_c_const" 1>&6
5255 if test $ac_cv_c_const = no
; then
5256 cat >> confdefs.h
<<\EOF
5262 echo $ac_n "checking for inline""... $ac_c" 1>&6
5263 echo "configure:5264: checking for inline" >&5
5264 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5268 for ac_kw
in inline __inline__ __inline
; do
5269 cat > conftest.
$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5277 if { (eval echo configure
:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 ac_cv_c_inline
=$ac_kw; break
5281 echo "configure: failed program was:" >&5
5282 cat conftest.
$ac_ext >&5
5289 echo "$ac_t""$ac_cv_c_inline" 1>&6
5290 case "$ac_cv_c_inline" in
5292 no
) cat >> confdefs.h
<<\EOF
5296 *) cat >> confdefs.h
<<EOF
5297 #define inline $ac_cv_c_inline
5303 # ------------------------------ #
5304 # Checks for library functions. #
5305 # ------------------------------ #
5307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5308 # for constant arguments. Useless!
5309 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5310 echo "configure:5311: checking for working alloca.h" >&5
5311 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 cat > conftest.
$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5319 char *p = alloca(2 * sizeof(int));
5322 if { (eval echo configure
:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5324 ac_cv_header_alloca_h
=yes
5326 echo "configure: failed program was:" >&5
5327 cat conftest.
$ac_ext >&5
5329 ac_cv_header_alloca_h
=no
5334 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5335 if test $ac_cv_header_alloca_h = yes; then
5336 cat >> confdefs.h
<<\EOF
5337 #define HAVE_ALLOCA_H 1
5342 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5343 echo "configure:5344: checking for alloca" >&5
5344 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5347 cat > conftest.
$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5352 # define alloca __builtin_alloca
5355 # include <malloc.h>
5356 # define alloca _alloca
5359 # include <alloca.h>
5364 # ifndef alloca /* predefined by HP cc +Olibcalls */
5373 char *p = (char *) alloca(1);
5376 if { (eval echo configure
:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5378 ac_cv_func_alloca_works
=yes
5380 echo "configure: failed program was:" >&5
5381 cat conftest.
$ac_ext >&5
5383 ac_cv_func_alloca_works
=no
5388 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5389 if test $ac_cv_func_alloca_works = yes; then
5390 cat >> confdefs.h
<<\EOF
5391 #define HAVE_ALLOCA 1
5396 if test $ac_cv_func_alloca_works = no
; then
5397 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5398 # that cause trouble. Some versions do not even contain alloca or
5399 # contain a buggy version. If you still want to use their alloca,
5400 # use ar to extract alloca.o from them instead of compiling alloca.c.
5401 ALLOCA
=alloca.
${ac_objext}
5402 cat >> confdefs.h
<<\EOF
5407 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5408 echo "configure:5409: checking whether alloca needs Cray hooks" >&5
5409 if eval "test \"`echo '$''{'ac_cv_os_cray'+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 #if defined(CRAY) && ! defined(CRAY2)
5422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5423 egrep "webecray" >/dev
/null
2>&1; then
5434 echo "$ac_t""$ac_cv_os_cray" 1>&6
5435 if test $ac_cv_os_cray = yes; then
5436 for ac_func
in _getb67 GETB67 getb67
; do
5437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5438 echo "configure:5439: checking for $ac_func" >&5
5439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 cat > conftest.
$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5445 /* System header to define __stub macros and hopefully few prototypes,
5446 which can conflict with char $ac_func(); below. */
5448 /* Override any gcc2 internal prototype to avoid an error. */
5449 /* We use char because int might match the return type of a gcc2
5450 builtin and then its argument prototype would still apply. */
5455 /* The GNU C library defines this for functions which it implements
5456 to always fail with ENOSYS. Some functions are actually named
5457 something starting with __ and the normal name is an alias. */
5458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5466 if { (eval echo configure
:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5468 eval "ac_cv_func_$ac_func=yes"
5470 echo "configure: failed program was:" >&5
5471 cat conftest.
$ac_ext >&5
5473 eval "ac_cv_func_$ac_func=no"
5478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5479 echo "$ac_t""yes" 1>&6
5480 cat >> confdefs.h
<<EOF
5481 #define CRAY_STACKSEG_END $ac_func
5486 echo "$ac_t""no" 1>&6
5492 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5493 echo "configure:5494: checking stack direction for C alloca" >&5
5494 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 if test "$cross_compiling" = yes; then
5498 ac_cv_c_stack_direction
=0
5500 cat > conftest.
$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5503 find_stack_direction ()
5505 static char *addr = 0;
5510 return find_stack_direction ();
5513 return (&dummy > addr) ? 1 : -1;
5517 exit (find_stack_direction() < 0);
5520 if { (eval echo configure
:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5522 ac_cv_c_stack_direction
=1
5524 echo "configure: failed program was:" >&5
5525 cat conftest.
$ac_ext >&5
5527 ac_cv_c_stack_direction
=-1
5534 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5535 cat >> confdefs.h
<<EOF
5536 #define STACK_DIRECTION $ac_cv_c_stack_direction
5541 for ac_hdr
in unistd.h
5543 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_hdr" >&5
5546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5549 cat > conftest.
$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5554 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555 { (eval echo configure
:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557 if test -z "$ac_err"; then
5559 eval "ac_cv_header_$ac_safe=yes"
5562 echo "configure: failed program was:" >&5
5563 cat conftest.
$ac_ext >&5
5565 eval "ac_cv_header_$ac_safe=no"
5569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5571 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572 cat >> confdefs.h
<<EOF
5573 #define $ac_tr_hdr 1
5577 echo "$ac_t""no" 1>&6
5581 for ac_func
in getpagesize
5583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5584 echo "configure:5585: checking for $ac_func" >&5
5585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.
$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 /* System header to define __stub macros and hopefully few prototypes,
5592 which can conflict with char $ac_func(); below. */
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5601 /* The GNU C library defines this for functions which it implements
5602 to always fail with ENOSYS. Some functions are actually named
5603 something starting with __ and the normal name is an alias. */
5604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5612 if { (eval echo configure
:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5614 eval "ac_cv_func_$ac_func=yes"
5616 echo "configure: failed program was:" >&5
5617 cat conftest.
$ac_ext >&5
5619 eval "ac_cv_func_$ac_func=no"
5624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5627 cat >> confdefs.h
<<EOF
5628 #define $ac_tr_func 1
5632 echo "$ac_t""no" 1>&6
5636 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5637 echo "configure:5638: checking for working mmap" >&5
5638 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 if test "$cross_compiling" = yes; then
5642 ac_cv_func_mmap_fixed_mapped
=no
5644 cat > conftest.
$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5648 /* Thanks to Mike Haertel and Jim Avera for this test.
5649 Here is a matrix of mmap possibilities:
5650 mmap private not fixed
5651 mmap private fixed at somewhere currently unmapped
5652 mmap private fixed at somewhere already mapped
5653 mmap shared not fixed
5654 mmap shared fixed at somewhere currently unmapped
5655 mmap shared fixed at somewhere already mapped
5656 For private mappings, we should verify that changes cannot be read()
5657 back from the file, nor mmap's back from the file at a different
5658 address. (There have been systems where private was not correctly
5659 implemented like the infamous i386 svr4.0, and systems where the
5660 VM page cache was not coherent with the filesystem buffer cache
5661 like early versions of FreeBSD and possibly contemporary NetBSD.)
5662 For shared mappings, we should conversely verify that changes get
5663 propogated back to all the places they're supposed to be.
5665 Grep wants private fixed already mapped.
5666 The main things grep needs to know about mmap are:
5667 * does it exist and is it safe to write into the mmap'd area
5668 * how to use it (BSD variants) */
5669 #include <sys/types.h>
5671 #include <sys/mman.h>
5673 /* This mess was copied from the GNU getpagesize.h. */
5674 #ifndef HAVE_GETPAGESIZE
5675 # ifdef HAVE_UNISTD_H
5676 # include <unistd.h>
5679 /* Assume that all systems that can run configure have sys/param.h. */
5680 # ifndef HAVE_SYS_PARAM_H
5681 # define HAVE_SYS_PARAM_H 1
5684 # ifdef _SC_PAGESIZE
5685 # define getpagesize() sysconf(_SC_PAGESIZE)
5686 # else /* no _SC_PAGESIZE */
5687 # ifdef HAVE_SYS_PARAM_H
5688 # include <sys/param.h>
5689 # ifdef EXEC_PAGESIZE
5690 # define getpagesize() EXEC_PAGESIZE
5691 # else /* no EXEC_PAGESIZE */
5693 # define getpagesize() NBPG * CLSIZE
5696 # endif /* no CLSIZE */
5697 # else /* no NBPG */
5699 # define getpagesize() NBPC
5700 # else /* no NBPC */
5702 # define getpagesize() PAGESIZE
5703 # endif /* PAGESIZE */
5704 # endif /* no NBPC */
5705 # endif /* no NBPG */
5706 # endif /* no EXEC_PAGESIZE */
5707 # else /* no HAVE_SYS_PARAM_H */
5708 # define getpagesize() 8192 /* punt totally */
5709 # endif /* no HAVE_SYS_PARAM_H */
5710 # endif /* no _SC_PAGESIZE */
5712 #endif /* no HAVE_GETPAGESIZE */
5715 extern "C" { void *malloc(unsigned); }
5723 char *data, *data2, *data3;
5727 pagesize = getpagesize();
5730 * First, make a file with some known garbage in it.
5732 data = malloc(pagesize);
5735 for (i = 0; i < pagesize; ++i)
5736 *(data + i) = rand();
5738 fd = creat("conftestmmap", 0600);
5741 if (write(fd, data, pagesize) != pagesize)
5746 * Next, try to mmap the file at a fixed address which
5747 * already has something else allocated at it. If we can,
5748 * also make sure that we see the same garbage.
5750 fd = open("conftestmmap", O_RDWR);
5753 data2 = malloc(2 * pagesize);
5756 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5757 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5758 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5760 for (i = 0; i < pagesize; ++i)
5761 if (*(data + i) != *(data2 + i))
5765 * Finally, make sure that changes to the mapped area
5766 * do not percolate back to the file as seen by read().
5767 * (This is a bug on some variants of i386 svr4.0.)
5769 for (i = 0; i < pagesize; ++i)
5770 *(data2 + i) = *(data2 + i) + 1;
5771 data3 = malloc(pagesize);
5774 if (read(fd, data3, pagesize) != pagesize)
5776 for (i = 0; i < pagesize; ++i)
5777 if (*(data + i) != *(data3 + i))
5780 unlink("conftestmmap");
5785 if { (eval echo configure
:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5787 ac_cv_func_mmap_fixed_mapped
=yes
5789 echo "configure: failed program was:" >&5
5790 cat conftest.
$ac_ext >&5
5792 ac_cv_func_mmap_fixed_mapped
=no
5799 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5800 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5801 cat >> confdefs.h
<<\EOF
5807 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5808 echo "configure:5809: checking for pid_t" >&5
5809 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 cat > conftest.
$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 #include <sys/types.h>
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5824 ac_cv_type_pid_t
=yes
5832 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5833 if test $ac_cv_type_pid_t = no
; then
5834 cat >> confdefs.h
<<\EOF
5840 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5841 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5842 echo "configure:5843: checking for vfork.h" >&5
5843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5846 cat > conftest.
$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5852 { (eval echo configure
:5853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5854 if test -z "$ac_err"; then
5856 eval "ac_cv_header_$ac_safe=yes"
5859 echo "configure: failed program was:" >&5
5860 cat conftest.
$ac_ext >&5
5862 eval "ac_cv_header_$ac_safe=no"
5866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5867 echo "$ac_t""yes" 1>&6
5868 cat >> confdefs.h
<<\EOF
5869 #define HAVE_VFORK_H 1
5873 echo "$ac_t""no" 1>&6
5876 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
5877 echo "configure:5878: checking for working vfork" >&5
5878 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5881 if test "$cross_compiling" = yes; then
5882 echo $ac_n "checking for vfork""... $ac_c" 1>&6
5883 echo "configure:5884: checking for vfork" >&5
5884 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char vfork(); below. */
5893 /* Override any gcc2 internal prototype to avoid an error. */
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5900 /* The GNU C library defines this for functions which it implements
5901 to always fail with ENOSYS. Some functions are actually named
5902 something starting with __ and the normal name is an alias. */
5903 #if defined (__stub_vfork) || defined (__stub___vfork)
5911 if { (eval echo configure
:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5913 eval "ac_cv_func_vfork=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.
$ac_ext >&5
5918 eval "ac_cv_func_vfork=no"
5923 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5927 echo "$ac_t""no" 1>&6
5930 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5932 cat > conftest.
$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* Thanks to Paul Eggert for this test. */
5937 #include <sys/types.h>
5938 #include <sys/stat.h>
5939 #ifdef HAVE_UNISTD_H
5945 /* On some sparc systems, changes by the child to local and incoming
5946 argument registers are propagated back to the parent.
5947 The compiler is told about this with #include <vfork.h>,
5948 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
5949 Test for this by using a static variable whose address
5950 is put into a register that is clobbered by the vfork. */
5953 sparc_address_test (int arg)
5955 sparc_address_test (arg) int arg;
5973 pid_t parent = getpid ();
5976 sparc_address_test ();
5981 /* Here is another test for sparc vfork register problems.
5982 This test uses lots of local variables, at least
5983 as many local variables as main has allocated so far
5984 including compiler temporaries. 4 locals are enough for
5985 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
5986 A buggy compiler should reuse the register of parent
5987 for one of the local variables, since it will think that
5988 parent can't possibly be used any more in this routine.
5989 Assigning to the local variable will thus munge parent
5990 in the parent process. */
5992 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5993 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5994 /* Convince the compiler that p..p7 are live; otherwise, it might
5995 use the same hardware register for all 8 local variables. */
5996 if (p != p1 || p != p2 || p != p3 || p != p4
5997 || p != p5 || p != p6 || p != p7)
6000 /* On some systems (e.g. IRIX 3.3),
6001 vfork doesn't separate parent from child file descriptors.
6002 If the child closes a descriptor before it execs or exits,
6003 this munges the parent's descriptor as well.
6004 Test for this by closing stdout in the child. */
6005 _exit(close(fileno(stdout)) != 0);
6010 while (wait(&status) != child)
6013 /* Was there some problem with vforking? */
6016 /* Did the child fail? (This shouldn't happen.) */
6019 /* Did the vfork/compiler bug occur? */
6020 || parent != getpid()
6022 /* Did the file descriptor bug occur? */
6023 || fstat(fileno(stdout), &st) != 0
6028 if { (eval echo configure
:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6030 ac_cv_func_vfork_works
=yes
6032 echo "configure: failed program was:" >&5
6033 cat conftest.
$ac_ext >&5
6035 ac_cv_func_vfork_works
=no
6042 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6043 if test $ac_cv_func_vfork_works = no
; then
6044 cat >> confdefs.h
<<\EOF
6050 for ac_func
in canonicalize_file_name realpath
6052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_func" >&5
6054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 cat > conftest.
$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char $ac_func(); below. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6081 if { (eval echo configure
:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6083 eval "ac_cv_func_$ac_func=yes"
6085 echo "configure: failed program was:" >&5
6086 cat conftest.
$ac_ext >&5
6088 eval "ac_cv_func_$ac_func=no"
6093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6095 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6096 cat >> confdefs.h
<<EOF
6097 #define $ac_tr_func 1
6101 echo "$ac_t""no" 1>&6
6107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6108 echo "configure:6109: checking for $ac_func" >&5
6109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 cat > conftest.
$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6115 /* System header to define __stub macros and hopefully few prototypes,
6116 which can conflict with char $ac_func(); below. */
6118 /* Override any gcc2 internal prototype to avoid an error. */
6119 /* We use char because int might match the return type of a gcc2
6120 builtin and then its argument prototype would still apply. */
6125 /* The GNU C library defines this for functions which it implements
6126 to always fail with ENOSYS. Some functions are actually named
6127 something starting with __ and the normal name is an alias. */
6128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6136 if { (eval echo configure
:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6138 eval "ac_cv_func_$ac_func=yes"
6140 echo "configure: failed program was:" >&5
6141 cat conftest.
$ac_ext >&5
6143 eval "ac_cv_func_$ac_func=no"
6148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6149 echo "$ac_t""yes" 1>&6
6150 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6151 cat >> confdefs.h
<<EOF
6152 #define $ac_tr_func 1
6156 echo "$ac_t""no" 1>&6
6160 for ac_func
in pread64
6162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6163 echo "configure:6164: checking for $ac_func" >&5
6164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 cat > conftest.
$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6170 /* System header to define __stub macros and hopefully few prototypes,
6171 which can conflict with char $ac_func(); below. */
6173 /* Override any gcc2 internal prototype to avoid an error. */
6174 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */
6180 /* The GNU C library defines this for functions which it implements
6181 to always fail with ENOSYS. Some functions are actually named
6182 something starting with __ and the normal name is an alias. */
6183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6191 if { (eval echo configure
:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6193 eval "ac_cv_func_$ac_func=yes"
6195 echo "configure: failed program was:" >&5
6196 cat conftest.
$ac_ext >&5
6198 eval "ac_cv_func_$ac_func=no"
6203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6204 echo "$ac_t""yes" 1>&6
6205 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6206 cat >> confdefs.h
<<EOF
6207 #define $ac_tr_func 1
6211 echo "$ac_t""no" 1>&6
6217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6218 echo "configure:6219: checking for $ac_func" >&5
6219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6220 echo $ac_n "(cached) $ac_c" 1>&6
6222 cat > conftest.
$ac_ext <<EOF
6223 #line 6224 "configure"
6224 #include "confdefs.h"
6225 /* System header to define __stub macros and hopefully few prototypes,
6226 which can conflict with char $ac_func(); below. */
6228 /* Override any gcc2 internal prototype to avoid an error. */
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6235 /* The GNU C library defines this for functions which it implements
6236 to always fail with ENOSYS. Some functions are actually named
6237 something starting with __ and the normal name is an alias. */
6238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6246 if { (eval echo configure
:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6248 eval "ac_cv_func_$ac_func=yes"
6250 echo "configure: failed program was:" >&5
6251 cat conftest.
$ac_ext >&5
6253 eval "ac_cv_func_$ac_func=no"
6258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6259 echo "$ac_t""yes" 1>&6
6260 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6261 cat >> confdefs.h
<<EOF
6262 #define $ac_tr_func 1
6266 echo "$ac_t""no" 1>&6
6270 for ac_func
in setpgid setpgrp
6272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6273 echo "configure:6274: checking for $ac_func" >&5
6274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 cat > conftest.
$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6280 /* System header to define __stub macros and hopefully few prototypes,
6281 which can conflict with char $ac_func(); below. */
6283 /* Override any gcc2 internal prototype to avoid an error. */
6284 /* We use char because int might match the return type of a gcc2
6285 builtin and then its argument prototype would still apply. */
6290 /* The GNU C library defines this for functions which it implements
6291 to always fail with ENOSYS. Some functions are actually named
6292 something starting with __ and the normal name is an alias. */
6293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6301 if { (eval echo configure
:6302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6303 eval "ac_cv_func_$ac_func=yes"
6305 echo "configure: failed program was:" >&5
6306 cat conftest.
$ac_ext >&5
6308 eval "ac_cv_func_$ac_func=no"
6313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6314 echo "$ac_t""yes" 1>&6
6315 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6316 cat >> confdefs.h
<<EOF
6317 #define $ac_tr_func 1
6321 echo "$ac_t""no" 1>&6
6325 for ac_func
in sigaction sigprocmask sigsetmask
6327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6328 echo "configure:6329: checking for $ac_func" >&5
6329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6332 cat > conftest.
$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 /* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char $ac_func(); below. */
6338 /* Override any gcc2 internal prototype to avoid an error. */
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6345 /* The GNU C library defines this for functions which it implements
6346 to always fail with ENOSYS. Some functions are actually named
6347 something starting with __ and the normal name is an alias. */
6348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6356 if { (eval echo configure
:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6358 eval "ac_cv_func_$ac_func=yes"
6360 echo "configure: failed program was:" >&5
6361 cat conftest.
$ac_ext >&5
6363 eval "ac_cv_func_$ac_func=no"
6368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6369 echo "$ac_t""yes" 1>&6
6370 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6371 cat >> confdefs.h
<<EOF
6372 #define $ac_tr_func 1
6376 echo "$ac_t""no" 1>&6
6380 for ac_func
in socketpair
6382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6383 echo "configure:6384: checking for $ac_func" >&5
6384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 cat > conftest.
$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6390 /* System header to define __stub macros and hopefully few prototypes,
6391 which can conflict with char $ac_func(); below. */
6393 /* Override any gcc2 internal prototype to avoid an error. */
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6400 /* The GNU C library defines this for functions which it implements
6401 to always fail with ENOSYS. Some functions are actually named
6402 something starting with __ and the normal name is an alias. */
6403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6411 if { (eval echo configure
:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6413 eval "ac_cv_func_$ac_func=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.
$ac_ext >&5
6418 eval "ac_cv_func_$ac_func=no"
6423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6426 cat >> confdefs.h
<<EOF
6427 #define $ac_tr_func 1
6431 echo "$ac_t""no" 1>&6
6436 if test "$cross_compiling" = no
; then
6437 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6438 echo "configure:6439: checking whether setpgrp takes no argument" >&5
6439 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6442 if test "$cross_compiling" = yes; then
6443 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6445 cat > conftest.
$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6449 #ifdef HAVE_UNISTD_H
6454 * If this system has a BSD-style setpgrp, which takes arguments, exit
6459 if (setpgrp(1,1) == -1)
6466 if { (eval echo configure
:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6468 ac_cv_func_setpgrp_void
=no
6470 echo "configure: failed program was:" >&5
6471 cat conftest.
$ac_ext >&5
6473 ac_cv_func_setpgrp_void
=yes
6481 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6482 if test $ac_cv_func_setpgrp_void = yes; then
6483 cat >> confdefs.h
<<\EOF
6484 #define SETPGRP_VOID 1
6490 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6491 echo "configure:6492: checking whether setpgrp takes no argument" >&5
6492 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6495 cat > conftest.
$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6503 if (setpgrp(1,1) == -1)
6510 if { (eval echo configure
:6511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6512 ac_cv_func_setpgrp_void
=no
6514 echo "configure: failed program was:" >&5
6515 cat conftest.
$ac_ext >&5
6517 ac_cv_func_setpgrp_void
=yes
6522 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6523 if test $ac_cv_func_setpgrp_void = yes; then
6524 cat >> confdefs.h
<<\EOF
6525 #define SETPGRP_VOID 1
6531 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6532 # since sigsetjmp might only be defined as a macro.
6533 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6534 echo "configure:6535: checking for sigsetjmp" >&5
6535 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 cat > conftest.
$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6545 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6548 if { (eval echo configure
:6549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6550 gdb_cv_func_sigsetjmp
=yes
6552 echo "configure: failed program was:" >&5
6553 cat conftest.
$ac_ext >&5
6555 gdb_cv_func_sigsetjmp
=no
6560 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6561 if test $gdb_cv_func_sigsetjmp = yes; then
6562 cat >> confdefs.h
<<\EOF
6563 #define HAVE_SIGSETJMP 1
6568 # Assume we'll default to using the included libiberty regex.
6569 gdb_use_included_regex
=yes
6571 # However, if the system regex is GNU regex, then default to *not*
6572 # using the included regex.
6573 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6574 echo "configure:6575: checking for GNU regex" >&5
6575 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.
$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 #include <gnu-versions.h>
6583 #define REGEX_INTERFACE_VERSION 1
6584 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
6585 # error "Version mismatch"
6589 if { (eval echo configure
:6590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6591 gdb_cv_have_gnu_regex
=yes
6593 echo "configure: failed program was:" >&5
6594 cat conftest.
$ac_ext >&5
6596 gdb_cv_have_gnu_regex
=no
6601 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6602 if test $gdb_cv_have_gnu_regex = yes; then
6603 gdb_use_included_regex
=no
6606 # Check whether --with-included-regex or --without-included-regex was given.
6607 if test "${with_included_regex+set}" = set; then
6608 withval
="$with_included_regex"
6609 gdb_with_regex
=$withval
6611 gdb_with_regex
=$gdb_use_included_regex
6614 if test "$gdb_with_regex" = yes; then
6615 cat >> confdefs.h
<<\EOF
6616 #define USE_INCLUDED_REGEX 1
6621 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6622 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6623 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6624 echo "configure:6625: checking for r_fs in struct reg" >&5
6625 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 cat > conftest.
$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 #include <machine/reg.h>
6633 struct reg r; r.r_fs;
6636 if { (eval echo configure
:6637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6638 gdb_cv_struct_reg_r_fs
=yes
6640 echo "configure: failed program was:" >&5
6641 cat conftest.
$ac_ext >&5
6643 gdb_cv_struct_reg_r_fs
=no
6648 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6649 if test $gdb_cv_struct_reg_r_fs = yes; then
6650 cat >> confdefs.h
<<\EOF
6651 #define HAVE_STRUCT_REG_R_FS 1
6655 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6656 echo "configure:6657: checking for r_gs in struct reg" >&5
6657 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6660 cat > conftest.
$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 #include <machine/reg.h>
6665 struct reg r; r.r_gs;
6668 if { (eval echo configure
:6669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6670 gdb_cv_struct_reg_r_gs
=yes
6672 echo "configure: failed program was:" >&5
6673 cat conftest.
$ac_ext >&5
6675 gdb_cv_struct_reg_r_gs
=no
6680 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6681 if test $gdb_cv_struct_reg_r_gs = yes; then
6682 cat >> confdefs.h
<<\EOF
6683 #define HAVE_STRUCT_REG_R_GS 1
6688 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6689 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6690 echo "configure:6691: checking for PTRACE_GETREGS" >&5
6691 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.
$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 #include <sys/ptrace.h>
6702 if { (eval echo configure
:6703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6704 gdb_cv_have_ptrace_getregs
=yes
6706 echo "configure: failed program was:" >&5
6707 cat conftest.
$ac_ext >&5
6709 gdb_cv_have_ptrace_getregs
=no
6714 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6715 if test $gdb_cv_have_ptrace_getregs = yes; then
6716 cat >> confdefs.h
<<\EOF
6717 #define HAVE_PTRACE_GETREGS 1
6722 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6723 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6724 echo "configure:6725: checking for PTRACE_GETFPXREGS" >&5
6725 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6728 cat > conftest.
$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 #include <sys/ptrace.h>
6736 if { (eval echo configure
:6737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6738 gdb_cv_have_ptrace_getfpxregs
=yes
6740 echo "configure: failed program was:" >&5
6741 cat conftest.
$ac_ext >&5
6743 gdb_cv_have_ptrace_getfpxregs
=no
6748 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6749 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6750 cat >> confdefs.h
<<\EOF
6751 #define HAVE_PTRACE_GETFPXREGS 1
6756 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6757 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6758 echo "configure:6759: checking for PT_GETDBREGS" >&5
6759 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.
$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6765 #include <sys/types.h>
6766 #include <sys/ptrace.h>
6771 if { (eval echo configure
:6772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6773 gdb_cv_have_pt_getdbregs
=yes
6775 echo "configure: failed program was:" >&5
6776 cat conftest.
$ac_ext >&5
6778 gdb_cv_have_pt_getdbregs
=no
6783 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6784 if test $gdb_cv_have_pt_getdbregs = yes; then
6785 cat >> confdefs.h
<<\EOF
6786 #define HAVE_PT_GETDBREGS 1
6791 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6792 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6793 echo "configure:6794: checking for PT_GETXMMREGS" >&5
6794 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 cat > conftest.
$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 #include <sys/types.h>
6801 #include <sys/ptrace.h>
6806 if { (eval echo configure
:6807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6808 gdb_cv_have_pt_getxmmregs
=yes
6810 echo "configure: failed program was:" >&5
6811 cat conftest.
$ac_ext >&5
6813 gdb_cv_have_pt_getxmmregs
=no
6818 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6819 if test $gdb_cv_have_pt_getxmmregs = yes; then
6820 cat >> confdefs.h
<<\EOF
6821 #define HAVE_PT_GETXMMREGS 1
6827 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6828 echo "configure:6829: checking whether malloc must be declared" >&5
6829 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6832 cat > conftest.
$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6837 #ifdef HAVE_STRING_H
6840 #ifdef HAVE_STRINGS_H
6841 #include <strings.h>
6844 #ifdef HAVE_STDLIB_H
6847 #ifdef HAVE_UNISTD_H
6851 char *(*pfn) = (char *(*)) malloc
6854 if { (eval echo configure
:6855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6856 bfd_cv_decl_needed_malloc
=no
6858 echo "configure: failed program was:" >&5
6859 cat conftest.
$ac_ext >&5
6861 bfd_cv_decl_needed_malloc
=yes
6866 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
6867 if test $bfd_cv_decl_needed_malloc = yes; then
6868 cat >> confdefs.h
<<\EOF
6869 #define NEED_DECLARATION_MALLOC 1
6874 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
6875 echo "configure:6876: checking whether realloc must be declared" >&5
6876 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
6877 echo $ac_n "(cached) $ac_c" 1>&6
6879 cat > conftest.
$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6884 #ifdef HAVE_STRING_H
6887 #ifdef HAVE_STRINGS_H
6888 #include <strings.h>
6891 #ifdef HAVE_STDLIB_H
6894 #ifdef HAVE_UNISTD_H
6898 char *(*pfn) = (char *(*)) realloc
6901 if { (eval echo configure
:6902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6903 bfd_cv_decl_needed_realloc
=no
6905 echo "configure: failed program was:" >&5
6906 cat conftest.
$ac_ext >&5
6908 bfd_cv_decl_needed_realloc
=yes
6913 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
6914 if test $bfd_cv_decl_needed_realloc = yes; then
6915 cat >> confdefs.h
<<\EOF
6916 #define NEED_DECLARATION_REALLOC 1
6921 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
6922 echo "configure:6923: checking whether free must be declared" >&5
6923 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 cat > conftest.
$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6931 #ifdef HAVE_STRING_H
6934 #ifdef HAVE_STRINGS_H
6935 #include <strings.h>
6938 #ifdef HAVE_STDLIB_H
6941 #ifdef HAVE_UNISTD_H
6945 char *(*pfn) = (char *(*)) free
6948 if { (eval echo configure
:6949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6950 bfd_cv_decl_needed_free
=no
6952 echo "configure: failed program was:" >&5
6953 cat conftest.
$ac_ext >&5
6955 bfd_cv_decl_needed_free
=yes
6960 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
6961 if test $bfd_cv_decl_needed_free = yes; then
6962 cat >> confdefs.h
<<\EOF
6963 #define NEED_DECLARATION_FREE 1
6968 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
6969 echo "configure:6970: checking whether strerror must be declared" >&5
6970 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6973 cat > conftest.
$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6978 #ifdef HAVE_STRING_H
6981 #ifdef HAVE_STRINGS_H
6982 #include <strings.h>
6985 #ifdef HAVE_STDLIB_H
6988 #ifdef HAVE_UNISTD_H
6992 char *(*pfn) = (char *(*)) strerror
6995 if { (eval echo configure
:6996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6997 bfd_cv_decl_needed_strerror
=no
6999 echo "configure: failed program was:" >&5
7000 cat conftest.
$ac_ext >&5
7002 bfd_cv_decl_needed_strerror
=yes
7007 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7008 if test $bfd_cv_decl_needed_strerror = yes; then
7009 cat >> confdefs.h
<<\EOF
7010 #define NEED_DECLARATION_STRERROR 1
7015 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7016 echo "configure:7017: checking whether strdup must be declared" >&5
7017 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7020 cat > conftest.
$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7025 #ifdef HAVE_STRING_H
7028 #ifdef HAVE_STRINGS_H
7029 #include <strings.h>
7032 #ifdef HAVE_STDLIB_H
7035 #ifdef HAVE_UNISTD_H
7039 char *(*pfn) = (char *(*)) strdup
7042 if { (eval echo configure
:7043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7044 bfd_cv_decl_needed_strdup
=no
7046 echo "configure: failed program was:" >&5
7047 cat conftest.
$ac_ext >&5
7049 bfd_cv_decl_needed_strdup
=yes
7054 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7055 if test $bfd_cv_decl_needed_strdup = yes; then
7056 cat >> confdefs.h
<<\EOF
7057 #define NEED_DECLARATION_STRDUP 1
7062 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7063 echo "configure:7064: checking whether strstr must be declared" >&5
7064 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 cat > conftest.
$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7072 #ifdef HAVE_STRING_H
7075 #ifdef HAVE_STRINGS_H
7076 #include <strings.h>
7079 #ifdef HAVE_STDLIB_H
7082 #ifdef HAVE_UNISTD_H
7086 char *(*pfn) = (char *(*)) strstr
7089 if { (eval echo configure
:7090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7091 bfd_cv_decl_needed_strstr
=no
7093 echo "configure: failed program was:" >&5
7094 cat conftest.
$ac_ext >&5
7096 bfd_cv_decl_needed_strstr
=yes
7101 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7102 if test $bfd_cv_decl_needed_strstr = yes; then
7103 cat >> confdefs.h
<<\EOF
7104 #define NEED_DECLARATION_STRSTR 1
7109 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7110 echo "configure:7111: checking whether canonicalize_file_name must be declared" >&5
7111 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7112 echo $ac_n "(cached) $ac_c" 1>&6
7114 cat > conftest.
$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7119 #ifdef HAVE_STRING_H
7122 #ifdef HAVE_STRINGS_H
7123 #include <strings.h>
7126 #ifdef HAVE_STDLIB_H
7129 #ifdef HAVE_UNISTD_H
7133 char *(*pfn) = (char *(*)) canonicalize_file_name
7136 if { (eval echo configure
:7137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7138 bfd_cv_decl_needed_canonicalize_file_name
=no
7140 echo "configure: failed program was:" >&5
7141 cat conftest.
$ac_ext >&5
7143 bfd_cv_decl_needed_canonicalize_file_name
=yes
7148 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7149 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7150 cat >> confdefs.h
<<\EOF
7151 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7157 # The following save_state_t checkery is only necessary for HPUX
7158 # versions earlier than 10.20. When those fade from memory, this
7159 # could be expunged. --jsm 1999-03-22
7161 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7162 echo "configure:7163: checking for HPUX save_state structure" >&5
7163 cat > conftest.
$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 #include <machine/save_state.h>
7168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169 egrep "save_state_t" >/dev
/null
2>&1; then
7171 gdb_cv_hpux_savestate
=yes
7174 gdb_cv_hpux_savestate
=no
7178 cat > conftest.
$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 #include <machine/save_state.h>
7183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184 egrep "ss_wide" >/dev
/null
2>&1; then
7186 gdb_cv_hpux_sswide
=yes
7189 gdb_cv_hpux_sswide
=no
7193 if test $gdb_cv_hpux_savestate = yes
7195 cat >> confdefs.h
<<\EOF
7196 #define HAVE_STRUCT_SAVE_STATE_T 1
7200 if test $gdb_cv_hpux_sswide = yes
7202 cat >> confdefs.h
<<\EOF
7203 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7207 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7210 # If we are configured native on GNU/Linux, work around problems with
7212 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7214 if test "${target}" = "${host}"; then
7217 cat >> confdefs.h
<<\EOF
7218 #define START_INFERIOR_TRAPS_EXPECTED 2
7221 cat >> confdefs.h
<<\EOF
7222 #define sys_quotactl 1
7227 cat >> confdefs.h
<<\EOF
7228 #define NEW_PROC_API 1
7232 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7233 cat >> confdefs.h
<<\EOF
7234 #define NEW_PROC_API 1
7239 cat >> confdefs.h
<<\EOF
7240 #define NEW_PROC_API 1
7247 if test "$ac_cv_header_sys_procfs_h" = yes; then
7248 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7249 echo "configure:7250: checking for pstatus_t in sys/procfs.h" >&5
7250 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7251 echo $ac_n "(cached) $ac_c" 1>&6
7253 cat > conftest.
$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7258 #include <sys/procfs.h>
7263 if { (eval echo configure
:7264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7265 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7267 echo "configure: failed program was:" >&5
7268 cat conftest.
$ac_ext >&5
7270 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7276 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7277 cat >> confdefs.h
<<\EOF
7278 #define HAVE_PSTATUS_T 1
7282 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7284 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7285 echo "configure:7286: checking for prrun_t in sys/procfs.h" >&5
7286 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.
$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7294 #include <sys/procfs.h>
7299 if { (eval echo configure
:7300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7301 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7303 echo "configure: failed program was:" >&5
7304 cat conftest.
$ac_ext >&5
7306 bfd_cv_have_sys_procfs_type_prrun_t
=no
7312 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7313 cat >> confdefs.h
<<\EOF
7314 #define HAVE_PRRUN_T 1
7318 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7320 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7321 echo "configure:7322: checking for gregset_t in sys/procfs.h" >&5
7322 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7323 echo $ac_n "(cached) $ac_c" 1>&6
7325 cat > conftest.
$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7330 #include <sys/procfs.h>
7335 if { (eval echo configure
:7336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7337 bfd_cv_have_sys_procfs_type_gregset_t
=yes
7339 echo "configure: failed program was:" >&5
7340 cat conftest.
$ac_ext >&5
7342 bfd_cv_have_sys_procfs_type_gregset_t
=no
7348 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7349 cat >> confdefs.h
<<\EOF
7350 #define HAVE_GREGSET_T 1
7354 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7356 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7357 echo "configure:7358: checking for fpregset_t in sys/procfs.h" >&5
7358 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7359 echo $ac_n "(cached) $ac_c" 1>&6
7361 cat > conftest.
$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7366 #include <sys/procfs.h>
7371 if { (eval echo configure
:7372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7373 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
7375 echo "configure: failed program was:" >&5
7376 cat conftest.
$ac_ext >&5
7378 bfd_cv_have_sys_procfs_type_fpregset_t
=no
7384 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7385 cat >> confdefs.h
<<\EOF
7386 #define HAVE_FPREGSET_T 1
7390 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7392 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7393 echo "configure:7394: checking for prgregset_t in sys/procfs.h" >&5
7394 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7397 cat > conftest.
$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7402 #include <sys/procfs.h>
7407 if { (eval echo configure
:7408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7409 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7411 echo "configure: failed program was:" >&5
7412 cat conftest.
$ac_ext >&5
7414 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7420 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7421 cat >> confdefs.h
<<\EOF
7422 #define HAVE_PRGREGSET_T 1
7426 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7428 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7429 echo "configure:7430: checking for prfpregset_t in sys/procfs.h" >&5
7430 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.
$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7438 #include <sys/procfs.h>
7443 if { (eval echo configure
:7444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7445 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7447 echo "configure: failed program was:" >&5
7448 cat conftest.
$ac_ext >&5
7450 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7456 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7457 cat >> confdefs.h
<<\EOF
7458 #define HAVE_PRFPREGSET_T 1
7462 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7464 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7465 echo "configure:7466: checking for prgregset32_t in sys/procfs.h" >&5
7466 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7467 echo $ac_n "(cached) $ac_c" 1>&6
7469 cat > conftest.
$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7474 #include <sys/procfs.h>
7479 if { (eval echo configure
:7480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7481 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
7483 echo "configure: failed program was:" >&5
7484 cat conftest.
$ac_ext >&5
7486 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
7492 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7493 cat >> confdefs.h
<<\EOF
7494 #define HAVE_PRGREGSET32_T 1
7498 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7500 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7501 echo "configure:7502: checking for prfpregset32_t in sys/procfs.h" >&5
7502 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7505 cat > conftest.
$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7510 #include <sys/procfs.h>
7515 if { (eval echo configure
:7516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7517 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
7519 echo "configure: failed program was:" >&5
7520 cat conftest.
$ac_ext >&5
7522 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
7528 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7529 cat >> confdefs.h
<<\EOF
7530 #define HAVE_PRFPREGSET32_T 1
7534 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7536 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7537 echo "configure:7538: checking for lwpid_t in sys/procfs.h" >&5
7538 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7541 cat > conftest.
$ac_ext <<EOF
7542 #line 7543 "configure"
7543 #include "confdefs.h"
7546 #include <sys/procfs.h>
7551 if { (eval echo configure
:7552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7553 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7555 echo "configure: failed program was:" >&5
7556 cat conftest.
$ac_ext >&5
7558 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7564 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7565 cat >> confdefs.h
<<\EOF
7566 #define HAVE_LWPID_T 1
7570 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7572 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7573 echo "configure:7574: checking for psaddr_t in sys/procfs.h" >&5
7574 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 cat > conftest.
$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7582 #include <sys/procfs.h>
7587 if { (eval echo configure
:7588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7589 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7591 echo "configure: failed program was:" >&5
7592 cat conftest.
$ac_ext >&5
7594 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7600 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7601 cat >> confdefs.h
<<\EOF
7602 #define HAVE_PSADDR_T 1
7606 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7608 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7609 echo "configure:7610: checking for prsysent_t in sys/procfs.h" >&5
7610 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 cat > conftest.
$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7618 #include <sys/procfs.h>
7623 if { (eval echo configure
:7624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7625 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
7627 echo "configure: failed program was:" >&5
7628 cat conftest.
$ac_ext >&5
7630 bfd_cv_have_sys_procfs_type_prsysent_t
=no
7636 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7637 cat >> confdefs.h
<<\EOF
7638 #define HAVE_PRSYSENT_T 1
7642 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7644 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7645 echo "configure:7646: checking for pr_sigset_t in sys/procfs.h" >&5
7646 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7647 echo $ac_n "(cached) $ac_c" 1>&6
7649 cat > conftest.
$ac_ext <<EOF
7650 #line 7651 "configure"
7651 #include "confdefs.h"
7654 #include <sys/procfs.h>
7659 if { (eval echo configure
:7660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7661 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
7663 echo "configure: failed program was:" >&5
7664 cat conftest.
$ac_ext >&5
7666 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
7672 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7673 cat >> confdefs.h
<<\EOF
7674 #define HAVE_PR_SIGSET_T 1
7678 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7680 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7681 echo "configure:7682: checking for pr_sigaction64_t in sys/procfs.h" >&5
7682 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7685 cat > conftest.
$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7690 #include <sys/procfs.h>
7692 pr_sigaction64_t avar
7695 if { (eval echo configure
:7696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7697 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
7699 echo "configure: failed program was:" >&5
7700 cat conftest.
$ac_ext >&5
7702 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
7708 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7709 cat >> confdefs.h
<<\EOF
7710 #define HAVE_PR_SIGACTION64_T 1
7714 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7716 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7717 echo "configure:7718: checking for pr_siginfo64_t in sys/procfs.h" >&5
7718 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7721 cat > conftest.
$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7726 #include <sys/procfs.h>
7731 if { (eval echo configure
:7732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7733 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
7735 echo "configure: failed program was:" >&5
7736 cat conftest.
$ac_ext >&5
7738 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
7744 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7745 cat >> confdefs.h
<<\EOF
7746 #define HAVE_PR_SIGINFO64_T 1
7750 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7756 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7757 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7758 echo "configure:7759: checking whether prfpregset_t type is broken" >&5
7759 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7762 if test "$cross_compiling" = yes; then
7763 gdb_cv_prfpregset_t_broken
=yes
7765 cat > conftest.
$ac_ext <<EOF
7766 #line 7767 "configure"
7767 #include "confdefs.h"
7768 #include <sys/procfs.h>
7771 if (sizeof (prfpregset_t) == sizeof (void *))
7776 if { (eval echo configure
:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7778 gdb_cv_prfpregset_t_broken
=no
7780 echo "configure: failed program was:" >&5
7781 cat conftest.
$ac_ext >&5
7783 gdb_cv_prfpregset_t_broken
=yes
7790 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7791 if test $gdb_cv_prfpregset_t_broken = yes; then
7792 cat >> confdefs.h
<<\EOF
7793 #define PRFPREGSET_T_BROKEN 1
7800 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7801 echo "configure:7802: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7802 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 cat > conftest.
$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7809 #include <sys/types.h>
7810 #include <sys/procfs.h>
7815 dummy = ioctl(0, PIOCSET, &dummy);
7819 if { (eval echo configure
:7820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7821 gdb_cv_have_procfs_piocset
=yes
7823 echo "configure: failed program was:" >&5
7824 cat conftest.
$ac_ext >&5
7826 gdb_cv_have_procfs_piocset
=no
7831 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
7832 if test $gdb_cv_have_procfs_piocset = yes; then
7833 cat >> confdefs.h
<<\EOF
7834 #define HAVE_PROCFS_PIOCSET 1
7840 if test ${host} = ${target} ; then
7842 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
7843 echo "configure:7844: checking for member l_addr in struct link_map" >&5
7844 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
7845 echo $ac_n "(cached) $ac_c" 1>&6
7847 cat > conftest.
$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7852 struct link_map lm; (void) lm.l_addr;
7855 if { (eval echo configure
:7856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7857 gdb_cv_have_struct_link_map_with_l_members
=yes
7859 echo "configure: failed program was:" >&5
7860 cat conftest.
$ac_ext >&5
7862 gdb_cv_have_struct_link_map_with_l_members
=no
7867 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
7868 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
7869 cat >> confdefs.h
<<\EOF
7870 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
7876 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
7877 echo "configure:7878: checking for member lm_addr in struct link_map" >&5
7878 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 cat > conftest.
$ac_ext <<EOF
7882 #line 7883 "configure"
7883 #include "confdefs.h"
7884 #include <sys/types.h>
7887 struct link_map lm; (void) lm.lm_addr;
7890 if { (eval echo configure
:7891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7892 gdb_cv_have_struct_link_map_with_lm_members
=yes
7894 echo "configure: failed program was:" >&5
7895 cat conftest.
$ac_ext >&5
7897 gdb_cv_have_struct_link_map_with_lm_members
=no
7902 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
7903 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
7904 cat >> confdefs.h
<<\EOF
7905 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
7911 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
7912 echo "configure:7913: checking for member som_addr in struct so_map" >&5
7913 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
7914 echo $ac_n "(cached) $ac_c" 1>&6
7916 cat > conftest.
$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7919 #include <sys/types.h>
7925 struct so_map lm; (void) lm.som_addr;
7928 if { (eval echo configure
:7929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7930 gdb_cv_have_struct_so_map_with_som_members
=yes
7932 echo "configure: failed program was:" >&5
7933 cat conftest.
$ac_ext >&5
7935 gdb_cv_have_struct_so_map_with_som_members
=no
7940 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
7941 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
7942 cat >> confdefs.h
<<\EOF
7943 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
7949 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
7950 echo "configure:7951: checking for struct link_map32 in sys/link.h" >&5
7951 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7954 cat > conftest.
$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7958 #include <sys/link.h>
7960 struct link_map32 l;
7963 if { (eval echo configure
:7964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7965 gdb_cv_have_struct_link_map32
=yes
7967 echo "configure: failed program was:" >&5
7968 cat conftest.
$ac_ext >&5
7970 gdb_cv_have_struct_link_map32
=no
7975 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
7976 if test $gdb_cv_have_struct_link_map32 = yes; then
7977 cat >> confdefs.h
<<\EOF
7978 #define HAVE_STRUCT_LINK_MAP32 1
7981 cat >> confdefs.h
<<\EOF
7982 #define _SYSCALL32 1
7989 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
7990 echo "configure:7991: checking for long long support in compiler" >&5
7991 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7994 cat > conftest.
$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
8000 extern long long foo;
8001 switch (foo & 2) { case 0: return 1; }
8005 if { (eval echo configure
:8006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8007 gdb_cv_c_long_long
=yes
8009 echo "configure: failed program was:" >&5
8010 cat conftest.
$ac_ext >&5
8012 gdb_cv_c_long_long
=no
8017 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8018 if test $gdb_cv_c_long_long = yes; then
8019 cat >> confdefs.h
<<\EOF
8020 #define CC_HAS_LONG_LONG 1
8026 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8027 echo "configure:8028: checking for long long support in printf" >&5
8028 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 if test "$cross_compiling" = yes; then
8032 gdb_cv_printf_has_long_long
=no
8034 cat > conftest.
$ac_ext <<EOF
8035 #line 8036 "configure"
8036 #include "confdefs.h"
8041 l = (l << 16) + 0x0123;
8042 l = (l << 16) + 0x4567;
8043 l = (l << 16) + 0x89ab;
8044 l = (l << 16) + 0xcdef;
8045 sprintf (buf, "0x%016llx", l);
8046 return (strcmp ("0x0123456789abcdef", buf));
8049 if { (eval echo configure
:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8051 gdb_cv_printf_has_long_long
=yes
8053 echo "configure: failed program was:" >&5
8054 cat conftest.
$ac_ext >&5
8056 gdb_cv_printf_has_long_long
=no
8063 if test $gdb_cv_printf_has_long_long = yes; then
8064 cat >> confdefs.h
<<\EOF
8065 #define PRINTF_HAS_LONG_LONG 1
8069 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8072 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8073 echo "configure:8074: checking for long double support in compiler" >&5
8074 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8077 cat > conftest.
$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8085 if { (eval echo configure
:8086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8087 ac_cv_c_long_double
=yes
8089 echo "configure: failed program was:" >&5
8090 cat conftest.
$ac_ext >&5
8092 ac_cv_c_long_double
=no
8097 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8098 if test $ac_cv_c_long_double = yes; then
8099 cat >> confdefs.h
<<\EOF
8100 #define HAVE_LONG_DOUBLE 1
8106 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8107 echo "configure:8108: checking for long double support in printf" >&5
8108 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8111 if test "$cross_compiling" = yes; then
8112 gdb_cv_printf_has_long_double
=no
8114 cat > conftest.
$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8120 long double f = 3.141592653;
8121 sprintf (buf, "%Lg", f);
8122 return (strncmp ("3.14159", buf, 7));
8125 if { (eval echo configure
:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8127 gdb_cv_printf_has_long_double
=yes
8129 echo "configure: failed program was:" >&5
8130 cat conftest.
$ac_ext >&5
8132 gdb_cv_printf_has_long_double
=no
8139 if test $gdb_cv_printf_has_long_double = yes; then
8140 cat >> confdefs.h
<<\EOF
8141 #define PRINTF_HAS_LONG_DOUBLE 1
8145 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8148 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8149 echo "configure:8150: checking for long double support in scanf" >&5
8150 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8153 if test "$cross_compiling" = yes; then
8154 gdb_cv_scanf_has_long_double
=no
8156 cat > conftest.
$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8161 char *buf = "3.141592653";
8163 sscanf (buf, "%Lg", &f);
8164 return !(f > 3.14159 && f < 3.14160);
8167 if { (eval echo configure
:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8169 gdb_cv_scanf_has_long_double
=yes
8171 echo "configure: failed program was:" >&5
8172 cat conftest.
$ac_ext >&5
8174 gdb_cv_scanf_has_long_double
=no
8181 if test $gdb_cv_scanf_has_long_double = yes; then
8182 cat >> confdefs.h
<<\EOF
8183 #define SCANF_HAS_LONG_DOUBLE 1
8187 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8191 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8192 echo "configure:8193: checking for -bbigtoc option" >&5
8193 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8194 echo $ac_n "(cached) $ac_c" 1>&6
8197 SAVE_LDFLAGS
=$LDFLAGS
8200 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8201 *) gdb_cv_bigtoc
=-bbigtoc ;;
8204 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8205 cat > conftest.
$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8213 if { (eval echo configure
:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8216 echo "configure: failed program was:" >&5
8217 cat conftest.
$ac_ext >&5
8225 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8226 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8232 if test ${build} = ${host} -a ${host} = ${target} ; then
8235 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8236 echo "configure:8237: checking for HPUX/OSF thread support" >&5
8237 if test -f /usr
/include
/dce
/cma_config.h
; then
8238 if test "$GCC" = "yes" ; then
8239 echo "$ac_t""yes" 1>&6
8240 cat >> confdefs.h
<<\EOF
8241 #define HAVE_HPUX_THREAD_SUPPORT 1
8244 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8245 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8247 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8250 echo "$ac_t""no" 1>&6
8254 # See if thread_db library is around for Solaris thread debugging.
8255 # Note that we must explicitly test for version 1 of the library
8256 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8258 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8259 echo "configure:8260: checking for Solaris thread debugging library" >&5
8260 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8261 echo "$ac_t""yes" 1>&6
8262 cat >> confdefs.h
<<\EOF
8263 #define HAVE_THREAD_DB_LIB 1
8266 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8267 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8268 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8269 echo "configure:8270: checking for dlopen in -ldl" >&5
8270 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 ac_save_LIBS
="$LIBS"
8276 cat > conftest.
$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 /* Override any gcc2 internal prototype to avoid an error. */
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8288 if { (eval echo configure
:8289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8290 eval "ac_cv_lib_$ac_lib_var=yes"
8292 echo "configure: failed program was:" >&5
8293 cat conftest.
$ac_ext >&5
8295 eval "ac_cv_lib_$ac_lib_var=no"
8298 LIBS
="$ac_save_LIBS"
8301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8302 echo "$ac_t""yes" 1>&6
8303 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8305 cat >> confdefs.h
<<EOF
8306 #define $ac_tr_lib 1
8312 echo "$ac_t""no" 1>&6
8315 if test "$GCC" = "yes" ; then
8316 # The GNU linker requires the -export-dynamic option to make
8317 # all symbols visible in the dynamic symbol table.
8318 hold_ldflags
=$LDFLAGS
8319 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8320 echo "configure:8321: checking for the ld -export-dynamic flag" >&5
8321 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8322 cat > conftest.
$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8330 if { (eval echo configure
:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8334 echo "configure: failed program was:" >&5
8335 cat conftest.
$ac_ext >&5
8340 LDFLAGS
=$hold_ldflags
8341 echo "$ac_t""$found" 1>&6
8342 if test $found = yes; then
8343 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8346 # Sun randomly tweaked the prototypes in <proc_service.h>
8348 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8349 echo "configure:8350: checking if <proc_service.h> is old" >&5
8350 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8354 cat > conftest.
$ac_ext <<EOF
8355 #line 8356 "configure"
8356 #include "confdefs.h"
8358 #include <proc_service.h>
8360 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8366 if { (eval echo configure
:8367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8368 gdb_cv_proc_service_is_old
=no
8370 echo "configure: failed program was:" >&5
8371 cat conftest.
$ac_ext >&5
8373 gdb_cv_proc_service_is_old
=yes
8379 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8380 if test $gdb_cv_proc_service_is_old = yes; then
8381 cat >> confdefs.h
<<\EOF
8382 #define PROC_SERVICE_IS_OLD 1
8387 echo "$ac_t""no" 1>&6
8391 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8392 echo "configure:8393: checking for AiX thread debugging library" >&5
8393 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8396 cat > conftest.
$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8399 #include <sys/pthdebug.h>
8401 #ifndef PTHDB_VERSION_3
8406 if { (eval echo configure
:8407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8408 gdb_cv_have_aix_thread_debug
=yes
8410 echo "configure: failed program was:" >&5
8411 cat conftest.
$ac_ext >&5
8413 gdb_cv_have_aix_thread_debug
=no
8418 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8419 if test $gdb_cv_have_aix_thread_debug = yes; then
8420 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
8421 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
8422 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8429 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8430 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8431 echo "configure:8432: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8432 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8435 cat > conftest.
$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 #include <thread_db.h>
8440 int i = TD_NOTALLOC;
8443 if { (eval echo configure
:8444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8445 gdb_cv_thread_db_h_has_td_notalloc
=yes
8447 echo "configure: failed program was:" >&5
8448 cat conftest.
$ac_ext >&5
8450 gdb_cv_thread_db_h_has_td_notalloc
=no
8457 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8459 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8460 cat >> confdefs.h
<<\EOF
8461 #define THREAD_DB_HAS_TD_NOTALLOC 1
8467 # Check whether --with-sysroot or --without-sysroot was given.
8468 if test "${with_sysroot+set}" = set; then
8469 withval
="$with_sysroot"
8471 case ${with_sysroot} in
8472 yes) { echo "configure: error: with-sysroot must specify path" 1>&2; exit 1; } ;;
8473 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8476 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8478 if test "x$exec_prefix" = xNONE
; then
8479 if test "x$prefix" = xNONE
; then
8480 test_prefix
=/usr
/local
8485 test_prefix
=$exec_prefix
8487 case ${TARGET_SYSTEM_ROOT} in
8489 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8490 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8497 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
8504 # NOTE: Don't add -Wall or -Wunused, they both include
8505 # -Wunused-parameter which reports bogus warnings.
8506 # NOTE: If you add to this list, remember to update
8507 # gdb/doc/gdbint.texinfo.
8508 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8509 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8510 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8511 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8512 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8513 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8514 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8515 # -Woverloaded-virtual -Winline -Werror"
8516 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8517 if test "${enable_build_warnings+set}" = set; then
8518 enableval
="$enable_build_warnings"
8519 case "${enableval}" in
8521 no
) build_warnings
="-w";;
8522 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8523 build_warnings
="${build_warnings} ${t}";;
8524 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8525 build_warnings
="${t} ${build_warnings}";;
8526 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8528 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8529 echo "Setting compiler warning flags = $build_warnings" 6>&1
8532 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8533 if test "${enable_gdb_build_warnings+set}" = set; then
8534 enableval
="$enable_gdb_build_warnings"
8535 case "${enableval}" in
8537 no
) build_warnings
="-w";;
8538 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8539 build_warnings
="${build_warnings} ${t}";;
8540 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8541 build_warnings
="${t} ${build_warnings}";;
8542 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8544 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8545 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8550 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8552 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8553 echo "configure:8554: checking compiler warning flags" >&5
8554 # Separate out the -Werror flag as some files just cannot be
8555 # compiled with it enabled.
8556 for w
in ${build_warnings}; do
8558 -Werr*) WERROR_CFLAGS
=-Werror ;;
8559 *) # Check that GCC accepts it
8560 saved_CFLAGS
="$CFLAGS"
8562 cat > conftest.
$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8570 if { (eval echo configure
:8571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8572 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8574 echo "configure: failed program was:" >&5
8575 cat conftest.
$ac_ext >&5
8578 CFLAGS
="$saved_CFLAGS"
8581 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8591 # Check whether --with-mmalloc or --without-mmalloc was given.
8592 if test "${with_mmalloc+set}" = set; then
8593 withval
="$with_mmalloc"
8594 case "${withval}" in
8595 yes) want_mmalloc
=true
;;
8596 no
) want_mmalloc
=false
;;
8597 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8603 if test x
$want_mmalloc = xtrue
; then
8604 cat >> confdefs.h
<<\EOF
8605 #define USE_MMALLOC 1
8608 cat >> confdefs.h
<<\EOF
8609 #define MMCHECK_FORCE 1
8612 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8613 MMALLOC
='../mmalloc/libmmalloc.a'
8616 # In the Cygwin environment, we need some additional flags.
8617 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8618 echo "configure:8619: checking for cygwin" >&5
8619 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8622 cat > conftest.
$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8626 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8631 egrep "lose" >/dev
/null
2>&1; then
8633 gdb_cv_os_cygwin
=yes
8642 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8645 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8647 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8648 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8652 # libreadline needs libuser32.a in a cygwin environment
8654 if test x
$gdb_cv_os_cygwin = xyes
; then
8655 WIN32LIBS
="-luser32"
8657 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8663 LIBGUI
="../libgui/src/libgui.a"
8664 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8675 if test "${enable_gdbtk}" = "yes"; then
8677 # Gdbtk must have an absolute path to srcdir in order to run
8678 # properly when not installed.
8686 # Ok, lets find the tcl configuration
8687 # First, look for one uninstalled.
8688 # the alternative search directory is invoked by --with-tclconfig
8691 if test x
"${no_tcl}" = x
; then
8692 # we reset no_tcl in case something fails here
8694 # Check whether --with-tclconfig or --without-tclconfig was given.
8695 if test "${with_tclconfig+set}" = set; then
8696 withval
="$with_tclconfig"
8697 with_tclconfig
=${withval}
8700 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8701 echo "configure:8702: checking for Tcl configuration" >&5
8702 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8703 echo $ac_n "(cached) $ac_c" 1>&6
8707 # First check to see if --with-tclconfig was specified.
8708 if test x
"${with_tclconfig}" != x
; then
8709 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8710 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8712 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8716 # then check for a private Tcl installation
8717 if test x
"${ac_cv_c_tclconfig}" = x
; then
8720 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8722 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8724 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8725 if test -f "$i/${configdir}/tclConfig.sh" ; then
8726 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8731 # check in a few common install locations
8732 if test x
"${ac_cv_c_tclconfig}" = x
; then
8733 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8734 if test -f "$i/tclConfig.sh" ; then
8735 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8740 # check in a few other private locations
8741 if test x
"${ac_cv_c_tclconfig}" = x
; then
8744 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8745 if test -f "$i/${configdir}/tclConfig.sh" ; then
8746 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8754 if test x
"${ac_cv_c_tclconfig}" = x
; then
8755 TCLCONFIG
="# no Tcl configs found"
8756 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8759 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8760 echo "$ac_t""found $TCLCONFIG" 1>&6
8764 if test -z "${no_tcl}"; then
8794 # Ok, lets find the tk configuration
8795 # First, look for one uninstalled.
8796 # the alternative search directory is invoked by --with-tkconfig
8799 if test x
"${no_tk}" = x
; then
8800 # we reset no_tk in case something fails here
8802 # Check whether --with-tkconfig or --without-tkconfig was given.
8803 if test "${with_tkconfig+set}" = set; then
8804 withval
="$with_tkconfig"
8805 with_tkconfig
=${withval}
8808 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8809 echo "configure:8810: checking for Tk configuration" >&5
8810 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8815 # First check to see if --with-tkconfig was specified.
8816 if test x
"${with_tkconfig}" != x
; then
8817 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8818 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8820 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8824 # then check for a private Tk library
8825 if test x
"${ac_cv_c_tkconfig}" = x
; then
8828 `ls -dr ../tk[4-9]* 2>/dev/null` \
8830 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8832 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8833 if test -f "$i/${configdir}/tkConfig.sh" ; then
8834 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8839 # check in a few common install locations
8840 if test x
"${ac_cv_c_tkconfig}" = x
; then
8841 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8842 if test -f "$i/tkConfig.sh" ; then
8843 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8848 # check in a few other private locations
8849 if test x
"${ac_cv_c_tkconfig}" = x
; then
8852 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8853 if test -f "$i/${configdir}/tkConfig.sh" ; then
8854 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8862 if test x
"${ac_cv_c_tkconfig}" = x
; then
8863 TKCONFIG
="# no Tk configs found"
8864 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
8867 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
8868 echo "$ac_t""found $TKCONFIG" 1>&6
8874 # now look for Tcl library stuff
8885 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
8887 # If $no_tk is nonempty, then we can't do Tk, and there is no
8888 # point to doing Tcl.
8889 if test -z "${no_tk}"; then
8891 if test -f "$TKCONFIG" ; then
8909 # Ok, lets find the tcl source trees so we can use the headers
8910 # Warning: transition of version 9 to 10 will break this algorithm
8911 # because 10 sorts before 9. We also look for just tcl. We have to
8912 # be careful that we don't match stuff like tclX by accident.
8913 # the alternative search directory is involked by --with-tclinclude
8917 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
8918 echo "configure:8919: checking for Tcl private headers. dir=${configdir}" >&5
8919 # Check whether --with-tclinclude or --without-tclinclude was given.
8920 if test "${with_tclinclude+set}" = set; then
8921 withval
="$with_tclinclude"
8922 with_tclinclude
=${withval}
8925 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
8926 echo $ac_n "(cached) $ac_c" 1>&6
8929 # first check to see if --with-tclinclude was specified
8930 if test x
"${with_tclinclude}" != x
; then
8931 if test -f ${with_tclinclude}/tclInt.h
; then
8932 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
8933 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
8934 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
8936 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
8940 # next check if it came with Tcl configuration file
8941 if test x
"${ac_cv_c_tclconfig}" = x
; then
8942 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
8943 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
8947 # next check in private source directory
8949 # since ls returns lowest version numbers first, reverse its output
8950 if test x
"${ac_cv_c_tclh}" = x
; then
8953 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
8954 ${srcdir}/..
/..
/tcl \
8955 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
8956 ${srcdir}/..
/..
/..
/tcl \
8957 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
8958 if test -f $i/generic
/tclInt.h
; then
8959 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8964 # finally check in a few common install locations
8966 # since ls returns lowest version numbers first, reverse its output
8967 if test x
"${ac_cv_c_tclh}" = x
; then
8969 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
8970 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
8971 /usr
/local
/src
/tcl \
8972 /usr
/local
/lib
/tcl \
8973 ${prefix}/include
; do
8974 if test -f $i/generic
/tclInt.h
; then
8975 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8980 # see if one is installed
8981 if test x
"${ac_cv_c_tclh}" = x
; then
8982 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
8983 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
8984 echo "configure:8985: checking for tclInt.h" >&5
8985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8988 cat > conftest.
$ac_ext <<EOF
8989 #line 8990 "configure"
8990 #include "confdefs.h"
8993 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8994 { (eval echo configure
:8995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8995 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8996 if test -z "$ac_err"; then
8998 eval "ac_cv_header_$ac_safe=yes"
9001 echo "configure: failed program was:" >&5
9002 cat conftest.
$ac_ext >&5
9004 eval "ac_cv_header_$ac_safe=no"
9008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9009 echo "$ac_t""yes" 1>&6
9010 ac_cv_c_tclh
=installed
9012 echo "$ac_t""no" 1>&6
9020 if test x
"${ac_cv_c_tclh}" = x
; then
9021 TCLHDIR
="# no Tcl private headers found"
9022 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9024 if test x
"${ac_cv_c_tclh}" != x
; then
9026 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9027 echo "$ac_t""is installed" 1>&6
9030 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9031 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9032 TCLHDIR
="-I${ac_cv_c_tclh}"
9040 # Ok, lets find the tk source trees so we can use the headers
9041 # If the directory (presumably symlink) named "tk" exists, use that one
9042 # in preference to any others. Same logic is used when choosing library
9043 # and again with Tcl. The search order is the best place to look first, then in
9044 # decreasing significance. The loop breaks if the trigger file is found.
9045 # Note the gross little conversion here of srcdir by cd'ing to the found
9046 # directory. This converts the path from a relative to an absolute, so
9047 # recursive cache variables for the path will work right. We check all
9048 # the possible paths in one loop rather than many seperate loops to speed
9050 # the alternative search directory is involked by --with-tkinclude
9053 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9054 echo "configure:9055: checking for Tk private headers" >&5
9055 # Check whether --with-tkinclude or --without-tkinclude was given.
9056 if test "${with_tkinclude+set}" = set; then
9057 withval
="$with_tkinclude"
9058 with_tkinclude
=${withval}
9061 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9065 # first check to see if --with-tkinclude was specified
9066 if test x
"${with_tkinclude}" != x
; then
9067 if test -f ${with_tkinclude}/tk.h
; then
9068 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9069 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9070 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9072 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9076 # next check if it came with Tk configuration file
9077 if test x
"${ac_cv_c_tkconfig}" = x
; then
9078 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9079 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9083 # next check in private source directory
9085 # since ls returns lowest version numbers first, reverse its output
9086 if test x
"${ac_cv_c_tkh}" = x
; then
9089 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9090 ${srcdir}/..
/..
/tk \
9091 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9092 ${srcdir}/..
/..
/..
/tk \
9093 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9094 if test -f $i/generic
/tk.h
; then
9095 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9100 # finally check in a few common install locations
9102 # since ls returns lowest version numbers first, reverse its output
9103 if test x
"${ac_cv_c_tkh}" = x
; then
9105 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9106 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9109 ${prefix}/include
; do
9110 if test -f $i/generic
/tk.h
; then
9111 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9116 # see if one is installed
9117 if test x
"${ac_cv_c_tkh}" = x
; then
9118 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9119 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9120 echo "configure:9121: checking for tk.h" >&5
9121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9124 cat > conftest.
$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9129 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9130 { (eval echo configure
:9131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9131 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9132 if test -z "$ac_err"; then
9134 eval "ac_cv_header_$ac_safe=yes"
9137 echo "configure: failed program was:" >&5
9138 cat conftest.
$ac_ext >&5
9140 eval "ac_cv_header_$ac_safe=no"
9144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9145 echo "$ac_t""yes" 1>&6
9146 ac_cv_c_tkh
=installed
9148 echo "$ac_t""no" 1>&6
9156 if test x
"${ac_cv_c_tkh}" != x
; then
9158 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9159 echo "$ac_t""is installed" 1>&6
9162 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9163 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9164 TKHDIR
="-I${ac_cv_c_tkh}"
9167 TKHDIR
="# no Tk directory found"
9168 echo "configure: warning: Can't find Tk private headers" 1>&2
9175 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9176 echo "configure:9177: checking for Itcl private headers. srcdir=${srcdir}" >&5
9177 if test x
"${ac_cv_c_itclh}" = x
; then
9178 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9179 if test -f $i/generic
/itcl.h
; then
9180 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9185 if test x
"${ac_cv_c_itclh}" = x
; then
9186 ITCLHDIR
="# no Itcl private headers found"
9187 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9189 if test x
"${ac_cv_c_itclh}" != x
; then
9190 ITCLHDIR
="-I${ac_cv_c_itclh}"
9192 # should always be here
9193 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9198 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9199 echo "configure:9200: checking for Itk private headers. srcdir=${srcdir}" >&5
9200 if test x
"${ac_cv_c_itkh}" = x
; then
9201 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9202 if test -f $i/generic
/itk.h
; then
9203 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9208 if test x
"${ac_cv_c_itkh}" = x
; then
9209 ITKHDIR
="# no Itk private headers found"
9210 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9212 if test x
"${ac_cv_c_itkh}" != x
; then
9213 ITKHDIR
="-I${ac_cv_c_itkh}"
9215 # should always be here
9216 # ITKLIB="../itcl/itk/unix/libitk.a"
9222 # now look for Tk library stuff
9233 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9235 # now look for Itcl library stuff
9239 # Ok, lets find the itcl configuration
9240 # First, look for one uninstalled.
9241 # the alternative search directory is invoked by --with-itclconfig
9244 if test x
"${no_itcl}" = x
; then
9245 # we reset no_itcl in case something fails here
9247 # Check whether --with-itclconfig or --without-itclconfig was given.
9248 if test "${with_itclconfig+set}" = set; then
9249 withval
="$with_itclconfig"
9250 with_itclconfig
=${withval}
9253 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9254 echo "configure:9255: checking for Itcl configuration" >&5
9255 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9260 # First check to see if --with-itclconfig was specified.
9261 if test x
"${with_itclconfig}" != x
; then
9262 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9263 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9265 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9269 # then check for a private Itcl library
9270 if test x
"${ac_cv_c_itclconfig}" = x
; then
9273 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9275 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9277 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9278 if test -f "$i/itclConfig.sh" ; then
9279 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9284 # check in a few common install locations
9285 if test x
"${ac_cv_c_itclconfig}" = x
; then
9286 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9287 if test -f "$i/itclConfig.sh" ; then
9288 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9293 # check in a few other private locations
9294 if test x
"${ac_cv_c_itclconfig}" = x
; then
9296 ${srcdir}/..
/itcl
/itcl \
9297 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9298 if test -f "$i/itclConfig.sh" ; then
9299 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9307 if test x
"${ac_cv_c_itclconfig}" = x
; then
9308 ITCLCONFIG
="# no Itcl configs found"
9309 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9312 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9313 echo "$ac_t""found $ITCLCONFIG" 1>&6
9317 if test -z "${no_itcl}"; then
9319 if test -f "$ITCLCONFIG" ; then
9334 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9335 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9339 # now look for Itk library stuff
9342 # Ok, lets find the itk configuration
9343 # First, look for one uninstalled.
9344 # the alternative search directory is invoked by --with-itkconfig
9347 if test x
"${no_itk}" = x
; then
9348 # we reset no_itk in case something fails here
9350 # Check whether --with-itkconfig or --without-itkconfig was given.
9351 if test "${with_itkconfig+set}" = set; then
9352 withval
="$with_itkconfig"
9353 with_itkconfig
=${withval}
9356 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9357 echo "configure:9358: checking for Itk configuration" >&5
9358 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9363 # First check to see if --with-itkconfig was specified.
9364 if test x
"${with_itkconfig}" != x
; then
9365 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9366 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9368 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9372 # then check for a private Itk library
9373 if test x
"${ac_cv_c_itkconfig}" = x
; then
9376 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9378 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9380 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9381 if test -f "$i/itkConfig.sh" ; then
9382 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9387 # check in a few common install locations
9388 if test x
"${ac_cv_c_itkconfig}" = x
; then
9389 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9390 if test -f "$i/itkConfig.sh" ; then
9391 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9396 # check in a few other private locations
9397 if test x
"${ac_cv_c_itkconfig}" = x
; then
9399 ${srcdir}/..
/itcl
/itk \
9400 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9401 if test -f "$i/itkConfig.sh" ; then
9402 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9410 if test x
"${ac_cv_c_itkconfig}" = x
; then
9411 ITKCONFIG
="# no Itk configs found"
9412 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9415 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9416 echo "$ac_t""found $ITKCONFIG" 1>&6
9421 if test -z "${no_itcl}"; then
9423 if test -f "$ITKCONFIG" ; then
9438 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9439 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9442 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9443 # Tcl/Tk 8.1 require -fwritable strings. I don't
9444 # know whether 8.2 will or not, but I bet it will.
9445 # I don't have to worry about 7.x since we don't support it.
9447 if test "$GCC" = "yes"; then
9448 if test "$TCL_VERSION" != "8.0" ; then
9449 GDBTK_CFLAGS
="-fwritable-strings"
9453 # Include some libraries that Tcl and Tk want.
9454 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9455 # Yes, the ordering seems wrong here. But it isn't.
9456 # TK_LIBS is the list of libraries that need to be linked
9457 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9458 # were in LIBS then any link tests after this point would
9459 # try to include things like `$(LIBGUI)', which wouldn't work.
9460 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9462 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9463 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9464 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9465 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9466 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9467 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9468 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9469 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9471 if test x
$gdb_cv_os_cygwin = xyes
; then
9472 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9473 WIN32LDAPP
="-Wl,--subsystem,console"
9474 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9479 configdirs
="${configdirs} gdbtk"
9495 # If we find X, set shell vars x_includes and x_libraries to the
9496 # paths, otherwise set no_x=yes.
9497 # Uses ac_ vars as temps to allow command line to override cache and checks.
9498 # --without-x overrides everything else, but does not touch the cache.
9499 echo $ac_n "checking for X""... $ac_c" 1>&6
9500 echo "configure:9501: checking for X" >&5
9502 # Check whether --with-x or --without-x was given.
9503 if test "${with_x+set}" = set; then
9508 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9509 if test "x$with_x" = xno
; then
9510 # The user explicitly disabled X.
9513 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9514 # Both variables are already set.
9517 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9520 # One or both of the vars are not set, and there is no cached value.
9521 ac_x_includes
=NO ac_x_libraries
=NO
9523 if mkdir conftestdir
; then
9525 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9526 cat > Imakefile
<<'EOF'
9528 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9530 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9532 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9533 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9534 for ac_extension
in a so sl
; do
9535 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9536 test -f $ac_im_libdir/libX11.
$ac_extension; then
9537 ac_im_usrlibdir
=$ac_im_libdir; break
9540 # Screen out bogus values from the imake configuration. They are
9541 # bogus both because they are the default anyway, and because
9542 # using them would break gcc on systems where it needs fixed includes.
9543 case "$ac_im_incroot" in
9545 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9547 case "$ac_im_usrlibdir" in
9549 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9556 if test "$ac_x_includes" = NO
; then
9557 # Guess where to find include files, by looking for this one X11 .h file.
9558 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9560 # First, try using that file with no special directory specified.
9561 cat > conftest.
$ac_ext <<EOF
9562 #line 9563 "configure"
9563 #include "confdefs.h"
9564 #include <$x_direct_test_include>
9566 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9567 { (eval echo configure
:9568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9568 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9569 if test -z "$ac_err"; then
9571 # We can compile using X headers with no special include directory.
9575 echo "configure: failed program was:" >&5
9576 cat conftest.
$ac_ext >&5
9578 # Look for the header file in a standard set of common directories.
9579 # Check X11 before X11Rn because it is often a symlink to the current release.
9582 /usr
/X11R
6/include \
9583 /usr
/X11R
5/include \
9584 /usr
/X11R
4/include \
9587 /usr
/include
/X11R6 \
9588 /usr
/include
/X11R5 \
9589 /usr
/include
/X11R4 \
9591 /usr
/local
/X11
/include \
9592 /usr
/local
/X11R
6/include \
9593 /usr
/local
/X11R
5/include \
9594 /usr
/local
/X11R
4/include \
9596 /usr
/local
/include
/X11 \
9597 /usr
/local
/include
/X11R6 \
9598 /usr
/local
/include
/X11R5 \
9599 /usr
/local
/include
/X11R4 \
9603 /usr
/XFree86
/include
/X11 \
9606 /usr
/local
/include \
9607 /usr
/unsupported
/include \
9608 /usr
/athena
/include \
9609 /usr
/local
/x11r
5/include \
9610 /usr
/lpp
/Xamples
/include \
9612 /usr
/openwin
/include \
9613 /usr
/openwin
/share
/include \
9616 if test -r "$ac_dir/$x_direct_test_include"; then
9617 ac_x_includes
=$ac_dir
9623 fi # $ac_x_includes = NO
9625 if test "$ac_x_libraries" = NO
; then
9626 # Check for the libraries.
9628 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9629 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9631 # See if we find them without any special options.
9632 # Don't add to $LIBS permanently.
9633 ac_save_LIBS
="$LIBS"
9634 LIBS
="-l$x_direct_test_library $LIBS"
9635 cat > conftest.
$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9640 ${x_direct_test_function}()
9643 if { (eval echo configure
:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9645 LIBS
="$ac_save_LIBS"
9646 # We can link X programs with no special library path.
9649 echo "configure: failed program was:" >&5
9650 cat conftest.
$ac_ext >&5
9652 LIBS
="$ac_save_LIBS"
9653 # First see if replacing the include by lib works.
9654 # Check X11 before X11Rn because it is often a symlink to the current release.
9655 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9666 /usr
/local
/X11
/lib \
9667 /usr
/local
/X11R
6/lib \
9668 /usr
/local
/X11R
5/lib \
9669 /usr
/local
/X11R
4/lib \
9671 /usr
/local
/lib
/X11 \
9672 /usr
/local
/lib
/X11R6 \
9673 /usr
/local
/lib
/X11R5 \
9674 /usr
/local
/lib
/X11R4 \
9678 /usr
/XFree86
/lib
/X11 \
9682 /usr
/unsupported
/lib \
9684 /usr
/local
/x11r
5/lib \
9685 /usr
/lpp
/Xamples
/lib \
9689 /usr
/openwin
/share
/lib \
9692 for ac_extension
in a so sl
; do
9693 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9694 ac_x_libraries
=$ac_dir
9701 fi # $ac_x_libraries = NO
9703 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9704 # Didn't find X anywhere. Cache the known absence of X.
9705 ac_cv_have_x
="have_x=no"
9707 # Record where we found X for the cache.
9708 ac_cv_have_x
="have_x=yes \
9709 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9713 eval "$ac_cv_have_x"
9716 if test "$have_x" != yes; then
9717 echo "$ac_t""$have_x" 1>&6
9720 # If each of the values was on the command line, it overrides each guess.
9721 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9722 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9723 # Update the cache value to reflect the command line values.
9724 ac_cv_have_x
="have_x=yes \
9725 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9726 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9731 # Unlike the sim directory, whether a simulator is linked is controlled by
9732 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9733 # This code just checks for a few cases where we'd like to ignore those
9734 # definitions, even when they're present in the '.mt' file. These cases
9735 # are when --disable-sim is specified, or if the simulator directory is
9736 # not part of the source tree.
9738 # Check whether --enable-sim or --disable-sim was given.
9739 if test "${enable_sim+set}" = set; then
9740 enableval
="$enable_sim"
9741 echo "enable_sim = $enable_sim";
9742 echo "enableval = ${enableval}";
9743 case "${enableval}" in
9744 yes) ignore_sim
=false
;;
9745 no
) ignore_sim
=true
;;
9746 *) ignore_sim
=false
;;
9753 if test ! -d "${srcdir}/../sim"; then
9757 if test "${ignore_sim}" = "true"; then
9759 IGNORE_SIM_OBS
="SIM_OBS="
9763 cat >> confdefs.h
<<\EOF
9783 # target_subdir is used by the testsuite to find the target libraries.
9785 if test "${host}" != "${target}"; then
9786 target_subdir
="${target_alias}/"
9791 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9792 if test ! -f ${host_makefile_frag}; then
9793 # When building a native debuger the .mh file containing things
9794 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9795 # since it no longer contains anything useful.
9796 if test "${target}" = "${host}"; then
9797 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9799 host_makefile_frag
=/dev
/null
9802 frags
="$frags $host_makefile_frag"
9804 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9805 if test ! -f ${target_makefile_frag}; then
9806 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9808 frags
="$frags $target_makefile_frag"
9815 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9816 ' ${host_makefile_frag}`
9818 targetfile
=`sed -n '
9819 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9820 ' ${target_makefile_frag}`
9822 GDB_MULTI_ARCH
=`sed -n '
9823 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9824 ' ${target_makefile_frag}`
9826 if test "${target}" = "${host}"; then
9827 # We pick this up from the host configuration file (.mh) because we
9828 # do not have a native configuration Makefile fragment.
9829 nativefile
=`sed -n '
9830 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9831 ' ${host_makefile_frag}`
9835 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9836 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9837 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
9838 # will be the default.
9839 if test x
"${GDB_MULTI_ARCH}" = x
; then
9840 case "${gdb_multi_arch}" in
9841 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
9842 no
) GDB_MULTI_ARCH
=0 ;;
9843 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
9846 if test x
"${GDB_MULTI_ARCH}" != x
; then
9847 cat >> confdefs.h
<<EOF
9848 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
9852 # Warn the user when they use an old practice
9853 case "${GDB_MULTI_ARCH}" in
9855 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
9856 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
9857 GDB_MULTI_ARCH_PURE
)
9858 if test x
"${targetfile}" != x
; then
9859 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
9862 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
9865 if test x
"${gdb_osabi}" != x
; then
9866 cat >> confdefs.h
<<EOF
9867 #define GDB_OSABI_DEFAULT $gdb_osabi
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"
9902 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
9903 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
9911 if test "${hostfile}" != ""; then
9913 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
9914 files
="${files} ${GDB_XM_FILE}"
9915 links
="${links} xm.h"
9916 cat >> confdefs.h
<<EOF
9917 #define GDB_XM_FILE ${GDB_XM_FILE}
9925 if test "${targetfile}" != ""; then
9927 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
9928 files
="${files} ${GDB_TM_FILE}"
9929 links
="${links} tm.h"
9930 cat >> confdefs.h
<<EOF
9931 #define GDB_TM_FILE ${GDB_TM_FILE}
9939 if test "${nativefile}" != ""; then
9941 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
9942 files
="${files} ${GDB_NM_FILE}"
9943 links
="${links} nm.h"
9944 cat >> confdefs.h
<<EOF
9945 #define GDB_NM_FILE ${GDB_NM_FILE}
9953 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
9954 echo "configure:9955: checking for Cygwin environment" >&5
9955 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9958 cat > conftest.
$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9965 #define __CYGWIN__ __CYGWIN32__
9970 if { (eval echo configure
:9971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9974 echo "configure: failed program was:" >&5
9975 cat conftest.
$ac_ext >&5
9983 echo "$ac_t""$ac_cv_cygwin" 1>&6
9985 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
9986 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
9987 echo "configure:9988: checking for mingw32 environment" >&5
9988 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9991 cat > conftest.
$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9999 if { (eval echo configure
:10000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10003 echo "configure: failed program was:" >&5
10004 cat conftest.
$ac_ext >&5
10012 echo "$ac_t""$ac_cv_mingw32" 1>&6
10014 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10017 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10018 echo "configure:10019: checking for executable suffix" >&5
10019 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10026 echo 'int main () { return 0; }' > conftest.
$ac_ext
10028 if { (eval echo configure
:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10029 for file in conftest.
*; do
10031 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10032 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10036 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10039 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10044 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10045 echo "$ac_t""${ac_cv_exeext}" 1>&6
10050 cat >> confdefs.h
<<\EOF
10051 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10057 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10058 if test "${with_libiconv_prefix+set}" = set; then
10059 withval
="$with_libiconv_prefix"
10061 for dir
in `echo "$withval" | tr : ' '`; do
10062 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10063 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10069 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10070 echo "configure:10071: checking for iconv" >&5
10071 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10075 am_cv_func_iconv
="no, consider installing GNU libiconv"
10077 cat > conftest.
$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <stdlib.h>
10083 iconv_t cd = iconv_open("","");
10084 iconv(cd,NULL,NULL,NULL,NULL);
10088 if { (eval echo configure
:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10090 am_cv_func_iconv
=yes
10092 echo "configure: failed program was:" >&5
10093 cat conftest.
$ac_ext >&5
10096 if test "$am_cv_func_iconv" != yes; then
10097 am_save_LIBS
="$LIBS"
10098 LIBS
="$LIBS -liconv"
10099 cat > conftest.
$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <stdlib.h>
10105 iconv_t cd = iconv_open("","");
10106 iconv(cd,NULL,NULL,NULL,NULL);
10110 if { (eval echo configure
:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10112 am_cv_lib_iconv
=yes
10113 am_cv_func_iconv
=yes
10115 echo "configure: failed program was:" >&5
10116 cat conftest.
$ac_ext >&5
10119 LIBS
="$am_save_LIBS"
10124 echo "$ac_t""$am_cv_func_iconv" 1>&6
10125 if test "$am_cv_func_iconv" = yes; then
10126 cat >> confdefs.h
<<\EOF
10127 #define HAVE_ICONV 1
10130 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10131 echo "configure:10132: checking for iconv declaration" >&5
10132 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10136 cat > conftest.
$ac_ext <<EOF
10137 #line 10138 "configure"
10138 #include "confdefs.h"
10140 #include <stdlib.h>
10146 #if defined(__STDC__) || defined(__cplusplus)
10147 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10156 if { (eval echo configure
:10157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10158 am_cv_proto_iconv_arg1
=""
10160 echo "configure: failed program was:" >&5
10161 cat conftest.
$ac_ext >&5
10163 am_cv_proto_iconv_arg1
="const"
10166 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);"
10169 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10170 echo "$ac_t""${ac_t:-
10171 }$am_cv_proto_iconv" 1>&6
10172 cat >> confdefs.h
<<EOF
10173 #define ICONV_CONST $am_cv_proto_iconv_arg1
10178 if test "$am_cv_lib_iconv" = yes; then
10185 cat > confcache
<<\EOF
10186 # This file is a shell script that caches the results of configure
10187 # tests run on this system so they can be shared between configure
10188 # scripts and configure runs. It is not useful on other systems.
10189 # If it contains results you don't want to keep, you may remove or edit it.
10191 # By default, configure uses ./config.cache as the cache file,
10192 # creating it if it does not exist already. You can give configure
10193 # the --cache-file=FILE option to use a different cache file; that is
10194 # what configure does when it calls configure scripts in
10195 # subdirectories, so they share the cache.
10196 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10197 # config.status only pays attention to the cache file if you give it the
10198 # --recheck option to rerun configure.
10201 # The following way of writing the cache mishandles newlines in values,
10202 # but we know of no workaround that is simple, portable, and efficient.
10203 # So, don't put newlines in cache variables' values.
10204 # Ultrix sh set writes to stderr and can't be redirected directly,
10205 # and sets the high bit in the cache file unless we assign to the vars.
10207 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10209 # `set' does not quote correctly, so add quotes (double-quote substitution
10210 # turns \\\\ into \\, and sed turns \\ into \).
10212 -e "s/'/'\\\\''/g" \
10213 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10216 # `set' quotes correctly as required by POSIX, so do not add quotes.
10217 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10220 if cmp -s $cache_file confcache
; then
10223 if test -w $cache_file; then
10224 echo "updating cache $cache_file"
10225 cat confcache
> $cache_file
10227 echo "not updating unwritable cache $cache_file"
10232 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10234 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10235 # Let make expand exec_prefix.
10236 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10238 # Any assignment to VPATH causes Sun make to only execute
10239 # the first set of double-colon rules, so remove it if not needed.
10240 # If there is a colon in the path, we need to keep it.
10241 if test "x$srcdir" = x.
; then
10242 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10245 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10247 DEFS
=-DHAVE_CONFIG_H
10249 # Without the "./", some shells look in PATH for config.status.
10250 : ${CONFIG_STATUS=./config.status}
10252 echo creating
$CONFIG_STATUS
10253 rm -f $CONFIG_STATUS
10254 cat > $CONFIG_STATUS <<EOF
10256 # Generated automatically by configure.
10257 # Run this file to recreate the current configuration.
10258 # This directory was configured as follows,
10259 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10261 # $0 $ac_configure_args
10263 # Compiler output produced by configure, useful for debugging
10264 # configure, is in ./config.log if it exists.
10266 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10269 case "\$ac_option" in
10270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10271 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10272 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10273 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10274 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10276 -help | --help | --hel | --he | --h)
10277 echo "\$ac_cs_usage"; exit 0 ;;
10278 *) echo "\$ac_cs_usage"; exit 1 ;;
10282 ac_given_srcdir=$srcdir
10283 ac_given_INSTALL="$INSTALL"
10285 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10287 cat >> $CONFIG_STATUS <<EOF
10289 # Protect against being on the right side of a sed subst in config.status.
10290 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10291 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10295 s%@CFLAGS@%$CFLAGS%g
10296 s%@CPPFLAGS@%$CPPFLAGS%g
10297 s%@CXXFLAGS@%$CXXFLAGS%g
10298 s%@FFLAGS@%$FFLAGS%g
10300 s%@LDFLAGS@%$LDFLAGS%g
10302 s%@exec_prefix@%$exec_prefix%g
10303 s%@prefix@%$prefix%g
10304 s%@program_transform_name@%$program_transform_name%g
10305 s%@bindir@%$bindir%g
10306 s%@sbindir@%$sbindir%g
10307 s%@libexecdir@%$libexecdir%g
10308 s%@datadir@%$datadir%g
10309 s%@sysconfdir@%$sysconfdir%g
10310 s%@sharedstatedir@%$sharedstatedir%g
10311 s%@localstatedir@%$localstatedir%g
10312 s%@libdir@%$libdir%g
10313 s%@includedir@%$includedir%g
10314 s%@oldincludedir@%$oldincludedir%g
10315 s%@infodir@%$infodir%g
10316 s%@mandir@%$mandir%g
10317 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10318 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10323 s%@host_alias@%$host_alias%g
10324 s%@host_cpu@%$host_cpu%g
10325 s%@host_vendor@%$host_vendor%g
10326 s%@host_os@%$host_os%g
10327 s%@target@%$target%g
10328 s%@target_alias@%$target_alias%g
10329 s%@target_cpu@%$target_cpu%g
10330 s%@target_vendor@%$target_vendor%g
10331 s%@target_os@%$target_os%g
10333 s%@build_alias@%$build_alias%g
10334 s%@build_cpu@%$build_cpu%g
10335 s%@build_vendor@%$build_vendor%g
10336 s%@build_os@%$build_os%g
10337 s%@RANLIB@%$RANLIB%g
10338 s%@SET_MAKE@%$SET_MAKE%g
10339 s%@ALLOCA@%$ALLOCA%g
10340 s%@USE_NLS@%$USE_NLS%g
10341 s%@MSGFMT@%$MSGFMT%g
10342 s%@GMSGFMT@%$GMSGFMT%g
10343 s%@XGETTEXT@%$XGETTEXT%g
10344 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10345 s%@CATALOGS@%$CATALOGS%g
10346 s%@CATOBJEXT@%$CATOBJEXT%g
10347 s%@DATADIRNAME@%$DATADIRNAME%g
10348 s%@GMOFILES@%$GMOFILES%g
10349 s%@INSTOBJEXT@%$INSTOBJEXT%g
10350 s%@INTLDEPS@%$INTLDEPS%g
10351 s%@INTLLIBS@%$INTLLIBS%g
10352 s%@INTLOBJS@%$INTLOBJS%g
10353 s%@POFILES@%$POFILES%g
10355 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10357 s%@GT_YES@%$GT_YES%g
10358 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10360 s%@subdirs@%$subdirs%g
10362 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10363 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10364 s%@INSTALL_DATA@%$INSTALL_DATA%g
10368 s%@DLLTOOL@%$DLLTOOL%g
10369 s%@WINDRES@%$WINDRES%g
10371 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10372 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
10373 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%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%@target_subdir@%$target_subdir%g
10446 /@host_makefile_frag@/r $host_makefile_frag
10447 s%@host_makefile_frag@%%g
10448 /@target_makefile_frag@/r $target_makefile_frag
10449 s%@target_makefile_frag@%%g
10454 s%@EXEEXT@%$EXEEXT%g
10455 s%@LIBICONV@%$LIBICONV%g
10460 cat >> $CONFIG_STATUS <<\EOF
10462 # Split the substitutions into bite-sized pieces for seds with
10463 # small command number limits, like on Digital OSF/1 and HP-UX.
10464 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10465 ac_file
=1 # Number of current file.
10466 ac_beg
=1 # First line for current file.
10467 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10470 while $ac_more_lines; do
10471 if test $ac_beg -gt 1; then
10472 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10474 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10476 if test ! -s conftest.s
$ac_file; then
10477 ac_more_lines
=false
10478 rm -f conftest.s
$ac_file
10480 if test -z "$ac_sed_cmds"; then
10481 ac_sed_cmds
="sed -f conftest.s$ac_file"
10483 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10485 ac_file
=`expr $ac_file + 1`
10487 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10490 if test -z "$ac_sed_cmds"; then
10495 cat >> $CONFIG_STATUS <<EOF
10497 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10499 cat >> $CONFIG_STATUS <<\EOF
10500 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10503 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10504 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10505 *) ac_file_in
="${ac_file}.in" ;;
10508 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10510 # Remove last slash and all that follows it. Not all systems have dirname.
10511 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10512 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10513 # The file is in a subdirectory.
10514 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10515 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10516 # A "../" for each directory in $ac_dir_suffix.
10517 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10519 ac_dir_suffix
= ac_dots
=
10522 case "$ac_given_srcdir" in
10524 if test -z "$ac_dots"; then top_srcdir
=.
10525 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10526 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10527 *) # Relative path.
10528 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10529 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10532 case "$ac_given_INSTALL" in
10533 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10534 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10537 echo creating
"$ac_file"
10539 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10541 *Makefile
*) ac_comsub
="1i\\
10542 # $configure_input" ;;
10546 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10548 s%@configure_input@%$configure_input%g
10549 s%@srcdir@%$srcdir%g
10550 s%@top_srcdir@%$top_srcdir%g
10551 s%@INSTALL@%$INSTALL%g
10552 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10556 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10557 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10559 # ac_d sets the value in "#define NAME VALUE" lines.
10560 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10561 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10564 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10565 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10566 ac_uB
='\([ ]\)%\1#\2define\3'
10569 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10570 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10571 ac_eB
='$%\1#\2define\3'
10575 if test "${CONFIG_HEADERS+set}" != set; then
10577 cat >> $CONFIG_STATUS <<EOF
10578 CONFIG_HEADERS="config.h:config.in"
10580 cat >> $CONFIG_STATUS <<\EOF
10582 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10585 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10586 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10587 *) ac_file_in
="${ac_file}.in" ;;
10590 echo creating
$ac_file
10592 rm -f conftest.frag conftest.
in conftest.out
10593 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10594 cat $ac_file_inputs > conftest.
in
10598 # Transform confdefs.h into a sed script conftest.vals that substitutes
10599 # the proper values into config.h.in to produce config.h. And first:
10600 # Protect against being on the right side of a sed subst in config.status.
10601 # Protect against being in an unquoted here document in config.status.
10602 rm -f conftest.vals
10603 cat > conftest.hdr
<<\EOF
10606 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10610 sed -n -f conftest.hdr confdefs.h > conftest.vals
10613 # This sed command replaces #undef with comments. This is necessary, for
10614 # example, in the case of _POSIX_SOURCE, which is predefined and required
10615 # on some systems where configure will not decide to define it.
10616 cat >> conftest.vals <<\EOF
10617 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10620 # Break up conftest.vals because some shells have a limit on
10621 # the size of here documents, and old seds have small limits too.
10623 rm -f conftest.tail
10626 ac_lines=`grep -c . conftest.vals
`
10627 # grep -c gives empty output for an empty file on some AIX systems.
10628 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10629 # Write a limited-size here document to conftest.frag.
10630 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10631 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10633 sed -f conftest.frag conftest.in > conftest.out
10635 mv conftest.out conftest.in
10636 ' >> $CONFIG_STATUS
10637 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10638 rm -f conftest.vals
10639 mv conftest.tail conftest.vals
10641 rm -f conftest.vals
10643 cat >> $CONFIG_STATUS <<\EOF
10644 rm -f conftest.frag conftest.h
10645 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10646 cat conftest.in >> conftest.h
10648 if cmp -s $ac_file conftest.h 2>/dev/null; then
10649 echo "$ac_file is unchanged"
10652 # Remove last slash and all that follows it. Not all systems have dirname.
10653 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10655 # The file is in a subdirectory.
10656 test ! -d "$ac_dir" && mkdir "$ac_dir"
10659 mv conftest.h $ac_file
10665 cat >> $CONFIG_STATUS <<EOF
10666 ac_sources="$files"
10670 cat >> $CONFIG_STATUS <<\EOF
10671 srcdir=$ac_given_srcdir
10672 while test -n "$ac_sources"; do
10673 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10674 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10676 echo "linking $srcdir/$ac_source to $ac_dest"
10678 if test ! -r $srcdir/$ac_source; then
10679 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10683 # Make relative symlinks.
10684 # Remove last slash and all that follows it. Not all systems have dirname.
10685 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10686 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10687 # The dest file is in a subdirectory.
10688 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10689 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10690 # A "../" for each directory in $ac_dest_dir_suffix.
10691 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10693 ac_dest_dir_suffix= ac_dots=
10697 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10698 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10701 # Make a symlink if possible; otherwise try a hard link.
10702 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10703 ln $srcdir/$ac_source $ac_dest; then :
10705 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10709 cat >> $CONFIG_STATUS <<EOF
10711 gdb_host_cpu=$gdb_host_cpu
10712 gdb_target_cpu=$gdb_target_cpu
10713 nativefile=$nativefile
10716 cat >> $CONFIG_STATUS <<\EOF
10718 if test "${nativefile}" = ""; then
10720 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10721 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10722 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10724 mv -f Makefile.tem Makefile
10727 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10728 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10729 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10730 mv -f Makefile.tmp Makefile
10733 case x$CONFIG_HEADERS in
10734 xconfig.h:config.in)
10740 chmod +x $CONFIG_STATUS
10741 rm -fr confdefs* $ac_clean_files
10742 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10744 if test "$no_recursion" != yes; then
10746 # Remove --cache-file and --srcdir arguments so they do not pile up.
10747 ac_sub_configure_args=
10749 for ac_arg in $ac_configure_args; do
10750 if test -n "$ac_prev"; then
10755 -cache-file | --cache-file | --cache-fil | --cache-fi \
10756 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10757 ac_prev=cache_file ;;
10758 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10759 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10761 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10763 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10765 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10769 for ac_config_dir in doc testsuite $configdirs; do
10771 # Do not complain, so a configure script can configure whichever
10772 # parts of a large source tree are present.
10773 if test ! -d $srcdir/$ac_config_dir; then
10777 echo configuring in $ac_config_dir
10782 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10784 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10792 # A "../" for each directory in /$ac_config_dir.
10793 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10796 .) # No --srcdir option. We are building in place.
10797 ac_sub_srcdir=$srcdir ;;
10798 /*) # Absolute path.
10799 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10800 *) # Relative path.
10801 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10804 # Check for guested configure; otherwise get Cygnus style configure.
10805 if test -f $ac_sub_srcdir/configure; then
10806 ac_sub_configure=$ac_sub_srcdir/configure
10807 elif test -f $ac_sub_srcdir/configure.in; then
10808 ac_sub_configure=$ac_configure
10810 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10814 # The recursion is here.
10815 if test -n "$ac_sub_configure"; then
10817 # Make the cache file name correct relative to the subdirectory.
10818 case "$cache_file" in
10819 /*) ac_sub_cache_file=$cache_file ;;
10820 *) # Relative path.
10821 ac_sub_cache_file="$ac_dots$cache_file" ;;
10823 case "$ac_given_INSTALL" in
10824 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10825 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10828 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10829 # The eval makes quoting arguments work.
10830 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10833 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }