3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbcli Enable GDB-CLI interface"
26 --enable-gdbmi Enable GDB-MI interface"
28 --with-uiout Use new uiout functions instead of *printf's"
30 --enable-tui Enable full-screen terminal user interface"
32 --enable-netrom Enable NetROM support"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
38 --with-mmalloc Use memory mapped malloc package"
40 --with-included-regex Use included regex"
42 --with-cpu=CPU Set the default CPU variant to debug"
44 --enable-gdbtk Enable GDBTK GUI front end"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-shared Use shared libraries"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file
=.
/config.cache
79 program_transform_name
=s
,x
,x
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host |
--host |
--hos |
--ho)
244 -host=* |
--host=* |
--hos=* |
--ho=*)
247 -includedir |
--includedir |
--includedi |
--included |
--include \
248 |
--includ |
--inclu |
--incl |
--inc)
249 ac_prev
=includedir
;;
250 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
251 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
252 includedir
="$ac_optarg" ;;
254 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
256 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
257 infodir
="$ac_optarg" ;;
259 -libdir |
--libdir |
--libdi |
--libd)
261 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
262 libdir
="$ac_optarg" ;;
264 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
265 |
--libexe |
--libex |
--libe)
266 ac_prev
=libexecdir
;;
267 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
268 |
--libexe=* |
--libex=* |
--libe=*)
269 libexecdir
="$ac_optarg" ;;
271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
272 |
--localstate |
--localstat |
--localsta |
--localst \
273 |
--locals |
--local |
--loca |
--loc |
--lo)
274 ac_prev
=localstatedir
;;
275 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
276 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
277 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
278 localstatedir
="$ac_optarg" ;;
280 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
282 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
283 mandir
="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
293 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
294 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
297 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
298 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
299 |
--oldin |
--oldi |
--old |
--ol |
--o)
300 ac_prev
=oldincludedir
;;
301 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
302 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
303 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
304 oldincludedir
="$ac_optarg" ;;
306 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
308 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
309 prefix
="$ac_optarg" ;;
311 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
312 |
--program-pre |
--program-pr |
--program-p)
313 ac_prev
=program_prefix
;;
314 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
315 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
316 program_prefix
="$ac_optarg" ;;
318 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
319 |
--program-suf |
--program-su |
--program-s)
320 ac_prev
=program_suffix
;;
321 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
322 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
323 program_suffix
="$ac_optarg" ;;
325 -program-transform-name |
--program-transform-name \
326 |
--program-transform-nam |
--program-transform-na \
327 |
--program-transform-n |
--program-transform- \
328 |
--program-transform |
--program-transfor \
329 |
--program-transfo |
--program-transf \
330 |
--program-trans |
--program-tran \
331 |
--progr-tra |
--program-tr |
--program-t)
332 ac_prev
=program_transform_name
;;
333 -program-transform-name=* |
--program-transform-name=* \
334 |
--program-transform-nam=* |
--program-transform-na=* \
335 |
--program-transform-n=* |
--program-transform-=* \
336 |
--program-transform=* |
--program-transfor=* \
337 |
--program-transfo=* |
--program-transf=* \
338 |
--program-trans=* |
--program-tran=* \
339 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
340 program_transform_name
="$ac_optarg" ;;
342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
343 |
-silent |
--silent |
--silen |
--sile |
--sil)
346 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
348 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
350 sbindir
="$ac_optarg" ;;
352 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
353 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
354 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
356 ac_prev
=sharedstatedir
;;
357 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
358 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
359 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
361 sharedstatedir
="$ac_optarg" ;;
363 -site |
--site |
--sit)
365 -site=* |
--site=* |
--sit=*)
368 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
370 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
371 sitefile
="$ac_optarg" ;;
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE
="$sitefile"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval
="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE
=$enableval
594 USE_MAINTAINER_MODE
=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE
=
602 MAINTAINER_MODE_FALSE
='#'
604 MAINTAINER_MODE_TRUE
='#'
605 MAINTAINER_MODE_FALSE
=
607 MAINT
=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc
; ac_word
=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc
; ac_word
=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC
="$CC" # Let the user override the test.
651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy
$ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy
"$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
704 for ac_dir
in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp
='$CPP $CPPFLAGS'
732 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling
=$ac_cv_prog_cc_cross
736 cat > conftest.
$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure
:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
744 ac_cv_prog_cc_works
=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (.
/conftest
; exit) 2>/dev
/null
; then
747 ac_cv_prog_cc_cross
=no
749 ac_cv_prog_cc_cross
=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.
$ac_ext >&5
754 ac_cv_prog_cc_works
=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp
='$CPP $CPPFLAGS'
760 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling
=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no
; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling
=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c
<<EOF
783 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS
="${CFLAGS+set}"
799 ac_save_CFLAGS
="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS
="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
864 CPP
="${CC-cc} -E -traditional-cpp"
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
881 CPP
="${CC-cc} -nologo -E"
882 cat > conftest.
$ac_ext <<EOF
883 #line 884 "configure"
884 #include "confdefs.h"
888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
889 { (eval echo configure
:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
891 if test -z "$ac_err"; then
895 echo "configure: failed program was:" >&5
896 cat conftest.
$ac_ext >&5
905 ac_cv_prog_CPP
="$CPP"
907 CPP
="$ac_cv_prog_CPP"
909 ac_cv_prog_CPP
="$CPP"
911 echo "$ac_t""$CPP" 1>&6
913 echo $ac_n "checking for AIX""... $ac_c" 1>&6
914 echo "configure:915: checking for AIX" >&5
915 cat > conftest.
$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
924 egrep "yes" >/dev
/null
2>&1; then
926 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
927 #define _ALL_SOURCE 1
932 echo "$ac_t""no" 1>&6
937 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
938 echo "configure:939: checking for POSIXized ISC" >&5
939 if test -d /etc
/conf
/kconfig.d
&&
940 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
942 echo "$ac_t""yes" 1>&6
943 ISC
=yes # If later tests want to check for ISC.
944 cat >> confdefs.h
<<\EOF
945 #define _POSIX_SOURCE 1
948 if test "$GCC" = yes; then
954 echo "$ac_t""no" 1>&6
961 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
962 echo "configure:963: checking for ${CC-cc} option to accept ANSI C" >&5
963 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 am_cv_prog_cc_stdc
=no
968 # Don't try gcc -ansi; that turns off useful extensions and
969 # breaks some systems' header files.
971 # Ultrix and OSF/1 -std1
972 # HP-UX 10.20 and later -Ae
973 # HP-UX older versions -Aa -D_HPUX_SOURCE
974 # SVR4 -Xc -D__EXTENSIONS__
975 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
977 CC
="$ac_save_CC $ac_arg"
978 cat > conftest.
$ac_ext <<EOF
979 #line 980 "configure"
980 #include "confdefs.h"
983 #include <sys/types.h>
984 #include <sys/stat.h>
985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
986 struct buf { int x; };
987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
988 static char *e (p, i)
994 static char *f (char * (*g) (char **, int), char **p, ...)
999 s = g (p, va_arg (v,int));
1003 int test (int i, double x);
1004 struct s1 {int (*f) (int a);};
1005 struct s2 {int (*f) (double a);};
1006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1016 if { (eval echo configure
:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1018 am_cv_prog_cc_stdc
="$ac_arg"; break
1020 echo "configure: failed program was:" >&5
1021 cat conftest.
$ac_ext >&5
1029 if test -z "$am_cv_prog_cc_stdc"; then
1030 echo "$ac_t""none needed" 1>&6
1032 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1034 case "x$am_cv_prog_cc_stdc" in
1036 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1041 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1042 if test -f $ac_dir/install-sh
; then
1044 ac_install_sh
="$ac_aux_dir/install-sh -c"
1046 elif test -f $ac_dir/install.sh
; then
1048 ac_install_sh
="$ac_aux_dir/install.sh -c"
1052 if test -z "$ac_aux_dir"; then
1053 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1055 ac_config_guess
=$ac_aux_dir/config.guess
1056 ac_config_sub
=$ac_aux_dir/config.sub
1057 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1060 # Do some error checking and defaulting for the host and target type.
1062 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1065 # 1. You are not allowed to specify --host, --target, and nonopt at the
1067 # 2. Host defaults to nonopt.
1068 # 3. If nonopt is not specified, then host defaults to the current host,
1069 # as determined by config.guess.
1070 # 4. Target and build default to nonopt.
1071 # 5. If nonopt is not specified, then target and build default to host.
1073 # The aliases save the names the user supplied, while $host etc.
1074 # will get canonicalized.
1075 case $host---$target---$nonopt in
1076 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1077 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1081 # Make sure we can run config.sub.
1082 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1083 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1086 echo $ac_n "checking host system type""... $ac_c" 1>&6
1087 echo "configure:1088: checking host system type" >&5
1090 case "$host_alias" in
1094 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1095 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1097 *) host_alias
=$nonopt ;;
1101 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1102 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105 echo "$ac_t""$host" 1>&6
1107 echo $ac_n "checking target system type""... $ac_c" 1>&6
1108 echo "configure:1109: checking target system type" >&5
1110 target_alias
=$target
1111 case "$target_alias" in
1114 NONE
) target_alias
=$host_alias ;;
1115 *) target_alias
=$nonopt ;;
1119 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1120 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 echo "$ac_t""$target" 1>&6
1125 echo $ac_n "checking build system type""... $ac_c" 1>&6
1126 echo "configure:1127: checking build system type" >&5
1129 case "$build_alias" in
1132 NONE
) build_alias
=$host_alias ;;
1133 *) build_alias
=$nonopt ;;
1137 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1138 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1139 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1140 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1141 echo "$ac_t""$build" 1>&6
1143 test "$host_alias" != "$target_alias" &&
1144 test "$program_prefix$program_suffix$program_transform_name" = \
1146 program_prefix
=${target_alias}-
1149 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1150 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1151 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1152 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1153 # AC_PROG_RANLIB. This can be removed when we switch to # Autoconf
1155 if test $host != $build; then
1156 ac_tool_prefix
=${host_alias}-
1161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1162 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 if test -n "$RANLIB"; then
1169 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1173 for ac_dir
in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir
=.
1175 if test -f $ac_dir/$ac_word; then
1176 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1183 RANLIB
="$ac_cv_prog_RANLIB"
1184 if test -n "$RANLIB"; then
1185 echo "$ac_t""$RANLIB" 1>&6
1187 echo "$ac_t""no" 1>&6
1191 if test -z "$ac_cv_prog_RANLIB"; then
1192 if test -n "$ac_tool_prefix"; then
1193 # Extract the first word of "ranlib", so it can be a program name with args.
1194 set dummy ranlib
; ac_word
=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$RANLIB"; then
1201 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1205 for ac_dir
in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir
=.
1207 if test -f $ac_dir/$ac_word; then
1208 ac_cv_prog_RANLIB
="ranlib"
1213 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1216 RANLIB
="$ac_cv_prog_RANLIB"
1217 if test -n "$RANLIB"; then
1218 echo "$ac_t""$RANLIB" 1>&6
1220 echo "$ac_t""no" 1>&6
1230 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether ${MAKE-make} sets \${MAKE}" >&5
1232 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1233 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 cat > conftestmake
<<\EOF
1238 @
echo 'ac_maketemp="${MAKE}"'
1240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1241 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1242 if test -n "$ac_maketemp"; then
1243 eval ac_cv_prog_make_
${ac_make}_set
=yes
1245 eval ac_cv_prog_make_
${ac_make}_set
=no
1249 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1250 echo "$ac_t""yes" 1>&6
1253 echo "$ac_t""no" 1>&6
1254 SET_MAKE
="MAKE=${MAKE-make}"
1257 # Extract the first word of "ranlib", so it can be a program name with args.
1258 set dummy ranlib
; ac_word
=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test -n "$RANLIB"; then
1265 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1267 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1269 for ac_dir
in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir
=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_RANLIB
="ranlib"
1277 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1280 RANLIB
="$ac_cv_prog_RANLIB"
1281 if test -n "$RANLIB"; then
1282 echo "$ac_t""$RANLIB" 1>&6
1284 echo "$ac_t""no" 1>&6
1287 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1288 echo "configure:1289: checking for ANSI C header files" >&5
1289 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 cat > conftest.
$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1300 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1301 { (eval echo configure
:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1302 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1303 if test -z "$ac_err"; then
1305 ac_cv_header_stdc
=yes
1308 echo "configure: failed program was:" >&5
1309 cat conftest.
$ac_ext >&5
1311 ac_cv_header_stdc
=no
1315 if test $ac_cv_header_stdc = yes; then
1316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1317 cat > conftest.
$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1323 egrep "memchr" >/dev
/null
2>&1; then
1327 ac_cv_header_stdc
=no
1333 if test $ac_cv_header_stdc = yes; then
1334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1335 cat > conftest.
$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1341 egrep "free" >/dev
/null
2>&1; then
1345 ac_cv_header_stdc
=no
1351 if test $ac_cv_header_stdc = yes; then
1352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1353 if test "$cross_compiling" = yes; then
1356 cat > conftest.
$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1360 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1361 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1363 int main () { int i; for (i = 0; i < 256; i++)
1364 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1368 if { (eval echo configure
:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1372 echo "configure: failed program was:" >&5
1373 cat conftest.
$ac_ext >&5
1375 ac_cv_header_stdc
=no
1383 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1384 if test $ac_cv_header_stdc = yes; then
1385 cat >> confdefs.h
<<\EOF
1386 #define STDC_HEADERS 1
1391 echo $ac_n "checking for working const""... $ac_c" 1>&6
1392 echo "configure:1393: checking for working const" >&5
1393 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1402 /* Ultrix mips cc rejects this. */
1403 typedef int charset[2]; const charset x;
1404 /* SunOS 4.1.1 cc rejects this. */
1405 char const *const *ccp;
1407 /* NEC SVR4.0.2 mips cc rejects this. */
1408 struct point {int x, y;};
1409 static struct point const zero = {0,0};
1410 /* AIX XL C 1.02.0.0 rejects this.
1411 It does not let you subtract one const X* pointer from another in an arm
1412 of an if-expression whose if-part is not a constant expression */
1413 const char *g = "string";
1414 ccp = &g + (g ? g-g : 0);
1415 /* HPUX 7.0 cc rejects these. */
1418 ccp = (char const *const *) p;
1419 { /* SCO 3.2v4 cc rejects this. */
1421 char const *s = 0 ? (char *) 0 : (char const *) 0;
1425 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1427 const int *foo = &x[0];
1430 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1431 typedef const int *iptr;
1435 { /* AIX XL C 1.02.0.0 rejects this saying
1436 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1437 struct s { int j; const int *ap[3]; };
1438 struct s *b; b->j = 5;
1440 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1446 if { (eval echo configure
:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1450 echo "configure: failed program was:" >&5
1451 cat conftest.
$ac_ext >&5
1458 echo "$ac_t""$ac_cv_c_const" 1>&6
1459 if test $ac_cv_c_const = no
; then
1460 cat >> confdefs.h
<<\EOF
1466 echo $ac_n "checking for inline""... $ac_c" 1>&6
1467 echo "configure:1468: checking for inline" >&5
1468 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1472 for ac_kw
in inline __inline__ __inline
; do
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1481 if { (eval echo configure
:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 ac_cv_c_inline
=$ac_kw; break
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1493 echo "$ac_t""$ac_cv_c_inline" 1>&6
1494 case "$ac_cv_c_inline" in
1496 no
) cat >> confdefs.h
<<\EOF
1500 *) cat >> confdefs.h
<<EOF
1501 #define inline $ac_cv_c_inline
1506 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1507 echo "configure:1508: checking for off_t" >&5
1508 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 #include <sys/types.h>
1520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1523 ac_cv_type_off_t
=yes
1531 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1532 if test $ac_cv_type_off_t = no
; then
1533 cat >> confdefs.h
<<\EOF
1539 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1540 echo "configure:1541: checking for size_t" >&5
1541 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.
$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 #include <sys/types.h>
1553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1554 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1556 ac_cv_type_size_t
=yes
1559 ac_cv_type_size_t
=no
1564 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1565 if test $ac_cv_type_size_t = no
; then
1566 cat >> confdefs.h
<<\EOF
1567 #define size_t unsigned
1572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1573 # for constant arguments. Useless!
1574 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1575 echo "configure:1576: checking for working alloca.h" >&5
1576 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 cat > conftest.
$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1584 char *p = alloca(2 * sizeof(int));
1587 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1589 ac_cv_header_alloca_h
=yes
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 ac_cv_header_alloca_h
=no
1599 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1600 if test $ac_cv_header_alloca_h = yes; then
1601 cat >> confdefs.h
<<\EOF
1602 #define HAVE_ALLOCA_H 1
1607 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1608 echo "configure:1609: checking for alloca" >&5
1609 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1617 # define alloca __builtin_alloca
1620 # include <malloc.h>
1621 # define alloca _alloca
1624 # include <alloca.h>
1629 # ifndef alloca /* predefined by HP cc +Olibcalls */
1638 char *p = (char *) alloca(1);
1641 if { (eval echo configure
:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1643 ac_cv_func_alloca_works
=yes
1645 echo "configure: failed program was:" >&5
1646 cat conftest.
$ac_ext >&5
1648 ac_cv_func_alloca_works
=no
1653 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1654 if test $ac_cv_func_alloca_works = yes; then
1655 cat >> confdefs.h
<<\EOF
1656 #define HAVE_ALLOCA 1
1661 if test $ac_cv_func_alloca_works = no
; then
1662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1663 # that cause trouble. Some versions do not even contain alloca or
1664 # contain a buggy version. If you still want to use their alloca,
1665 # use ar to extract alloca.o from them instead of compiling alloca.c.
1666 ALLOCA
=alloca.
${ac_objext}
1667 cat >> confdefs.h
<<\EOF
1672 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether alloca needs Cray hooks" >&5
1674 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.
$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 #if defined(CRAY) && ! defined(CRAY2)
1687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1688 egrep "webecray" >/dev
/null
2>&1; then
1699 echo "$ac_t""$ac_cv_os_cray" 1>&6
1700 if test $ac_cv_os_cray = yes; then
1701 for ac_func
in _getb67 GETB67 getb67
; do
1702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1703 echo "configure:1704: checking for $ac_func" >&5
1704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* System header to define __stub macros and hopefully few prototypes,
1711 which can conflict with char $ac_func(); below. */
1713 /* Override any gcc2 internal prototype to avoid an error. */
1714 /* We use char because int might match the return type of a gcc2
1715 builtin and then its argument prototype would still apply. */
1720 /* The GNU C library defines this for functions which it implements
1721 to always fail with ENOSYS. Some functions are actually named
1722 something starting with __ and the normal name is an alias. */
1723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1731 if { (eval echo configure
:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1733 eval "ac_cv_func_$ac_func=yes"
1735 echo "configure: failed program was:" >&5
1736 cat conftest.
$ac_ext >&5
1738 eval "ac_cv_func_$ac_func=no"
1743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1744 echo "$ac_t""yes" 1>&6
1745 cat >> confdefs.h
<<EOF
1746 #define CRAY_STACKSEG_END $ac_func
1751 echo "$ac_t""no" 1>&6
1757 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1758 echo "configure:1759: checking stack direction for C alloca" >&5
1759 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 if test "$cross_compiling" = yes; then
1763 ac_cv_c_stack_direction
=0
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1768 find_stack_direction ()
1770 static char *addr = 0;
1775 return find_stack_direction ();
1778 return (&dummy > addr) ? 1 : -1;
1782 exit (find_stack_direction() < 0);
1785 if { (eval echo configure
:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1787 ac_cv_c_stack_direction
=1
1789 echo "configure: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 ac_cv_c_stack_direction
=-1
1799 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1800 cat >> confdefs.h
<<EOF
1801 #define STACK_DIRECTION $ac_cv_c_stack_direction
1806 for ac_hdr
in unistd.h
1808 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_hdr" >&5
1811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1820 { (eval echo configure
:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1821 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1822 if test -z "$ac_err"; then
1824 eval "ac_cv_header_$ac_safe=yes"
1827 echo "configure: failed program was:" >&5
1828 cat conftest.
$ac_ext >&5
1830 eval "ac_cv_header_$ac_safe=no"
1834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1835 echo "$ac_t""yes" 1>&6
1836 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1837 cat >> confdefs.h
<<EOF
1838 #define $ac_tr_hdr 1
1842 echo "$ac_t""no" 1>&6
1846 for ac_func
in getpagesize
1848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_func" >&5
1850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.
$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $ac_func(); below. */
1859 /* Override any gcc2 internal prototype to avoid an error. */
1860 /* We use char because int might match the return type of a gcc2
1861 builtin and then its argument prototype would still apply. */
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1877 if { (eval echo configure
:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1879 eval "ac_cv_func_$ac_func=yes"
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 eval "ac_cv_func_$ac_func=no"
1889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1890 echo "$ac_t""yes" 1>&6
1891 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1892 cat >> confdefs.h
<<EOF
1893 #define $ac_tr_func 1
1897 echo "$ac_t""no" 1>&6
1901 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1902 echo "configure:1903: checking for working mmap" >&5
1903 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 if test "$cross_compiling" = yes; then
1907 ac_cv_func_mmap_fixed_mapped
=no
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1913 /* Thanks to Mike Haertel and Jim Avera for this test.
1914 Here is a matrix of mmap possibilities:
1915 mmap private not fixed
1916 mmap private fixed at somewhere currently unmapped
1917 mmap private fixed at somewhere already mapped
1918 mmap shared not fixed
1919 mmap shared fixed at somewhere currently unmapped
1920 mmap shared fixed at somewhere already mapped
1921 For private mappings, we should verify that changes cannot be read()
1922 back from the file, nor mmap's back from the file at a different
1923 address. (There have been systems where private was not correctly
1924 implemented like the infamous i386 svr4.0, and systems where the
1925 VM page cache was not coherent with the filesystem buffer cache
1926 like early versions of FreeBSD and possibly contemporary NetBSD.)
1927 For shared mappings, we should conversely verify that changes get
1928 propogated back to all the places they're supposed to be.
1930 Grep wants private fixed already mapped.
1931 The main things grep needs to know about mmap are:
1932 * does it exist and is it safe to write into the mmap'd area
1933 * how to use it (BSD variants) */
1934 #include <sys/types.h>
1936 #include <sys/mman.h>
1938 /* This mess was copied from the GNU getpagesize.h. */
1939 #ifndef HAVE_GETPAGESIZE
1940 # ifdef HAVE_UNISTD_H
1941 # include <unistd.h>
1944 /* Assume that all systems that can run configure have sys/param.h. */
1945 # ifndef HAVE_SYS_PARAM_H
1946 # define HAVE_SYS_PARAM_H 1
1949 # ifdef _SC_PAGESIZE
1950 # define getpagesize() sysconf(_SC_PAGESIZE)
1951 # else /* no _SC_PAGESIZE */
1952 # ifdef HAVE_SYS_PARAM_H
1953 # include <sys/param.h>
1954 # ifdef EXEC_PAGESIZE
1955 # define getpagesize() EXEC_PAGESIZE
1956 # else /* no EXEC_PAGESIZE */
1958 # define getpagesize() NBPG * CLSIZE
1961 # endif /* no CLSIZE */
1962 # else /* no NBPG */
1964 # define getpagesize() NBPC
1965 # else /* no NBPC */
1967 # define getpagesize() PAGESIZE
1968 # endif /* PAGESIZE */
1969 # endif /* no NBPC */
1970 # endif /* no NBPG */
1971 # endif /* no EXEC_PAGESIZE */
1972 # else /* no HAVE_SYS_PARAM_H */
1973 # define getpagesize() 8192 /* punt totally */
1974 # endif /* no HAVE_SYS_PARAM_H */
1975 # endif /* no _SC_PAGESIZE */
1977 #endif /* no HAVE_GETPAGESIZE */
1980 extern "C" { void *malloc(unsigned); }
1988 char *data, *data2, *data3;
1992 pagesize = getpagesize();
1995 * First, make a file with some known garbage in it.
1997 data = malloc(pagesize);
2000 for (i = 0; i < pagesize; ++i)
2001 *(data + i) = rand();
2003 fd = creat("conftestmmap", 0600);
2006 if (write(fd, data, pagesize) != pagesize)
2011 * Next, try to mmap the file at a fixed address which
2012 * already has something else allocated at it. If we can,
2013 * also make sure that we see the same garbage.
2015 fd = open("conftestmmap", O_RDWR);
2018 data2 = malloc(2 * pagesize);
2021 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2022 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2023 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2025 for (i = 0; i < pagesize; ++i)
2026 if (*(data + i) != *(data2 + i))
2030 * Finally, make sure that changes to the mapped area
2031 * do not percolate back to the file as seen by read().
2032 * (This is a bug on some variants of i386 svr4.0.)
2034 for (i = 0; i < pagesize; ++i)
2035 *(data2 + i) = *(data2 + i) + 1;
2036 data3 = malloc(pagesize);
2039 if (read(fd, data3, pagesize) != pagesize)
2041 for (i = 0; i < pagesize; ++i)
2042 if (*(data + i) != *(data3 + i))
2045 unlink("conftestmmap");
2050 if { (eval echo configure
:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2052 ac_cv_func_mmap_fixed_mapped
=yes
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 ac_cv_func_mmap_fixed_mapped
=no
2064 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2065 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2066 cat >> confdefs.h
<<\EOF
2073 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2074 unistd.h values.h sys
/param.h
2076 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_hdr" >&5
2079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2088 { (eval echo configure
:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2090 if test -z "$ac_err"; then
2092 eval "ac_cv_header_$ac_safe=yes"
2095 echo "configure: failed program was:" >&5
2096 cat conftest.
$ac_ext >&5
2098 eval "ac_cv_header_$ac_safe=no"
2102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2105 cat >> confdefs.h
<<EOF
2106 #define $ac_tr_hdr 1
2110 echo "$ac_t""no" 1>&6
2114 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2115 __argz_count __argz_stringify __argz_next
2117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_func" >&5
2119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $ac_func(); below. */
2128 /* Override any gcc2 internal prototype to avoid an error. */
2129 /* We use char because int might match the return type of a gcc2
2130 builtin and then its argument prototype would still apply. */
2135 /* The GNU C library defines this for functions which it implements
2136 to always fail with ENOSYS. Some functions are actually named
2137 something starting with __ and the normal name is an alias. */
2138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146 if { (eval echo configure
:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2148 eval "ac_cv_func_$ac_func=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2153 eval "ac_cv_func_$ac_func=no"
2158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2161 cat >> confdefs.h
<<EOF
2162 #define $ac_tr_func 1
2166 echo "$ac_t""no" 1>&6
2171 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2172 for ac_func
in stpcpy
2174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_func" >&5
2176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 /* System header to define __stub macros and hopefully few prototypes,
2183 which can conflict with char $ac_func(); below. */
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2203 if { (eval echo configure
:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2205 eval "ac_cv_func_$ac_func=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_func_$ac_func=no"
2215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2218 cat >> confdefs.h
<<EOF
2219 #define $ac_tr_func 1
2223 echo "$ac_t""no" 1>&6
2228 if test "${ac_cv_func_stpcpy}" = "yes"; then
2229 cat >> confdefs.h
<<\EOF
2230 #define HAVE_STPCPY 1
2235 if test $ac_cv_header_locale_h = yes; then
2236 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2237 echo "configure:2238: checking for LC_MESSAGES" >&5
2238 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 cat > conftest.
$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2249 if { (eval echo configure
:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2251 am_cv_val_LC_MESSAGES
=yes
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 am_cv_val_LC_MESSAGES
=no
2261 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2262 if test $am_cv_val_LC_MESSAGES = yes; then
2263 cat >> confdefs.h
<<\EOF
2264 #define HAVE_LC_MESSAGES 1
2269 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2270 echo "configure:2271: checking whether NLS is requested" >&5
2271 # Check whether --enable-nls or --disable-nls was given.
2272 if test "${enable_nls+set}" = set; then
2273 enableval
="$enable_nls"
2279 echo "$ac_t""$USE_NLS" 1>&6
2282 USE_INCLUDED_LIBINTL
=no
2284 if test "$USE_NLS" = "yes"; then
2285 cat >> confdefs.h
<<\EOF
2286 #define ENABLE_NLS 1
2289 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2290 echo "configure:2291: checking whether included gettext is requested" >&5
2291 # Check whether --with-included-gettext or --without-included-gettext was given.
2292 if test "${with_included_gettext+set}" = set; then
2293 withval
="$with_included_gettext"
2294 nls_cv_force_use_gnu_gettext
=$withval
2296 nls_cv_force_use_gnu_gettext
=no
2299 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2301 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2302 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2304 nls_cv_header_libgt
=
2307 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2308 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2309 echo "configure:2310: checking for libintl.h" >&5
2310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 cat > conftest.
$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 #include <libintl.h>
2318 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319 { (eval echo configure
:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321 if test -z "$ac_err"; then
2323 eval "ac_cv_header_$ac_safe=yes"
2326 echo "configure: failed program was:" >&5
2327 cat conftest.
$ac_ext >&5
2329 eval "ac_cv_header_$ac_safe=no"
2333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2336 echo "configure:2337: checking for gettext in libc" >&5
2337 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 #include <libintl.h>
2345 return (int) gettext ("")
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2350 gt_cv_func_gettext_libc
=yes
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 gt_cv_func_gettext_libc
=no
2360 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2362 if test "$gt_cv_func_gettext_libc" != "yes"; then
2363 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2364 echo "configure:2365: checking for bindtextdomain in -lintl" >&5
2365 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 ac_save_LIBS
="$LIBS"
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2377 char bindtextdomain();
2383 if { (eval echo configure
:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2385 eval "ac_cv_lib_$ac_lib_var=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 eval "ac_cv_lib_$ac_lib_var=no"
2393 LIBS
="$ac_save_LIBS"
2396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2399 echo "configure:2400: checking for gettext in libintl" >&5
2400 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.
$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2408 return (int) gettext ("")
2411 if { (eval echo configure
:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2413 gt_cv_func_gettext_libintl
=yes
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2418 gt_cv_func_gettext_libintl
=no
2423 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2425 echo "$ac_t""no" 1>&6
2430 if test "$gt_cv_func_gettext_libc" = "yes" \
2431 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2432 cat >> confdefs.h
<<\EOF
2433 #define HAVE_GETTEXT 1
2436 # Extract the first word of "msgfmt", so it can be a program name with args.
2437 set dummy msgfmt
; ac_word
=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2449 for ac_dir
in $PATH; do
2450 test -z "$ac_dir" && ac_dir
=.
2451 if test -f $ac_dir/$ac_word; then
2452 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2453 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2459 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2463 MSGFMT
="$ac_cv_path_MSGFMT"
2464 if test -n "$MSGFMT"; then
2465 echo "$ac_t""$MSGFMT" 1>&6
2467 echo "$ac_t""no" 1>&6
2469 if test "$MSGFMT" != "no"; then
2470 for ac_func
in dcgettext
2472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_func" >&5
2474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $ac_func(); below. */
2483 /* Override any gcc2 internal prototype to avoid an error. */
2484 /* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2490 /* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2501 if { (eval echo configure
:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2503 eval "ac_cv_func_$ac_func=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 eval "ac_cv_func_$ac_func=no"
2513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2514 echo "$ac_t""yes" 1>&6
2515 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2516 cat >> confdefs.h
<<EOF
2517 #define $ac_tr_func 1
2521 echo "$ac_t""no" 1>&6
2525 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2526 set dummy gmsgfmt
; ac_word
=$2
2527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_word" >&5
2529 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2534 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2537 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2540 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2542 for ac_dir
in $ac_dummy; do
2543 test -z "$ac_dir" && ac_dir
=.
2544 if test -f $ac_dir/$ac_word; then
2545 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2550 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2554 GMSGFMT
="$ac_cv_path_GMSGFMT"
2555 if test -n "$GMSGFMT"; then
2556 echo "$ac_t""$GMSGFMT" 1>&6
2558 echo "$ac_t""no" 1>&6
2561 # Extract the first word of "xgettext", so it can be a program name with args.
2562 set dummy xgettext
; ac_word
=$2
2563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564 echo "configure:2565: checking for $ac_word" >&5
2565 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2570 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2573 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2574 for ac_dir
in $PATH; do
2575 test -z "$ac_dir" && ac_dir
=.
2576 if test -f $ac_dir/$ac_word; then
2577 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2578 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2584 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2588 XGETTEXT
="$ac_cv_path_XGETTEXT"
2589 if test -n "$XGETTEXT"; then
2590 echo "$ac_t""$XGETTEXT" 1>&6
2592 echo "$ac_t""no" 1>&6
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2600 extern int _nl_msg_cat_cntr;
2601 return _nl_msg_cat_cntr
2604 if { (eval echo configure
:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2609 echo "configure: failed program was:" >&5
2610 cat conftest.
$ac_ext >&5
2621 echo "$ac_t""no" 1>&6
2626 if test "$CATOBJEXT" = "NONE"; then
2627 nls_cv_use_gnu_gettext
=yes
2631 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2632 INTLOBJS
="\$(GETTOBJS)"
2633 # Extract the first word of "msgfmt", so it can be a program name with args.
2634 set dummy msgfmt
; ac_word
=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2642 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2645 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2646 for ac_dir
in $PATH; do
2647 test -z "$ac_dir" && ac_dir
=.
2648 if test -f $ac_dir/$ac_word; then
2649 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2650 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2656 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2660 MSGFMT
="$ac_cv_path_MSGFMT"
2661 if test -n "$MSGFMT"; then
2662 echo "$ac_t""$MSGFMT" 1>&6
2664 echo "$ac_t""no" 1>&6
2667 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2668 set dummy gmsgfmt
; ac_word
=$2
2669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_word" >&5
2671 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2676 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2679 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2684 for ac_dir
in $ac_dummy; do
2685 test -z "$ac_dir" && ac_dir
=.
2686 if test -f $ac_dir/$ac_word; then
2687 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2692 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2696 GMSGFMT
="$ac_cv_path_GMSGFMT"
2697 if test -n "$GMSGFMT"; then
2698 echo "$ac_t""$GMSGFMT" 1>&6
2700 echo "$ac_t""no" 1>&6
2703 # Extract the first word of "xgettext", so it can be a program name with args.
2704 set dummy xgettext
; ac_word
=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2712 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2716 for ac_dir
in $PATH; do
2717 test -z "$ac_dir" && ac_dir
=.
2718 if test -f $ac_dir/$ac_word; then
2719 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2720 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2726 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2730 XGETTEXT
="$ac_cv_path_XGETTEXT"
2731 if test -n "$XGETTEXT"; then
2732 echo "$ac_t""$XGETTEXT" 1>&6
2734 echo "$ac_t""no" 1>&6
2738 USE_INCLUDED_LIBINTL
=yes
2742 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2744 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2745 nls_cv_header_intl
=libintl.h
2746 nls_cv_header_libgt
=libgettext.h
2749 if test "$XGETTEXT" != ":"; then
2750 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2753 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2758 # We need to process the po/ directory.
2762 nls_cv_header_intl
=libintl.h
2763 nls_cv_header_libgt
=libgettext.h
2766 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2767 # because some of the sources are only built for this goal.
2768 if test "$PACKAGE" = gettext; then
2770 USE_INCLUDED_LIBINTL
=yes
2773 for lang
in $ALL_LINGUAS; do
2774 GMOFILES
="$GMOFILES $lang.gmo"
2775 POFILES
="$POFILES $lang.po"
2791 if test "x$CATOBJEXT" != "x"; then
2792 if test "x$ALL_LINGUAS" = "x"; then
2795 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2796 echo "configure:2797: checking for catalogs to be installed" >&5
2798 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2799 case "$ALL_LINGUAS" in
2800 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2803 LINGUAS
=$NEW_LINGUAS
2804 echo "$ac_t""$LINGUAS" 1>&6
2807 if test -n "$LINGUAS"; then
2808 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2812 if test $ac_cv_header_locale_h = yes; then
2813 INCLUDE_LOCALE_H
="#include <locale.h>"
2816 /* The system does not provide the header <locale.h>. Take care yourself. */"
2820 if test -f $srcdir/po2tbl.
sed.
in; then
2821 if test "$CATOBJEXT" = ".cat"; then
2822 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2823 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2824 echo "configure:2825: checking for linux/version.h" >&5
2825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.
$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <linux/version.h>
2833 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2834 { (eval echo configure
:2835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2835 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2836 if test -z "$ac_err"; then
2838 eval "ac_cv_header_$ac_safe=yes"
2841 echo "configure: failed program was:" >&5
2842 cat conftest.
$ac_ext >&5
2844 eval "ac_cv_header_$ac_safe=no"
2848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2849 echo "$ac_t""yes" 1>&6
2852 echo "$ac_t""no" 1>&6
2857 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2859 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2860 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2863 if test "$PACKAGE" = "gettext"; then
2873 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2879 if test -f $srcdir/po
/POTFILES.
in; then
2880 test -d po || mkdir po
2881 if test "x$srcdir" != "x."; then
2882 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2883 posrcprefix
="$srcdir/"
2885 posrcprefix
="../$srcdir/"
2891 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2892 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2895 cat >> confdefs.h
<<\EOF
2896 #define PACKAGE "gdb"
2913 SUBDIRS
="doc testsuite nlm"
2914 configdirs
="doc testsuite"
2916 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2917 if test "${enable_multi_ice+set}" = set; then
2918 enableval
="$enable_multi_ice"
2919 case "${enableval}" in
2920 yes ) enable_multi_ice
="yes" ;;
2921 no
) enable_multi_ice
="no" ;;
2922 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2928 if test "${enable_multi_ice}" = "yes"; then
2929 configdirs
="${configdirs} multi-ice"
2933 .
${srcdir}/configure.
host
2935 .
${srcdir}/configure.tgt
2937 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2941 .
${srcdir}/..
/bfd
/config.bfd
2943 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2945 if test x
"${targ_archs}" != x
; then
2946 cat >> confdefs.h
<<EOF
2947 #define DEFAULT_BFD_ARCH ${targ_archs}
2951 if test x
"${targ_defvec}" != x
; then
2952 cat >> confdefs.h
<<EOF
2953 #define DEFAULT_BFD_VEC ${targ_defvec}
2958 if test "$program_transform_name" = s
,x
,x
,; then
2959 program_transform_name
=
2961 # Double any \ or $. echo might interpret backslashes.
2962 cat <<\EOF_SED
> conftestsed
2963 s
,\\,\\\\,g
; s
,\$
,$$
,g
2965 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2968 test "$program_prefix" != NONE
&&
2969 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2970 # Use a double $ so make ignores it.
2971 test "$program_suffix" != NONE
&&
2972 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2974 # sed with no file args requires a program.
2975 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2978 # --------------------- #
2979 # Checks for programs. #
2980 # --------------------- #
2982 for ac_prog
in mawk gawk nawk
awk
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy
$ac_prog; ac_word
=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$AWK"; then
2992 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2996 for ac_dir
in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir
=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_AWK
="$ac_prog"
3006 AWK
="$ac_cv_prog_AWK"
3007 if test -n "$AWK"; then
3008 echo "$ac_t""$AWK" 1>&6
3010 echo "$ac_t""no" 1>&6
3013 test -n "$AWK" && break
3016 # Find a good install program. We prefer a C program (faster),
3017 # so one script is as good as another. But avoid the broken or
3018 # incompatible versions:
3019 # SysV /etc/install, /usr/sbin/install
3020 # SunOS /usr/etc/install
3021 # IRIX /sbin/install
3023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3026 # ./install, which can be erroneously created by make from ./install.sh.
3027 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3028 echo "configure:3029: checking for a BSD compatible install" >&5
3029 if test -z "$INSTALL"; then
3030 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3034 for ac_dir
in $PATH; do
3035 # Account for people who put trailing slashes in PATH elements.
3037 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3039 # OSF1 and SCO ODT 3.0 have their own names for install.
3040 # Don't use installbsd from OSF since it installs stuff as root
3042 for ac_prog
in ginstall scoinst
install; do
3043 if test -f $ac_dir/$ac_prog; then
3044 if test $ac_prog = install &&
3045 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3046 # AIX install. It has an incompatible calling convention.
3049 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3060 if test "${ac_cv_path_install+set}" = set; then
3061 INSTALL
="$ac_cv_path_install"
3063 # As a last resort, use the slow shell script. We don't cache a
3064 # path for INSTALL within a source directory, because that will
3065 # break other packages using the cache if that directory is
3066 # removed, or if the path is relative.
3067 INSTALL
="$ac_install_sh"
3070 echo "$ac_t""$INSTALL" 1>&6
3072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3073 # It thinks the first close brace ends the variable substitution.
3074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3078 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3080 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3081 echo "configure:3082: checking whether ln -s works" >&5
3082 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3086 if ln -s X conftestdata
2>/dev
/null
3089 ac_cv_prog_LN_S
="ln -s"
3094 LN_S
="$ac_cv_prog_LN_S"
3095 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3096 echo "$ac_t""yes" 1>&6
3098 echo "$ac_t""no" 1>&6
3101 # Extract the first word of "ranlib", so it can be a program name with args.
3102 set dummy ranlib
; ac_word
=$2
3103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_word" >&5
3105 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 if test -n "$RANLIB"; then
3109 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3113 for ac_dir
in $ac_dummy; do
3114 test -z "$ac_dir" && ac_dir
=.
3115 if test -f $ac_dir/$ac_word; then
3116 ac_cv_prog_RANLIB
="ranlib"
3121 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3124 RANLIB
="$ac_cv_prog_RANLIB"
3125 if test -n "$RANLIB"; then
3126 echo "$ac_t""$RANLIB" 1>&6
3128 echo "$ac_t""no" 1>&6
3131 for ac_prog
in 'bison -y' byacc
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy
$ac_prog; ac_word
=$2
3135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_word" >&5
3137 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 if test -n "$YACC"; then
3141 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3145 for ac_dir
in $ac_dummy; do
3146 test -z "$ac_dir" && ac_dir
=.
3147 if test -f $ac_dir/$ac_word; then
3148 ac_cv_prog_YACC
="$ac_prog"
3155 YACC
="$ac_cv_prog_YACC"
3156 if test -n "$YACC"; then
3157 echo "$ac_t""$YACC" 1>&6
3159 echo "$ac_t""no" 1>&6
3162 test -n "$YACC" && break
3164 test -n "$YACC" || YACC
="yacc"
3167 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3168 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_word" >&5
3171 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 if test -n "$AR"; then
3175 ac_cv_prog_AR
="$AR" # Let the user override the test.
3177 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3179 for ac_dir
in $ac_dummy; do
3180 test -z "$ac_dir" && ac_dir
=.
3181 if test -f $ac_dir/$ac_word; then
3182 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3187 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3191 if test -n "$AR"; then
3192 echo "$ac_t""$AR" 1>&6
3194 echo "$ac_t""no" 1>&6
3199 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3200 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3203 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 if test -n "$DLLTOOL"; then
3207 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3209 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3211 for ac_dir
in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir
=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3219 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3222 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3223 if test -n "$DLLTOOL"; then
3224 echo "$ac_t""$DLLTOOL" 1>&6
3226 echo "$ac_t""no" 1>&6
3231 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3232 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$WINDRES"; then
3239 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3243 for ac_dir
in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir
=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3251 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3254 WINDRES
="$ac_cv_prog_WINDRES"
3255 if test -n "$WINDRES"; then
3256 echo "$ac_t""$WINDRES" 1>&6
3258 echo "$ac_t""no" 1>&6
3264 # Needed for GNU/Hurd.
3265 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3266 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3268 echo "configure:3269: checking for $ac_word" >&5
3269 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 if test -n "$MIG"; then
3273 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3275 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3277 for ac_dir
in $ac_dummy; do
3278 test -z "$ac_dir" && ac_dir
=.
3279 if test -f $ac_dir/$ac_word; then
3280 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3285 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3288 MIG
="$ac_cv_prog_MIG"
3289 if test -n "$MIG"; then
3290 echo "$ac_t""$MIG" 1>&6
3292 echo "$ac_t""no" 1>&6
3298 # ---------------------- #
3299 # Checks for libraries. #
3300 # ---------------------- #
3302 # We might need to link with -lm; most simulators need it.
3303 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3304 echo "configure:3305: checking for main in -lm" >&5
3305 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_save_LIBS
="$LIBS"
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3321 eval "ac_cv_lib_$ac_lib_var=yes"
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3326 eval "ac_cv_lib_$ac_lib_var=no"
3329 LIBS
="$ac_save_LIBS"
3332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3333 echo "$ac_t""yes" 1>&6
3334 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3335 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3336 cat >> confdefs.h
<<EOF
3337 #define $ac_tr_lib 1
3343 echo "$ac_t""no" 1>&6
3347 # We need to link with -lw to get `wctype' on Solaris before Solaris
3348 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3349 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3350 # is known to have this problem). Therefore we avoid libw if we can.
3351 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3352 echo "configure:3353: checking for wctype" >&5
3353 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 /* System header to define __stub macros and hopefully few prototypes,
3360 which can conflict with char wctype(); below. */
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3369 /* The GNU C library defines this for functions which it implements
3370 to always fail with ENOSYS. Some functions are actually named
3371 something starting with __ and the normal name is an alias. */
3372 #if defined (__stub_wctype) || defined (__stub___wctype)
3380 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3382 eval "ac_cv_func_wctype=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3387 eval "ac_cv_func_wctype=no"
3392 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3393 echo "$ac_t""yes" 1>&6
3396 echo "$ac_t""no" 1>&6
3397 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3398 echo "configure:3399: checking for wctype in -lw" >&5
3399 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 ac_save_LIBS
="$LIBS"
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* Override any gcc2 internal prototype to avoid an error. */
3409 /* We use char because int might match the return type of a gcc2
3410 builtin and then its argument prototype would still apply. */
3417 if { (eval echo configure
:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3419 eval "ac_cv_lib_$ac_lib_var=yes"
3421 echo "configure: failed program was:" >&5
3422 cat conftest.
$ac_ext >&5
3424 eval "ac_cv_lib_$ac_lib_var=no"
3427 LIBS
="$ac_save_LIBS"
3430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3434 cat >> confdefs.h
<<EOF
3435 #define $ac_tr_lib 1
3441 echo "$ac_t""no" 1>&6
3447 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3449 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3450 echo "configure:3451: checking for library containing socketpair" >&5
3451 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 ac_func_search_save_LIBS
="$LIBS"
3455 ac_cv_search_socketpair
="no"
3456 cat > conftest.
$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 /* Override any gcc2 internal prototype to avoid an error. */
3460 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */
3468 if { (eval echo configure
:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3470 ac_cv_search_socketpair
="none required"
3472 echo "configure: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3476 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3477 LIBS
="-l$i $ac_func_search_save_LIBS"
3478 cat > conftest.
$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 /* Override any gcc2 internal prototype to avoid an error. */
3482 /* We use char because int might match the return type of a gcc2
3483 builtin and then its argument prototype would still apply. */
3490 if { (eval echo configure
:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3492 ac_cv_search_socketpair
="-l$i"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.
$ac_ext >&5
3500 LIBS
="$ac_func_search_save_LIBS"
3503 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3504 if test "$ac_cv_search_socketpair" != "no"; then
3505 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3511 # ------------------------- #
3512 # Checks for header files. #
3513 # ------------------------- #
3516 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3518 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3519 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3520 echo "configure:3521: checking for $ac_hdr that defines DIR" >&5
3521 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 cat > conftest.
$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <sys/types.h>
3533 if { (eval echo configure
:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 eval "ac_cv_header_dirent_$ac_safe=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.
$ac_ext >&5
3540 eval "ac_cv_header_dirent_$ac_safe=no"
3544 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3545 echo "$ac_t""yes" 1>&6
3546 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3547 cat >> confdefs.h
<<EOF
3548 #define $ac_tr_hdr 1
3550 ac_header_dirent
=$ac_hdr; break
3552 echo "$ac_t""no" 1>&6
3555 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3556 if test $ac_header_dirent = dirent.h
; then
3557 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3558 echo "configure:3559: checking for opendir in -ldir" >&5
3559 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 ac_save_LIBS
="$LIBS"
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3577 if { (eval echo configure
:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.
$ac_ext >&5
3584 eval "ac_cv_lib_$ac_lib_var=no"
3587 LIBS
="$ac_save_LIBS"
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3594 echo "$ac_t""no" 1>&6
3598 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3599 echo "configure:3600: checking for opendir in -lx" >&5
3600 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 ac_save_LIBS
="$LIBS"
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3618 if { (eval echo configure
:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3620 eval "ac_cv_lib_$ac_lib_var=yes"
3622 echo "configure: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3625 eval "ac_cv_lib_$ac_lib_var=no"
3628 LIBS
="$ac_save_LIBS"
3631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3632 echo "$ac_t""yes" 1>&6
3635 echo "$ac_t""no" 1>&6
3640 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3641 echo "configure:3642: checking whether stat file-mode macros are broken" >&5
3642 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.
$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3649 #include <sys/stat.h>
3651 #if defined(S_ISBLK) && defined(S_IFDIR)
3652 # if S_ISBLK (S_IFDIR)
3657 #if defined(S_ISBLK) && defined(S_IFCHR)
3658 # if S_ISBLK (S_IFCHR)
3663 #if defined(S_ISLNK) && defined(S_IFREG)
3664 # if S_ISLNK (S_IFREG)
3669 #if defined(S_ISSOCK) && defined(S_IFREG)
3670 # if S_ISSOCK (S_IFREG)
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 egrep "You lose" >/dev
/null
2>&1; then
3679 ac_cv_header_stat_broken
=yes
3682 ac_cv_header_stat_broken
=no
3688 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3689 if test $ac_cv_header_stat_broken = yes; then
3690 cat >> confdefs.h
<<\EOF
3691 #define STAT_MACROS_BROKEN 1
3696 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3697 echo "configure:3698: checking for ANSI C header files" >&5
3698 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 cat > conftest.
$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3710 { (eval echo configure
:3711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3711 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3712 if test -z "$ac_err"; then
3714 ac_cv_header_stdc
=yes
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3720 ac_cv_header_stdc
=no
3724 if test $ac_cv_header_stdc = yes; then
3725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 egrep "memchr" >/dev
/null
2>&1; then
3736 ac_cv_header_stdc
=no
3742 if test $ac_cv_header_stdc = yes; then
3743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3744 cat > conftest.
$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3750 egrep "free" >/dev
/null
2>&1; then
3754 ac_cv_header_stdc
=no
3760 if test $ac_cv_header_stdc = yes; then
3761 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3762 if test "$cross_compiling" = yes; then
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3769 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3770 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3772 int main () { int i; for (i = 0; i < 256; i++)
3773 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3777 if { (eval echo configure
:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3781 echo "configure: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3784 ac_cv_header_stdc
=no
3792 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3793 if test $ac_cv_header_stdc = yes; then
3794 cat >> confdefs.h
<<\EOF
3795 #define STDC_HEADERS 1
3800 for ac_hdr
in link.h
3802 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3804 echo "configure:3805: checking for $ac_hdr" >&5
3805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.
$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3814 { (eval echo configure
:3815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3816 if test -z "$ac_err"; then
3818 eval "ac_cv_header_$ac_safe=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.
$ac_ext >&5
3824 eval "ac_cv_header_$ac_safe=no"
3828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3830 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3831 cat >> confdefs.h
<<EOF
3832 #define $ac_tr_hdr 1
3836 echo "$ac_t""no" 1>&6
3840 for ac_hdr
in nlist.h
3842 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3844 echo "configure:3845: checking for $ac_hdr" >&5
3845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.
$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3854 { (eval echo configure
:3855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3856 if test -z "$ac_err"; then
3858 eval "ac_cv_header_$ac_safe=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.
$ac_ext >&5
3864 eval "ac_cv_header_$ac_safe=no"
3868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3869 echo "$ac_t""yes" 1>&6
3870 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3871 cat >> confdefs.h
<<EOF
3872 #define $ac_tr_hdr 1
3876 echo "$ac_t""no" 1>&6
3880 for ac_hdr
in poll.h sys
/poll.h
3882 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_hdr" >&5
3885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 cat > conftest.
$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3894 { (eval echo configure
:3895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3896 if test -z "$ac_err"; then
3898 eval "ac_cv_header_$ac_safe=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 eval "ac_cv_header_$ac_safe=no"
3908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3910 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3911 cat >> confdefs.h
<<EOF
3912 #define $ac_tr_hdr 1
3916 echo "$ac_t""no" 1>&6
3920 for ac_hdr
in proc_service.h thread_db.h
3922 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_hdr" >&5
3925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.
$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3933 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3934 { (eval echo configure
:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3935 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3936 if test -z "$ac_err"; then
3938 eval "ac_cv_header_$ac_safe=yes"
3941 echo "configure: failed program was:" >&5
3942 cat conftest.
$ac_ext >&5
3944 eval "ac_cv_header_$ac_safe=no"
3948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3951 cat >> confdefs.h
<<EOF
3952 #define $ac_tr_hdr 1
3956 echo "$ac_t""no" 1>&6
3960 for ac_hdr
in stddef.h
3962 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3964 echo "configure:3965: checking for $ac_hdr" >&5
3965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 cat > conftest.
$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3973 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3974 { (eval echo configure
:3975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3975 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3976 if test -z "$ac_err"; then
3978 eval "ac_cv_header_$ac_safe=yes"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.
$ac_ext >&5
3984 eval "ac_cv_header_$ac_safe=no"
3988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3991 cat >> confdefs.h
<<EOF
3992 #define $ac_tr_hdr 1
3996 echo "$ac_t""no" 1>&6
4000 for ac_hdr
in stdlib.h
4002 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_hdr" >&5
4005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4008 cat > conftest.
$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4013 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4014 { (eval echo configure
:4015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4015 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4016 if test -z "$ac_err"; then
4018 eval "ac_cv_header_$ac_safe=yes"
4021 echo "configure: failed program was:" >&5
4022 cat conftest.
$ac_ext >&5
4024 eval "ac_cv_header_$ac_safe=no"
4028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4031 cat >> confdefs.h
<<EOF
4032 #define $ac_tr_hdr 1
4036 echo "$ac_t""no" 1>&6
4040 for ac_hdr
in stdint.h
4042 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4044 echo "configure:4045: checking for $ac_hdr" >&5
4045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.
$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4054 { (eval echo configure
:4055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4056 if test -z "$ac_err"; then
4058 eval "ac_cv_header_$ac_safe=yes"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4064 eval "ac_cv_header_$ac_safe=no"
4068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4069 echo "$ac_t""yes" 1>&6
4070 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4071 cat >> confdefs.h
<<EOF
4072 #define $ac_tr_hdr 1
4076 echo "$ac_t""no" 1>&6
4080 for ac_hdr
in string.h memory.h
strings.h
4082 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_hdr" >&5
4085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4094 { (eval echo configure
:4095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4096 if test -z "$ac_err"; then
4098 eval "ac_cv_header_$ac_safe=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 eval "ac_cv_header_$ac_safe=no"
4108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4111 cat >> confdefs.h
<<EOF
4112 #define $ac_tr_hdr 1
4116 echo "$ac_t""no" 1>&6
4120 for ac_hdr
in sys
/fault.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 sys
/file.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 sys
/filio.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 sys
/ioctl.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 sys
/param.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 sys
/proc.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 sys
/procfs.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 sys
/ptrace.h ptrace.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
/reg.h sys
/debugreg.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
/select.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
/syscall.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
/user.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
/wait.h
wait.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 termios.h termio.h sgtty.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 unistd.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
4721 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
4722 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
4723 # think that we don't have <curses.h> if we're using GCC.
4726 if test "$GCC" = yes; then
4727 cat >> confdefs.h
<<\EOF
4728 #define _MSE_INT_H 1
4733 for ac_hdr
in curses.h ncurses.h term.h
4735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure
:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4751 eval "ac_cv_header_$ac_safe=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4757 eval "ac_cv_header_$ac_safe=no"
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h
<<EOF
4765 #define $ac_tr_hdr 1
4769 echo "$ac_t""no" 1>&6
4774 # FIXME: kettenis/20030102: In most cases we include these
4775 # unconditionally, so what's the point in checking these?
4776 for ac_hdr
in ctype.h
time.h
4778 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_hdr" >&5
4781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.
$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4789 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4790 { (eval echo configure
:4791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4791 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4792 if test -z "$ac_err"; then
4794 eval "ac_cv_header_$ac_safe=yes"
4797 echo "configure: failed program was:" >&5
4798 cat conftest.
$ac_ext >&5
4800 eval "ac_cv_header_$ac_safe=no"
4804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4807 cat >> confdefs.h
<<EOF
4808 #define $ac_tr_hdr 1
4812 echo "$ac_t""no" 1>&6
4817 # ------------------ #
4818 # Checks for types. #
4819 # ------------------ #
4821 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4822 echo "configure:4823: checking return type of signal handlers" >&5
4823 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 cat > conftest.
$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4829 #include <sys/types.h>
4835 extern "C" void (*signal (int, void (*)(int)))(int);
4837 void (*signal ()) ();
4844 if { (eval echo configure
:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 ac_cv_type_signal
=void
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 ac_cv_type_signal
=int
4856 echo "$ac_t""$ac_cv_type_signal" 1>&6
4857 cat >> confdefs.h
<<EOF
4858 #define RETSIGTYPE $ac_cv_type_signal
4863 # ------------------------------------- #
4864 # Checks for compiler characteristics. #
4865 # ------------------------------------- #
4867 echo $ac_n "checking for working const""... $ac_c" 1>&6
4868 echo "configure:4869: checking for working const" >&5
4869 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4878 /* Ultrix mips cc rejects this. */
4879 typedef int charset[2]; const charset x;
4880 /* SunOS 4.1.1 cc rejects this. */
4881 char const *const *ccp;
4883 /* NEC SVR4.0.2 mips cc rejects this. */
4884 struct point {int x, y;};
4885 static struct point const zero = {0,0};
4886 /* AIX XL C 1.02.0.0 rejects this.
4887 It does not let you subtract one const X* pointer from another in an arm
4888 of an if-expression whose if-part is not a constant expression */
4889 const char *g = "string";
4890 ccp = &g + (g ? g-g : 0);
4891 /* HPUX 7.0 cc rejects these. */
4894 ccp = (char const *const *) p;
4895 { /* SCO 3.2v4 cc rejects this. */
4897 char const *s = 0 ? (char *) 0 : (char const *) 0;
4901 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4903 const int *foo = &x[0];
4906 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4907 typedef const int *iptr;
4911 { /* AIX XL C 1.02.0.0 rejects this saying
4912 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4913 struct s { int j; const int *ap[3]; };
4914 struct s *b; b->j = 5;
4916 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4922 if { (eval echo configure
:4923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4926 echo "configure: failed program was:" >&5
4927 cat conftest.
$ac_ext >&5
4934 echo "$ac_t""$ac_cv_c_const" 1>&6
4935 if test $ac_cv_c_const = no
; then
4936 cat >> confdefs.h
<<\EOF
4942 echo $ac_n "checking for inline""... $ac_c" 1>&6
4943 echo "configure:4944: checking for inline" >&5
4944 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4948 for ac_kw
in inline __inline__ __inline
; do
4949 cat > conftest.
$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4957 if { (eval echo configure
:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4959 ac_cv_c_inline
=$ac_kw; break
4961 echo "configure: failed program was:" >&5
4962 cat conftest.
$ac_ext >&5
4969 echo "$ac_t""$ac_cv_c_inline" 1>&6
4970 case "$ac_cv_c_inline" in
4972 no
) cat >> confdefs.h
<<\EOF
4976 *) cat >> confdefs.h
<<EOF
4977 #define inline $ac_cv_c_inline
4983 # ------------------------------ #
4984 # Checks for library functions. #
4985 # ------------------------------ #
4987 for ac_func
in btowc canonicalize_file_name isascii poll \
4988 realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
4990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4991 echo "configure:4992: checking for $ac_func" >&5
4992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 cat > conftest.
$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 /* System header to define __stub macros and hopefully few prototypes,
4999 which can conflict with char $ac_func(); below. */
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5008 /* The GNU C library defines this for functions which it implements
5009 to always fail with ENOSYS. Some functions are actually named
5010 something starting with __ and the normal name is an alias. */
5011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5019 if { (eval echo configure
:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5021 eval "ac_cv_func_$ac_func=yes"
5023 echo "configure: failed program was:" >&5
5024 cat conftest.
$ac_ext >&5
5026 eval "ac_cv_func_$ac_func=no"
5031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5033 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5034 cat >> confdefs.h
<<EOF
5035 #define $ac_tr_func 1
5039 echo "$ac_t""no" 1>&6
5043 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5044 # for constant arguments. Useless!
5045 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5046 echo "configure:5047: checking for working alloca.h" >&5
5047 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 cat > conftest.
$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5055 char *p = alloca(2 * sizeof(int));
5058 if { (eval echo configure
:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5060 ac_cv_header_alloca_h
=yes
5062 echo "configure: failed program was:" >&5
5063 cat conftest.
$ac_ext >&5
5065 ac_cv_header_alloca_h
=no
5070 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5071 if test $ac_cv_header_alloca_h = yes; then
5072 cat >> confdefs.h
<<\EOF
5073 #define HAVE_ALLOCA_H 1
5078 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5079 echo "configure:5080: checking for alloca" >&5
5080 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5081 echo $ac_n "(cached) $ac_c" 1>&6
5083 cat > conftest.
$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5088 # define alloca __builtin_alloca
5091 # include <malloc.h>
5092 # define alloca _alloca
5095 # include <alloca.h>
5100 # ifndef alloca /* predefined by HP cc +Olibcalls */
5109 char *p = (char *) alloca(1);
5112 if { (eval echo configure
:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5114 ac_cv_func_alloca_works
=yes
5116 echo "configure: failed program was:" >&5
5117 cat conftest.
$ac_ext >&5
5119 ac_cv_func_alloca_works
=no
5124 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5125 if test $ac_cv_func_alloca_works = yes; then
5126 cat >> confdefs.h
<<\EOF
5127 #define HAVE_ALLOCA 1
5132 if test $ac_cv_func_alloca_works = no
; then
5133 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5134 # that cause trouble. Some versions do not even contain alloca or
5135 # contain a buggy version. If you still want to use their alloca,
5136 # use ar to extract alloca.o from them instead of compiling alloca.c.
5137 ALLOCA
=alloca.
${ac_objext}
5138 cat >> confdefs.h
<<\EOF
5143 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5144 echo "configure:5145: checking whether alloca needs Cray hooks" >&5
5145 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 cat > conftest.
$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 #if defined(CRAY) && ! defined(CRAY2)
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 egrep "webecray" >/dev
/null
2>&1; then
5170 echo "$ac_t""$ac_cv_os_cray" 1>&6
5171 if test $ac_cv_os_cray = yes; then
5172 for ac_func
in _getb67 GETB67 getb67
; do
5173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5174 echo "configure:5175: checking for $ac_func" >&5
5175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 cat > conftest.
$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5181 /* System header to define __stub macros and hopefully few prototypes,
5182 which can conflict with char $ac_func(); below. */
5184 /* Override any gcc2 internal prototype to avoid an error. */
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5191 /* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5202 if { (eval echo configure
:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5204 eval "ac_cv_func_$ac_func=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5209 eval "ac_cv_func_$ac_func=no"
5214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 cat >> confdefs.h
<<EOF
5217 #define CRAY_STACKSEG_END $ac_func
5222 echo "$ac_t""no" 1>&6
5228 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5229 echo "configure:5230: checking stack direction for C alloca" >&5
5230 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 if test "$cross_compiling" = yes; then
5234 ac_cv_c_stack_direction
=0
5236 cat > conftest.
$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5239 find_stack_direction ()
5241 static char *addr = 0;
5246 return find_stack_direction ();
5249 return (&dummy > addr) ? 1 : -1;
5253 exit (find_stack_direction() < 0);
5256 if { (eval echo configure
:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5258 ac_cv_c_stack_direction
=1
5260 echo "configure: failed program was:" >&5
5261 cat conftest.
$ac_ext >&5
5263 ac_cv_c_stack_direction
=-1
5270 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5271 cat >> confdefs.h
<<EOF
5272 #define STACK_DIRECTION $ac_cv_c_stack_direction
5277 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5278 echo "configure:5279: checking for pid_t" >&5
5279 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 #include <sys/types.h>
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5294 ac_cv_type_pid_t
=yes
5302 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5303 if test $ac_cv_type_pid_t = no
; then
5304 cat >> confdefs.h
<<\EOF
5310 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5311 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5312 echo "configure:5313: checking for vfork.h" >&5
5313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.
$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5321 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5322 { (eval echo configure
:5323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5323 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5324 if test -z "$ac_err"; then
5326 eval "ac_cv_header_$ac_safe=yes"
5329 echo "configure: failed program was:" >&5
5330 cat conftest.
$ac_ext >&5
5332 eval "ac_cv_header_$ac_safe=no"
5336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5337 echo "$ac_t""yes" 1>&6
5338 cat >> confdefs.h
<<\EOF
5339 #define HAVE_VFORK_H 1
5343 echo "$ac_t""no" 1>&6
5346 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
5347 echo "configure:5348: checking for working vfork" >&5
5348 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 if test "$cross_compiling" = yes; then
5352 echo $ac_n "checking for vfork""... $ac_c" 1>&6
5353 echo "configure:5354: checking for vfork" >&5
5354 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 cat > conftest.
$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 /* System header to define __stub macros and hopefully few prototypes,
5361 which can conflict with char vfork(); below. */
5363 /* Override any gcc2 internal prototype to avoid an error. */
5364 /* We use char because int might match the return type of a gcc2
5365 builtin and then its argument prototype would still apply. */
5370 /* The GNU C library defines this for functions which it implements
5371 to always fail with ENOSYS. Some functions are actually named
5372 something starting with __ and the normal name is an alias. */
5373 #if defined (__stub_vfork) || defined (__stub___vfork)
5381 if { (eval echo configure
:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5383 eval "ac_cv_func_vfork=yes"
5385 echo "configure: failed program was:" >&5
5386 cat conftest.
$ac_ext >&5
5388 eval "ac_cv_func_vfork=no"
5393 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5397 echo "$ac_t""no" 1>&6
5400 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5402 cat > conftest.
$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* Thanks to Paul Eggert for this test. */
5407 #include <sys/types.h>
5408 #include <sys/stat.h>
5409 #ifdef HAVE_UNISTD_H
5415 /* On some sparc systems, changes by the child to local and incoming
5416 argument registers are propagated back to the parent.
5417 The compiler is told about this with #include <vfork.h>,
5418 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
5419 Test for this by using a static variable whose address
5420 is put into a register that is clobbered by the vfork. */
5423 sparc_address_test (int arg)
5425 sparc_address_test (arg) int arg;
5443 pid_t parent = getpid ();
5446 sparc_address_test ();
5451 /* Here is another test for sparc vfork register problems.
5452 This test uses lots of local variables, at least
5453 as many local variables as main has allocated so far
5454 including compiler temporaries. 4 locals are enough for
5455 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
5456 A buggy compiler should reuse the register of parent
5457 for one of the local variables, since it will think that
5458 parent can't possibly be used any more in this routine.
5459 Assigning to the local variable will thus munge parent
5460 in the parent process. */
5462 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5463 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5464 /* Convince the compiler that p..p7 are live; otherwise, it might
5465 use the same hardware register for all 8 local variables. */
5466 if (p != p1 || p != p2 || p != p3 || p != p4
5467 || p != p5 || p != p6 || p != p7)
5470 /* On some systems (e.g. IRIX 3.3),
5471 vfork doesn't separate parent from child file descriptors.
5472 If the child closes a descriptor before it execs or exits,
5473 this munges the parent's descriptor as well.
5474 Test for this by closing stdout in the child. */
5475 _exit(close(fileno(stdout)) != 0);
5480 while (wait(&status) != child)
5483 /* Was there some problem with vforking? */
5486 /* Did the child fail? (This shouldn't happen.) */
5489 /* Did the vfork/compiler bug occur? */
5490 || parent != getpid()
5492 /* Did the file descriptor bug occur? */
5493 || fstat(fileno(stdout), &st) != 0
5498 if { (eval echo configure
:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5500 ac_cv_func_vfork_works
=yes
5502 echo "configure: failed program was:" >&5
5503 cat conftest.
$ac_ext >&5
5505 ac_cv_func_vfork_works
=no
5512 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
5513 if test $ac_cv_func_vfork_works = no
; then
5514 cat >> confdefs.h
<<\EOF
5520 if test "$cross_compiling" = no
; then
5521 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
5522 echo "configure:5523: checking whether setpgrp takes no argument" >&5
5523 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 if test "$cross_compiling" = yes; then
5527 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
5529 cat > conftest.
$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5533 #ifdef HAVE_UNISTD_H
5538 * If this system has a BSD-style setpgrp, which takes arguments, exit
5543 if (setpgrp(1,1) == -1)
5550 if { (eval echo configure
:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5552 ac_cv_func_setpgrp_void
=no
5554 echo "configure: failed program was:" >&5
5555 cat conftest.
$ac_ext >&5
5557 ac_cv_func_setpgrp_void
=yes
5565 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
5566 if test $ac_cv_func_setpgrp_void = yes; then
5567 cat >> confdefs.h
<<\EOF
5568 #define SETPGRP_VOID 1
5574 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
5575 echo "configure:5576: checking whether setpgrp takes no argument" >&5
5576 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5579 cat > conftest.
$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5587 if (setpgrp(1,1) == -1)
5594 if { (eval echo configure
:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5596 ac_cv_func_setpgrp_void
=no
5598 echo "configure: failed program was:" >&5
5599 cat conftest.
$ac_ext >&5
5601 ac_cv_func_setpgrp_void
=yes
5606 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
5607 if test $ac_cv_func_setpgrp_void = yes; then
5608 cat >> confdefs.h
<<\EOF
5609 #define SETPGRP_VOID 1
5615 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
5616 # since sigsetjmp might only be defined as a macro.
5617 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
5618 echo "configure:5619: checking for sigsetjmp" >&5
5619 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5622 cat > conftest.
$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5629 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5632 if { (eval echo configure
:5633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5634 gdb_cv_func_sigsetjmp
=yes
5636 echo "configure: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5639 gdb_cv_func_sigsetjmp
=no
5644 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
5645 if test $gdb_cv_func_sigsetjmp = yes; then
5646 cat >> confdefs.h
<<\EOF
5647 #define HAVE_SIGSETJMP 1
5652 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
5653 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5654 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
5655 echo "configure:5656: checking for r_fs in struct reg" >&5
5656 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
5657 echo $ac_n "(cached) $ac_c" 1>&6
5659 cat > conftest.
$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5662 #include <machine/reg.h>
5664 struct reg r; r.r_fs;
5667 if { (eval echo configure
:5668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5669 gdb_cv_struct_reg_r_fs
=yes
5671 echo "configure: failed program was:" >&5
5672 cat conftest.
$ac_ext >&5
5674 gdb_cv_struct_reg_r_fs
=no
5679 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
5680 if test $gdb_cv_struct_reg_r_fs = yes; then
5681 cat >> confdefs.h
<<\EOF
5682 #define HAVE_STRUCT_REG_R_FS 1
5686 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
5687 echo "configure:5688: checking for r_gs in struct reg" >&5
5688 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.
$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 #include <machine/reg.h>
5696 struct reg r; r.r_gs;
5699 if { (eval echo configure
:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 gdb_cv_struct_reg_r_gs
=yes
5703 echo "configure: failed program was:" >&5
5704 cat conftest.
$ac_ext >&5
5706 gdb_cv_struct_reg_r_gs
=no
5711 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
5712 if test $gdb_cv_struct_reg_r_gs = yes; then
5713 cat >> confdefs.h
<<\EOF
5714 #define HAVE_STRUCT_REG_R_GS 1
5719 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
5720 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
5721 echo "configure:5722: checking for PTRACE_GETREGS" >&5
5722 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.
$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 #include <sys/ptrace.h>
5733 if { (eval echo configure
:5734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5735 gdb_cv_have_ptrace_getregs
=yes
5737 echo "configure: failed program was:" >&5
5738 cat conftest.
$ac_ext >&5
5740 gdb_cv_have_ptrace_getregs
=no
5745 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
5746 if test $gdb_cv_have_ptrace_getregs = yes; then
5747 cat >> confdefs.h
<<\EOF
5748 #define HAVE_PTRACE_GETREGS 1
5753 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
5754 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
5755 echo "configure:5756: checking for PTRACE_GETFPXREGS" >&5
5756 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.
$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 #include <sys/ptrace.h>
5767 if { (eval echo configure
:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5769 gdb_cv_have_ptrace_getfpxregs
=yes
5771 echo "configure: failed program was:" >&5
5772 cat conftest.
$ac_ext >&5
5774 gdb_cv_have_ptrace_getfpxregs
=no
5779 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
5780 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
5781 cat >> confdefs.h
<<\EOF
5782 #define HAVE_PTRACE_GETFPXREGS 1
5787 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
5788 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
5789 echo "configure:5790: checking for PT_GETDBREGS" >&5
5790 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5793 cat > conftest.
$ac_ext <<EOF
5794 #line 5795 "configure"
5795 #include "confdefs.h"
5796 #include <sys/types.h>
5797 #include <sys/ptrace.h>
5802 if { (eval echo configure
:5803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5804 gdb_cv_have_pt_getdbregs
=yes
5806 echo "configure: failed program was:" >&5
5807 cat conftest.
$ac_ext >&5
5809 gdb_cv_have_pt_getdbregs
=no
5814 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
5815 if test $gdb_cv_have_pt_getdbregs = yes; then
5816 cat >> confdefs.h
<<\EOF
5817 #define HAVE_PT_GETDBREGS 1
5822 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
5823 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
5824 echo "configure:5825: checking for PT_GETXMMREGS" >&5
5825 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5828 cat > conftest.
$ac_ext <<EOF
5829 #line 5830 "configure"
5830 #include "confdefs.h"
5831 #include <sys/types.h>
5832 #include <sys/ptrace.h>
5837 if { (eval echo configure
:5838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5839 gdb_cv_have_pt_getxmmregs
=yes
5841 echo "configure: failed program was:" >&5
5842 cat conftest.
$ac_ext >&5
5844 gdb_cv_have_pt_getxmmregs
=no
5849 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
5850 if test $gdb_cv_have_pt_getxmmregs = yes; then
5851 cat >> confdefs.h
<<\EOF
5852 #define HAVE_PT_GETXMMREGS 1
5858 for ac_func
in socketpair
5860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_func" >&5
5862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5865 cat > conftest.
$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* System header to define __stub macros and hopefully few prototypes,
5869 which can conflict with char $ac_func(); below. */
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 /* We use char because int might match the return type of a gcc2
5873 builtin and then its argument prototype would still apply. */
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5889 if { (eval echo configure
:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5891 eval "ac_cv_func_$ac_func=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 eval "ac_cv_func_$ac_func=no"
5901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5904 cat >> confdefs.h
<<EOF
5905 #define $ac_tr_func 1
5909 echo "$ac_t""no" 1>&6
5915 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
5916 echo "configure:5917: checking whether malloc must be declared" >&5
5917 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5920 cat > conftest.
$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5925 #ifdef HAVE_STRING_H
5928 #ifdef HAVE_STRINGS_H
5929 #include <strings.h>
5932 #ifdef HAVE_STDLIB_H
5935 #ifdef HAVE_UNISTD_H
5939 char *(*pfn) = (char *(*)) malloc
5942 if { (eval echo configure
:5943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5944 bfd_cv_decl_needed_malloc
=no
5946 echo "configure: failed program was:" >&5
5947 cat conftest.
$ac_ext >&5
5949 bfd_cv_decl_needed_malloc
=yes
5954 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
5955 if test $bfd_cv_decl_needed_malloc = yes; then
5956 cat >> confdefs.h
<<\EOF
5957 #define NEED_DECLARATION_MALLOC 1
5962 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
5963 echo "configure:5964: checking whether realloc must be declared" >&5
5964 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5967 cat > conftest.
$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5972 #ifdef HAVE_STRING_H
5975 #ifdef HAVE_STRINGS_H
5976 #include <strings.h>
5979 #ifdef HAVE_STDLIB_H
5982 #ifdef HAVE_UNISTD_H
5986 char *(*pfn) = (char *(*)) realloc
5989 if { (eval echo configure
:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5991 bfd_cv_decl_needed_realloc
=no
5993 echo "configure: failed program was:" >&5
5994 cat conftest.
$ac_ext >&5
5996 bfd_cv_decl_needed_realloc
=yes
6001 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
6002 if test $bfd_cv_decl_needed_realloc = yes; then
6003 cat >> confdefs.h
<<\EOF
6004 #define NEED_DECLARATION_REALLOC 1
6009 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
6010 echo "configure:6011: checking whether free must be declared" >&5
6011 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6014 cat > conftest.
$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6019 #ifdef HAVE_STRING_H
6022 #ifdef HAVE_STRINGS_H
6023 #include <strings.h>
6026 #ifdef HAVE_STDLIB_H
6029 #ifdef HAVE_UNISTD_H
6033 char *(*pfn) = (char *(*)) free
6036 if { (eval echo configure
:6037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6038 bfd_cv_decl_needed_free
=no
6040 echo "configure: failed program was:" >&5
6041 cat conftest.
$ac_ext >&5
6043 bfd_cv_decl_needed_free
=yes
6048 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
6049 if test $bfd_cv_decl_needed_free = yes; then
6050 cat >> confdefs.h
<<\EOF
6051 #define NEED_DECLARATION_FREE 1
6056 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
6057 echo "configure:6058: checking whether strerror must be declared" >&5
6058 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 cat > conftest.
$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6066 #ifdef HAVE_STRING_H
6069 #ifdef HAVE_STRINGS_H
6070 #include <strings.h>
6073 #ifdef HAVE_STDLIB_H
6076 #ifdef HAVE_UNISTD_H
6080 char *(*pfn) = (char *(*)) strerror
6083 if { (eval echo configure
:6084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6085 bfd_cv_decl_needed_strerror
=no
6087 echo "configure: failed program was:" >&5
6088 cat conftest.
$ac_ext >&5
6090 bfd_cv_decl_needed_strerror
=yes
6095 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
6096 if test $bfd_cv_decl_needed_strerror = yes; then
6097 cat >> confdefs.h
<<\EOF
6098 #define NEED_DECLARATION_STRERROR 1
6103 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
6104 echo "configure:6105: checking whether strdup must be declared" >&5
6105 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.
$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6113 #ifdef HAVE_STRING_H
6116 #ifdef HAVE_STRINGS_H
6117 #include <strings.h>
6120 #ifdef HAVE_STDLIB_H
6123 #ifdef HAVE_UNISTD_H
6127 char *(*pfn) = (char *(*)) strdup
6130 if { (eval echo configure
:6131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6132 bfd_cv_decl_needed_strdup
=no
6134 echo "configure: failed program was:" >&5
6135 cat conftest.
$ac_ext >&5
6137 bfd_cv_decl_needed_strdup
=yes
6142 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
6143 if test $bfd_cv_decl_needed_strdup = yes; then
6144 cat >> confdefs.h
<<\EOF
6145 #define NEED_DECLARATION_STRDUP 1
6150 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
6151 echo "configure:6152: checking whether strstr must be declared" >&5
6152 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 cat > conftest.
$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6160 #ifdef HAVE_STRING_H
6163 #ifdef HAVE_STRINGS_H
6164 #include <strings.h>
6167 #ifdef HAVE_STDLIB_H
6170 #ifdef HAVE_UNISTD_H
6174 char *(*pfn) = (char *(*)) strstr
6177 if { (eval echo configure
:6178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6179 bfd_cv_decl_needed_strstr
=no
6181 echo "configure: failed program was:" >&5
6182 cat conftest.
$ac_ext >&5
6184 bfd_cv_decl_needed_strstr
=yes
6189 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
6190 if test $bfd_cv_decl_needed_strstr = yes; then
6191 cat >> confdefs.h
<<\EOF
6192 #define NEED_DECLARATION_STRSTR 1
6197 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
6198 echo "configure:6199: checking whether canonicalize_file_name must be declared" >&5
6199 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6202 cat > conftest.
$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6207 #ifdef HAVE_STRING_H
6210 #ifdef HAVE_STRINGS_H
6211 #include <strings.h>
6214 #ifdef HAVE_STDLIB_H
6217 #ifdef HAVE_UNISTD_H
6221 char *(*pfn) = (char *(*)) canonicalize_file_name
6224 if { (eval echo configure
:6225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6226 bfd_cv_decl_needed_canonicalize_file_name
=no
6228 echo "configure: failed program was:" >&5
6229 cat conftest.
$ac_ext >&5
6231 bfd_cv_decl_needed_canonicalize_file_name
=yes
6236 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
6237 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
6238 cat >> confdefs.h
<<\EOF
6239 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
6245 # The following save_state_t checkery is only necessary for HPUX
6246 # versions earlier than 10.20. When those fade from memory, this
6247 # could be expunged. --jsm 1999-03-22
6249 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
6250 echo "configure:6251: checking for HPUX save_state structure" >&5
6251 cat > conftest.
$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 #include <machine/save_state.h>
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 egrep "save_state_t" >/dev
/null
2>&1; then
6259 gdb_cv_hpux_savestate
=yes
6262 gdb_cv_hpux_savestate
=no
6266 cat > conftest.
$ac_ext <<EOF
6267 #line 6268 "configure"
6268 #include "confdefs.h"
6269 #include <machine/save_state.h>
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 egrep "ss_wide" >/dev
/null
2>&1; then
6274 gdb_cv_hpux_sswide
=yes
6277 gdb_cv_hpux_sswide
=no
6281 if test $gdb_cv_hpux_savestate = yes
6283 cat >> confdefs.h
<<\EOF
6284 #define HAVE_STRUCT_SAVE_STATE_T 1
6288 if test $gdb_cv_hpux_sswide = yes
6290 cat >> confdefs.h
<<\EOF
6291 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
6295 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
6298 # If we are configured native on GNU/Linux, work around problems with
6300 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
6302 if test "${target}" = "${host}"; then
6305 cat >> confdefs.h
<<\EOF
6306 #define START_INFERIOR_TRAPS_EXPECTED 2
6309 cat >> confdefs.h
<<\EOF
6310 #define sys_quotactl 1
6315 cat >> confdefs.h
<<\EOF
6316 #define NEW_PROC_API 1
6320 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
6321 cat >> confdefs.h
<<\EOF
6322 #define NEW_PROC_API 1
6327 cat >> confdefs.h
<<\EOF
6328 #define NEW_PROC_API 1
6335 if test "$ac_cv_header_sys_procfs_h" = yes; then
6336 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6337 echo "configure:6338: checking for pstatus_t in sys/procfs.h" >&5
6338 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.
$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6346 #include <sys/procfs.h>
6351 if { (eval echo configure
:6352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6353 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
6355 echo "configure: failed program was:" >&5
6356 cat conftest.
$ac_ext >&5
6358 bfd_cv_have_sys_procfs_type_pstatus_t
=no
6364 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
6365 cat >> confdefs.h
<<\EOF
6366 #define HAVE_PSTATUS_T 1
6370 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
6372 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
6373 echo "configure:6374: checking for prrun_t in sys/procfs.h" >&5
6374 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 cat > conftest.
$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6382 #include <sys/procfs.h>
6387 if { (eval echo configure
:6388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6389 bfd_cv_have_sys_procfs_type_prrun_t
=yes
6391 echo "configure: failed program was:" >&5
6392 cat conftest.
$ac_ext >&5
6394 bfd_cv_have_sys_procfs_type_prrun_t
=no
6400 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
6401 cat >> confdefs.h
<<\EOF
6402 #define HAVE_PRRUN_T 1
6406 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
6408 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
6409 echo "configure:6410: checking for gregset_t in sys/procfs.h" >&5
6410 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6413 cat > conftest.
$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6418 #include <sys/procfs.h>
6423 if { (eval echo configure
:6424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6425 bfd_cv_have_sys_procfs_type_gregset_t
=yes
6427 echo "configure: failed program was:" >&5
6428 cat conftest.
$ac_ext >&5
6430 bfd_cv_have_sys_procfs_type_gregset_t
=no
6436 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
6437 cat >> confdefs.h
<<\EOF
6438 #define HAVE_GREGSET_T 1
6442 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
6444 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
6445 echo "configure:6446: checking for fpregset_t in sys/procfs.h" >&5
6446 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.
$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6454 #include <sys/procfs.h>
6459 if { (eval echo configure
:6460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6461 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
6463 echo "configure: failed program was:" >&5
6464 cat conftest.
$ac_ext >&5
6466 bfd_cv_have_sys_procfs_type_fpregset_t
=no
6472 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
6473 cat >> confdefs.h
<<\EOF
6474 #define HAVE_FPREGSET_T 1
6478 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
6480 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
6481 echo "configure:6482: checking for prgregset_t in sys/procfs.h" >&5
6482 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 cat > conftest.
$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6490 #include <sys/procfs.h>
6495 if { (eval echo configure
:6496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6497 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
6499 echo "configure: failed program was:" >&5
6500 cat conftest.
$ac_ext >&5
6502 bfd_cv_have_sys_procfs_type_prgregset_t
=no
6508 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
6509 cat >> confdefs.h
<<\EOF
6510 #define HAVE_PRGREGSET_T 1
6514 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
6516 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
6517 echo "configure:6518: checking for prfpregset_t in sys/procfs.h" >&5
6518 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6521 cat > conftest.
$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6526 #include <sys/procfs.h>
6531 if { (eval echo configure
:6532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6533 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
6535 echo "configure: failed program was:" >&5
6536 cat conftest.
$ac_ext >&5
6538 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
6544 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
6545 cat >> confdefs.h
<<\EOF
6546 #define HAVE_PRFPREGSET_T 1
6550 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
6552 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
6553 echo "configure:6554: checking for prgregset32_t in sys/procfs.h" >&5
6554 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 cat > conftest.
$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6562 #include <sys/procfs.h>
6567 if { (eval echo configure
:6568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6569 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
6571 echo "configure: failed program was:" >&5
6572 cat conftest.
$ac_ext >&5
6574 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
6580 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
6581 cat >> confdefs.h
<<\EOF
6582 #define HAVE_PRGREGSET32_T 1
6586 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
6588 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
6589 echo "configure:6590: checking for prfpregset32_t in sys/procfs.h" >&5
6590 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 cat > conftest.
$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6598 #include <sys/procfs.h>
6603 if { (eval echo configure
:6604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6605 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
6607 echo "configure: failed program was:" >&5
6608 cat conftest.
$ac_ext >&5
6610 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
6616 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
6617 cat >> confdefs.h
<<\EOF
6618 #define HAVE_PRFPREGSET32_T 1
6622 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
6624 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
6625 echo "configure:6626: checking for lwpid_t in sys/procfs.h" >&5
6626 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6629 cat > conftest.
$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6634 #include <sys/procfs.h>
6639 if { (eval echo configure
:6640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6641 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
6643 echo "configure: failed program was:" >&5
6644 cat conftest.
$ac_ext >&5
6646 bfd_cv_have_sys_procfs_type_lwpid_t
=no
6652 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6653 cat >> confdefs.h
<<\EOF
6654 #define HAVE_LWPID_T 1
6658 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
6660 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
6661 echo "configure:6662: checking for psaddr_t in sys/procfs.h" >&5
6662 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 cat > conftest.
$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6670 #include <sys/procfs.h>
6675 if { (eval echo configure
:6676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6677 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
6679 echo "configure: failed program was:" >&5
6680 cat conftest.
$ac_ext >&5
6682 bfd_cv_have_sys_procfs_type_psaddr_t
=no
6688 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
6689 cat >> confdefs.h
<<\EOF
6690 #define HAVE_PSADDR_T 1
6694 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
6696 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
6697 echo "configure:6698: checking for prsysent_t in sys/procfs.h" >&5
6698 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
6699 echo $ac_n "(cached) $ac_c" 1>&6
6701 cat > conftest.
$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6706 #include <sys/procfs.h>
6711 if { (eval echo configure
:6712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6713 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
6715 echo "configure: failed program was:" >&5
6716 cat conftest.
$ac_ext >&5
6718 bfd_cv_have_sys_procfs_type_prsysent_t
=no
6724 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
6725 cat >> confdefs.h
<<\EOF
6726 #define HAVE_PRSYSENT_T 1
6730 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
6732 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
6733 echo "configure:6734: checking for pr_sigset_t in sys/procfs.h" >&5
6734 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6737 cat > conftest.
$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6742 #include <sys/procfs.h>
6747 if { (eval echo configure
:6748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6749 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
6751 echo "configure: failed program was:" >&5
6752 cat conftest.
$ac_ext >&5
6754 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
6760 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
6761 cat >> confdefs.h
<<\EOF
6762 #define HAVE_PR_SIGSET_T 1
6766 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
6768 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
6769 echo "configure:6770: checking for pr_sigaction64_t in sys/procfs.h" >&5
6770 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 cat > conftest.
$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6778 #include <sys/procfs.h>
6780 pr_sigaction64_t avar
6783 if { (eval echo configure
:6784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6785 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
6787 echo "configure: failed program was:" >&5
6788 cat conftest.
$ac_ext >&5
6790 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
6796 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
6797 cat >> confdefs.h
<<\EOF
6798 #define HAVE_PR_SIGACTION64_T 1
6802 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
6804 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
6805 echo "configure:6806: checking for pr_siginfo64_t in sys/procfs.h" >&5
6806 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.
$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6814 #include <sys/procfs.h>
6819 if { (eval echo configure
:6820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6821 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
6823 echo "configure: failed program was:" >&5
6824 cat conftest.
$ac_ext >&5
6826 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
6832 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
6833 cat >> confdefs.h
<<\EOF
6834 #define HAVE_PR_SIGINFO64_T 1
6838 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
6844 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
6845 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
6846 echo "configure:6847: checking whether prfpregset_t type is broken" >&5
6847 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6850 if test "$cross_compiling" = yes; then
6851 gdb_cv_prfpregset_t_broken
=yes
6853 cat > conftest.
$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6856 #include <sys/procfs.h>
6859 if (sizeof (prfpregset_t) == sizeof (void *))
6864 if { (eval echo configure
:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6866 gdb_cv_prfpregset_t_broken
=no
6868 echo "configure: failed program was:" >&5
6869 cat conftest.
$ac_ext >&5
6871 gdb_cv_prfpregset_t_broken
=yes
6878 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
6879 if test $gdb_cv_prfpregset_t_broken = yes; then
6880 cat >> confdefs.h
<<\EOF
6881 #define PRFPREGSET_T_BROKEN 1
6888 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
6889 echo "configure:6890: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
6890 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 cat > conftest.
$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6897 #include <sys/types.h>
6898 #include <sys/procfs.h>
6903 dummy = ioctl(0, PIOCSET, &dummy);
6907 if { (eval echo configure
:6908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6909 gdb_cv_have_procfs_piocset
=yes
6911 echo "configure: failed program was:" >&5
6912 cat conftest.
$ac_ext >&5
6914 gdb_cv_have_procfs_piocset
=no
6919 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
6920 if test $gdb_cv_have_procfs_piocset = yes; then
6921 cat >> confdefs.h
<<\EOF
6922 #define HAVE_PROCFS_PIOCSET 1
6928 if test ${host} = ${target} ; then
6930 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
6931 echo "configure:6932: checking for member l_addr in struct link_map" >&5
6932 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6935 cat > conftest.
$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6940 struct link_map lm; (void) lm.l_addr;
6943 if { (eval echo configure
:6944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6945 gdb_cv_have_struct_link_map_with_l_members
=yes
6947 echo "configure: failed program was:" >&5
6948 cat conftest.
$ac_ext >&5
6950 gdb_cv_have_struct_link_map_with_l_members
=no
6955 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
6956 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
6957 cat >> confdefs.h
<<\EOF
6958 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
6964 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
6965 echo "configure:6966: checking for member lm_addr in struct link_map" >&5
6966 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6969 cat > conftest.
$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6972 #include <sys/types.h>
6975 struct link_map lm; (void) lm.lm_addr;
6978 if { (eval echo configure
:6979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6980 gdb_cv_have_struct_link_map_with_lm_members
=yes
6982 echo "configure: failed program was:" >&5
6983 cat conftest.
$ac_ext >&5
6985 gdb_cv_have_struct_link_map_with_lm_members
=no
6990 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
6991 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
6992 cat >> confdefs.h
<<\EOF
6993 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
6999 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
7000 echo "configure:7001: checking for member som_addr in struct so_map" >&5
7001 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7004 cat > conftest.
$ac_ext <<EOF
7005 #line 7006 "configure"
7006 #include "confdefs.h"
7007 #include <sys/types.h>
7013 struct so_map lm; (void) lm.som_addr;
7016 if { (eval echo configure
:7017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7018 gdb_cv_have_struct_so_map_with_som_members
=yes
7020 echo "configure: failed program was:" >&5
7021 cat conftest.
$ac_ext >&5
7023 gdb_cv_have_struct_so_map_with_som_members
=no
7028 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
7029 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
7030 cat >> confdefs.h
<<\EOF
7031 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
7037 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
7038 echo "configure:7039: checking for struct link_map32 in sys/link.h" >&5
7039 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
7040 echo $ac_n "(cached) $ac_c" 1>&6
7042 cat > conftest.
$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7046 #include <sys/link.h>
7048 struct link_map32 l;
7051 if { (eval echo configure
:7052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7053 gdb_cv_have_struct_link_map32
=yes
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 gdb_cv_have_struct_link_map32
=no
7063 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
7064 if test $gdb_cv_have_struct_link_map32 = yes; then
7065 cat >> confdefs.h
<<\EOF
7066 #define HAVE_STRUCT_LINK_MAP32 1
7069 cat >> confdefs.h
<<\EOF
7070 #define _SYSCALL32 1
7077 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
7078 echo "configure:7079: checking for long long support in compiler" >&5
7079 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
7080 echo $ac_n "(cached) $ac_c" 1>&6
7082 cat > conftest.
$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7088 extern long long foo;
7089 switch (foo & 2) { case 0: return 1; }
7093 if { (eval echo configure
:7094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7095 gdb_cv_c_long_long
=yes
7097 echo "configure: failed program was:" >&5
7098 cat conftest.
$ac_ext >&5
7100 gdb_cv_c_long_long
=no
7105 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
7106 if test $gdb_cv_c_long_long = yes; then
7107 cat >> confdefs.h
<<\EOF
7108 #define CC_HAS_LONG_LONG 1
7114 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
7115 echo "configure:7116: checking for long long support in printf" >&5
7116 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 if test "$cross_compiling" = yes; then
7120 gdb_cv_printf_has_long_long
=no
7122 cat > conftest.
$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7129 l = (l << 16) + 0x0123;
7130 l = (l << 16) + 0x4567;
7131 l = (l << 16) + 0x89ab;
7132 l = (l << 16) + 0xcdef;
7133 sprintf (buf, "0x%016llx", l);
7134 return (strcmp ("0x0123456789abcdef", buf));
7137 if { (eval echo configure
:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7139 gdb_cv_printf_has_long_long
=yes
7141 echo "configure: failed program was:" >&5
7142 cat conftest.
$ac_ext >&5
7144 gdb_cv_printf_has_long_long
=no
7151 if test $gdb_cv_printf_has_long_long = yes; then
7152 cat >> confdefs.h
<<\EOF
7153 #define PRINTF_HAS_LONG_LONG 1
7157 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
7160 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
7161 echo "configure:7162: checking for long double support in compiler" >&5
7162 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 cat > conftest.
$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7173 if { (eval echo configure
:7174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7175 ac_cv_c_long_double
=yes
7177 echo "configure: failed program was:" >&5
7178 cat conftest.
$ac_ext >&5
7180 ac_cv_c_long_double
=no
7185 echo "$ac_t""$ac_cv_c_long_double" 1>&6
7186 if test $ac_cv_c_long_double = yes; then
7187 cat >> confdefs.h
<<\EOF
7188 #define HAVE_LONG_DOUBLE 1
7194 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
7195 echo "configure:7196: checking for long double support in printf" >&5
7196 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
7197 echo $ac_n "(cached) $ac_c" 1>&6
7199 if test "$cross_compiling" = yes; then
7200 gdb_cv_printf_has_long_double
=no
7202 cat > conftest.
$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7208 long double f = 3.141592653;
7209 sprintf (buf, "%Lg", f);
7210 return (strncmp ("3.14159", buf, 7));
7213 if { (eval echo configure
:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7215 gdb_cv_printf_has_long_double
=yes
7217 echo "configure: failed program was:" >&5
7218 cat conftest.
$ac_ext >&5
7220 gdb_cv_printf_has_long_double
=no
7227 if test $gdb_cv_printf_has_long_double = yes; then
7228 cat >> confdefs.h
<<\EOF
7229 #define PRINTF_HAS_LONG_DOUBLE 1
7233 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
7236 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
7237 echo "configure:7238: checking for long double support in scanf" >&5
7238 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7241 if test "$cross_compiling" = yes; then
7242 gdb_cv_scanf_has_long_double
=no
7244 cat > conftest.
$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7249 char *buf = "3.141592653";
7251 sscanf (buf, "%Lg", &f);
7252 return !(f > 3.14159 && f < 3.14160);
7255 if { (eval echo configure
:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7257 gdb_cv_scanf_has_long_double
=yes
7259 echo "configure: failed program was:" >&5
7260 cat conftest.
$ac_ext >&5
7262 gdb_cv_scanf_has_long_double
=no
7269 if test $gdb_cv_scanf_has_long_double = yes; then
7270 cat >> confdefs.h
<<\EOF
7271 #define SCANF_HAS_LONG_DOUBLE 1
7275 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
7277 for ac_hdr
in unistd.h
7279 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7281 echo "configure:7282: checking for $ac_hdr" >&5
7282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7285 cat > conftest.
$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7290 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7291 { (eval echo configure
:7292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7292 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7293 if test -z "$ac_err"; then
7295 eval "ac_cv_header_$ac_safe=yes"
7298 echo "configure: failed program was:" >&5
7299 cat conftest.
$ac_ext >&5
7301 eval "ac_cv_header_$ac_safe=no"
7305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7306 echo "$ac_t""yes" 1>&6
7307 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7308 cat >> confdefs.h
<<EOF
7309 #define $ac_tr_hdr 1
7313 echo "$ac_t""no" 1>&6
7317 for ac_func
in getpagesize
7319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7320 echo "configure:7321: checking for $ac_func" >&5
7321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7322 echo $ac_n "(cached) $ac_c" 1>&6
7324 cat > conftest.
$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 /* System header to define __stub macros and hopefully few prototypes,
7328 which can conflict with char $ac_func(); below. */
7330 /* Override any gcc2 internal prototype to avoid an error. */
7331 /* We use char because int might match the return type of a gcc2
7332 builtin and then its argument prototype would still apply. */
7337 /* The GNU C library defines this for functions which it implements
7338 to always fail with ENOSYS. Some functions are actually named
7339 something starting with __ and the normal name is an alias. */
7340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7348 if { (eval echo configure
:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7350 eval "ac_cv_func_$ac_func=yes"
7352 echo "configure: failed program was:" >&5
7353 cat conftest.
$ac_ext >&5
7355 eval "ac_cv_func_$ac_func=no"
7360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7361 echo "$ac_t""yes" 1>&6
7362 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7363 cat >> confdefs.h
<<EOF
7364 #define $ac_tr_func 1
7368 echo "$ac_t""no" 1>&6
7372 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7373 echo "configure:7374: checking for working mmap" >&5
7374 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7377 if test "$cross_compiling" = yes; then
7378 ac_cv_func_mmap_fixed_mapped
=no
7380 cat > conftest.
$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7384 /* Thanks to Mike Haertel and Jim Avera for this test.
7385 Here is a matrix of mmap possibilities:
7386 mmap private not fixed
7387 mmap private fixed at somewhere currently unmapped
7388 mmap private fixed at somewhere already mapped
7389 mmap shared not fixed
7390 mmap shared fixed at somewhere currently unmapped
7391 mmap shared fixed at somewhere already mapped
7392 For private mappings, we should verify that changes cannot be read()
7393 back from the file, nor mmap's back from the file at a different
7394 address. (There have been systems where private was not correctly
7395 implemented like the infamous i386 svr4.0, and systems where the
7396 VM page cache was not coherent with the filesystem buffer cache
7397 like early versions of FreeBSD and possibly contemporary NetBSD.)
7398 For shared mappings, we should conversely verify that changes get
7399 propogated back to all the places they're supposed to be.
7401 Grep wants private fixed already mapped.
7402 The main things grep needs to know about mmap are:
7403 * does it exist and is it safe to write into the mmap'd area
7404 * how to use it (BSD variants) */
7405 #include <sys/types.h>
7407 #include <sys/mman.h>
7409 /* This mess was copied from the GNU getpagesize.h. */
7410 #ifndef HAVE_GETPAGESIZE
7411 # ifdef HAVE_UNISTD_H
7412 # include <unistd.h>
7415 /* Assume that all systems that can run configure have sys/param.h. */
7416 # ifndef HAVE_SYS_PARAM_H
7417 # define HAVE_SYS_PARAM_H 1
7420 # ifdef _SC_PAGESIZE
7421 # define getpagesize() sysconf(_SC_PAGESIZE)
7422 # else /* no _SC_PAGESIZE */
7423 # ifdef HAVE_SYS_PARAM_H
7424 # include <sys/param.h>
7425 # ifdef EXEC_PAGESIZE
7426 # define getpagesize() EXEC_PAGESIZE
7427 # else /* no EXEC_PAGESIZE */
7429 # define getpagesize() NBPG * CLSIZE
7432 # endif /* no CLSIZE */
7433 # else /* no NBPG */
7435 # define getpagesize() NBPC
7436 # else /* no NBPC */
7438 # define getpagesize() PAGESIZE
7439 # endif /* PAGESIZE */
7440 # endif /* no NBPC */
7441 # endif /* no NBPG */
7442 # endif /* no EXEC_PAGESIZE */
7443 # else /* no HAVE_SYS_PARAM_H */
7444 # define getpagesize() 8192 /* punt totally */
7445 # endif /* no HAVE_SYS_PARAM_H */
7446 # endif /* no _SC_PAGESIZE */
7448 #endif /* no HAVE_GETPAGESIZE */
7451 extern "C" { void *malloc(unsigned); }
7459 char *data, *data2, *data3;
7463 pagesize = getpagesize();
7466 * First, make a file with some known garbage in it.
7468 data = malloc(pagesize);
7471 for (i = 0; i < pagesize; ++i)
7472 *(data + i) = rand();
7474 fd = creat("conftestmmap", 0600);
7477 if (write(fd, data, pagesize) != pagesize)
7482 * Next, try to mmap the file at a fixed address which
7483 * already has something else allocated at it. If we can,
7484 * also make sure that we see the same garbage.
7486 fd = open("conftestmmap", O_RDWR);
7489 data2 = malloc(2 * pagesize);
7492 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7493 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7494 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7496 for (i = 0; i < pagesize; ++i)
7497 if (*(data + i) != *(data2 + i))
7501 * Finally, make sure that changes to the mapped area
7502 * do not percolate back to the file as seen by read().
7503 * (This is a bug on some variants of i386 svr4.0.)
7505 for (i = 0; i < pagesize; ++i)
7506 *(data2 + i) = *(data2 + i) + 1;
7507 data3 = malloc(pagesize);
7510 if (read(fd, data3, pagesize) != pagesize)
7512 for (i = 0; i < pagesize; ++i)
7513 if (*(data + i) != *(data3 + i))
7516 unlink("conftestmmap");
7521 if { (eval echo configure
:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7523 ac_cv_func_mmap_fixed_mapped
=yes
7525 echo "configure: failed program was:" >&5
7526 cat conftest.
$ac_ext >&5
7528 ac_cv_func_mmap_fixed_mapped
=no
7535 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7536 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7537 cat >> confdefs.h
<<\EOF
7546 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
7547 echo "configure:7548: checking for -bbigtoc option" >&5
7548 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7552 SAVE_LDFLAGS
=$LDFLAGS
7555 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7556 *) gdb_cv_bigtoc
=-bbigtoc ;;
7559 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7560 cat > conftest.
$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7568 if { (eval echo configure
:7569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7571 echo "configure: failed program was:" >&5
7572 cat conftest.
$ac_ext >&5
7580 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
7581 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
7587 if test ${build} = ${host} -a ${host} = ${target} ; then
7590 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
7591 echo "configure:7592: checking for HPUX/OSF thread support" >&5
7592 if test -f /usr
/include
/dce
/cma_config.h
; then
7593 if test "$GCC" = "yes" ; then
7594 echo "$ac_t""yes" 1>&6
7595 cat >> confdefs.h
<<\EOF
7596 #define HAVE_HPUX_THREAD_SUPPORT 1
7599 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
7600 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
7602 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
7605 echo "$ac_t""no" 1>&6
7609 # See if thread_db library is around for Solaris thread debugging.
7610 # Note that we must explicitly test for version 1 of the library
7611 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
7613 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
7614 echo "configure:7615: checking for Solaris thread debugging library" >&5
7615 if test -f /usr
/lib
/libthread_db.so
.1 ; then
7616 echo "$ac_t""yes" 1>&6
7617 cat >> confdefs.h
<<\EOF
7618 #define HAVE_THREAD_DB_LIB 1
7621 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
7622 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
7623 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7624 echo "configure:7625: checking for dlopen in -ldl" >&5
7625 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7629 ac_save_LIBS
="$LIBS"
7631 cat > conftest.
$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7643 if { (eval echo configure
:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7645 eval "ac_cv_lib_$ac_lib_var=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.
$ac_ext >&5
7650 eval "ac_cv_lib_$ac_lib_var=no"
7653 LIBS
="$ac_save_LIBS"
7656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7657 echo "$ac_t""yes" 1>&6
7658 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7660 cat >> confdefs.h
<<EOF
7661 #define $ac_tr_lib 1
7667 echo "$ac_t""no" 1>&6
7670 if test "$GCC" = "yes" ; then
7671 # The GNU linker requires the -export-dynamic option to make
7672 # all symbols visible in the dynamic symbol table.
7673 hold_ldflags
=$LDFLAGS
7674 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
7675 echo "configure:7676: checking for the ld -export-dynamic flag" >&5
7676 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
7677 cat > conftest.
$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7685 if { (eval echo configure
:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7689 echo "configure: failed program was:" >&5
7690 cat conftest.
$ac_ext >&5
7695 LDFLAGS
=$hold_ldflags
7696 echo "$ac_t""$found" 1>&6
7697 if test $found = yes; then
7698 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
7701 # Sun randomly tweaked the prototypes in <proc_service.h>
7703 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
7704 echo "configure:7705: checking if <proc_service.h> is old" >&5
7705 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
7706 echo $ac_n "(cached) $ac_c" 1>&6
7709 cat > conftest.
$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7713 #include <proc_service.h>
7715 (struct ps_prochandle*, psaddr_t, const void*, size_t);
7721 if { (eval echo configure
:7722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7723 gdb_cv_proc_service_is_old
=no
7725 echo "configure: failed program was:" >&5
7726 cat conftest.
$ac_ext >&5
7728 gdb_cv_proc_service_is_old
=yes
7734 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
7735 if test $gdb_cv_proc_service_is_old = yes; then
7736 cat >> confdefs.h
<<\EOF
7737 #define PROC_SERVICE_IS_OLD 1
7742 echo "$ac_t""no" 1>&6
7746 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
7747 echo "configure:7748: checking for AiX thread debugging library" >&5
7748 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
7749 echo $ac_n "(cached) $ac_c" 1>&6
7751 cat > conftest.
$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 #include <sys/pthdebug.h>
7756 #ifndef PTHDB_VERSION_3
7761 if { (eval echo configure
:7762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7763 gdb_cv_have_aix_thread_debug
=yes
7765 echo "configure: failed program was:" >&5
7766 cat conftest.
$ac_ext >&5
7768 gdb_cv_have_aix_thread_debug
=no
7773 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
7774 if test $gdb_cv_have_aix_thread_debug = yes; then
7775 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
7776 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
7777 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
7784 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
7785 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
7786 echo "configure:7787: checking whether <thread_db.h> has TD_NOTALLOC" >&5
7787 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 cat > conftest.
$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 #include <thread_db.h>
7795 int i = TD_NOTALLOC;
7798 if { (eval echo configure
:7799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7800 gdb_cv_thread_db_h_has_td_notalloc
=yes
7802 echo "configure: failed program was:" >&5
7803 cat conftest.
$ac_ext >&5
7805 gdb_cv_thread_db_h_has_td_notalloc
=no
7812 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
7814 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
7815 cat >> confdefs.h
<<\EOF
7816 #define THREAD_DB_HAS_TD_NOTALLOC 1
7821 if test $host = $target; then
7825 CFLAGS
="$CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
7826 cat > conftest.
$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7831 pread64 (0, NULL, 0, 0);
7834 if { (eval echo configure
:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7836 ENABLE_CFLAGS
="$ENABLE_CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
7837 cat >> confdefs.h
<<\EOF
7838 #define HAVE_PREAD64 1
7842 echo "configure: failed program was:" >&5
7843 cat conftest.
$ac_ext >&5
7852 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7853 if test "${enable_gdbcli+set}" = set; then
7854 enableval
="$enable_gdbcli"
7856 case "${enableval}" in
7857 yes) enable_gdbcli
=yes ;;
7858 "") enable_gdbcli
=yes ;;
7860 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
7863 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
7871 case ${enable_gdbcli} in
7873 if test -d "${srcdir}/cli" ; then
7874 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
7875 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
7876 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
7877 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
7878 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
7879 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
7880 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
7881 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
7882 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
7888 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7889 if test "${enable_gdbmi+set}" = set; then
7890 enableval
="$enable_gdbmi"
7892 case "${enable_gdbmi}" in
7894 "") enable_gdbmi
=yes ;;
7896 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
7904 case ${enable_gdbmi} in
7906 if test -d "${srcdir}/mi" ; then
7907 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
7908 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
7909 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
7910 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
7911 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
7912 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
7913 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
7914 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
7915 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
7920 # Configure UI_OUT by default (before 5.2 it can be disabled)
7921 # It must be configured if gdbmi is configured
7926 # Check whether --with-uiout or --without-uiout was given.
7927 if test "${with_uiout+set}" = set; then
7928 withval
="$with_uiout"
7929 case "${withval}" in
7930 yes) want_uiout
=true
;;
7931 no
) if test $enable_gdbmi = yes; then
7932 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
7936 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
7942 if test $want_uiout = true
; then
7943 UIOUT_CFLAGS
="-DUI_OUT=1"
7946 # Check whether --enable-tui or --disable-tui was given.
7947 if test "${enable_tui+set}" = set; then
7948 enableval
="$enable_tui"
7950 case "${enable_tui}" in
7952 "") enable_tui
=yes ;;
7954 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
7960 case ${enable_tui} in
7962 if test -d "${srcdir}/tui" ; then
7963 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
7964 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
7965 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
7966 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
7967 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
7968 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
7969 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
7970 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
7971 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
7976 # Check whether --enable-netrom or --disable-netrom was given.
7977 if test "${enable_netrom+set}" = set; then
7978 enableval
="$enable_netrom"
7979 case "${enableval}" in
7980 yes) enable_netrom
=yes ;;
7981 no
) enable_netrom
=no
;;
7982 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
7987 if test "${enable_netrom}" = "yes"; then
7988 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
7989 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
7993 # NOTE: Don't add -Wall or -Wunused, they both include
7994 # -Wunused-parameter which reports bogus warnings.
7995 # NOTE: If you add to this list, remember to update
7996 # gdb/doc/gdbint.texinfo.
7997 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7998 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7999 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8000 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8001 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8002 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8003 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8004 # -Woverloaded-virtual -Winline -Werror"
8005 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8006 if test "${enable_build_warnings+set}" = set; then
8007 enableval
="$enable_build_warnings"
8008 case "${enableval}" in
8010 no
) build_warnings
="-w";;
8011 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8012 build_warnings
="${build_warnings} ${t}";;
8013 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8014 build_warnings
="${t} ${build_warnings}";;
8015 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8017 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8018 echo "Setting compiler warning flags = $build_warnings" 6>&1
8021 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8022 if test "${enable_gdb_build_warnings+set}" = set; then
8023 enableval
="$enable_gdb_build_warnings"
8024 case "${enableval}" in
8026 no
) build_warnings
="-w";;
8027 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8028 build_warnings
="${build_warnings} ${t}";;
8029 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8030 build_warnings
="${t} ${build_warnings}";;
8031 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8033 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8034 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8039 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8041 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8042 echo "configure:8043: checking compiler warning flags" >&5
8043 # Separate out the -Werror flag as some files just cannot be
8044 # compiled with it enabled.
8045 for w
in ${build_warnings}; do
8047 -Werr*) WERROR_CFLAGS
=-Werror ;;
8048 *) # Check that GCC accepts it
8049 saved_CFLAGS
="$CFLAGS"
8051 cat > conftest.
$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8059 if { (eval echo configure
:8060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8061 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8063 echo "configure: failed program was:" >&5
8064 cat conftest.
$ac_ext >&5
8067 CFLAGS
="$saved_CFLAGS"
8070 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8080 # Check whether --with-mmalloc or --without-mmalloc was given.
8081 if test "${with_mmalloc+set}" = set; then
8082 withval
="$with_mmalloc"
8083 case "${withval}" in
8084 yes) want_mmalloc
=true
;;
8085 no
) want_mmalloc
=false
;;
8086 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8092 if test x
$want_mmalloc = xtrue
; then
8093 cat >> confdefs.h
<<\EOF
8094 #define USE_MMALLOC 1
8097 cat >> confdefs.h
<<\EOF
8098 #define MMCHECK_FORCE 1
8101 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8102 MMALLOC
='../mmalloc/libmmalloc.a'
8105 # Check whether --with-included-regex or --without-included-regex was given.
8106 if test "${with_included_regex+set}" = set; then
8107 withval
="$with_included_regex"
8108 case "${withval}" in
8109 yes) want_included_regex
=true
;;
8110 no
) want_included_regex
=false
;;
8111 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
8114 want_included_regex
=true
8117 if test $want_included_regex = false
; then
8118 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
8119 echo "configure:8120: checking for GNU regex" >&5
8120 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 cat > conftest.
$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8126 #include <gnu-versions.h>
8127 #include <sys/types.h>
8130 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
8131 #error No valid GNU regex.
8136 if { (eval echo configure
:8137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8138 gdb_cv_have_gnu_regex
=yes
8140 echo "configure: failed program was:" >&5
8141 cat conftest.
$ac_ext >&5
8143 gdb_cv_have_gnu_regex
=no
8148 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
8149 if test $gdb_cv_have_gnu_regex = no
; then
8150 want_included_regex
=true
8154 if test x
${want_included_regex} = xtrue
; then
8156 cat >> confdefs.h
<<\EOF
8157 #define USE_INCLUDED_REGEX 1
8163 # In the Cygwin environment, we need some additional flags.
8164 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8165 echo "configure:8166: checking for cygwin" >&5
8166 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8167 echo $ac_n "(cached) $ac_c" 1>&6
8169 cat > conftest.
$ac_ext <<EOF
8170 #line 8171 "configure"
8171 #include "confdefs.h"
8173 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 egrep "lose" >/dev
/null
2>&1; then
8180 gdb_cv_os_cygwin
=yes
8189 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8192 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8194 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8195 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8200 if test x
$gdb_host = xgo32
; then
8203 if test x
$gdb_cv_os_cygwin = xyes
; then
8204 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
8207 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
8208 echo "configure:8209: checking for tgetent in -lncurses" >&5
8209 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
8210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8213 ac_save_LIBS
="$LIBS"
8214 LIBS
="-lncurses $LIBS"
8215 cat > conftest.
$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8227 if { (eval echo configure
:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8229 eval "ac_cv_lib_$ac_lib_var=yes"
8231 echo "configure: failed program was:" >&5
8232 cat conftest.
$ac_ext >&5
8234 eval "ac_cv_lib_$ac_lib_var=no"
8237 LIBS
="$ac_save_LIBS"
8240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8244 echo "$ac_t""no" 1>&6
8245 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
8246 echo "configure:8247: checking for tgetent in -lHcurses" >&5
8247 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
8248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8251 ac_save_LIBS
="$LIBS"
8252 LIBS
="-lHcurses $LIBS"
8253 cat > conftest.
$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8265 if { (eval echo configure
:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8267 eval "ac_cv_lib_$ac_lib_var=yes"
8269 echo "configure: failed program was:" >&5
8270 cat conftest.
$ac_ext >&5
8272 eval "ac_cv_lib_$ac_lib_var=no"
8275 LIBS
="$ac_save_LIBS"
8278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8282 echo "$ac_t""no" 1>&6
8283 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
8284 echo "configure:8285: checking for tgetent in -ltermlib" >&5
8285 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
8286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8287 echo $ac_n "(cached) $ac_c" 1>&6
8289 ac_save_LIBS
="$LIBS"
8290 LIBS
="-ltermlib $LIBS"
8291 cat > conftest.
$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8303 if { (eval echo configure
:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8305 eval "ac_cv_lib_$ac_lib_var=yes"
8307 echo "configure: failed program was:" >&5
8308 cat conftest.
$ac_ext >&5
8310 eval "ac_cv_lib_$ac_lib_var=no"
8313 LIBS
="$ac_save_LIBS"
8316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8317 echo "$ac_t""yes" 1>&6
8320 echo "$ac_t""no" 1>&6
8321 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
8322 echo "configure:8323: checking for tgetent in -ltermcap" >&5
8323 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
8324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8327 ac_save_LIBS
="$LIBS"
8328 LIBS
="-ltermcap $LIBS"
8329 cat > conftest.
$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8332 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8341 if { (eval echo configure
:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8343 eval "ac_cv_lib_$ac_lib_var=yes"
8345 echo "configure: failed program was:" >&5
8346 cat conftest.
$ac_ext >&5
8348 eval "ac_cv_lib_$ac_lib_var=no"
8351 LIBS
="$ac_save_LIBS"
8354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8355 echo "$ac_t""yes" 1>&6
8358 echo "$ac_t""no" 1>&6
8359 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
8360 echo "configure:8361: checking for tgetent in -lcurses" >&5
8361 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
8362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8363 echo $ac_n "(cached) $ac_c" 1>&6
8365 ac_save_LIBS
="$LIBS"
8366 LIBS
="-lcurses $LIBS"
8367 cat > conftest.
$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8379 if { (eval echo configure
:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8381 eval "ac_cv_lib_$ac_lib_var=yes"
8383 echo "configure: failed program was:" >&5
8384 cat conftest.
$ac_ext >&5
8386 eval "ac_cv_lib_$ac_lib_var=no"
8389 LIBS
="$ac_save_LIBS"
8392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8393 echo "$ac_t""yes" 1>&6
8396 echo "$ac_t""no" 1>&6
8397 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
8398 echo "configure:8399: checking for tgetent in -lterminfo" >&5
8399 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
8400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8403 ac_save_LIBS
="$LIBS"
8404 LIBS
="-lterminfo $LIBS"
8405 cat > conftest.
$ac_ext <<EOF
8406 #line 8407 "configure"
8407 #include "confdefs.h"
8408 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8417 if { (eval echo configure
:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8419 eval "ac_cv_lib_$ac_lib_var=yes"
8421 echo "configure: failed program was:" >&5
8422 cat conftest.
$ac_ext >&5
8424 eval "ac_cv_lib_$ac_lib_var=no"
8427 LIBS
="$ac_save_LIBS"
8430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8434 echo "$ac_t""no" 1>&6
8448 if test "x$TERM_LIB" = x
8450 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
8456 # libreadline needs libuser32.a in a cygwin environment
8458 if test x
$gdb_cv_os_cygwin = xyes
; then
8459 WIN32LIBS
="-luser32"
8461 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8467 LIBGUI
="../libgui/src/libgui.a"
8468 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8472 # Check whether --with-cpu or --without-cpu was given.
8473 if test "${with_cpu+set}" = set; then
8476 powerpc-
* | powerpcle-
* )
8477 ## It would be nice to keep this table in sync with the one in
8479 case "${with_cpu}" in
8480 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
8482 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
8484 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
8485 ## These are all RS6000 variants, as far as GDB is concerned.
8495 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
8501 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
8504 cat >> confdefs.h
<<EOF
8505 #define TARGET_CPU_DEFAULT "${with_cpu}"
8513 # Check whether --enable-gdbtk or --disable-gdbtk was given.
8514 if test "${enable_gdbtk+set}" = set; then
8515 enableval
="$enable_gdbtk"
8516 case "${enableval}" in
8520 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8523 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8531 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
8535 # Default is on for everything but go32 and Cygwin
8540 if test -d "${srcdir}/gdbtk" ; then
8556 if test "${enable_gdbtk}" = "yes"; then
8558 # Gdbtk must have an absolute path to srcdir in order to run
8559 # properly when not installed.
8567 # Ok, lets find the tcl configuration
8568 # First, look for one uninstalled.
8569 # the alternative search directory is invoked by --with-tclconfig
8572 if test x
"${no_tcl}" = x
; then
8573 # we reset no_tcl in case something fails here
8575 # Check whether --with-tclconfig or --without-tclconfig was given.
8576 if test "${with_tclconfig+set}" = set; then
8577 withval
="$with_tclconfig"
8578 with_tclconfig
=${withval}
8581 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8582 echo "configure:8583: checking for Tcl configuration" >&5
8583 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8588 # First check to see if --with-tclconfig was specified.
8589 if test x
"${with_tclconfig}" != x
; then
8590 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8591 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8593 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8597 # then check for a private Tcl installation
8598 if test x
"${ac_cv_c_tclconfig}" = x
; then
8601 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8603 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8605 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8606 if test -f "$i/${configdir}/tclConfig.sh" ; then
8607 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8612 # check in a few common install locations
8613 if test x
"${ac_cv_c_tclconfig}" = x
; then
8614 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8615 if test -f "$i/tclConfig.sh" ; then
8616 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8621 # check in a few other private locations
8622 if test x
"${ac_cv_c_tclconfig}" = x
; then
8625 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8626 if test -f "$i/${configdir}/tclConfig.sh" ; then
8627 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8635 if test x
"${ac_cv_c_tclconfig}" = x
; then
8636 TCLCONFIG
="# no Tcl configs found"
8637 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8640 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8641 echo "$ac_t""found $TCLCONFIG" 1>&6
8645 if test -z "${no_tcl}"; then
8675 # Ok, lets find the tk configuration
8676 # First, look for one uninstalled.
8677 # the alternative search directory is invoked by --with-tkconfig
8680 if test x
"${no_tk}" = x
; then
8681 # we reset no_tk in case something fails here
8683 # Check whether --with-tkconfig or --without-tkconfig was given.
8684 if test "${with_tkconfig+set}" = set; then
8685 withval
="$with_tkconfig"
8686 with_tkconfig
=${withval}
8689 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8690 echo "configure:8691: checking for Tk configuration" >&5
8691 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8696 # First check to see if --with-tkconfig was specified.
8697 if test x
"${with_tkconfig}" != x
; then
8698 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8699 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8701 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8705 # then check for a private Tk library
8706 if test x
"${ac_cv_c_tkconfig}" = x
; then
8709 `ls -dr ../tk[4-9]* 2>/dev/null` \
8711 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8713 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8714 if test -f "$i/${configdir}/tkConfig.sh" ; then
8715 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8720 # check in a few common install locations
8721 if test x
"${ac_cv_c_tkconfig}" = x
; then
8722 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8723 if test -f "$i/tkConfig.sh" ; then
8724 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8729 # check in a few other private locations
8730 if test x
"${ac_cv_c_tkconfig}" = x
; then
8733 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8734 if test -f "$i/${configdir}/tkConfig.sh" ; then
8735 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8743 if test x
"${ac_cv_c_tkconfig}" = x
; then
8744 TKCONFIG
="# no Tk configs found"
8745 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
8748 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
8749 echo "$ac_t""found $TKCONFIG" 1>&6
8755 # now look for Tcl library stuff
8766 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
8768 # If $no_tk is nonempty, then we can't do Tk, and there is no
8769 # point to doing Tcl.
8770 if test -z "${no_tk}"; then
8772 if test -f "$TKCONFIG" ; then
8790 # Ok, lets find the tcl source trees so we can use the headers
8791 # Warning: transition of version 9 to 10 will break this algorithm
8792 # because 10 sorts before 9. We also look for just tcl. We have to
8793 # be careful that we don't match stuff like tclX by accident.
8794 # the alternative search directory is involked by --with-tclinclude
8798 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
8799 echo "configure:8800: checking for Tcl private headers. dir=${configdir}" >&5
8800 # Check whether --with-tclinclude or --without-tclinclude was given.
8801 if test "${with_tclinclude+set}" = set; then
8802 withval
="$with_tclinclude"
8803 with_tclinclude
=${withval}
8806 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
8807 echo $ac_n "(cached) $ac_c" 1>&6
8810 # first check to see if --with-tclinclude was specified
8811 if test x
"${with_tclinclude}" != x
; then
8812 if test -f ${with_tclinclude}/tclInt.h
; then
8813 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
8814 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
8815 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
8817 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
8821 # next check if it came with Tcl configuration file
8822 if test x
"${ac_cv_c_tclconfig}" = x
; then
8823 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
8824 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
8828 # next check in private source directory
8830 # since ls returns lowest version numbers first, reverse its output
8831 if test x
"${ac_cv_c_tclh}" = x
; then
8834 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
8835 ${srcdir}/..
/..
/tcl \
8836 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
8837 ${srcdir}/..
/..
/..
/tcl \
8838 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
8839 if test -f $i/generic
/tclInt.h
; then
8840 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8845 # finally check in a few common install locations
8847 # since ls returns lowest version numbers first, reverse its output
8848 if test x
"${ac_cv_c_tclh}" = x
; then
8850 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
8851 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
8852 /usr
/local
/src
/tcl \
8853 /usr
/local
/lib
/tcl \
8854 ${prefix}/include
; do
8855 if test -f $i/generic
/tclInt.h
; then
8856 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8861 # see if one is installed
8862 if test x
"${ac_cv_c_tclh}" = x
; then
8863 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
8864 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
8865 echo "configure:8866: checking for tclInt.h" >&5
8866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8869 cat > conftest.
$ac_ext <<EOF
8870 #line 8871 "configure"
8871 #include "confdefs.h"
8874 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8875 { (eval echo configure
:8876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8876 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8877 if test -z "$ac_err"; then
8879 eval "ac_cv_header_$ac_safe=yes"
8882 echo "configure: failed program was:" >&5
8883 cat conftest.
$ac_ext >&5
8885 eval "ac_cv_header_$ac_safe=no"
8889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8890 echo "$ac_t""yes" 1>&6
8891 ac_cv_c_tclh
=installed
8893 echo "$ac_t""no" 1>&6
8901 if test x
"${ac_cv_c_tclh}" = x
; then
8902 TCLHDIR
="# no Tcl private headers found"
8903 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
8905 if test x
"${ac_cv_c_tclh}" != x
; then
8907 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
8908 echo "$ac_t""is installed" 1>&6
8911 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
8912 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
8913 TCLHDIR
="-I${ac_cv_c_tclh}"
8921 # Ok, lets find the tk source trees so we can use the headers
8922 # If the directory (presumably symlink) named "tk" exists, use that one
8923 # in preference to any others. Same logic is used when choosing library
8924 # and again with Tcl. The search order is the best place to look first, then in
8925 # decreasing significance. The loop breaks if the trigger file is found.
8926 # Note the gross little conversion here of srcdir by cd'ing to the found
8927 # directory. This converts the path from a relative to an absolute, so
8928 # recursive cache variables for the path will work right. We check all
8929 # the possible paths in one loop rather than many seperate loops to speed
8931 # the alternative search directory is involked by --with-tkinclude
8934 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
8935 echo "configure:8936: checking for Tk private headers" >&5
8936 # Check whether --with-tkinclude or --without-tkinclude was given.
8937 if test "${with_tkinclude+set}" = set; then
8938 withval
="$with_tkinclude"
8939 with_tkinclude
=${withval}
8942 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8946 # first check to see if --with-tkinclude was specified
8947 if test x
"${with_tkinclude}" != x
; then
8948 if test -f ${with_tkinclude}/tk.h
; then
8949 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
8950 elif test -f ${with_tkinclude}/generic
/tk.h
; then
8951 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
8953 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
8957 # next check if it came with Tk configuration file
8958 if test x
"${ac_cv_c_tkconfig}" = x
; then
8959 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
8960 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
8964 # next check in private source directory
8966 # since ls returns lowest version numbers first, reverse its output
8967 if test x
"${ac_cv_c_tkh}" = x
; then
8970 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
8971 ${srcdir}/..
/..
/tk \
8972 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
8973 ${srcdir}/..
/..
/..
/tk \
8974 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
8975 if test -f $i/generic
/tk.h
; then
8976 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
8981 # finally check in a few common install locations
8983 # since ls returns lowest version numbers first, reverse its output
8984 if test x
"${ac_cv_c_tkh}" = x
; then
8986 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
8987 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
8990 ${prefix}/include
; do
8991 if test -f $i/generic
/tk.h
; then
8992 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
8997 # see if one is installed
8998 if test x
"${ac_cv_c_tkh}" = x
; then
8999 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9000 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9001 echo "configure:9002: checking for tk.h" >&5
9002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9005 cat > conftest.
$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9010 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9011 { (eval echo configure
:9012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9012 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9013 if test -z "$ac_err"; then
9015 eval "ac_cv_header_$ac_safe=yes"
9018 echo "configure: failed program was:" >&5
9019 cat conftest.
$ac_ext >&5
9021 eval "ac_cv_header_$ac_safe=no"
9025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9026 echo "$ac_t""yes" 1>&6
9027 ac_cv_c_tkh
=installed
9029 echo "$ac_t""no" 1>&6
9037 if test x
"${ac_cv_c_tkh}" != x
; then
9039 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9040 echo "$ac_t""is installed" 1>&6
9043 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9044 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9045 TKHDIR
="-I${ac_cv_c_tkh}"
9048 TKHDIR
="# no Tk directory found"
9049 echo "configure: warning: Can't find Tk private headers" 1>&2
9056 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9057 echo "configure:9058: checking for Itcl private headers. srcdir=${srcdir}" >&5
9058 if test x
"${ac_cv_c_itclh}" = x
; then
9059 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9060 if test -f $i/generic
/itcl.h
; then
9061 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9066 if test x
"${ac_cv_c_itclh}" = x
; then
9067 ITCLHDIR
="# no Itcl private headers found"
9068 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9070 if test x
"${ac_cv_c_itclh}" != x
; then
9071 ITCLHDIR
="-I${ac_cv_c_itclh}"
9073 # should always be here
9074 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9079 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9080 echo "configure:9081: checking for Itk private headers. srcdir=${srcdir}" >&5
9081 if test x
"${ac_cv_c_itkh}" = x
; then
9082 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9083 if test -f $i/generic
/itk.h
; then
9084 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9089 if test x
"${ac_cv_c_itkh}" = x
; then
9090 ITKHDIR
="# no Itk private headers found"
9091 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9093 if test x
"${ac_cv_c_itkh}" != x
; then
9094 ITKHDIR
="-I${ac_cv_c_itkh}"
9096 # should always be here
9097 # ITKLIB="../itcl/itk/unix/libitk.a"
9103 # now look for Tk library stuff
9114 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9116 # now look for Itcl library stuff
9120 # Ok, lets find the itcl configuration
9121 # First, look for one uninstalled.
9122 # the alternative search directory is invoked by --with-itclconfig
9125 if test x
"${no_itcl}" = x
; then
9126 # we reset no_itcl in case something fails here
9128 # Check whether --with-itclconfig or --without-itclconfig was given.
9129 if test "${with_itclconfig+set}" = set; then
9130 withval
="$with_itclconfig"
9131 with_itclconfig
=${withval}
9134 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9135 echo "configure:9136: checking for Itcl configuration" >&5
9136 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9137 echo $ac_n "(cached) $ac_c" 1>&6
9141 # First check to see if --with-itclconfig was specified.
9142 if test x
"${with_itclconfig}" != x
; then
9143 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9144 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9146 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9150 # then check for a private Itcl library
9151 if test x
"${ac_cv_c_itclconfig}" = x
; then
9154 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9156 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9158 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9159 if test -f "$i/itclConfig.sh" ; then
9160 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9165 # check in a few common install locations
9166 if test x
"${ac_cv_c_itclconfig}" = x
; then
9167 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9168 if test -f "$i/itclConfig.sh" ; then
9169 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9174 # check in a few other private locations
9175 if test x
"${ac_cv_c_itclconfig}" = x
; then
9177 ${srcdir}/..
/itcl
/itcl \
9178 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9179 if test -f "$i/itclConfig.sh" ; then
9180 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9188 if test x
"${ac_cv_c_itclconfig}" = x
; then
9189 ITCLCONFIG
="# no Itcl configs found"
9190 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9193 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9194 echo "$ac_t""found $ITCLCONFIG" 1>&6
9198 if test -z "${no_itcl}"; then
9200 if test -f "$ITCLCONFIG" ; then
9215 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9216 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9220 # now look for Itk library stuff
9223 # Ok, lets find the itk configuration
9224 # First, look for one uninstalled.
9225 # the alternative search directory is invoked by --with-itkconfig
9228 if test x
"${no_itk}" = x
; then
9229 # we reset no_itk in case something fails here
9231 # Check whether --with-itkconfig or --without-itkconfig was given.
9232 if test "${with_itkconfig+set}" = set; then
9233 withval
="$with_itkconfig"
9234 with_itkconfig
=${withval}
9237 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9238 echo "configure:9239: checking for Itk configuration" >&5
9239 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9244 # First check to see if --with-itkconfig was specified.
9245 if test x
"${with_itkconfig}" != x
; then
9246 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9247 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9249 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9253 # then check for a private Itk library
9254 if test x
"${ac_cv_c_itkconfig}" = x
; then
9257 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9259 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9261 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9262 if test -f "$i/itkConfig.sh" ; then
9263 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9268 # check in a few common install locations
9269 if test x
"${ac_cv_c_itkconfig}" = x
; then
9270 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9271 if test -f "$i/itkConfig.sh" ; then
9272 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9277 # check in a few other private locations
9278 if test x
"${ac_cv_c_itkconfig}" = x
; then
9280 ${srcdir}/..
/itcl
/itk \
9281 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9282 if test -f "$i/itkConfig.sh" ; then
9283 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9291 if test x
"${ac_cv_c_itkconfig}" = x
; then
9292 ITKCONFIG
="# no Itk configs found"
9293 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9296 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9297 echo "$ac_t""found $ITKCONFIG" 1>&6
9302 if test -z "${no_itcl}"; then
9304 if test -f "$ITKCONFIG" ; then
9319 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9320 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9323 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9324 # Tcl/Tk 8.1 require -fwritable strings. I don't
9325 # know whether 8.2 will or not, but I bet it will.
9326 # I don't have to worry about 7.x since we don't support it.
9328 if test "$GCC" = "yes"; then
9329 if test "$TCL_VERSION" != "8.0" ; then
9330 GDBTK_CFLAGS
="-fwritable-strings"
9334 # Include some libraries that Tcl and Tk want.
9335 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9336 # Yes, the ordering seems wrong here. But it isn't.
9337 # TK_LIBS is the list of libraries that need to be linked
9338 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9339 # were in LIBS then any link tests after this point would
9340 # try to include things like `$(LIBGUI)', which wouldn't work.
9341 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9343 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9344 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9345 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9346 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9347 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9348 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9349 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9350 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9352 if test x
$gdb_cv_os_cygwin = xyes
; then
9353 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9354 WIN32LDAPP
="-Wl,--subsystem,console"
9355 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9360 SUBDIRS
="${SUBDIRS} gdbtk"
9361 configdirs
="${configdirs} gdbtk"
9377 # If we find X, set shell vars x_includes and x_libraries to the
9378 # paths, otherwise set no_x=yes.
9379 # Uses ac_ vars as temps to allow command line to override cache and checks.
9380 # --without-x overrides everything else, but does not touch the cache.
9381 echo $ac_n "checking for X""... $ac_c" 1>&6
9382 echo "configure:9383: checking for X" >&5
9384 # Check whether --with-x or --without-x was given.
9385 if test "${with_x+set}" = set; then
9390 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9391 if test "x$with_x" = xno
; then
9392 # The user explicitly disabled X.
9395 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9396 # Both variables are already set.
9399 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9400 echo $ac_n "(cached) $ac_c" 1>&6
9402 # One or both of the vars are not set, and there is no cached value.
9403 ac_x_includes
=NO ac_x_libraries
=NO
9405 if mkdir conftestdir
; then
9407 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9408 cat > Imakefile
<<'EOF'
9410 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9412 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9414 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9415 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9416 for ac_extension
in a so sl
; do
9417 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9418 test -f $ac_im_libdir/libX11.
$ac_extension; then
9419 ac_im_usrlibdir
=$ac_im_libdir; break
9422 # Screen out bogus values from the imake configuration. They are
9423 # bogus both because they are the default anyway, and because
9424 # using them would break gcc on systems where it needs fixed includes.
9425 case "$ac_im_incroot" in
9427 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9429 case "$ac_im_usrlibdir" in
9431 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9438 if test "$ac_x_includes" = NO
; then
9439 # Guess where to find include files, by looking for this one X11 .h file.
9440 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9442 # First, try using that file with no special directory specified.
9443 cat > conftest.
$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9446 #include <$x_direct_test_include>
9448 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9449 { (eval echo configure
:9450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9450 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9451 if test -z "$ac_err"; then
9453 # We can compile using X headers with no special include directory.
9457 echo "configure: failed program was:" >&5
9458 cat conftest.
$ac_ext >&5
9460 # Look for the header file in a standard set of common directories.
9461 # Check X11 before X11Rn because it is often a symlink to the current release.
9464 /usr
/X11R
6/include \
9465 /usr
/X11R
5/include \
9466 /usr
/X11R
4/include \
9469 /usr
/include
/X11R6 \
9470 /usr
/include
/X11R5 \
9471 /usr
/include
/X11R4 \
9473 /usr
/local
/X11
/include \
9474 /usr
/local
/X11R
6/include \
9475 /usr
/local
/X11R
5/include \
9476 /usr
/local
/X11R
4/include \
9478 /usr
/local
/include
/X11 \
9479 /usr
/local
/include
/X11R6 \
9480 /usr
/local
/include
/X11R5 \
9481 /usr
/local
/include
/X11R4 \
9485 /usr
/XFree86
/include
/X11 \
9488 /usr
/local
/include \
9489 /usr
/unsupported
/include \
9490 /usr
/athena
/include \
9491 /usr
/local
/x11r
5/include \
9492 /usr
/lpp
/Xamples
/include \
9494 /usr
/openwin
/include \
9495 /usr
/openwin
/share
/include \
9498 if test -r "$ac_dir/$x_direct_test_include"; then
9499 ac_x_includes
=$ac_dir
9505 fi # $ac_x_includes = NO
9507 if test "$ac_x_libraries" = NO
; then
9508 # Check for the libraries.
9510 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9511 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9513 # See if we find them without any special options.
9514 # Don't add to $LIBS permanently.
9515 ac_save_LIBS
="$LIBS"
9516 LIBS
="-l$x_direct_test_library $LIBS"
9517 cat > conftest.
$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9522 ${x_direct_test_function}()
9525 if { (eval echo configure
:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9527 LIBS
="$ac_save_LIBS"
9528 # We can link X programs with no special library path.
9531 echo "configure: failed program was:" >&5
9532 cat conftest.
$ac_ext >&5
9534 LIBS
="$ac_save_LIBS"
9535 # First see if replacing the include by lib works.
9536 # Check X11 before X11Rn because it is often a symlink to the current release.
9537 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9548 /usr
/local
/X11
/lib \
9549 /usr
/local
/X11R
6/lib \
9550 /usr
/local
/X11R
5/lib \
9551 /usr
/local
/X11R
4/lib \
9553 /usr
/local
/lib
/X11 \
9554 /usr
/local
/lib
/X11R6 \
9555 /usr
/local
/lib
/X11R5 \
9556 /usr
/local
/lib
/X11R4 \
9560 /usr
/XFree86
/lib
/X11 \
9564 /usr
/unsupported
/lib \
9566 /usr
/local
/x11r
5/lib \
9567 /usr
/lpp
/Xamples
/lib \
9571 /usr
/openwin
/share
/lib \
9574 for ac_extension
in a so sl
; do
9575 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9576 ac_x_libraries
=$ac_dir
9583 fi # $ac_x_libraries = NO
9585 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9586 # Didn't find X anywhere. Cache the known absence of X.
9587 ac_cv_have_x
="have_x=no"
9589 # Record where we found X for the cache.
9590 ac_cv_have_x
="have_x=yes \
9591 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9595 eval "$ac_cv_have_x"
9598 if test "$have_x" != yes; then
9599 echo "$ac_t""$have_x" 1>&6
9602 # If each of the values was on the command line, it overrides each guess.
9603 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9604 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9605 # Update the cache value to reflect the command line values.
9606 ac_cv_have_x
="have_x=yes \
9607 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9608 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9613 # Unlike the sim directory, whether a simulator is linked is controlled by
9614 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9615 # This code just checks for a few cases where we'd like to ignore those
9616 # definitions, even when they're present in the '.mt' file. These cases
9617 # are when --disable-sim is specified, or if the simulator directory is
9618 # not part of the source tree.
9620 # Check whether --enable-sim or --disable-sim was given.
9621 if test "${enable_sim+set}" = set; then
9622 enableval
="$enable_sim"
9623 echo "enable_sim = $enable_sim";
9624 echo "enableval = ${enableval}";
9625 case "${enableval}" in
9626 yes) ignore_sim
=false
;;
9627 no
) ignore_sim
=true
;;
9628 *) ignore_sim
=false
;;
9635 if test ! -d "${srcdir}/../sim"; then
9639 if test "${ignore_sim}" = "true"; then
9641 IGNORE_SIM_OBS
="SIM_OBS="
9645 cat >> confdefs.h
<<\EOF
9665 # Begin stuff to support --enable-shared
9666 # Check whether --enable-shared or --disable-shared was given.
9667 if test "${enable_shared+set}" = set; then
9668 enableval
="$enable_shared"
9669 case "${enableval}" in
9678 # If we have shared libraries, try to set rpath reasonably.
9679 if test "${shared}" = "true"; then
9682 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
9684 *-*-irix5* |
*-*-irix6*)
9685 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9689 *-*-linux* |
*-pc-linux-gnu*)
9690 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9693 HLDFLAGS
='-R $(libdir)'
9696 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
9701 # On SunOS, if the linker supports the -rpath option, use it to
9702 # prevent ../bfd and ../opcodes from being included in the run time
9706 echo 'main () { }' > conftest.c
9707 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
9708 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
9710 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
9712 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
9714 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
9716 elif test "${shared}" = "true"; then
9717 HLDFLAGS
='-Wl,-rpath=$(libdir)'
9719 HLDFLAGS
='-Wl,-rpath='
9721 rm -f conftest.t conftest.c conftest
9726 # End stuff to support --enable-shared
9728 # target_subdir is used by the testsuite to find the target libraries.
9730 if test "${host}" != "${target}"; then
9731 target_subdir
="${target_alias}/"
9736 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9737 if test ! -f ${host_makefile_frag}; then
9738 # When building a native debuger the .mh file containing things
9739 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9740 # since it no longer contains anything useful.
9741 if test "${target}" = "${host}"; then
9742 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9744 host_makefile_frag
=/dev
/null
9747 frags
="$frags $host_makefile_frag"
9749 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9750 if test ! -f ${target_makefile_frag}; then
9751 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9753 frags
="$frags $target_makefile_frag"
9760 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9761 ' ${host_makefile_frag}`
9763 targetfile
=`sed -n '
9764 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9765 ' ${target_makefile_frag}`
9767 GDB_MULTI_ARCH
=`sed -n '
9768 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9769 ' ${target_makefile_frag}`
9771 if test "${target}" = "${host}"; then
9772 # We pick this up from the host configuration file (.mh) because we
9773 # do not have a native configuration Makefile fragment.
9774 nativefile
=`sed -n '
9775 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9776 ' ${host_makefile_frag}`
9780 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9781 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9782 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
9783 # will be the default.
9784 if test x
"${GDB_MULTI_ARCH}" = x
; then
9785 case "${gdb_multi_arch}" in
9786 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
9787 no
) GDB_MULTI_ARCH
=0 ;;
9788 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
9791 if test x
"${GDB_MULTI_ARCH}" != x
; then
9792 cat >> confdefs.h
<<EOF
9793 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
9797 # Warn the user when they use an old practice
9798 case "${GDB_MULTI_ARCH}" in
9800 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
9801 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
9802 GDB_MULTI_ARCH_PURE
)
9803 if test x
"${targetfile}" != x
; then
9804 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
9807 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
9810 if test "${enable_multi_ice}" = "yes"; then
9811 SUBDIRS
="${SUBDIRS} multi-ice"
9814 # ``gdbserver'' can only be built in a native configuration.
9815 if test x
"${target}" = x
"${host}"; then
9816 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
9817 echo "configure:9818: checking whether gdbserver is supported on this host" >&5
9818 if test x
"${build_gdbserver}" = xyes
; then
9819 configdirs
="${configdirs} gdbserver"
9820 SUBDIRS
="${SUBDIRS} gdbserver"
9821 echo "$ac_t""yes" 1>&6
9823 echo "$ac_t""no" 1>&6
9829 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
9830 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
9838 if test "${hostfile}" != ""; then
9840 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
9841 files
="${files} ${GDB_XM_FILE}"
9842 links
="${links} xm.h"
9843 cat >> confdefs.h
<<EOF
9844 #define GDB_XM_FILE ${GDB_XM_FILE}
9852 if test "${targetfile}" != ""; then
9854 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
9855 files
="${files} ${GDB_TM_FILE}"
9856 links
="${links} tm.h"
9857 cat >> confdefs.h
<<EOF
9858 #define GDB_TM_FILE ${GDB_TM_FILE}
9866 if test "${nativefile}" != ""; then
9868 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
9869 files
="${files} ${GDB_NM_FILE}"
9870 links
="${links} nm.h"
9871 cat >> confdefs.h
<<EOF
9872 #define GDB_NM_FILE ${GDB_NM_FILE}
9880 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
9881 echo "configure:9882: checking for Cygwin environment" >&5
9882 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9885 cat > conftest.
$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9892 #define __CYGWIN__ __CYGWIN32__
9897 if { (eval echo configure
:9898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9901 echo "configure: failed program was:" >&5
9902 cat conftest.
$ac_ext >&5
9910 echo "$ac_t""$ac_cv_cygwin" 1>&6
9912 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
9913 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
9914 echo "configure:9915: checking for mingw32 environment" >&5
9915 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9918 cat > conftest.
$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9926 if { (eval echo configure
:9927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9930 echo "configure: failed program was:" >&5
9931 cat conftest.
$ac_ext >&5
9939 echo "$ac_t""$ac_cv_mingw32" 1>&6
9941 test "$ac_cv_mingw32" = yes && MINGW32
=yes
9944 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
9945 echo "configure:9946: checking for executable suffix" >&5
9946 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
9947 echo $ac_n "(cached) $ac_c" 1>&6
9949 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
9953 echo 'int main () { return 0; }' > conftest.
$ac_ext
9955 if { (eval echo configure
:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
9956 for file in conftest.
*; do
9958 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
9959 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
9963 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
9966 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
9971 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
9972 echo "$ac_t""${ac_cv_exeext}" 1>&6
9977 cat >> confdefs.h
<<\EOF
9978 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
9984 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9985 if test "${with_libiconv_prefix+set}" = set; then
9986 withval
="$with_libiconv_prefix"
9988 for dir
in `echo "$withval" | tr : ' '`; do
9989 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
9990 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
9996 echo $ac_n "checking for iconv""... $ac_c" 1>&6
9997 echo "configure:9998: checking for iconv" >&5
9998 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10002 am_cv_func_iconv
="no, consider installing GNU libiconv"
10004 cat > conftest.
$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 #include <stdlib.h>
10010 iconv_t cd = iconv_open("","");
10011 iconv(cd,NULL,NULL,NULL,NULL);
10015 if { (eval echo configure
:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10017 am_cv_func_iconv
=yes
10019 echo "configure: failed program was:" >&5
10020 cat conftest.
$ac_ext >&5
10023 if test "$am_cv_func_iconv" != yes; then
10024 am_save_LIBS
="$LIBS"
10025 LIBS
="$LIBS -liconv"
10026 cat > conftest.
$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 #include <stdlib.h>
10032 iconv_t cd = iconv_open("","");
10033 iconv(cd,NULL,NULL,NULL,NULL);
10037 if { (eval echo configure
:10038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10039 am_cv_lib_iconv
=yes
10040 am_cv_func_iconv
=yes
10042 echo "configure: failed program was:" >&5
10043 cat conftest.
$ac_ext >&5
10046 LIBS
="$am_save_LIBS"
10051 echo "$ac_t""$am_cv_func_iconv" 1>&6
10052 if test "$am_cv_func_iconv" = yes; then
10053 cat >> confdefs.h
<<\EOF
10054 #define HAVE_ICONV 1
10057 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10058 echo "configure:10059: checking for iconv declaration" >&5
10059 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10063 cat > conftest.
$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10067 #include <stdlib.h>
10073 #if defined(__STDC__) || defined(__cplusplus)
10074 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10083 if { (eval echo configure
:10084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10085 am_cv_proto_iconv_arg1
=""
10087 echo "configure: failed program was:" >&5
10088 cat conftest.
$ac_ext >&5
10090 am_cv_proto_iconv_arg1
="const"
10093 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);"
10096 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10097 echo "$ac_t""${ac_t:-
10098 }$am_cv_proto_iconv" 1>&6
10099 cat >> confdefs.h
<<EOF
10100 #define ICONV_CONST $am_cv_proto_iconv_arg1
10105 if test "$am_cv_lib_iconv" = yes; then
10111 subdirs
="$configdirs"
10114 cat > confcache
<<\EOF
10115 # This file is a shell script that caches the results of configure
10116 # tests run on this system so they can be shared between configure
10117 # scripts and configure runs. It is not useful on other systems.
10118 # If it contains results you don't want to keep, you may remove or edit it.
10120 # By default, configure uses ./config.cache as the cache file,
10121 # creating it if it does not exist already. You can give configure
10122 # the --cache-file=FILE option to use a different cache file; that is
10123 # what configure does when it calls configure scripts in
10124 # subdirectories, so they share the cache.
10125 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10126 # config.status only pays attention to the cache file if you give it the
10127 # --recheck option to rerun configure.
10130 # The following way of writing the cache mishandles newlines in values,
10131 # but we know of no workaround that is simple, portable, and efficient.
10132 # So, don't put newlines in cache variables' values.
10133 # Ultrix sh set writes to stderr and can't be redirected directly,
10134 # and sets the high bit in the cache file unless we assign to the vars.
10136 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10138 # `set' does not quote correctly, so add quotes (double-quote substitution
10139 # turns \\\\ into \\, and sed turns \\ into \).
10141 -e "s/'/'\\\\''/g" \
10142 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10145 # `set' quotes correctly as required by POSIX, so do not add quotes.
10146 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10149 if cmp -s $cache_file confcache
; then
10152 if test -w $cache_file; then
10153 echo "updating cache $cache_file"
10154 cat confcache
> $cache_file
10156 echo "not updating unwritable cache $cache_file"
10161 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10163 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10164 # Let make expand exec_prefix.
10165 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10167 # Any assignment to VPATH causes Sun make to only execute
10168 # the first set of double-colon rules, so remove it if not needed.
10169 # If there is a colon in the path, we need to keep it.
10170 if test "x$srcdir" = x.
; then
10171 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10174 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10176 DEFS
=-DHAVE_CONFIG_H
10178 # Without the "./", some shells look in PATH for config.status.
10179 : ${CONFIG_STATUS=./config.status}
10181 echo creating
$CONFIG_STATUS
10182 rm -f $CONFIG_STATUS
10183 cat > $CONFIG_STATUS <<EOF
10185 # Generated automatically by configure.
10186 # Run this file to recreate the current configuration.
10187 # This directory was configured as follows,
10188 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10190 # $0 $ac_configure_args
10192 # Compiler output produced by configure, useful for debugging
10193 # configure, is in ./config.log if it exists.
10195 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10198 case "\$ac_option" in
10199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10200 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10201 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10202 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10203 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10205 -help | --help | --hel | --he | --h)
10206 echo "\$ac_cs_usage"; exit 0 ;;
10207 *) echo "\$ac_cs_usage"; exit 1 ;;
10211 ac_given_srcdir=$srcdir
10212 ac_given_INSTALL="$INSTALL"
10214 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10216 cat >> $CONFIG_STATUS <<EOF
10218 # Protect against being on the right side of a sed subst in config.status.
10219 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10220 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10224 s%@CFLAGS@%$CFLAGS%g
10225 s%@CPPFLAGS@%$CPPFLAGS%g
10226 s%@CXXFLAGS@%$CXXFLAGS%g
10227 s%@FFLAGS@%$FFLAGS%g
10229 s%@LDFLAGS@%$LDFLAGS%g
10231 s%@exec_prefix@%$exec_prefix%g
10232 s%@prefix@%$prefix%g
10233 s%@program_transform_name@%$program_transform_name%g
10234 s%@bindir@%$bindir%g
10235 s%@sbindir@%$sbindir%g
10236 s%@libexecdir@%$libexecdir%g
10237 s%@datadir@%$datadir%g
10238 s%@sysconfdir@%$sysconfdir%g
10239 s%@sharedstatedir@%$sharedstatedir%g
10240 s%@localstatedir@%$localstatedir%g
10241 s%@libdir@%$libdir%g
10242 s%@includedir@%$includedir%g
10243 s%@oldincludedir@%$oldincludedir%g
10244 s%@infodir@%$infodir%g
10245 s%@mandir@%$mandir%g
10246 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10247 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10252 s%@host_alias@%$host_alias%g
10253 s%@host_cpu@%$host_cpu%g
10254 s%@host_vendor@%$host_vendor%g
10255 s%@host_os@%$host_os%g
10256 s%@target@%$target%g
10257 s%@target_alias@%$target_alias%g
10258 s%@target_cpu@%$target_cpu%g
10259 s%@target_vendor@%$target_vendor%g
10260 s%@target_os@%$target_os%g
10262 s%@build_alias@%$build_alias%g
10263 s%@build_cpu@%$build_cpu%g
10264 s%@build_vendor@%$build_vendor%g
10265 s%@build_os@%$build_os%g
10266 s%@RANLIB@%$RANLIB%g
10267 s%@SET_MAKE@%$SET_MAKE%g
10268 s%@ALLOCA@%$ALLOCA%g
10269 s%@USE_NLS@%$USE_NLS%g
10270 s%@MSGFMT@%$MSGFMT%g
10271 s%@GMSGFMT@%$GMSGFMT%g
10272 s%@XGETTEXT@%$XGETTEXT%g
10273 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10274 s%@CATALOGS@%$CATALOGS%g
10275 s%@CATOBJEXT@%$CATOBJEXT%g
10276 s%@DATADIRNAME@%$DATADIRNAME%g
10277 s%@GMOFILES@%$GMOFILES%g
10278 s%@INSTOBJEXT@%$INSTOBJEXT%g
10279 s%@INTLDEPS@%$INTLDEPS%g
10280 s%@INTLLIBS@%$INTLLIBS%g
10281 s%@INTLOBJS@%$INTLOBJS%g
10282 s%@POFILES@%$POFILES%g
10284 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10286 s%@GT_YES@%$GT_YES%g
10287 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10290 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10291 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10292 s%@INSTALL_DATA@%$INSTALL_DATA%g
10296 s%@DLLTOOL@%$DLLTOOL%g
10297 s%@WINDRES@%$WINDRES%g
10299 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10300 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
10301 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10302 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10303 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10304 s%@MMALLOC@%$MMALLOC%g
10306 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10307 s%@TERM_LIB@%$TERM_LIB%g
10308 s%@WIN32LIBS@%$WIN32LIBS%g
10309 s%@LIBGUI@%$LIBGUI%g
10310 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10311 s%@WIN32LDAPP@%$WIN32LDAPP%g
10312 s%@TCL_VERSION@%$TCL_VERSION%g
10313 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10314 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10315 s%@TCL_CC@%$TCL_CC%g
10316 s%@TCL_DEFS@%$TCL_DEFS%g
10317 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10318 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10319 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10320 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10321 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10322 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10323 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10324 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10325 s%@TCL_RANLIB@%$TCL_RANLIB%g
10326 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10327 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10328 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10329 s%@TK_VERSION@%$TK_VERSION%g
10330 s%@TK_DEFS@%$TK_DEFS%g
10331 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10332 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10333 s%@TK_XLIBSW@%$TK_XLIBSW%g
10334 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10335 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10336 s%@TCLHDIR@%$TCLHDIR%g
10337 s%@TKHDIR@%$TKHDIR%g
10338 s%@ITCLHDIR@%$ITCLHDIR%g
10339 s%@ITKHDIR@%$ITKHDIR%g
10340 s%@ITCL_VERSION@%$ITCL_VERSION%g
10341 s%@ITCL_DEFS@%$ITCL_DEFS%g
10342 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10343 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10344 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10345 s%@ITK_VERSION@%$ITK_VERSION%g
10346 s%@ITK_DEFS@%$ITK_DEFS%g
10347 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10348 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10349 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10350 s%@X_CFLAGS@%$X_CFLAGS%g
10351 s%@X_LDFLAGS@%$X_LDFLAGS%g
10352 s%@X_LIBS@%$X_LIBS%g
10353 s%@TCL_DEPS@%$TCL_DEPS%g
10354 s%@TK_DEPS@%$TK_DEPS%g
10355 s%@ITCLLIB@%$ITCLLIB%g
10356 s%@ITCL_DEPS@%$ITCL_DEPS%g
10357 s%@ITKLIB@%$ITKLIB%g
10358 s%@ITK_DEPS@%$ITK_DEPS%g
10359 s%@GDBTKLIBS@%$GDBTKLIBS%g
10360 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10361 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10362 s%@IGNORE_SIM@%$IGNORE_SIM%g
10363 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10364 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10365 s%@CONFIG_OBS@%$CONFIG_OBS%g
10366 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10367 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10368 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10369 s%@CONFIG_INITS@%$CONFIG_INITS%g
10370 s%@CONFIG_ALL@%$CONFIG_ALL%g
10371 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10372 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10373 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10374 s%@HLDFLAGS@%$HLDFLAGS%g
10375 s%@HLDENV@%$HLDENV%g
10376 s%@target_subdir@%$target_subdir%g
10377 /@host_makefile_frag@/r $host_makefile_frag
10378 s%@host_makefile_frag@%%g
10379 /@target_makefile_frag@/r $target_makefile_frag
10380 s%@target_makefile_frag@%%g
10382 s%@SUBDIRS@%$SUBDIRS%g
10386 s%@EXEEXT@%$EXEEXT%g
10387 s%@LIBICONV@%$LIBICONV%g
10388 s%@subdirs@%$subdirs%g
10393 cat >> $CONFIG_STATUS <<\EOF
10395 # Split the substitutions into bite-sized pieces for seds with
10396 # small command number limits, like on Digital OSF/1 and HP-UX.
10397 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10398 ac_file
=1 # Number of current file.
10399 ac_beg
=1 # First line for current file.
10400 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10403 while $ac_more_lines; do
10404 if test $ac_beg -gt 1; then
10405 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10407 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10409 if test ! -s conftest.s
$ac_file; then
10410 ac_more_lines
=false
10411 rm -f conftest.s
$ac_file
10413 if test -z "$ac_sed_cmds"; then
10414 ac_sed_cmds
="sed -f conftest.s$ac_file"
10416 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10418 ac_file
=`expr $ac_file + 1`
10420 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10423 if test -z "$ac_sed_cmds"; then
10428 cat >> $CONFIG_STATUS <<EOF
10430 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10432 cat >> $CONFIG_STATUS <<\EOF
10433 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10436 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10437 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10438 *) ac_file_in
="${ac_file}.in" ;;
10441 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10443 # Remove last slash and all that follows it. Not all systems have dirname.
10444 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10446 # The file is in a subdirectory.
10447 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10448 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10449 # A "../" for each directory in $ac_dir_suffix.
10450 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10452 ac_dir_suffix
= ac_dots
=
10455 case "$ac_given_srcdir" in
10457 if test -z "$ac_dots"; then top_srcdir
=.
10458 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10459 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10460 *) # Relative path.
10461 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10462 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10465 case "$ac_given_INSTALL" in
10466 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10467 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10470 echo creating
"$ac_file"
10472 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10474 *Makefile
*) ac_comsub
="1i\\
10475 # $configure_input" ;;
10479 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10481 s%@configure_input@%$configure_input%g
10482 s%@srcdir@%$srcdir%g
10483 s%@top_srcdir@%$top_srcdir%g
10484 s%@INSTALL@%$INSTALL%g
10485 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10489 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10490 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10492 # ac_d sets the value in "#define NAME VALUE" lines.
10493 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10494 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10497 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10498 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10499 ac_uB
='\([ ]\)%\1#\2define\3'
10502 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10503 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10504 ac_eB
='$%\1#\2define\3'
10508 if test "${CONFIG_HEADERS+set}" != set; then
10510 cat >> $CONFIG_STATUS <<EOF
10511 CONFIG_HEADERS="config.h:config.in"
10513 cat >> $CONFIG_STATUS <<\EOF
10515 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10518 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10519 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10520 *) ac_file_in
="${ac_file}.in" ;;
10523 echo creating
$ac_file
10525 rm -f conftest.frag conftest.
in conftest.out
10526 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10527 cat $ac_file_inputs > conftest.
in
10531 # Transform confdefs.h into a sed script conftest.vals that substitutes
10532 # the proper values into config.h.in to produce config.h. And first:
10533 # Protect against being on the right side of a sed subst in config.status.
10534 # Protect against being in an unquoted here document in config.status.
10535 rm -f conftest.vals
10536 cat > conftest.hdr
<<\EOF
10539 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10543 sed -n -f conftest.hdr confdefs.h > conftest.vals
10546 # This sed command replaces #undef with comments. This is necessary, for
10547 # example, in the case of _POSIX_SOURCE, which is predefined and required
10548 # on some systems where configure will not decide to define it.
10549 cat >> conftest.vals <<\EOF
10550 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10553 # Break up conftest.vals because some shells have a limit on
10554 # the size of here documents, and old seds have small limits too.
10556 rm -f conftest.tail
10559 ac_lines=`grep -c . conftest.vals
`
10560 # grep -c gives empty output for an empty file on some AIX systems.
10561 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10562 # Write a limited-size here document to conftest.frag.
10563 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10564 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10566 sed -f conftest.frag conftest.in > conftest.out
10568 mv conftest.out conftest.in
10569 ' >> $CONFIG_STATUS
10570 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10571 rm -f conftest.vals
10572 mv conftest.tail conftest.vals
10574 rm -f conftest.vals
10576 cat >> $CONFIG_STATUS <<\EOF
10577 rm -f conftest.frag conftest.h
10578 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10579 cat conftest.in >> conftest.h
10581 if cmp -s $ac_file conftest.h 2>/dev/null; then
10582 echo "$ac_file is unchanged"
10585 # Remove last slash and all that follows it. Not all systems have dirname.
10586 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10587 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10588 # The file is in a subdirectory.
10589 test ! -d "$ac_dir" && mkdir "$ac_dir"
10592 mv conftest.h $ac_file
10598 cat >> $CONFIG_STATUS <<EOF
10599 ac_sources="$files"
10603 cat >> $CONFIG_STATUS <<\EOF
10604 srcdir=$ac_given_srcdir
10605 while test -n "$ac_sources"; do
10606 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10607 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10609 echo "linking $srcdir/$ac_source to $ac_dest"
10611 if test ! -r $srcdir/$ac_source; then
10612 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10616 # Make relative symlinks.
10617 # Remove last slash and all that follows it. Not all systems have dirname.
10618 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10619 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10620 # The dest file is in a subdirectory.
10621 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10622 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10623 # A "../" for each directory in $ac_dest_dir_suffix.
10624 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10626 ac_dest_dir_suffix= ac_dots=
10630 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10631 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10634 # Make a symlink if possible; otherwise try a hard link.
10635 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10636 ln $srcdir/$ac_source $ac_dest; then :
10638 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10642 cat >> $CONFIG_STATUS <<EOF
10644 gdb_host_cpu=$gdb_host_cpu
10645 gdb_target_cpu=$gdb_target_cpu
10646 nativefile=$nativefile
10649 cat >> $CONFIG_STATUS <<\EOF
10651 if test "${nativefile}" = ""; then
10653 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10654 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10655 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10657 mv -f Makefile.tem Makefile
10660 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10661 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10662 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10663 mv -f Makefile.tmp Makefile
10666 case x$CONFIG_HEADERS in
10667 xconfig.h:config.in)
10673 chmod +x $CONFIG_STATUS
10674 rm -fr confdefs* $ac_clean_files
10675 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10677 if test "$no_recursion" != yes; then
10679 # Remove --cache-file and --srcdir arguments so they do not pile up.
10680 ac_sub_configure_args=
10682 for ac_arg in $ac_configure_args; do
10683 if test -n "$ac_prev"; then
10688 -cache-file | --cache-file | --cache-fil | --cache-fi \
10689 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10690 ac_prev=cache_file ;;
10691 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10692 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10698 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10702 for ac_config_dir in $configdirs; do
10704 # Do not complain, so a configure script can configure whichever
10705 # parts of a large source tree are present.
10706 if test ! -d $srcdir/$ac_config_dir; then
10710 echo configuring in $ac_config_dir
10715 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10717 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10725 # A "../" for each directory in /$ac_config_dir.
10726 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10729 .) # No --srcdir option. We are building in place.
10730 ac_sub_srcdir=$srcdir ;;
10731 /*) # Absolute path.
10732 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10733 *) # Relative path.
10734 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10737 # Check for guested configure; otherwise get Cygnus style configure.
10738 if test -f $ac_sub_srcdir/configure; then
10739 ac_sub_configure=$ac_sub_srcdir/configure
10740 elif test -f $ac_sub_srcdir/configure.in; then
10741 ac_sub_configure=$ac_configure
10743 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10747 # The recursion is here.
10748 if test -n "$ac_sub_configure"; then
10750 # Make the cache file name correct relative to the subdirectory.
10751 case "$cache_file" in
10752 /*) ac_sub_cache_file=$cache_file ;;
10753 *) # Relative path.
10754 ac_sub_cache_file="$ac_dots$cache_file" ;;
10756 case "$ac_given_INSTALL" in
10757 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10758 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10761 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10762 # The eval makes quoting arguments work.
10763 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10766 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }