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 --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
24 --disable-gdbcli disable command-line interface (CLI)"
26 --disable-gdbmi disable machine-interface (MI)"
28 --enable-tui enable full-screen terminal user interface (TUI)"
30 --enable-gdbtk enable gdbtk graphical user interface (GUI)"
32 --with-libunwind Use libunwind frame unwinding support"
34 --enable-profiling enable profiling of GDB"
36 --without-included-regex don't use included regex; this is the default
37 on systems with version 2 of the GNU C library
38 (use with caution on other system)"
40 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
42 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
44 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
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-multi-ice build the multi-ice-gdb-server"
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 cat >> confdefs.h
<<\EOF
834 #define _GNU_SOURCE 1
838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
839 echo "configure:840: checking how to run the C preprocessor" >&5
840 # On Suns, sometimes $CPP names a directory.
841 if test -n "$CPP" && test -d "$CPP"; then
844 if test -z "$CPP"; then
845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 # This must be in double quotes, not single quotes, because CPP may get
849 # substituted into the Makefile and "${CC-cc}" will confuse make.
851 # On the NeXT, cc -E runs the code through the compiler's parser,
852 # not just through cpp.
853 cat > conftest.
$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure
:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
866 echo "configure: failed program was:" >&5
867 cat conftest.
$ac_ext >&5
869 CPP
="${CC-cc} -E -traditional-cpp"
870 cat > conftest.
$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure
:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
883 echo "configure: failed program was:" >&5
884 cat conftest.
$ac_ext >&5
886 CPP
="${CC-cc} -nologo -E"
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure
:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
910 ac_cv_prog_CPP
="$CPP"
912 CPP
="$ac_cv_prog_CPP"
914 ac_cv_prog_CPP
="$CPP"
916 echo "$ac_t""$CPP" 1>&6
918 echo $ac_n "checking for AIX""... $ac_c" 1>&6
919 echo "configure:920: checking for AIX" >&5
920 cat > conftest.
$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
929 egrep "yes" >/dev
/null
2>&1; then
931 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
932 #define _ALL_SOURCE 1
937 echo "$ac_t""no" 1>&6
942 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943 echo "configure:944: checking for POSIXized ISC" >&5
944 if test -d /etc
/conf
/kconfig.d
&&
945 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
947 echo "$ac_t""yes" 1>&6
948 ISC
=yes # If later tests want to check for ISC.
949 cat >> confdefs.h
<<\EOF
950 #define _POSIX_SOURCE 1
953 if test "$GCC" = yes; then
959 echo "$ac_t""no" 1>&6
966 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
967 echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
968 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 am_cv_prog_cc_stdc
=no
973 # Don't try gcc -ansi; that turns off useful extensions and
974 # breaks some systems' header files.
976 # Ultrix and OSF/1 -std1
977 # HP-UX 10.20 and later -Ae
978 # HP-UX older versions -Aa -D_HPUX_SOURCE
979 # SVR4 -Xc -D__EXTENSIONS__
980 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
982 CC
="$ac_save_CC $ac_arg"
983 cat > conftest.
$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
988 #include <sys/types.h>
989 #include <sys/stat.h>
990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
991 struct buf { int x; };
992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
993 static char *e (p, i)
999 static char *f (char * (*g) (char **, int), char **p, ...)
1004 s = g (p, va_arg (v,int));
1008 int test (int i, double x);
1009 struct s1 {int (*f) (int a);};
1010 struct s2 {int (*f) (double a);};
1011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1021 if { (eval echo configure
:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 am_cv_prog_cc_stdc
="$ac_arg"; break
1025 echo "configure: failed program was:" >&5
1026 cat conftest.
$ac_ext >&5
1034 if test -z "$am_cv_prog_cc_stdc"; then
1035 echo "$ac_t""none needed" 1>&6
1037 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1039 case "x$am_cv_prog_cc_stdc" in
1041 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1046 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1047 if test -f $ac_dir/install-sh
; then
1049 ac_install_sh
="$ac_aux_dir/install-sh -c"
1051 elif test -f $ac_dir/install.sh
; then
1053 ac_install_sh
="$ac_aux_dir/install.sh -c"
1057 if test -z "$ac_aux_dir"; then
1058 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1060 ac_config_guess
=$ac_aux_dir/config.guess
1061 ac_config_sub
=$ac_aux_dir/config.sub
1062 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1065 # Do some error checking and defaulting for the host and target type.
1067 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1070 # 1. You are not allowed to specify --host, --target, and nonopt at the
1072 # 2. Host defaults to nonopt.
1073 # 3. If nonopt is not specified, then host defaults to the current host,
1074 # as determined by config.guess.
1075 # 4. Target and build default to nonopt.
1076 # 5. If nonopt is not specified, then target and build default to host.
1078 # The aliases save the names the user supplied, while $host etc.
1079 # will get canonicalized.
1080 case $host---$target---$nonopt in
1081 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1082 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1086 # Make sure we can run config.sub.
1087 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1088 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1091 echo $ac_n "checking host system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking host system type" >&5
1095 case "$host_alias" in
1099 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1100 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1102 *) host_alias
=$nonopt ;;
1106 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1107 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$host" 1>&6
1112 echo $ac_n "checking target system type""... $ac_c" 1>&6
1113 echo "configure:1114: checking target system type" >&5
1115 target_alias
=$target
1116 case "$target_alias" in
1119 NONE
) target_alias
=$host_alias ;;
1120 *) target_alias
=$nonopt ;;
1124 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1125 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128 echo "$ac_t""$target" 1>&6
1130 echo $ac_n "checking build system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking build system type" >&5
1134 case "$build_alias" in
1137 NONE
) build_alias
=$host_alias ;;
1138 *) build_alias
=$nonopt ;;
1142 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1143 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1144 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1145 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 echo "$ac_t""$build" 1>&6
1148 test "$host_alias" != "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1151 program_prefix
=${target_alias}-
1154 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1155 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1156 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1157 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1158 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1160 if test $host != $build; then
1161 ac_tool_prefix
=${host_alias}-
1166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1178 for ac_dir
in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir
=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1188 RANLIB
="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1196 if test -z "$ac_cv_prog_RANLIB"; then
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib
; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB
="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1221 RANLIB
="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1235 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
1237 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftestmake
<<\EOF
1243 @
echo 'ac_maketemp="${MAKE}"'
1245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1246 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1247 if test -n "$ac_maketemp"; then
1248 eval ac_cv_prog_make_
${ac_make}_set
=yes
1250 eval ac_cv_prog_make_
${ac_make}_set
=no
1254 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1258 echo "$ac_t""no" 1>&6
1259 SET_MAKE
="MAKE=${MAKE-make}"
1262 # Extract the first word of "ranlib", so it can be a program name with args.
1263 set dummy ranlib
; ac_word
=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1274 for ac_dir
in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir
=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_RANLIB
="ranlib"
1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1285 RANLIB
="$ac_cv_prog_RANLIB"
1286 if test -n "$RANLIB"; then
1287 echo "$ac_t""$RANLIB" 1>&6
1289 echo "$ac_t""no" 1>&6
1292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1293 echo "configure:1294: checking for ANSI C header files" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1310 ac_cv_header_stdc
=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1316 ac_cv_header_stdc
=no
1320 if test $ac_cv_header_stdc = yes; then
1321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "memchr" >/dev
/null
2>&1; then
1332 ac_cv_header_stdc
=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "free" >/dev
/null
2>&1; then
1350 ac_cv_header_stdc
=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1358 if test "$cross_compiling" = yes; then
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1368 int main () { int i; for (i = 0; i < 256; i++)
1369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1373 if { (eval echo configure
:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 ac_cv_header_stdc
=no
1388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1389 if test $ac_cv_header_stdc = yes; then
1390 cat >> confdefs.h
<<\EOF
1391 #define STDC_HEADERS 1
1396 echo $ac_n "checking for working const""... $ac_c" 1>&6
1397 echo "configure:1398: checking for working const" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 /* Ultrix mips cc rejects this. */
1408 typedef int charset[2]; const charset x;
1409 /* SunOS 4.1.1 cc rejects this. */
1410 char const *const *ccp;
1412 /* NEC SVR4.0.2 mips cc rejects this. */
1413 struct point {int x, y;};
1414 static struct point const zero = {0,0};
1415 /* AIX XL C 1.02.0.0 rejects this.
1416 It does not let you subtract one const X* pointer from another in an arm
1417 of an if-expression whose if-part is not a constant expression */
1418 const char *g = "string";
1419 ccp = &g + (g ? g-g : 0);
1420 /* HPUX 7.0 cc rejects these. */
1423 ccp = (char const *const *) p;
1424 { /* SCO 3.2v4 cc rejects this. */
1426 char const *s = 0 ? (char *) 0 : (char const *) 0;
1430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1432 const int *foo = &x[0];
1435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1436 typedef const int *iptr;
1440 { /* AIX XL C 1.02.0.0 rejects this saying
1441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1442 struct s { int j; const int *ap[3]; };
1443 struct s *b; b->j = 5;
1445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1451 if { (eval echo configure
:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c_const" 1>&6
1464 if test $ac_cv_c_const = no
; then
1465 cat >> confdefs.h
<<\EOF
1471 echo $ac_n "checking for inline""... $ac_c" 1>&6
1472 echo "configure:1473: checking for inline" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1477 for ac_kw
in inline __inline__ __inline
; do
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1486 if { (eval echo configure
:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 ac_cv_c_inline
=$ac_kw; break
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1498 echo "$ac_t""$ac_cv_c_inline" 1>&6
1499 case "$ac_cv_c_inline" in
1501 no
) cat >> confdefs.h
<<\EOF
1505 *) cat >> confdefs.h
<<EOF
1506 #define inline $ac_cv_c_inline
1511 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1512 echo "configure:1513: checking for off_t" >&5
1513 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.
$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1528 ac_cv_type_off_t
=yes
1536 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1537 if test $ac_cv_type_off_t = no
; then
1538 cat >> confdefs.h
<<\EOF
1544 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1545 echo "configure:1546: checking for size_t" >&5
1546 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.
$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <sys/types.h>
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1561 ac_cv_type_size_t
=yes
1564 ac_cv_type_size_t
=no
1569 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1570 if test $ac_cv_type_size_t = no
; then
1571 cat >> confdefs.h
<<\EOF
1572 #define size_t unsigned
1577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1578 # for constant arguments. Useless!
1579 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1580 echo "configure:1581: checking for working alloca.h" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 char *p = alloca(2 * sizeof(int));
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1594 ac_cv_header_alloca_h
=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1599 ac_cv_header_alloca_h
=no
1604 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1605 if test $ac_cv_header_alloca_h = yes; then
1606 cat >> confdefs.h
<<\EOF
1607 #define HAVE_ALLOCA_H 1
1612 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1613 echo "configure:1614: checking for alloca" >&5
1614 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 # define alloca __builtin_alloca
1625 # include <malloc.h>
1626 # define alloca _alloca
1629 # include <alloca.h>
1634 # ifndef alloca /* predefined by HP cc +Olibcalls */
1643 char *p = (char *) alloca(1);
1646 if { (eval echo configure
:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1648 ac_cv_func_alloca_works
=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 ac_cv_func_alloca_works
=no
1658 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1659 if test $ac_cv_func_alloca_works = yes; then
1660 cat >> confdefs.h
<<\EOF
1661 #define HAVE_ALLOCA 1
1666 if test $ac_cv_func_alloca_works = no
; then
1667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1668 # that cause trouble. Some versions do not even contain alloca or
1669 # contain a buggy version. If you still want to use their alloca,
1670 # use ar to extract alloca.o from them instead of compiling alloca.c.
1671 ALLOCA
=alloca.
${ac_objext}
1672 cat >> confdefs.h
<<\EOF
1677 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether alloca needs Cray hooks" >&5
1679 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.
$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #if defined(CRAY) && ! defined(CRAY2)
1692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1693 egrep "webecray" >/dev
/null
2>&1; then
1704 echo "$ac_t""$ac_cv_os_cray" 1>&6
1705 if test $ac_cv_os_cray = yes; then
1706 for ac_func
in _getb67 GETB67 getb67
; do
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1736 if { (eval echo configure
:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1738 eval "ac_cv_func_$ac_func=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 eval "ac_cv_func_$ac_func=no"
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h
<<EOF
1751 #define CRAY_STACKSEG_END $ac_func
1756 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1763 echo "configure:1764: checking stack direction for C alloca" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 if test "$cross_compiling" = yes; then
1768 ac_cv_c_stack_direction
=0
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 find_stack_direction ()
1775 static char *addr = 0;
1780 return find_stack_direction ();
1783 return (&dummy > addr) ? 1 : -1;
1787 exit (find_stack_direction() < 0);
1790 if { (eval echo configure
:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1792 ac_cv_c_stack_direction
=1
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 ac_cv_c_stack_direction
=-1
1804 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1805 cat >> confdefs.h
<<EOF
1806 #define STACK_DIRECTION $ac_cv_c_stack_direction
1811 for ac_hdr
in unistd.h
1813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure
:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1829 eval "ac_cv_header_$ac_safe=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1835 eval "ac_cv_header_$ac_safe=no"
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h
<<EOF
1843 #define $ac_tr_hdr 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_func
in getpagesize
1853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_func" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $ac_func(); below. */
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1882 if { (eval echo configure
:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1884 eval "ac_cv_func_$ac_func=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.
$ac_ext >&5
1889 eval "ac_cv_func_$ac_func=no"
1894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1897 cat >> confdefs.h
<<EOF
1898 #define $ac_tr_func 1
1902 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1907 echo "configure:1908: checking for working mmap" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test "$cross_compiling" = yes; then
1912 ac_cv_func_mmap_fixed_mapped
=no
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1918 /* Thanks to Mike Haertel and Jim Avera for this test.
1919 Here is a matrix of mmap possibilities:
1920 mmap private not fixed
1921 mmap private fixed at somewhere currently unmapped
1922 mmap private fixed at somewhere already mapped
1923 mmap shared not fixed
1924 mmap shared fixed at somewhere currently unmapped
1925 mmap shared fixed at somewhere already mapped
1926 For private mappings, we should verify that changes cannot be read()
1927 back from the file, nor mmap's back from the file at a different
1928 address. (There have been systems where private was not correctly
1929 implemented like the infamous i386 svr4.0, and systems where the
1930 VM page cache was not coherent with the filesystem buffer cache
1931 like early versions of FreeBSD and possibly contemporary NetBSD.)
1932 For shared mappings, we should conversely verify that changes get
1933 propogated back to all the places they're supposed to be.
1935 Grep wants private fixed already mapped.
1936 The main things grep needs to know about mmap are:
1937 * does it exist and is it safe to write into the mmap'd area
1938 * how to use it (BSD variants) */
1939 #include <sys/types.h>
1941 #include <sys/mman.h>
1943 /* This mess was copied from the GNU getpagesize.h. */
1944 #ifndef HAVE_GETPAGESIZE
1945 # ifdef HAVE_UNISTD_H
1946 # include <unistd.h>
1949 /* Assume that all systems that can run configure have sys/param.h. */
1950 # ifndef HAVE_SYS_PARAM_H
1951 # define HAVE_SYS_PARAM_H 1
1954 # ifdef _SC_PAGESIZE
1955 # define getpagesize() sysconf(_SC_PAGESIZE)
1956 # else /* no _SC_PAGESIZE */
1957 # ifdef HAVE_SYS_PARAM_H
1958 # include <sys/param.h>
1959 # ifdef EXEC_PAGESIZE
1960 # define getpagesize() EXEC_PAGESIZE
1961 # else /* no EXEC_PAGESIZE */
1963 # define getpagesize() NBPG * CLSIZE
1966 # endif /* no CLSIZE */
1967 # else /* no NBPG */
1969 # define getpagesize() NBPC
1970 # else /* no NBPC */
1972 # define getpagesize() PAGESIZE
1973 # endif /* PAGESIZE */
1974 # endif /* no NBPC */
1975 # endif /* no NBPG */
1976 # endif /* no EXEC_PAGESIZE */
1977 # else /* no HAVE_SYS_PARAM_H */
1978 # define getpagesize() 8192 /* punt totally */
1979 # endif /* no HAVE_SYS_PARAM_H */
1980 # endif /* no _SC_PAGESIZE */
1982 #endif /* no HAVE_GETPAGESIZE */
1985 extern "C" { void *malloc(unsigned); }
1993 char *data, *data2, *data3;
1997 pagesize = getpagesize();
2000 * First, make a file with some known garbage in it.
2002 data = malloc(pagesize);
2005 for (i = 0; i < pagesize; ++i)
2006 *(data + i) = rand();
2008 fd = creat("conftestmmap", 0600);
2011 if (write(fd, data, pagesize) != pagesize)
2016 * Next, try to mmap the file at a fixed address which
2017 * already has something else allocated at it. If we can,
2018 * also make sure that we see the same garbage.
2020 fd = open("conftestmmap", O_RDWR);
2023 data2 = malloc(2 * pagesize);
2026 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2027 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2030 for (i = 0; i < pagesize; ++i)
2031 if (*(data + i) != *(data2 + i))
2035 * Finally, make sure that changes to the mapped area
2036 * do not percolate back to the file as seen by read().
2037 * (This is a bug on some variants of i386 svr4.0.)
2039 for (i = 0; i < pagesize; ++i)
2040 *(data2 + i) = *(data2 + i) + 1;
2041 data3 = malloc(pagesize);
2044 if (read(fd, data3, pagesize) != pagesize)
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data3 + i))
2050 unlink("conftestmmap");
2055 if { (eval echo configure
:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2057 ac_cv_func_mmap_fixed_mapped
=yes
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 ac_cv_func_mmap_fixed_mapped
=no
2069 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2070 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2071 cat >> confdefs.h
<<\EOF
2078 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2079 unistd.h values.h sys
/param.h
2081 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure
:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h
<<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2120 __argz_count __argz_stringify __argz_next
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2151 if { (eval echo configure
:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2153 eval "ac_cv_func_$ac_func=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 eval "ac_cv_func_$ac_func=no"
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h
<<EOF
2167 #define $ac_tr_func 1
2171 echo "$ac_t""no" 1>&6
2176 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2177 for ac_func
in stpcpy
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h
<<EOF
2224 #define $ac_tr_func 1
2228 echo "$ac_t""no" 1>&6
2233 if test "${ac_cv_func_stpcpy}" = "yes"; then
2234 cat >> confdefs.h
<<\EOF
2235 #define HAVE_STPCPY 1
2240 if test $ac_cv_header_locale_h = yes; then
2241 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2242 echo "configure:2243: checking for LC_MESSAGES" >&5
2243 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure
:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2256 am_cv_val_LC_MESSAGES
=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2261 am_cv_val_LC_MESSAGES
=no
2266 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2267 if test $am_cv_val_LC_MESSAGES = yes; then
2268 cat >> confdefs.h
<<\EOF
2269 #define HAVE_LC_MESSAGES 1
2274 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether NLS is requested" >&5
2276 # Check whether --enable-nls or --disable-nls was given.
2277 if test "${enable_nls+set}" = set; then
2278 enableval
="$enable_nls"
2284 echo "$ac_t""$USE_NLS" 1>&6
2287 USE_INCLUDED_LIBINTL
=no
2289 if test "$USE_NLS" = "yes"; then
2290 cat >> confdefs.h
<<\EOF
2291 #define ENABLE_NLS 1
2294 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether included gettext is requested" >&5
2296 # Check whether --with-included-gettext or --without-included-gettext was given.
2297 if test "${with_included_gettext+set}" = set; then
2298 withval
="$with_included_gettext"
2299 nls_cv_force_use_gnu_gettext
=$withval
2301 nls_cv_force_use_gnu_gettext
=no
2304 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2306 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2307 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2309 nls_cv_header_libgt
=
2312 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for libintl.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <libintl.h>
2323 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure
:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for gettext in libc" >&5
2342 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <libintl.h>
2350 return (int) gettext ("")
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2355 gt_cv_func_gettext_libc
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 gt_cv_func_gettext_libc
=no
2365 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2367 if test "$gt_cv_func_gettext_libc" != "yes"; then
2368 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for bindtextdomain in -lintl" >&5
2370 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS
="$LIBS"
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char bindtextdomain();
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS
="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2404 echo "configure:2405: checking for gettext in libintl" >&5
2405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 return (int) gettext ("")
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 gt_cv_func_gettext_libintl
=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 gt_cv_func_gettext_libintl
=no
2428 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2430 echo "$ac_t""no" 1>&6
2435 if test "$gt_cv_func_gettext_libc" = "yes" \
2436 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2437 cat >> confdefs.h
<<\EOF
2438 #define HAVE_GETTEXT 1
2441 # Extract the first word of "msgfmt", so it can be a program name with args.
2442 set dummy msgfmt
; ac_word
=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2454 for ac_dir
in $PATH; do
2455 test -z "$ac_dir" && ac_dir
=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2458 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2468 MSGFMT
="$ac_cv_path_MSGFMT"
2469 if test -n "$MSGFMT"; then
2470 echo "$ac_t""$MSGFMT" 1>&6
2472 echo "$ac_t""no" 1>&6
2474 if test "$MSGFMT" != "no"; then
2475 for ac_func
in dcgettext
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char $ac_func(); below. */
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2508 eval "ac_cv_func_$ac_func=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 eval "ac_cv_func_$ac_func=no"
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521 cat >> confdefs.h
<<EOF
2522 #define $ac_tr_func 1
2526 echo "$ac_t""no" 1>&6
2530 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2531 set dummy gmsgfmt
; ac_word
=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2542 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2547 for ac_dir
in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir
=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2559 GMSGFMT
="$ac_cv_path_GMSGFMT"
2560 if test -n "$GMSGFMT"; then
2561 echo "$ac_t""$GMSGFMT" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 # Extract the first word of "xgettext", so it can be a program name with args.
2567 set dummy xgettext
; ac_word
=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2579 for ac_dir
in $PATH; do
2580 test -z "$ac_dir" && ac_dir
=.
2581 if test -f $ac_dir/$ac_word; then
2582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2583 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2593 XGETTEXT
="$ac_cv_path_XGETTEXT"
2594 if test -n "$XGETTEXT"; then
2595 echo "$ac_t""$XGETTEXT" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 extern int _nl_msg_cat_cntr;
2606 return _nl_msg_cat_cntr
2609 if { (eval echo configure
:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2614 echo "configure: failed program was:" >&5
2615 cat conftest.
$ac_ext >&5
2626 echo "$ac_t""no" 1>&6
2631 if test "$CATOBJEXT" = "NONE"; then
2632 nls_cv_use_gnu_gettext
=yes
2636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2637 INTLOBJS
="\$(GETTOBJS)"
2638 # Extract the first word of "msgfmt", so it can be a program name with args.
2639 set dummy msgfmt
; ac_word
=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2651 for ac_dir
in $PATH; do
2652 test -z "$ac_dir" && ac_dir
=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2655 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2665 MSGFMT
="$ac_cv_path_MSGFMT"
2666 if test -n "$MSGFMT"; then
2667 echo "$ac_t""$MSGFMT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2673 set dummy gmsgfmt
; ac_word
=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2681 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2684 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2689 for ac_dir
in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir
=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2701 GMSGFMT
="$ac_cv_path_GMSGFMT"
2702 if test -n "$GMSGFMT"; then
2703 echo "$ac_t""$GMSGFMT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "xgettext", so it can be a program name with args.
2709 set dummy xgettext
; ac_word
=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2721 for ac_dir
in $PATH; do
2722 test -z "$ac_dir" && ac_dir
=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2725 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2735 XGETTEXT
="$ac_cv_path_XGETTEXT"
2736 if test -n "$XGETTEXT"; then
2737 echo "$ac_t""$XGETTEXT" 1>&6
2739 echo "$ac_t""no" 1>&6
2743 USE_INCLUDED_LIBINTL
=yes
2747 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2749 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2750 nls_cv_header_intl
=libintl.h
2751 nls_cv_header_libgt
=libgettext.h
2754 if test "$XGETTEXT" != ":"; then
2755 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2758 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2763 # We need to process the po/ directory.
2767 nls_cv_header_intl
=libintl.h
2768 nls_cv_header_libgt
=libgettext.h
2771 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2772 # because some of the sources are only built for this goal.
2773 if test "$PACKAGE" = gettext; then
2775 USE_INCLUDED_LIBINTL
=yes
2778 for lang
in $ALL_LINGUAS; do
2779 GMOFILES
="$GMOFILES $lang.gmo"
2780 POFILES
="$POFILES $lang.po"
2796 if test "x$CATOBJEXT" != "x"; then
2797 if test "x$ALL_LINGUAS" = "x"; then
2800 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for catalogs to be installed" >&5
2803 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2804 case "$ALL_LINGUAS" in
2805 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2808 LINGUAS
=$NEW_LINGUAS
2809 echo "$ac_t""$LINGUAS" 1>&6
2812 if test -n "$LINGUAS"; then
2813 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2817 if test $ac_cv_header_locale_h = yes; then
2818 INCLUDE_LOCALE_H
="#include <locale.h>"
2821 /* The system does not provide the header <locale.h>. Take care yourself. */"
2825 if test -f $srcdir/po2tbl.
sed.
in; then
2826 if test "$CATOBJEXT" = ".cat"; then
2827 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for linux/version.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <linux/version.h>
2838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure
:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2857 echo "$ac_t""no" 1>&6
2862 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2864 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2865 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2868 if test "$PACKAGE" = "gettext"; then
2878 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2884 if test -f $srcdir/po
/POTFILES.
in; then
2885 test -d po || mkdir po
2886 if test "x$srcdir" != "x."; then
2887 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2888 posrcprefix
="$srcdir/"
2890 posrcprefix
="../$srcdir/"
2896 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2897 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2900 cat >> confdefs.h
<<\EOF
2901 #define PACKAGE "gdb"
2905 debugdir
=${libdir}/debug
2907 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2908 if test "${with_separate_debug_dir+set}" = set; then
2909 withval
="$with_separate_debug_dir"
2910 debugdir
="${withval}"
2915 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
2916 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2917 ac_define_dir
=`eval echo $debugdir`
2918 ac_define_dir
=`eval echo $ac_define_dir`
2919 cat >> confdefs.h
<<EOF
2920 #define DEBUGDIR "$ac_define_dir"
2924 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2938 subdirs
="doc testsuite"
2942 .
$srcdir/configure.
host
2944 .
$srcdir/configure.tgt
2946 # Fetch the default architecture and default target vector from BFD.
2947 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2949 # We only want the first architecture, so strip off the others if
2950 # there is more than one.
2951 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2953 if test "x$targ_archs" != x
; then
2954 cat >> confdefs.h
<<EOF
2955 #define DEFAULT_BFD_ARCH $targ_archs
2959 if test "x$targ_defvec" != x
; then
2960 cat >> confdefs.h
<<EOF
2961 #define DEFAULT_BFD_VEC $targ_defvec
2966 if test "$program_transform_name" = s
,x
,x
,; then
2967 program_transform_name
=
2969 # Double any \ or $. echo might interpret backslashes.
2970 cat <<\EOF_SED
> conftestsed
2971 s
,\\,\\\\,g
; s
,\$
,$$
,g
2973 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2976 test "$program_prefix" != NONE
&&
2977 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2978 # Use a double $ so make ignores it.
2979 test "$program_suffix" != NONE
&&
2980 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2982 # sed with no file args requires a program.
2983 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2986 # The CLI cannot be disabled yet, but may be in the future.
2989 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2990 if test "${enable_gdbcli+set}" = set; then
2991 enableval
="$enable_gdbcli"
2996 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2998 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3004 if test x
"$enable_gdbcli" = xyes
; then
3005 if test -d $srcdir/cli
; then
3006 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3007 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3008 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3009 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
3010 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3011 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
3012 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
3013 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
3014 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
3019 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3020 if test "${enable_gdbmi+set}" = set; then
3021 enableval
="$enable_gdbmi"
3026 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3032 if test x
"$enable_gdbmi" = xyes
; then
3033 if test -d $srcdir/mi
; then
3034 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3035 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3036 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3037 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3038 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3039 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3040 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3041 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3042 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3047 # Check whether --enable-tui or --disable-tui was given.
3048 if test "${enable_tui+set}" = set; then
3049 enableval
="$enable_tui"
3054 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3058 if test x
"$enable_tui" = xyes
; then
3059 if test -d $srcdir/tui
; then
3060 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3061 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3062 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3063 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3064 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3065 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3066 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3067 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3068 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3074 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3075 if test "${enable_gdbtk+set}" = set; then
3076 enableval
="$enable_gdbtk"
3081 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3084 if test -d $srcdir/gdbtk
; then
3091 # We unconditionally disable gdbtk tests on selected platforms.
3094 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3098 # Libunwind support.
3099 # Check whether --with-libunwind or --without-libunwind was given.
3100 if test "${with_libunwind+set}" = set; then
3101 withval
="$with_libunwind"
3102 case "${withval}" in
3103 yes) enable_libunwind
=yes ;;
3104 no
) enable_libunwind
=no
;;
3105 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3109 for ac_hdr
in libunwind.h
3111 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3113 echo "configure:3114: checking for $ac_hdr" >&5
3114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 cat > conftest.
$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3123 { (eval echo configure
:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3124 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3125 if test -z "$ac_err"; then
3127 eval "ac_cv_header_$ac_safe=yes"
3130 echo "configure: failed program was:" >&5
3131 cat conftest.
$ac_ext >&5
3133 eval "ac_cv_header_$ac_safe=no"
3137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3138 echo "$ac_t""yes" 1>&6
3139 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3140 cat >> confdefs.h
<<EOF
3141 #define $ac_tr_hdr 1
3145 echo "$ac_t""no" 1>&6
3149 for ac_hdr
in libunwind-ia64.h
3151 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_hdr" >&5
3154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.
$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3162 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3163 { (eval echo configure
:3164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3164 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3165 if test -z "$ac_err"; then
3167 eval "ac_cv_header_$ac_safe=yes"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.
$ac_ext >&5
3173 eval "ac_cv_header_$ac_safe=no"
3177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3180 cat >> confdefs.h
<<EOF
3181 #define $ac_tr_hdr 1
3185 echo "$ac_t""no" 1>&6
3189 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
3190 enable_libunwind
=yes;
3196 if test x
"$enable_libunwind" = xyes
; then
3197 for ac_hdr
in libunwind.h
3199 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3201 echo "configure:3202: checking for $ac_hdr" >&5
3202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 cat > conftest.
$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3210 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3211 { (eval echo configure
:3212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3212 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3213 if test -z "$ac_err"; then
3215 eval "ac_cv_header_$ac_safe=yes"
3218 echo "configure: failed program was:" >&5
3219 cat conftest.
$ac_ext >&5
3221 eval "ac_cv_header_$ac_safe=no"
3225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3228 cat >> confdefs.h
<<EOF
3229 #define $ac_tr_hdr 1
3233 echo "$ac_t""no" 1>&6
3237 for ac_hdr
in libunwind-ia64.h
3239 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_hdr" >&5
3242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3251 { (eval echo configure
:3252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3253 if test -z "$ac_err"; then
3255 eval "ac_cv_header_$ac_safe=yes"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.
$ac_ext >&5
3261 eval "ac_cv_header_$ac_safe=no"
3265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3268 cat >> confdefs.h
<<EOF
3269 #define $ac_tr_hdr 1
3273 echo "$ac_t""no" 1>&6
3277 cat >> confdefs.h
<<\EOF
3278 #define HAVE_LIBUNWIND 1
3281 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
3282 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
3283 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
3286 # Profiling support.
3287 # Check whether --enable-profiling or --disable-profiling was given.
3288 if test "${enable_profiling+set}" = set; then
3289 enableval
="$enable_profiling"
3294 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3301 for ac_func
in monstartup _mcleanup
3303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3304 echo "configure:3305: checking for $ac_func" >&5
3305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 cat > conftest.
$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 /* System header to define __stub macros and hopefully few prototypes,
3312 which can conflict with char $ac_func(); below. */
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3321 /* The GNU C library defines this for functions which it implements
3322 to always fail with ENOSYS. Some functions are actually named
3323 something starting with __ and the normal name is an alias. */
3324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3332 if { (eval echo configure
:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3334 eval "ac_cv_func_$ac_func=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3339 eval "ac_cv_func_$ac_func=no"
3344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3345 echo "$ac_t""yes" 1>&6
3346 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3347 cat >> confdefs.h
<<EOF
3348 #define $ac_tr_func 1
3352 echo "$ac_t""no" 1>&6
3356 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3357 echo "configure:3358: checking for _etext" >&5
3358 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 cat > conftest.
$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3371 if { (eval echo configure
:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3373 ac_cv_var__etext
=yes
3375 echo "configure: failed program was:" >&5
3376 cat conftest.
$ac_ext >&5
3383 echo "$ac_t""$ac_cv_var__etext" 1>&6
3384 if test $ac_cv_var__etext = yes; then
3385 cat >> confdefs.h
<<\EOF
3386 #define HAVE__ETEXT 1
3390 if test "$enable_profiling" = yes ; then
3391 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
3392 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3395 OLD_CFLAGS
="$CFLAGS"
3396 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
3398 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3399 echo "configure:3400: checking whether $CC supports -pg" >&5
3400 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.
$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3411 if { (eval echo configure
:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413 ac_cv_cc_supports_pg
=yes
3415 echo "configure: failed program was:" >&5
3416 cat conftest.
$ac_ext >&5
3418 ac_cv_cc_supports_pg
=no
3423 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3425 if test $ac_cv_cc_supports_pg = no
; then
3426 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3429 CFLAGS
="$OLD_CFLAGS"
3432 # --------------------- #
3433 # Checks for programs. #
3434 # --------------------- #
3436 for ac_prog
in mawk gawk nawk
awk
3438 # Extract the first word of "$ac_prog", so it can be a program name with args.
3439 set dummy
$ac_prog; ac_word
=$2
3440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3441 echo "configure:3442: checking for $ac_word" >&5
3442 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 if test -n "$AWK"; then
3446 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3450 for ac_dir
in $ac_dummy; do
3451 test -z "$ac_dir" && ac_dir
=.
3452 if test -f $ac_dir/$ac_word; then
3453 ac_cv_prog_AWK
="$ac_prog"
3460 AWK
="$ac_cv_prog_AWK"
3461 if test -n "$AWK"; then
3462 echo "$ac_t""$AWK" 1>&6
3464 echo "$ac_t""no" 1>&6
3467 test -n "$AWK" && break
3470 # Find a good install program. We prefer a C program (faster),
3471 # so one script is as good as another. But avoid the broken or
3472 # incompatible versions:
3473 # SysV /etc/install, /usr/sbin/install
3474 # SunOS /usr/etc/install
3475 # IRIX /sbin/install
3477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3480 # ./install, which can be erroneously created by make from ./install.sh.
3481 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3482 echo "configure:3483: checking for a BSD compatible install" >&5
3483 if test -z "$INSTALL"; then
3484 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3488 for ac_dir
in $PATH; do
3489 # Account for people who put trailing slashes in PATH elements.
3491 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3493 # OSF1 and SCO ODT 3.0 have their own names for install.
3494 # Don't use installbsd from OSF since it installs stuff as root
3496 for ac_prog
in ginstall scoinst
install; do
3497 if test -f $ac_dir/$ac_prog; then
3498 if test $ac_prog = install &&
3499 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3500 # AIX install. It has an incompatible calling convention.
3503 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3514 if test "${ac_cv_path_install+set}" = set; then
3515 INSTALL
="$ac_cv_path_install"
3517 # As a last resort, use the slow shell script. We don't cache a
3518 # path for INSTALL within a source directory, because that will
3519 # break other packages using the cache if that directory is
3520 # removed, or if the path is relative.
3521 INSTALL
="$ac_install_sh"
3524 echo "$ac_t""$INSTALL" 1>&6
3526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3527 # It thinks the first close brace ends the variable substitution.
3528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3532 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3534 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3535 echo "configure:3536: checking whether ln -s works" >&5
3536 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3540 if ln -s X conftestdata
2>/dev
/null
3543 ac_cv_prog_LN_S
="ln -s"
3548 LN_S
="$ac_cv_prog_LN_S"
3549 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3550 echo "$ac_t""yes" 1>&6
3552 echo "$ac_t""no" 1>&6
3555 # Extract the first word of "ranlib", so it can be a program name with args.
3556 set dummy ranlib
; ac_word
=$2
3557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3558 echo "configure:3559: checking for $ac_word" >&5
3559 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 if test -n "$RANLIB"; then
3563 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3565 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3567 for ac_dir
in $ac_dummy; do
3568 test -z "$ac_dir" && ac_dir
=.
3569 if test -f $ac_dir/$ac_word; then
3570 ac_cv_prog_RANLIB
="ranlib"
3575 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3578 RANLIB
="$ac_cv_prog_RANLIB"
3579 if test -n "$RANLIB"; then
3580 echo "$ac_t""$RANLIB" 1>&6
3582 echo "$ac_t""no" 1>&6
3585 for ac_prog
in 'bison -y' byacc
3587 # Extract the first word of "$ac_prog", so it can be a program name with args.
3588 set dummy
$ac_prog; ac_word
=$2
3589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3590 echo "configure:3591: checking for $ac_word" >&5
3591 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 if test -n "$YACC"; then
3595 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3599 for ac_dir
in $ac_dummy; do
3600 test -z "$ac_dir" && ac_dir
=.
3601 if test -f $ac_dir/$ac_word; then
3602 ac_cv_prog_YACC
="$ac_prog"
3609 YACC
="$ac_cv_prog_YACC"
3610 if test -n "$YACC"; then
3611 echo "$ac_t""$YACC" 1>&6
3613 echo "$ac_t""no" 1>&6
3616 test -n "$YACC" && break
3618 test -n "$YACC" || YACC
="yacc"
3621 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3622 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3624 echo "configure:3625: checking for $ac_word" >&5
3625 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 if test -n "$AR"; then
3629 ac_cv_prog_AR
="$AR" # Let the user override the test.
3631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3633 for ac_dir
in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir
=.
3635 if test -f $ac_dir/$ac_word; then
3636 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3641 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3645 if test -n "$AR"; then
3646 echo "$ac_t""$AR" 1>&6
3648 echo "$ac_t""no" 1>&6
3653 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3654 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3656 echo "configure:3657: checking for $ac_word" >&5
3657 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 if test -n "$DLLTOOL"; then
3661 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3663 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3665 for ac_dir
in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir
=.
3667 if test -f $ac_dir/$ac_word; then
3668 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3673 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3676 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3677 if test -n "$DLLTOOL"; then
3678 echo "$ac_t""$DLLTOOL" 1>&6
3680 echo "$ac_t""no" 1>&6
3685 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3686 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3688 echo "configure:3689: checking for $ac_word" >&5
3689 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 if test -n "$WINDRES"; then
3693 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3695 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3697 for ac_dir
in $ac_dummy; do
3698 test -z "$ac_dir" && ac_dir
=.
3699 if test -f $ac_dir/$ac_word; then
3700 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3705 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3708 WINDRES
="$ac_cv_prog_WINDRES"
3709 if test -n "$WINDRES"; then
3710 echo "$ac_t""$WINDRES" 1>&6
3712 echo "$ac_t""no" 1>&6
3718 # Needed for GNU/Hurd.
3719 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3720 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3722 echo "configure:3723: checking for $ac_word" >&5
3723 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 if test -n "$MIG"; then
3727 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3731 for ac_dir
in $ac_dummy; do
3732 test -z "$ac_dir" && ac_dir
=.
3733 if test -f $ac_dir/$ac_word; then
3734 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3739 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3742 MIG
="$ac_cv_prog_MIG"
3743 if test -n "$MIG"; then
3744 echo "$ac_t""$MIG" 1>&6
3746 echo "$ac_t""no" 1>&6
3752 # ---------------------- #
3753 # Checks for libraries. #
3754 # ---------------------- #
3756 # We might need to link with -lm; most simulators need it.
3757 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3758 echo "configure:3759: checking for main in -lm" >&5
3759 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 ac_save_LIBS
="$LIBS"
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3773 if { (eval echo configure
:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3775 eval "ac_cv_lib_$ac_lib_var=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.
$ac_ext >&5
3780 eval "ac_cv_lib_$ac_lib_var=no"
3783 LIBS
="$ac_save_LIBS"
3786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3788 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3790 cat >> confdefs.h
<<EOF
3791 #define $ac_tr_lib 1
3797 echo "$ac_t""no" 1>&6
3801 # We need to link with -lw to get `wctype' on Solaris before Solaris
3802 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3803 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3804 # is known to have this problem). Therefore we avoid libw if we can.
3805 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3806 echo "configure:3807: checking for wctype" >&5
3807 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 /* System header to define __stub macros and hopefully few prototypes,
3814 which can conflict with char wctype(); below. */
3816 /* Override any gcc2 internal prototype to avoid an error. */
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3823 /* The GNU C library defines this for functions which it implements
3824 to always fail with ENOSYS. Some functions are actually named
3825 something starting with __ and the normal name is an alias. */
3826 #if defined (__stub_wctype) || defined (__stub___wctype)
3834 if { (eval echo configure
:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3836 eval "ac_cv_func_wctype=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.
$ac_ext >&5
3841 eval "ac_cv_func_wctype=no"
3846 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3847 echo "$ac_t""yes" 1>&6
3850 echo "$ac_t""no" 1>&6
3851 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3852 echo "configure:3853: checking for wctype in -lw" >&5
3853 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 ac_save_LIBS
="$LIBS"
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3871 if { (eval echo configure
:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3873 eval "ac_cv_lib_$ac_lib_var=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.
$ac_ext >&5
3878 eval "ac_cv_lib_$ac_lib_var=no"
3881 LIBS
="$ac_save_LIBS"
3884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3886 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3888 cat >> confdefs.h
<<EOF
3889 #define $ac_tr_lib 1
3895 echo "$ac_t""no" 1>&6
3901 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3903 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3904 echo "configure:3905: checking for library containing gethostbyname" >&5
3905 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 ac_func_search_save_LIBS
="$LIBS"
3909 ac_cv_search_gethostbyname
="no"
3910 cat > conftest.
$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3916 char gethostbyname();
3922 if { (eval echo configure
:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3924 ac_cv_search_gethostbyname
="none required"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3930 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl
; do
3931 LIBS
="-l$i $ac_func_search_save_LIBS"
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
3938 char gethostbyname();
3944 if { (eval echo configure
:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3946 ac_cv_search_gethostbyname
="-l$i"
3949 echo "configure: failed program was:" >&5
3950 cat conftest.
$ac_ext >&5
3954 LIBS
="$ac_func_search_save_LIBS"
3957 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3958 if test "$ac_cv_search_gethostbyname" != "no"; then
3959 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3965 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3967 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3968 echo "configure:3969: checking for library containing socketpair" >&5
3969 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 ac_func_search_save_LIBS
="$LIBS"
3973 ac_cv_search_socketpair
="no"
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* Override any gcc2 internal prototype to avoid an error. */
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3986 if { (eval echo configure
:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3988 ac_cv_search_socketpair
="none required"
3990 echo "configure: failed program was:" >&5
3991 cat conftest.
$ac_ext >&5
3994 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3995 LIBS
="-l$i $ac_func_search_save_LIBS"
3996 cat > conftest.
$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 /* We use char because int might match the return type of a gcc2
4001 builtin and then its argument prototype would still apply. */
4008 if { (eval echo configure
:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4010 ac_cv_search_socketpair
="-l$i"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4018 LIBS
="$ac_func_search_save_LIBS"
4021 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4022 if test "$ac_cv_search_socketpair" != "no"; then
4023 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
4029 # Since GDB uses Readline, we need termcap functionality, so we need
4030 # to find a library that provides that. When GDB is configured with
4031 # --enable-tui, we need full curses functionality.
4033 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4034 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4035 # Makefile fragments. That's why we need to have `Hcurses' before
4036 # `curses'. I don't see why we should use HP curses if a more
4037 # standard curses is available, except that according to HP's
4038 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4039 # HP-UX 10.10 and 10.20.
4041 if test "$need_curses" = yes; then
4043 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4044 echo "configure:4045: checking for library containing initscr" >&5
4045 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 ac_func_search_save_LIBS
="$LIBS"
4049 ac_cv_search_initscr
="no"
4050 cat > conftest.
$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 /* Override any gcc2 internal prototype to avoid an error. */
4054 /* We use char because int might match the return type of a gcc2
4055 builtin and then its argument prototype would still apply. */
4062 if { (eval echo configure
:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4064 ac_cv_search_initscr
="none required"
4066 echo "configure: failed program was:" >&5
4067 cat conftest.
$ac_ext >&5
4070 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
4071 LIBS
="-l$i $ac_func_search_save_LIBS"
4072 cat > conftest.
$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4084 if { (eval echo configure
:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4086 ac_cv_search_initscr
="-l$i"
4089 echo "configure: failed program was:" >&5
4090 cat conftest.
$ac_ext >&5
4094 LIBS
="$ac_func_search_save_LIBS"
4097 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4098 if test "$ac_cv_search_initscr" != "no"; then
4099 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
4102 { echo "configure: error: no curses library found" 1>&2; exit 1; }
4108 if test -d $srcdir/libtermcap
; then
4109 LIBS
="../libtermcap/libtermcap.a $LIBS"
4110 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
4113 ac_cv_search_tgetent
="none required"
4116 # Readline prefers curses over termcap on AIX.
4119 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4120 echo "configure:4121: checking for library containing tgetent" >&5
4121 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 ac_func_search_save_LIBS
="$LIBS"
4125 ac_cv_search_tgetent
="no"
4126 cat > conftest.
$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 /* We use char because int might match the return type of a gcc2
4131 builtin and then its argument prototype would still apply. */
4138 if { (eval echo configure
:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4140 ac_cv_search_tgetent
="none required"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.
$ac_ext >&5
4146 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
4147 LIBS
="-l$i $ac_func_search_save_LIBS"
4148 cat > conftest.
$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 /* Override any gcc2 internal prototype to avoid an error. */
4152 /* We use char because int might match the return type of a gcc2
4153 builtin and then its argument prototype would still apply. */
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4162 ac_cv_search_tgetent
="-l$i"
4165 echo "configure: failed program was:" >&5
4166 cat conftest.
$ac_ext >&5
4170 LIBS
="$ac_func_search_save_LIBS"
4173 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4174 if test "$ac_cv_search_tgetent" != "no"; then
4175 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4183 # Note: We used to check for libtermlib and libterminfo too, but
4184 # Readline doesn't, so I think we're safe with leaving them out.
4186 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4187 echo "configure:4188: checking for library containing tgetent" >&5
4188 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 ac_func_search_save_LIBS
="$LIBS"
4192 ac_cv_search_tgetent
="no"
4193 cat > conftest.
$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4205 if { (eval echo configure
:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4207 ac_cv_search_tgetent
="none required"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.
$ac_ext >&5
4213 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
4214 LIBS
="-l$i $ac_func_search_save_LIBS"
4215 cat > conftest.
$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4218 /* Override any gcc2 internal prototype to avoid an error. */
4219 /* We use char because int might match the return type of a gcc2
4220 builtin and then its argument prototype would still apply. */
4227 if { (eval echo configure
:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4229 ac_cv_search_tgetent
="-l$i"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4237 LIBS
="$ac_func_search_save_LIBS"
4240 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4241 if test "$ac_cv_search_tgetent" != "no"; then
4242 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4248 if test "$ac_cv_search_tgetent" = no
; then
4249 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4252 # ------------------------- #
4253 # Checks for header files. #
4254 # ------------------------- #
4257 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4259 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4260 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4261 echo "configure:4262: checking for $ac_hdr that defines DIR" >&5
4262 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 cat > conftest.
$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 #include <sys/types.h>
4274 if { (eval echo configure
:4275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4276 eval "ac_cv_header_dirent_$ac_safe=yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.
$ac_ext >&5
4281 eval "ac_cv_header_dirent_$ac_safe=no"
4285 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4288 cat >> confdefs.h
<<EOF
4289 #define $ac_tr_hdr 1
4291 ac_header_dirent
=$ac_hdr; break
4293 echo "$ac_t""no" 1>&6
4296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4297 if test $ac_header_dirent = dirent.h
; then
4298 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4299 echo "configure:4300: checking for opendir in -ldir" >&5
4300 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 ac_save_LIBS
="$LIBS"
4306 cat > conftest.
$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* Override any gcc2 internal prototype to avoid an error. */
4310 /* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4318 if { (eval echo configure
:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4320 eval "ac_cv_lib_$ac_lib_var=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4325 eval "ac_cv_lib_$ac_lib_var=no"
4328 LIBS
="$ac_save_LIBS"
4331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4335 echo "$ac_t""no" 1>&6
4339 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4340 echo "configure:4341: checking for opendir in -lx" >&5
4341 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 ac_save_LIBS
="$LIBS"
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4359 if { (eval echo configure
:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4361 eval "ac_cv_lib_$ac_lib_var=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.
$ac_ext >&5
4366 eval "ac_cv_lib_$ac_lib_var=no"
4369 LIBS
="$ac_save_LIBS"
4372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4376 echo "$ac_t""no" 1>&6
4381 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4382 echo "configure:4383: checking whether stat file-mode macros are broken" >&5
4383 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4386 cat > conftest.
$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 #include <sys/types.h>
4390 #include <sys/stat.h>
4392 #if defined(S_ISBLK) && defined(S_IFDIR)
4393 # if S_ISBLK (S_IFDIR)
4398 #if defined(S_ISBLK) && defined(S_IFCHR)
4399 # if S_ISBLK (S_IFCHR)
4404 #if defined(S_ISLNK) && defined(S_IFREG)
4405 # if S_ISLNK (S_IFREG)
4410 #if defined(S_ISSOCK) && defined(S_IFREG)
4411 # if S_ISSOCK (S_IFREG)
4417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 egrep "You lose" >/dev
/null
2>&1; then
4420 ac_cv_header_stat_broken
=yes
4423 ac_cv_header_stat_broken
=no
4429 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4430 if test $ac_cv_header_stat_broken = yes; then
4431 cat >> confdefs.h
<<\EOF
4432 #define STAT_MACROS_BROKEN 1
4437 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4438 echo "configure:4439: checking for ANSI C header files" >&5
4439 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.
$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4450 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4451 { (eval echo configure
:4452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4452 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4453 if test -z "$ac_err"; then
4455 ac_cv_header_stdc
=yes
4458 echo "configure: failed program was:" >&5
4459 cat conftest.
$ac_ext >&5
4461 ac_cv_header_stdc
=no
4465 if test $ac_cv_header_stdc = yes; then
4466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4467 cat > conftest.
$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 egrep "memchr" >/dev
/null
2>&1; then
4477 ac_cv_header_stdc
=no
4483 if test $ac_cv_header_stdc = yes; then
4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485 cat > conftest.
$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 egrep "free" >/dev
/null
2>&1; then
4495 ac_cv_header_stdc
=no
4501 if test $ac_cv_header_stdc = yes; then
4502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4503 if test "$cross_compiling" = yes; then
4506 cat > conftest.
$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4510 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4513 int main () { int i; for (i = 0; i < 256; i++)
4514 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4518 if { (eval echo configure
:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 ac_cv_header_stdc
=no
4533 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4534 if test $ac_cv_header_stdc = yes; then
4535 cat >> confdefs.h
<<\EOF
4536 #define STDC_HEADERS 1
4541 for ac_hdr
in link.h
4543 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4545 echo "configure:4546: checking for $ac_hdr" >&5
4546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4549 cat > conftest.
$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4554 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4555 { (eval echo configure
:4556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4556 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4557 if test -z "$ac_err"; then
4559 eval "ac_cv_header_$ac_safe=yes"
4562 echo "configure: failed program was:" >&5
4563 cat conftest.
$ac_ext >&5
4565 eval "ac_cv_header_$ac_safe=no"
4569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4570 echo "$ac_t""yes" 1>&6
4571 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4572 cat >> confdefs.h
<<EOF
4573 #define $ac_tr_hdr 1
4577 echo "$ac_t""no" 1>&6
4581 for ac_hdr
in machine
/reg.h
4583 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4585 echo "configure:4586: checking for $ac_hdr" >&5
4586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 cat > conftest.
$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4594 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4595 { (eval echo configure
:4596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4596 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4597 if test -z "$ac_err"; then
4599 eval "ac_cv_header_$ac_safe=yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.
$ac_ext >&5
4605 eval "ac_cv_header_$ac_safe=no"
4609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4612 cat >> confdefs.h
<<EOF
4613 #define $ac_tr_hdr 1
4617 echo "$ac_t""no" 1>&6
4621 for ac_hdr
in nlist.h
4623 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_hdr" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.
$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure
:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4639 eval "ac_cv_header_$ac_safe=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4645 eval "ac_cv_header_$ac_safe=no"
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4652 cat >> confdefs.h
<<EOF
4653 #define $ac_tr_hdr 1
4657 echo "$ac_t""no" 1>&6
4661 for ac_hdr
in poll.h sys
/poll.h
4663 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_hdr" >&5
4666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.
$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4674 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure
:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 eval "ac_cv_header_$ac_safe=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.
$ac_ext >&5
4685 eval "ac_cv_header_$ac_safe=no"
4689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4692 cat >> confdefs.h
<<EOF
4693 #define $ac_tr_hdr 1
4697 echo "$ac_t""no" 1>&6
4701 for ac_hdr
in proc_service.h thread_db.h
4703 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_hdr" >&5
4706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4709 cat > conftest.
$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4715 { (eval echo configure
:4716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4717 if test -z "$ac_err"; then
4719 eval "ac_cv_header_$ac_safe=yes"
4722 echo "configure: failed program was:" >&5
4723 cat conftest.
$ac_ext >&5
4725 eval "ac_cv_header_$ac_safe=no"
4729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4730 echo "$ac_t""yes" 1>&6
4731 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4732 cat >> confdefs.h
<<EOF
4733 #define $ac_tr_hdr 1
4737 echo "$ac_t""no" 1>&6
4741 for ac_hdr
in stddef.h
4743 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4745 echo "configure:4746: checking for $ac_hdr" >&5
4746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 cat > conftest.
$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4754 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4755 { (eval echo configure
:4756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4756 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4757 if test -z "$ac_err"; then
4759 eval "ac_cv_header_$ac_safe=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 eval "ac_cv_header_$ac_safe=no"
4769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4771 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4772 cat >> confdefs.h
<<EOF
4773 #define $ac_tr_hdr 1
4777 echo "$ac_t""no" 1>&6
4781 for ac_hdr
in stdlib.h
4783 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_hdr" >&5
4786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.
$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4795 { (eval echo configure
:4796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4796 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4797 if test -z "$ac_err"; then
4799 eval "ac_cv_header_$ac_safe=yes"
4802 echo "configure: failed program was:" >&5
4803 cat conftest.
$ac_ext >&5
4805 eval "ac_cv_header_$ac_safe=no"
4809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4810 echo "$ac_t""yes" 1>&6
4811 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4812 cat >> confdefs.h
<<EOF
4813 #define $ac_tr_hdr 1
4817 echo "$ac_t""no" 1>&6
4821 for ac_hdr
in stdint.h
4823 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4825 echo "configure:4826: checking for $ac_hdr" >&5
4826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.
$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4835 { (eval echo configure
:4836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4837 if test -z "$ac_err"; then
4839 eval "ac_cv_header_$ac_safe=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.
$ac_ext >&5
4845 eval "ac_cv_header_$ac_safe=no"
4849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4852 cat >> confdefs.h
<<EOF
4853 #define $ac_tr_hdr 1
4857 echo "$ac_t""no" 1>&6
4861 for ac_hdr
in string.h memory.h
strings.h
4863 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_hdr" >&5
4866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 cat > conftest.
$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4874 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4875 { (eval echo configure
:4876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4876 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4877 if test -z "$ac_err"; then
4879 eval "ac_cv_header_$ac_safe=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.
$ac_ext >&5
4885 eval "ac_cv_header_$ac_safe=no"
4889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4892 cat >> confdefs.h
<<EOF
4893 #define $ac_tr_hdr 1
4897 echo "$ac_t""no" 1>&6
4901 for ac_hdr
in sys
/fault.h
4903 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_hdr" >&5
4906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 cat > conftest.
$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4914 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4915 { (eval echo configure
:4916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4916 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4917 if test -z "$ac_err"; then
4919 eval "ac_cv_header_$ac_safe=yes"
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4925 eval "ac_cv_header_$ac_safe=no"
4929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4932 cat >> confdefs.h
<<EOF
4933 #define $ac_tr_hdr 1
4937 echo "$ac_t""no" 1>&6
4941 for ac_hdr
in sys
/file.h
4943 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_hdr" >&5
4946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 cat > conftest.
$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4954 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4955 { (eval echo configure
:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4956 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4957 if test -z "$ac_err"; then
4959 eval "ac_cv_header_$ac_safe=yes"
4962 echo "configure: failed program was:" >&5
4963 cat conftest.
$ac_ext >&5
4965 eval "ac_cv_header_$ac_safe=no"
4969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4972 cat >> confdefs.h
<<EOF
4973 #define $ac_tr_hdr 1
4977 echo "$ac_t""no" 1>&6
4981 for ac_hdr
in sys
/filio.h
4983 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4985 echo "configure:4986: checking for $ac_hdr" >&5
4986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.
$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4995 { (eval echo configure
:4996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4996 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4997 if test -z "$ac_err"; then
4999 eval "ac_cv_header_$ac_safe=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.
$ac_ext >&5
5005 eval "ac_cv_header_$ac_safe=no"
5009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5011 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5012 cat >> confdefs.h
<<EOF
5013 #define $ac_tr_hdr 1
5017 echo "$ac_t""no" 1>&6
5021 for ac_hdr
in sys
/ioctl.h
5023 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5025 echo "configure:5026: checking for $ac_hdr" >&5
5026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5029 cat > conftest.
$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5034 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5035 { (eval echo configure
:5036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5036 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5037 if test -z "$ac_err"; then
5039 eval "ac_cv_header_$ac_safe=yes"
5042 echo "configure: failed program was:" >&5
5043 cat conftest.
$ac_ext >&5
5045 eval "ac_cv_header_$ac_safe=no"
5049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5050 echo "$ac_t""yes" 1>&6
5051 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5052 cat >> confdefs.h
<<EOF
5053 #define $ac_tr_hdr 1
5057 echo "$ac_t""no" 1>&6
5061 for ac_hdr
in sys
/param.h
5063 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5065 echo "configure:5066: checking for $ac_hdr" >&5
5066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 cat > conftest.
$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5074 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5075 { (eval echo configure
:5076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5076 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5077 if test -z "$ac_err"; then
5079 eval "ac_cv_header_$ac_safe=yes"
5082 echo "configure: failed program was:" >&5
5083 cat conftest.
$ac_ext >&5
5085 eval "ac_cv_header_$ac_safe=no"
5089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5091 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5092 cat >> confdefs.h
<<EOF
5093 #define $ac_tr_hdr 1
5097 echo "$ac_t""no" 1>&6
5101 for ac_hdr
in sys
/proc.h
5103 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5105 echo "configure:5106: checking for $ac_hdr" >&5
5106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 cat > conftest.
$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5114 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5115 { (eval echo configure
:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5116 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5117 if test -z "$ac_err"; then
5119 eval "ac_cv_header_$ac_safe=yes"
5122 echo "configure: failed program was:" >&5
5123 cat conftest.
$ac_ext >&5
5125 eval "ac_cv_header_$ac_safe=no"
5129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5130 echo "$ac_t""yes" 1>&6
5131 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5132 cat >> confdefs.h
<<EOF
5133 #define $ac_tr_hdr 1
5137 echo "$ac_t""no" 1>&6
5141 for ac_hdr
in sys
/procfs.h
5143 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5145 echo "configure:5146: checking for $ac_hdr" >&5
5146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5149 cat > conftest.
$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5154 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5155 { (eval echo configure
:5156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5156 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5157 if test -z "$ac_err"; then
5159 eval "ac_cv_header_$ac_safe=yes"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.
$ac_ext >&5
5165 eval "ac_cv_header_$ac_safe=no"
5169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5170 echo "$ac_t""yes" 1>&6
5171 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5172 cat >> confdefs.h
<<EOF
5173 #define $ac_tr_hdr 1
5177 echo "$ac_t""no" 1>&6
5181 for ac_hdr
in sys
/ptrace.h ptrace.h
5183 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5185 echo "configure:5186: checking for $ac_hdr" >&5
5186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5187 echo $ac_n "(cached) $ac_c" 1>&6
5189 cat > conftest.
$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5194 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5195 { (eval echo configure
:5196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5196 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5197 if test -z "$ac_err"; then
5199 eval "ac_cv_header_$ac_safe=yes"
5202 echo "configure: failed program was:" >&5
5203 cat conftest.
$ac_ext >&5
5205 eval "ac_cv_header_$ac_safe=no"
5209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5210 echo "$ac_t""yes" 1>&6
5211 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5212 cat >> confdefs.h
<<EOF
5213 #define $ac_tr_hdr 1
5217 echo "$ac_t""no" 1>&6
5221 for ac_hdr
in sys
/reg.h sys
/debugreg.h
5223 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_hdr" >&5
5226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.
$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5234 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5235 { (eval echo configure
:5236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5236 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5237 if test -z "$ac_err"; then
5239 eval "ac_cv_header_$ac_safe=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 eval "ac_cv_header_$ac_safe=no"
5249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5251 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5252 cat >> confdefs.h
<<EOF
5253 #define $ac_tr_hdr 1
5257 echo "$ac_t""no" 1>&6
5261 for ac_hdr
in sys
/select.h
5263 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5265 echo "configure:5266: checking for $ac_hdr" >&5
5266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.
$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5274 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5275 { (eval echo configure
:5276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5276 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5277 if test -z "$ac_err"; then
5279 eval "ac_cv_header_$ac_safe=yes"
5282 echo "configure: failed program was:" >&5
5283 cat conftest.
$ac_ext >&5
5285 eval "ac_cv_header_$ac_safe=no"
5289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5290 echo "$ac_t""yes" 1>&6
5291 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5292 cat >> confdefs.h
<<EOF
5293 #define $ac_tr_hdr 1
5297 echo "$ac_t""no" 1>&6
5301 for ac_hdr
in sys
/syscall.h
5303 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5305 echo "configure:5306: checking for $ac_hdr" >&5
5306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 cat > conftest.
$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5314 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5315 { (eval echo configure
:5316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5316 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5317 if test -z "$ac_err"; then
5319 eval "ac_cv_header_$ac_safe=yes"
5322 echo "configure: failed program was:" >&5
5323 cat conftest.
$ac_ext >&5
5325 eval "ac_cv_header_$ac_safe=no"
5329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5331 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5332 cat >> confdefs.h
<<EOF
5333 #define $ac_tr_hdr 1
5337 echo "$ac_t""no" 1>&6
5341 for ac_hdr
in sys
/user.h
5343 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5345 echo "configure:5346: checking for $ac_hdr" >&5
5346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.
$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5354 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5355 { (eval echo configure
:5356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5356 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5357 if test -z "$ac_err"; then
5359 eval "ac_cv_header_$ac_safe=yes"
5362 echo "configure: failed program was:" >&5
5363 cat conftest.
$ac_ext >&5
5365 eval "ac_cv_header_$ac_safe=no"
5369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5372 cat >> confdefs.h
<<EOF
5373 #define $ac_tr_hdr 1
5377 echo "$ac_t""no" 1>&6
5381 for ac_hdr
in sys
/wait.h
wait.h
5383 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5385 echo "configure:5386: checking for $ac_hdr" >&5
5386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5389 cat > conftest.
$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5394 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5395 { (eval echo configure
:5396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5396 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5397 if test -z "$ac_err"; then
5399 eval "ac_cv_header_$ac_safe=yes"
5402 echo "configure: failed program was:" >&5
5403 cat conftest.
$ac_ext >&5
5405 eval "ac_cv_header_$ac_safe=no"
5409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5411 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5412 cat >> confdefs.h
<<EOF
5413 #define $ac_tr_hdr 1
5417 echo "$ac_t""no" 1>&6
5421 for ac_hdr
in termios.h termio.h sgtty.h
5423 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5425 echo "configure:5426: checking for $ac_hdr" >&5
5426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 cat > conftest.
$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5434 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5435 { (eval echo configure
:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5436 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5437 if test -z "$ac_err"; then
5439 eval "ac_cv_header_$ac_safe=yes"
5442 echo "configure: failed program was:" >&5
5443 cat conftest.
$ac_ext >&5
5445 eval "ac_cv_header_$ac_safe=no"
5449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5450 echo "$ac_t""yes" 1>&6
5451 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5452 cat >> confdefs.h
<<EOF
5453 #define $ac_tr_hdr 1
5457 echo "$ac_t""no" 1>&6
5461 for ac_hdr
in unistd.h
5463 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5465 echo "configure:5466: checking for $ac_hdr" >&5
5466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5469 cat > conftest.
$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5474 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5475 { (eval echo configure
:5476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5476 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5477 if test -z "$ac_err"; then
5479 eval "ac_cv_header_$ac_safe=yes"
5482 echo "configure: failed program was:" >&5
5483 cat conftest.
$ac_ext >&5
5485 eval "ac_cv_header_$ac_safe=no"
5489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5490 echo "$ac_t""yes" 1>&6
5491 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5492 cat >> confdefs.h
<<EOF
5493 #define $ac_tr_hdr 1
5497 echo "$ac_t""no" 1>&6
5502 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5503 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5504 # think that we don't have <curses.h> if we're using GCC.
5507 if test "$GCC" = yes; then
5508 cat >> confdefs.h
<<\EOF
5509 #define _MSE_INT_H 1
5514 for ac_hdr
in curses.h ncurses.h term.h
5516 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5518 echo "configure:5519: checking for $ac_hdr" >&5
5519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5522 cat > conftest.
$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5527 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5528 { (eval echo configure
:5529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5529 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5530 if test -z "$ac_err"; then
5532 eval "ac_cv_header_$ac_safe=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 eval "ac_cv_header_$ac_safe=no"
5542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5543 echo "$ac_t""yes" 1>&6
5544 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5545 cat >> confdefs.h
<<EOF
5546 #define $ac_tr_hdr 1
5550 echo "$ac_t""no" 1>&6
5555 # FIXME: kettenis/20030102: In most cases we include these
5556 # unconditionally, so what's the point in checking these?
5557 for ac_hdr
in ctype.h
time.h
5559 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5561 echo "configure:5562: checking for $ac_hdr" >&5
5562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 cat > conftest.
$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5571 { (eval echo configure
:5572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5573 if test -z "$ac_err"; then
5575 eval "ac_cv_header_$ac_safe=yes"
5578 echo "configure: failed program was:" >&5
5579 cat conftest.
$ac_ext >&5
5581 eval "ac_cv_header_$ac_safe=no"
5585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5586 echo "$ac_t""yes" 1>&6
5587 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5588 cat >> confdefs.h
<<EOF
5589 #define $ac_tr_hdr 1
5593 echo "$ac_t""no" 1>&6
5598 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5599 echo "configure:5600: checking for member st_blocks in struct stat" >&5
5600 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5603 cat > conftest.
$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 #include <sys/types.h>
5607 #include <sys/stat.h>
5609 struct stat st; (void) st.st_blocks;
5612 if { (eval echo configure
:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5614 gdb_cv_have_struct_stat_with_st_blocks_member
=yes
5616 echo "configure: failed program was:" >&5
5617 cat conftest.
$ac_ext >&5
5619 gdb_cv_have_struct_stat_with_st_blocks_member
=no
5624 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5625 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5626 cat >> confdefs.h
<<\EOF
5627 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5631 # ------------------------- #
5632 # Checks for declarations. #
5633 # ------------------------- #
5635 for ac_func
in getopt
5637 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5638 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5639 echo "configure:5640: checking whether $ac_func is declared" >&5
5640 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5643 cat > conftest.
$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5647 #define $ac_tr_decl 1
5652 char *(*pfn) = (char *(*)) $ac_func ;
5656 if { (eval echo configure
:5657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5658 eval "gcc_cv_have_decl_$ac_func=yes"
5660 echo "configure: failed program was:" >&5
5661 cat conftest.
$ac_ext >&5
5663 eval "gcc_cv_have_decl_$ac_func=no"
5668 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
5670 #define $ac_tr_decl 1
5674 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
5675 #define $ac_tr_decl 0
5681 if test x
= y
; then
5682 cat >> confdefs.h
<<\EOF
5683 #define HAVE_DECL_GETOPT 1
5688 # ------------------ #
5689 # Checks for types. #
5690 # ------------------ #
5692 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5693 echo "configure:5694: checking return type of signal handlers" >&5
5694 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5695 echo $ac_n "(cached) $ac_c" 1>&6
5697 cat > conftest.
$ac_ext <<EOF
5698 #line 5699 "configure"
5699 #include "confdefs.h"
5700 #include <sys/types.h>
5706 extern "C" void (*signal (int, void (*)(int)))(int);
5708 void (*signal ()) ();
5715 if { (eval echo configure
:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5717 ac_cv_type_signal
=void
5719 echo "configure: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5722 ac_cv_type_signal
=int
5727 echo "$ac_t""$ac_cv_type_signal" 1>&6
5728 cat >> confdefs.h
<<EOF
5729 #define RETSIGTYPE $ac_cv_type_signal
5734 # ------------------------------------- #
5735 # Checks for compiler characteristics. #
5736 # ------------------------------------- #
5738 echo $ac_n "checking for working const""... $ac_c" 1>&6
5739 echo "configure:5740: checking for working const" >&5
5740 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.
$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5749 /* Ultrix mips cc rejects this. */
5750 typedef int charset[2]; const charset x;
5751 /* SunOS 4.1.1 cc rejects this. */
5752 char const *const *ccp;
5754 /* NEC SVR4.0.2 mips cc rejects this. */
5755 struct point {int x, y;};
5756 static struct point const zero = {0,0};
5757 /* AIX XL C 1.02.0.0 rejects this.
5758 It does not let you subtract one const X* pointer from another in an arm
5759 of an if-expression whose if-part is not a constant expression */
5760 const char *g = "string";
5761 ccp = &g + (g ? g-g : 0);
5762 /* HPUX 7.0 cc rejects these. */
5765 ccp = (char const *const *) p;
5766 { /* SCO 3.2v4 cc rejects this. */
5768 char const *s = 0 ? (char *) 0 : (char const *) 0;
5772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5774 const int *foo = &x[0];
5777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5778 typedef const int *iptr;
5782 { /* AIX XL C 1.02.0.0 rejects this saying
5783 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5784 struct s { int j; const int *ap[3]; };
5785 struct s *b; b->j = 5;
5787 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5793 if { (eval echo configure
:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5797 echo "configure: failed program was:" >&5
5798 cat conftest.
$ac_ext >&5
5805 echo "$ac_t""$ac_cv_c_const" 1>&6
5806 if test $ac_cv_c_const = no
; then
5807 cat >> confdefs.h
<<\EOF
5813 echo $ac_n "checking for inline""... $ac_c" 1>&6
5814 echo "configure:5815: checking for inline" >&5
5815 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5819 for ac_kw
in inline __inline__ __inline
; do
5820 cat > conftest.
$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5828 if { (eval echo configure
:5829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5830 ac_cv_c_inline
=$ac_kw; break
5832 echo "configure: failed program was:" >&5
5833 cat conftest.
$ac_ext >&5
5840 echo "$ac_t""$ac_cv_c_inline" 1>&6
5841 case "$ac_cv_c_inline" in
5843 no
) cat >> confdefs.h
<<\EOF
5847 *) cat >> confdefs.h
<<EOF
5848 #define inline $ac_cv_c_inline
5854 # ------------------------------ #
5855 # Checks for library functions. #
5856 # ------------------------------ #
5858 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5859 # for constant arguments. Useless!
5860 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5861 echo "configure:5862: checking for working alloca.h" >&5
5862 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+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"
5870 char *p = alloca(2 * sizeof(int));
5873 if { (eval echo configure
:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5875 ac_cv_header_alloca_h
=yes
5877 echo "configure: failed program was:" >&5
5878 cat conftest.
$ac_ext >&5
5880 ac_cv_header_alloca_h
=no
5885 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5886 if test $ac_cv_header_alloca_h = yes; then
5887 cat >> confdefs.h
<<\EOF
5888 #define HAVE_ALLOCA_H 1
5893 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5894 echo "configure:5895: checking for alloca" >&5
5895 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5896 echo $ac_n "(cached) $ac_c" 1>&6
5898 cat > conftest.
$ac_ext <<EOF
5899 #line 5900 "configure"
5900 #include "confdefs.h"
5903 # define alloca __builtin_alloca
5906 # include <malloc.h>
5907 # define alloca _alloca
5910 # include <alloca.h>
5915 # ifndef alloca /* predefined by HP cc +Olibcalls */
5924 char *p = (char *) alloca(1);
5927 if { (eval echo configure
:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5929 ac_cv_func_alloca_works
=yes
5931 echo "configure: failed program was:" >&5
5932 cat conftest.
$ac_ext >&5
5934 ac_cv_func_alloca_works
=no
5939 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5940 if test $ac_cv_func_alloca_works = yes; then
5941 cat >> confdefs.h
<<\EOF
5942 #define HAVE_ALLOCA 1
5947 if test $ac_cv_func_alloca_works = no
; then
5948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5949 # that cause trouble. Some versions do not even contain alloca or
5950 # contain a buggy version. If you still want to use their alloca,
5951 # use ar to extract alloca.o from them instead of compiling alloca.c.
5952 ALLOCA
=alloca.
${ac_objext}
5953 cat >> confdefs.h
<<\EOF
5958 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5959 echo "configure:5960: checking whether alloca needs Cray hooks" >&5
5960 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.
$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 #if defined(CRAY) && ! defined(CRAY2)
5973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974 egrep "webecray" >/dev
/null
2>&1; then
5985 echo "$ac_t""$ac_cv_os_cray" 1>&6
5986 if test $ac_cv_os_cray = yes; then
5987 for ac_func
in _getb67 GETB67 getb67
; do
5988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_func" >&5
5990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.
$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* System header to define __stub macros and hopefully few prototypes,
5997 which can conflict with char $ac_func(); below. */
5999 /* Override any gcc2 internal prototype to avoid an error. */
6000 /* We use char because int might match the return type of a gcc2
6001 builtin and then its argument prototype would still apply. */
6006 /* The GNU C library defines this for functions which it implements
6007 to always fail with ENOSYS. Some functions are actually named
6008 something starting with __ and the normal name is an alias. */
6009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6017 if { (eval echo configure
:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6019 eval "ac_cv_func_$ac_func=yes"
6021 echo "configure: failed program was:" >&5
6022 cat conftest.
$ac_ext >&5
6024 eval "ac_cv_func_$ac_func=no"
6029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6031 cat >> confdefs.h
<<EOF
6032 #define CRAY_STACKSEG_END $ac_func
6037 echo "$ac_t""no" 1>&6
6043 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6044 echo "configure:6045: checking stack direction for C alloca" >&5
6045 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6048 if test "$cross_compiling" = yes; then
6049 ac_cv_c_stack_direction
=0
6051 cat > conftest.
$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 find_stack_direction ()
6056 static char *addr = 0;
6061 return find_stack_direction ();
6064 return (&dummy > addr) ? 1 : -1;
6068 exit (find_stack_direction() < 0);
6071 if { (eval echo configure
:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6073 ac_cv_c_stack_direction
=1
6075 echo "configure: failed program was:" >&5
6076 cat conftest.
$ac_ext >&5
6078 ac_cv_c_stack_direction
=-1
6085 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6086 cat >> confdefs.h
<<EOF
6087 #define STACK_DIRECTION $ac_cv_c_stack_direction
6092 for ac_hdr
in unistd.h
6094 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6096 echo "configure:6097: checking for $ac_hdr" >&5
6097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6100 cat > conftest.
$ac_ext <<EOF
6101 #line 6102 "configure"
6102 #include "confdefs.h"
6105 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6106 { (eval echo configure
:6107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6107 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6108 if test -z "$ac_err"; then
6110 eval "ac_cv_header_$ac_safe=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.
$ac_ext >&5
6116 eval "ac_cv_header_$ac_safe=no"
6120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6121 echo "$ac_t""yes" 1>&6
6122 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6123 cat >> confdefs.h
<<EOF
6124 #define $ac_tr_hdr 1
6128 echo "$ac_t""no" 1>&6
6132 for ac_func
in getpagesize
6134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6135 echo "configure:6136: checking for $ac_func" >&5
6136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6139 cat > conftest.
$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 /* System header to define __stub macros and hopefully few prototypes,
6143 which can conflict with char $ac_func(); below. */
6145 /* Override any gcc2 internal prototype to avoid an error. */
6146 /* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6152 /* The GNU C library defines this for functions which it implements
6153 to always fail with ENOSYS. Some functions are actually named
6154 something starting with __ and the normal name is an alias. */
6155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6163 if { (eval echo configure
:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6165 eval "ac_cv_func_$ac_func=yes"
6167 echo "configure: failed program was:" >&5
6168 cat conftest.
$ac_ext >&5
6170 eval "ac_cv_func_$ac_func=no"
6175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6176 echo "$ac_t""yes" 1>&6
6177 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6178 cat >> confdefs.h
<<EOF
6179 #define $ac_tr_func 1
6183 echo "$ac_t""no" 1>&6
6187 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6188 echo "configure:6189: checking for working mmap" >&5
6189 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 if test "$cross_compiling" = yes; then
6193 ac_cv_func_mmap_fixed_mapped
=no
6195 cat > conftest.
$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6199 /* Thanks to Mike Haertel and Jim Avera for this test.
6200 Here is a matrix of mmap possibilities:
6201 mmap private not fixed
6202 mmap private fixed at somewhere currently unmapped
6203 mmap private fixed at somewhere already mapped
6204 mmap shared not fixed
6205 mmap shared fixed at somewhere currently unmapped
6206 mmap shared fixed at somewhere already mapped
6207 For private mappings, we should verify that changes cannot be read()
6208 back from the file, nor mmap's back from the file at a different
6209 address. (There have been systems where private was not correctly
6210 implemented like the infamous i386 svr4.0, and systems where the
6211 VM page cache was not coherent with the filesystem buffer cache
6212 like early versions of FreeBSD and possibly contemporary NetBSD.)
6213 For shared mappings, we should conversely verify that changes get
6214 propogated back to all the places they're supposed to be.
6216 Grep wants private fixed already mapped.
6217 The main things grep needs to know about mmap are:
6218 * does it exist and is it safe to write into the mmap'd area
6219 * how to use it (BSD variants) */
6220 #include <sys/types.h>
6222 #include <sys/mman.h>
6224 /* This mess was copied from the GNU getpagesize.h. */
6225 #ifndef HAVE_GETPAGESIZE
6226 # ifdef HAVE_UNISTD_H
6227 # include <unistd.h>
6230 /* Assume that all systems that can run configure have sys/param.h. */
6231 # ifndef HAVE_SYS_PARAM_H
6232 # define HAVE_SYS_PARAM_H 1
6235 # ifdef _SC_PAGESIZE
6236 # define getpagesize() sysconf(_SC_PAGESIZE)
6237 # else /* no _SC_PAGESIZE */
6238 # ifdef HAVE_SYS_PARAM_H
6239 # include <sys/param.h>
6240 # ifdef EXEC_PAGESIZE
6241 # define getpagesize() EXEC_PAGESIZE
6242 # else /* no EXEC_PAGESIZE */
6244 # define getpagesize() NBPG * CLSIZE
6247 # endif /* no CLSIZE */
6248 # else /* no NBPG */
6250 # define getpagesize() NBPC
6251 # else /* no NBPC */
6253 # define getpagesize() PAGESIZE
6254 # endif /* PAGESIZE */
6255 # endif /* no NBPC */
6256 # endif /* no NBPG */
6257 # endif /* no EXEC_PAGESIZE */
6258 # else /* no HAVE_SYS_PARAM_H */
6259 # define getpagesize() 8192 /* punt totally */
6260 # endif /* no HAVE_SYS_PARAM_H */
6261 # endif /* no _SC_PAGESIZE */
6263 #endif /* no HAVE_GETPAGESIZE */
6266 extern "C" { void *malloc(unsigned); }
6274 char *data, *data2, *data3;
6278 pagesize = getpagesize();
6281 * First, make a file with some known garbage in it.
6283 data = malloc(pagesize);
6286 for (i = 0; i < pagesize; ++i)
6287 *(data + i) = rand();
6289 fd = creat("conftestmmap", 0600);
6292 if (write(fd, data, pagesize) != pagesize)
6297 * Next, try to mmap the file at a fixed address which
6298 * already has something else allocated at it. If we can,
6299 * also make sure that we see the same garbage.
6301 fd = open("conftestmmap", O_RDWR);
6304 data2 = malloc(2 * pagesize);
6307 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6308 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6309 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6311 for (i = 0; i < pagesize; ++i)
6312 if (*(data + i) != *(data2 + i))
6316 * Finally, make sure that changes to the mapped area
6317 * do not percolate back to the file as seen by read().
6318 * (This is a bug on some variants of i386 svr4.0.)
6320 for (i = 0; i < pagesize; ++i)
6321 *(data2 + i) = *(data2 + i) + 1;
6322 data3 = malloc(pagesize);
6325 if (read(fd, data3, pagesize) != pagesize)
6327 for (i = 0; i < pagesize; ++i)
6328 if (*(data + i) != *(data3 + i))
6331 unlink("conftestmmap");
6336 if { (eval echo configure
:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6338 ac_cv_func_mmap_fixed_mapped
=yes
6340 echo "configure: failed program was:" >&5
6341 cat conftest.
$ac_ext >&5
6343 ac_cv_func_mmap_fixed_mapped
=no
6350 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6351 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6352 cat >> confdefs.h
<<\EOF
6358 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6359 echo "configure:6360: checking for pid_t" >&5
6360 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6361 echo $ac_n "(cached) $ac_c" 1>&6
6363 cat > conftest.
$ac_ext <<EOF
6364 #line 6365 "configure"
6365 #include "confdefs.h"
6366 #include <sys/types.h>
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6375 ac_cv_type_pid_t
=yes
6383 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6384 if test $ac_cv_type_pid_t = no
; then
6385 cat >> confdefs.h
<<\EOF
6391 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6392 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6393 echo "configure:6394: checking for vfork.h" >&5
6394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 cat > conftest.
$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6403 { (eval echo configure
:6404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6405 if test -z "$ac_err"; then
6407 eval "ac_cv_header_$ac_safe=yes"
6410 echo "configure: failed program was:" >&5
6411 cat conftest.
$ac_ext >&5
6413 eval "ac_cv_header_$ac_safe=no"
6417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6418 echo "$ac_t""yes" 1>&6
6419 cat >> confdefs.h
<<\EOF
6420 #define HAVE_VFORK_H 1
6424 echo "$ac_t""no" 1>&6
6427 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6428 echo "configure:6429: checking for working vfork" >&5
6429 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 if test "$cross_compiling" = yes; then
6433 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6434 echo "configure:6435: checking for vfork" >&5
6435 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 cat > conftest.
$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* System header to define __stub macros and hopefully few prototypes,
6442 which can conflict with char vfork(); below. */
6444 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6451 /* The GNU C library defines this for functions which it implements
6452 to always fail with ENOSYS. Some functions are actually named
6453 something starting with __ and the normal name is an alias. */
6454 #if defined (__stub_vfork) || defined (__stub___vfork)
6462 if { (eval echo configure
:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6464 eval "ac_cv_func_vfork=yes"
6466 echo "configure: failed program was:" >&5
6467 cat conftest.
$ac_ext >&5
6469 eval "ac_cv_func_vfork=no"
6474 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6478 echo "$ac_t""no" 1>&6
6481 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6483 cat > conftest.
$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* Thanks to Paul Eggert for this test. */
6488 #include <sys/types.h>
6489 #include <sys/stat.h>
6490 #ifdef HAVE_UNISTD_H
6496 /* On some sparc systems, changes by the child to local and incoming
6497 argument registers are propagated back to the parent.
6498 The compiler is told about this with #include <vfork.h>,
6499 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6500 Test for this by using a static variable whose address
6501 is put into a register that is clobbered by the vfork. */
6504 sparc_address_test (int arg)
6506 sparc_address_test (arg) int arg;
6524 pid_t parent = getpid ();
6527 sparc_address_test ();
6532 /* Here is another test for sparc vfork register problems.
6533 This test uses lots of local variables, at least
6534 as many local variables as main has allocated so far
6535 including compiler temporaries. 4 locals are enough for
6536 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6537 A buggy compiler should reuse the register of parent
6538 for one of the local variables, since it will think that
6539 parent can't possibly be used any more in this routine.
6540 Assigning to the local variable will thus munge parent
6541 in the parent process. */
6543 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6544 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6545 /* Convince the compiler that p..p7 are live; otherwise, it might
6546 use the same hardware register for all 8 local variables. */
6547 if (p != p1 || p != p2 || p != p3 || p != p4
6548 || p != p5 || p != p6 || p != p7)
6551 /* On some systems (e.g. IRIX 3.3),
6552 vfork doesn't separate parent from child file descriptors.
6553 If the child closes a descriptor before it execs or exits,
6554 this munges the parent's descriptor as well.
6555 Test for this by closing stdout in the child. */
6556 _exit(close(fileno(stdout)) != 0);
6561 while (wait(&status) != child)
6564 /* Was there some problem with vforking? */
6567 /* Did the child fail? (This shouldn't happen.) */
6570 /* Did the vfork/compiler bug occur? */
6571 || parent != getpid()
6573 /* Did the file descriptor bug occur? */
6574 || fstat(fileno(stdout), &st) != 0
6579 if { (eval echo configure
:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6581 ac_cv_func_vfork_works
=yes
6583 echo "configure: failed program was:" >&5
6584 cat conftest.
$ac_ext >&5
6586 ac_cv_func_vfork_works
=no
6593 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6594 if test $ac_cv_func_vfork_works = no
; then
6595 cat >> confdefs.h
<<\EOF
6601 for ac_func
in canonicalize_file_name realpath
6603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_func" >&5
6605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 cat > conftest.
$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 /* System header to define __stub macros and hopefully few prototypes,
6612 which can conflict with char $ac_func(); below. */
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6621 /* The GNU C library defines this for functions which it implements
6622 to always fail with ENOSYS. Some functions are actually named
6623 something starting with __ and the normal name is an alias. */
6624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6632 if { (eval echo configure
:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6634 eval "ac_cv_func_$ac_func=yes"
6636 echo "configure: failed program was:" >&5
6637 cat conftest.
$ac_ext >&5
6639 eval "ac_cv_func_$ac_func=no"
6644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6645 echo "$ac_t""yes" 1>&6
6646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6647 cat >> confdefs.h
<<EOF
6648 #define $ac_tr_func 1
6652 echo "$ac_t""no" 1>&6
6658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_func" >&5
6660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6663 cat > conftest.
$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func(); below. */
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 if { (eval echo configure
:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6689 eval "ac_cv_func_$ac_func=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.
$ac_ext >&5
6694 eval "ac_cv_func_$ac_func=no"
6699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6702 cat >> confdefs.h
<<EOF
6703 #define $ac_tr_func 1
6707 echo "$ac_t""no" 1>&6
6711 for ac_func
in pread64
6713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6714 echo "configure:6715: checking for $ac_func" >&5
6715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6716 echo $ac_n "(cached) $ac_c" 1>&6
6718 cat > conftest.
$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* System header to define __stub macros and hopefully few prototypes,
6722 which can conflict with char $ac_func(); below. */
6724 /* Override any gcc2 internal prototype to avoid an error. */
6725 /* We use char because int might match the return type of a gcc2
6726 builtin and then its argument prototype would still apply. */
6731 /* The GNU C library defines this for functions which it implements
6732 to always fail with ENOSYS. Some functions are actually named
6733 something starting with __ and the normal name is an alias. */
6734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6742 if { (eval echo configure
:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6744 eval "ac_cv_func_$ac_func=yes"
6746 echo "configure: failed program was:" >&5
6747 cat conftest.
$ac_ext >&5
6749 eval "ac_cv_func_$ac_func=no"
6754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6755 echo "$ac_t""yes" 1>&6
6756 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6757 cat >> confdefs.h
<<EOF
6758 #define $ac_tr_func 1
6762 echo "$ac_t""no" 1>&6
6768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6769 echo "configure:6770: checking for $ac_func" >&5
6770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
6776 /* System header to define __stub macros and hopefully few prototypes,
6777 which can conflict with char $ac_func(); below. */
6779 /* Override any gcc2 internal prototype to avoid an error. */
6780 /* We use char because int might match the return type of a gcc2
6781 builtin and then its argument prototype would still apply. */
6786 /* The GNU C library defines this for functions which it implements
6787 to always fail with ENOSYS. Some functions are actually named
6788 something starting with __ and the normal name is an alias. */
6789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6797 if { (eval echo configure
:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6799 eval "ac_cv_func_$ac_func=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.
$ac_ext >&5
6804 eval "ac_cv_func_$ac_func=no"
6809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6810 echo "$ac_t""yes" 1>&6
6811 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6812 cat >> confdefs.h
<<EOF
6813 #define $ac_tr_func 1
6817 echo "$ac_t""no" 1>&6
6821 for ac_func
in setpgid setpgrp
6823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6824 echo "configure:6825: checking for $ac_func" >&5
6825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.
$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func(); below. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6841 /* The GNU C library defines this for functions which it implements
6842 to always fail with ENOSYS. Some functions are actually named
6843 something starting with __ and the normal name is an alias. */
6844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6852 if { (eval echo configure
:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6854 eval "ac_cv_func_$ac_func=yes"
6856 echo "configure: failed program was:" >&5
6857 cat conftest.
$ac_ext >&5
6859 eval "ac_cv_func_$ac_func=no"
6864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6866 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6867 cat >> confdefs.h
<<EOF
6868 #define $ac_tr_func 1
6872 echo "$ac_t""no" 1>&6
6876 for ac_func
in sigaction sigprocmask sigsetmask
6878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6879 echo "configure:6880: checking for $ac_func" >&5
6880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 cat > conftest.
$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 /* System header to define __stub macros and hopefully few prototypes,
6887 which can conflict with char $ac_func(); below. */
6889 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6896 /* The GNU C library defines this for functions which it implements
6897 to always fail with ENOSYS. Some functions are actually named
6898 something starting with __ and the normal name is an alias. */
6899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6907 if { (eval echo configure
:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6909 eval "ac_cv_func_$ac_func=yes"
6911 echo "configure: failed program was:" >&5
6912 cat conftest.
$ac_ext >&5
6914 eval "ac_cv_func_$ac_func=no"
6919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6920 echo "$ac_t""yes" 1>&6
6921 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6922 cat >> confdefs.h
<<EOF
6923 #define $ac_tr_func 1
6927 echo "$ac_t""no" 1>&6
6931 for ac_func
in socketpair
6933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6934 echo "configure:6935: checking for $ac_func" >&5
6935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6938 cat > conftest.
$ac_ext <<EOF
6939 #line 6940 "configure"
6940 #include "confdefs.h"
6941 /* System header to define __stub macros and hopefully few prototypes,
6942 which can conflict with char $ac_func(); below. */
6944 /* Override any gcc2 internal prototype to avoid an error. */
6945 /* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6951 /* The GNU C library defines this for functions which it implements
6952 to always fail with ENOSYS. Some functions are actually named
6953 something starting with __ and the normal name is an alias. */
6954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6962 if { (eval echo configure
:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6964 eval "ac_cv_func_$ac_func=yes"
6966 echo "configure: failed program was:" >&5
6967 cat conftest.
$ac_ext >&5
6969 eval "ac_cv_func_$ac_func=no"
6974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6975 echo "$ac_t""yes" 1>&6
6976 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6977 cat >> confdefs.h
<<EOF
6978 #define $ac_tr_func 1
6982 echo "$ac_t""no" 1>&6
6986 for ac_func
in syscall
6988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6989 echo "configure:6990: checking for $ac_func" >&5
6990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6993 cat > conftest.
$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6996 /* System header to define __stub macros and hopefully few prototypes,
6997 which can conflict with char $ac_func(); below. */
6999 /* Override any gcc2 internal prototype to avoid an error. */
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7006 /* The GNU C library defines this for functions which it implements
7007 to always fail with ENOSYS. Some functions are actually named
7008 something starting with __ and the normal name is an alias. */
7009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7017 if { (eval echo configure
:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7019 eval "ac_cv_func_$ac_func=yes"
7021 echo "configure: failed program was:" >&5
7022 cat conftest.
$ac_ext >&5
7024 eval "ac_cv_func_$ac_func=no"
7029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7030 echo "$ac_t""yes" 1>&6
7031 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7032 cat >> confdefs.h
<<EOF
7033 #define $ac_tr_func 1
7037 echo "$ac_t""no" 1>&6
7042 if test "$cross_compiling" = no
; then
7043 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7044 echo "configure:7045: checking whether setpgrp takes no argument" >&5
7045 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7048 if test "$cross_compiling" = yes; then
7049 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7051 cat > conftest.
$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7055 #ifdef HAVE_UNISTD_H
7060 * If this system has a BSD-style setpgrp, which takes arguments, exit
7065 if (setpgrp(1,1) == -1)
7072 if { (eval echo configure
:7073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7074 ac_cv_func_setpgrp_void
=no
7076 echo "configure: failed program was:" >&5
7077 cat conftest.
$ac_ext >&5
7079 ac_cv_func_setpgrp_void
=yes
7087 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7088 if test $ac_cv_func_setpgrp_void = yes; then
7089 cat >> confdefs.h
<<\EOF
7090 #define SETPGRP_VOID 1
7096 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7097 echo "configure:7098: checking whether setpgrp takes no argument" >&5
7098 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7101 cat > conftest.
$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7109 if (setpgrp(1,1) == -1)
7116 if { (eval echo configure
:7117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7118 ac_cv_func_setpgrp_void
=no
7120 echo "configure: failed program was:" >&5
7121 cat conftest.
$ac_ext >&5
7123 ac_cv_func_setpgrp_void
=yes
7128 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7129 if test $ac_cv_func_setpgrp_void = yes; then
7130 cat >> confdefs.h
<<\EOF
7131 #define SETPGRP_VOID 1
7137 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7138 # since sigsetjmp might only be defined as a macro.
7139 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7140 echo "configure:7141: checking for sigsetjmp" >&5
7141 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7144 cat > conftest.
$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7151 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7154 if { (eval echo configure
:7155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7156 gdb_cv_func_sigsetjmp
=yes
7158 echo "configure: failed program was:" >&5
7159 cat conftest.
$ac_ext >&5
7161 gdb_cv_func_sigsetjmp
=no
7166 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7167 if test $gdb_cv_func_sigsetjmp = yes; then
7168 cat >> confdefs.h
<<\EOF
7169 #define HAVE_SIGSETJMP 1
7174 # Assume we'll default to using the included libiberty regex.
7175 gdb_use_included_regex
=yes
7177 # However, if the system regex is GNU regex, then default to *not*
7178 # using the included regex.
7179 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7180 echo "configure:7181: checking for GNU regex" >&5
7181 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 cat > conftest.
$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 #include <gnu-versions.h>
7189 #define REGEX_INTERFACE_VERSION 1
7190 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7191 # error "Version mismatch"
7195 if { (eval echo configure
:7196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7197 gdb_cv_have_gnu_regex
=yes
7199 echo "configure: failed program was:" >&5
7200 cat conftest.
$ac_ext >&5
7202 gdb_cv_have_gnu_regex
=no
7207 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7208 if test $gdb_cv_have_gnu_regex = yes; then
7209 gdb_use_included_regex
=no
7212 # Check whether --with-included-regex or --without-included-regex was given.
7213 if test "${with_included_regex+set}" = set; then
7214 withval
="$with_included_regex"
7215 gdb_with_regex
=$withval
7217 gdb_with_regex
=$gdb_use_included_regex
7220 if test "$gdb_with_regex" = yes; then
7221 cat >> confdefs.h
<<\EOF
7222 #define USE_INCLUDED_REGEX 1
7227 # See if <machine/reg.h> degines `struct reg'.
7228 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7229 echo "configure:7230: checking for struct reg in machine/reg.h" >&5
7230 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7233 cat > conftest.
$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 #include <sys/types.h>
7237 #include <machine/reg.h>
7242 if { (eval echo configure
:7243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7244 gdb_cv_struct_reg
=yes
7246 echo "configure: failed program was:" >&5
7247 cat conftest.
$ac_ext >&5
7249 gdb_cv_struct_reg
=no
7254 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7255 if test $gdb_cv_struct_reg = yes; then
7256 cat >> confdefs.h
<<\EOF
7257 #define HAVE_STRUCT_REG 1
7262 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7263 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7264 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7265 echo "configure:7266: checking for r_fs in struct reg" >&5
7266 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7269 cat > conftest.
$ac_ext <<EOF
7270 #line 7271 "configure"
7271 #include "confdefs.h"
7272 #include <machine/reg.h>
7274 struct reg r; r.r_fs;
7277 if { (eval echo configure
:7278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7279 gdb_cv_struct_reg_r_fs
=yes
7281 echo "configure: failed program was:" >&5
7282 cat conftest.
$ac_ext >&5
7284 gdb_cv_struct_reg_r_fs
=no
7289 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7290 if test $gdb_cv_struct_reg_r_fs = yes; then
7291 cat >> confdefs.h
<<\EOF
7292 #define HAVE_STRUCT_REG_R_FS 1
7296 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7297 echo "configure:7298: checking for r_gs in struct reg" >&5
7298 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7301 cat > conftest.
$ac_ext <<EOF
7302 #line 7303 "configure"
7303 #include "confdefs.h"
7304 #include <machine/reg.h>
7306 struct reg r; r.r_gs;
7309 if { (eval echo configure
:7310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7311 gdb_cv_struct_reg_r_gs
=yes
7313 echo "configure: failed program was:" >&5
7314 cat conftest.
$ac_ext >&5
7316 gdb_cv_struct_reg_r_gs
=no
7321 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7322 if test $gdb_cv_struct_reg_r_gs = yes; then
7323 cat >> confdefs.h
<<\EOF
7324 #define HAVE_STRUCT_REG_R_GS 1
7329 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7330 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7331 echo "configure:7332: checking for PTRACE_GETREGS" >&5
7332 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7333 echo $ac_n "(cached) $ac_c" 1>&6
7335 cat > conftest.
$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 #include <sys/ptrace.h>
7343 if { (eval echo configure
:7344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7345 gdb_cv_have_ptrace_getregs
=yes
7347 echo "configure: failed program was:" >&5
7348 cat conftest.
$ac_ext >&5
7350 gdb_cv_have_ptrace_getregs
=no
7355 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7356 if test $gdb_cv_have_ptrace_getregs = yes; then
7357 cat >> confdefs.h
<<\EOF
7358 #define HAVE_PTRACE_GETREGS 1
7363 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7364 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7365 echo "configure:7366: checking for PTRACE_GETFPXREGS" >&5
7366 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7369 cat > conftest.
$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7372 #include <sys/ptrace.h>
7377 if { (eval echo configure
:7378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7379 gdb_cv_have_ptrace_getfpxregs
=yes
7381 echo "configure: failed program was:" >&5
7382 cat conftest.
$ac_ext >&5
7384 gdb_cv_have_ptrace_getfpxregs
=no
7389 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7390 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7391 cat >> confdefs.h
<<\EOF
7392 #define HAVE_PTRACE_GETFPXREGS 1
7397 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7398 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7399 echo "configure:7400: checking for PT_GETDBREGS" >&5
7400 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.
$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 #include <sys/types.h>
7407 #include <sys/ptrace.h>
7412 if { (eval echo configure
:7413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7414 gdb_cv_have_pt_getdbregs
=yes
7416 echo "configure: failed program was:" >&5
7417 cat conftest.
$ac_ext >&5
7419 gdb_cv_have_pt_getdbregs
=no
7424 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7425 if test $gdb_cv_have_pt_getdbregs = yes; then
7426 cat >> confdefs.h
<<\EOF
7427 #define HAVE_PT_GETDBREGS 1
7432 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7433 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7434 echo "configure:7435: checking for PT_GETXMMREGS" >&5
7435 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 cat > conftest.
$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 #include <sys/types.h>
7442 #include <sys/ptrace.h>
7447 if { (eval echo configure
:7448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7449 gdb_cv_have_pt_getxmmregs
=yes
7451 echo "configure: failed program was:" >&5
7452 cat conftest.
$ac_ext >&5
7454 gdb_cv_have_pt_getxmmregs
=no
7459 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7460 if test $gdb_cv_have_pt_getxmmregs = yes; then
7461 cat >> confdefs.h
<<\EOF
7462 #define HAVE_PT_GETXMMREGS 1
7467 # See if stdint.h provides the uintptr_t type.
7468 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7469 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7470 echo "configure:7471: checking for uintptr_t in stdint.h" >&5
7471 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6
7474 cat > conftest.
$ac_ext <<EOF
7475 #line 7476 "configure"
7476 #include "confdefs.h"
7482 if { (eval echo configure
:7483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7484 gdb_cv_have_uintptr_t
=yes
7486 echo "configure: failed program was:" >&5
7487 cat conftest.
$ac_ext >&5
7489 gdb_cv_have_uintptr_t
=no
7494 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7495 if test $gdb_cv_have_uintptr_t = yes; then
7496 cat >> confdefs.h
<<\EOF
7497 #define HAVE_UINTPTR_T 1
7502 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7503 echo "configure:7504: checking whether malloc must be declared" >&5
7504 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7505 echo $ac_n "(cached) $ac_c" 1>&6
7507 cat > conftest.
$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7512 #ifdef HAVE_STRING_H
7515 #ifdef HAVE_STRINGS_H
7516 #include <strings.h>
7519 #ifdef HAVE_STDLIB_H
7522 #ifdef HAVE_UNISTD_H
7526 char *(*pfn) = (char *(*)) malloc
7529 if { (eval echo configure
:7530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7531 bfd_cv_decl_needed_malloc
=no
7533 echo "configure: failed program was:" >&5
7534 cat conftest.
$ac_ext >&5
7536 bfd_cv_decl_needed_malloc
=yes
7541 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7542 if test $bfd_cv_decl_needed_malloc = yes; then
7543 cat >> confdefs.h
<<\EOF
7544 #define NEED_DECLARATION_MALLOC 1
7549 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7550 echo "configure:7551: checking whether realloc must be declared" >&5
7551 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7552 echo $ac_n "(cached) $ac_c" 1>&6
7554 cat > conftest.
$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7559 #ifdef HAVE_STRING_H
7562 #ifdef HAVE_STRINGS_H
7563 #include <strings.h>
7566 #ifdef HAVE_STDLIB_H
7569 #ifdef HAVE_UNISTD_H
7573 char *(*pfn) = (char *(*)) realloc
7576 if { (eval echo configure
:7577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7578 bfd_cv_decl_needed_realloc
=no
7580 echo "configure: failed program was:" >&5
7581 cat conftest.
$ac_ext >&5
7583 bfd_cv_decl_needed_realloc
=yes
7588 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7589 if test $bfd_cv_decl_needed_realloc = yes; then
7590 cat >> confdefs.h
<<\EOF
7591 #define NEED_DECLARATION_REALLOC 1
7596 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7597 echo "configure:7598: checking whether free must be declared" >&5
7598 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7601 cat > conftest.
$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7606 #ifdef HAVE_STRING_H
7609 #ifdef HAVE_STRINGS_H
7610 #include <strings.h>
7613 #ifdef HAVE_STDLIB_H
7616 #ifdef HAVE_UNISTD_H
7620 char *(*pfn) = (char *(*)) free
7623 if { (eval echo configure
:7624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7625 bfd_cv_decl_needed_free
=no
7627 echo "configure: failed program was:" >&5
7628 cat conftest.
$ac_ext >&5
7630 bfd_cv_decl_needed_free
=yes
7635 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7636 if test $bfd_cv_decl_needed_free = yes; then
7637 cat >> confdefs.h
<<\EOF
7638 #define NEED_DECLARATION_FREE 1
7643 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7644 echo "configure:7645: checking whether strerror must be declared" >&5
7645 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7648 cat > conftest.
$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7653 #ifdef HAVE_STRING_H
7656 #ifdef HAVE_STRINGS_H
7657 #include <strings.h>
7660 #ifdef HAVE_STDLIB_H
7663 #ifdef HAVE_UNISTD_H
7667 char *(*pfn) = (char *(*)) strerror
7670 if { (eval echo configure
:7671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7672 bfd_cv_decl_needed_strerror
=no
7674 echo "configure: failed program was:" >&5
7675 cat conftest.
$ac_ext >&5
7677 bfd_cv_decl_needed_strerror
=yes
7682 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7683 if test $bfd_cv_decl_needed_strerror = yes; then
7684 cat >> confdefs.h
<<\EOF
7685 #define NEED_DECLARATION_STRERROR 1
7690 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7691 echo "configure:7692: checking whether strdup must be declared" >&5
7692 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7695 cat > conftest.
$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7700 #ifdef HAVE_STRING_H
7703 #ifdef HAVE_STRINGS_H
7704 #include <strings.h>
7707 #ifdef HAVE_STDLIB_H
7710 #ifdef HAVE_UNISTD_H
7714 char *(*pfn) = (char *(*)) strdup
7717 if { (eval echo configure
:7718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7719 bfd_cv_decl_needed_strdup
=no
7721 echo "configure: failed program was:" >&5
7722 cat conftest.
$ac_ext >&5
7724 bfd_cv_decl_needed_strdup
=yes
7729 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7730 if test $bfd_cv_decl_needed_strdup = yes; then
7731 cat >> confdefs.h
<<\EOF
7732 #define NEED_DECLARATION_STRDUP 1
7737 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7738 echo "configure:7739: checking whether strstr must be declared" >&5
7739 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 cat > conftest.
$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7747 #ifdef HAVE_STRING_H
7750 #ifdef HAVE_STRINGS_H
7751 #include <strings.h>
7754 #ifdef HAVE_STDLIB_H
7757 #ifdef HAVE_UNISTD_H
7761 char *(*pfn) = (char *(*)) strstr
7764 if { (eval echo configure
:7765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7766 bfd_cv_decl_needed_strstr
=no
7768 echo "configure: failed program was:" >&5
7769 cat conftest.
$ac_ext >&5
7771 bfd_cv_decl_needed_strstr
=yes
7776 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7777 if test $bfd_cv_decl_needed_strstr = yes; then
7778 cat >> confdefs.h
<<\EOF
7779 #define NEED_DECLARATION_STRSTR 1
7784 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7785 echo "configure:7786: checking whether canonicalize_file_name must be declared" >&5
7786 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 cat > conftest.
$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7794 #ifdef HAVE_STRING_H
7797 #ifdef HAVE_STRINGS_H
7798 #include <strings.h>
7801 #ifdef HAVE_STDLIB_H
7804 #ifdef HAVE_UNISTD_H
7808 char *(*pfn) = (char *(*)) canonicalize_file_name
7811 if { (eval echo configure
:7812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7813 bfd_cv_decl_needed_canonicalize_file_name
=no
7815 echo "configure: failed program was:" >&5
7816 cat conftest.
$ac_ext >&5
7818 bfd_cv_decl_needed_canonicalize_file_name
=yes
7823 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7824 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7825 cat >> confdefs.h
<<\EOF
7826 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7832 # The following save_state_t checkery is only necessary for HPUX
7833 # versions earlier than 10.20. When those fade from memory, this
7834 # could be expunged. --jsm 1999-03-22
7836 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7837 echo "configure:7838: checking for HPUX save_state structure" >&5
7838 cat > conftest.
$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 #include <machine/save_state.h>
7843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7844 egrep "save_state_t" >/dev
/null
2>&1; then
7846 gdb_cv_hpux_savestate
=yes
7849 gdb_cv_hpux_savestate
=no
7853 cat > conftest.
$ac_ext <<EOF
7854 #line 7855 "configure"
7855 #include "confdefs.h"
7856 #include <machine/save_state.h>
7858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7859 egrep "ss_wide" >/dev
/null
2>&1; then
7861 gdb_cv_hpux_sswide
=yes
7864 gdb_cv_hpux_sswide
=no
7868 if test $gdb_cv_hpux_savestate = yes
7870 cat >> confdefs.h
<<\EOF
7871 #define HAVE_STRUCT_SAVE_STATE_T 1
7875 if test $gdb_cv_hpux_sswide = yes
7877 cat >> confdefs.h
<<\EOF
7878 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7882 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7885 # If we are configured native on GNU/Linux, work around problems with
7887 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7889 if test "${target}" = "${host}"; then
7892 cat >> confdefs.h
<<\EOF
7893 #define START_INFERIOR_TRAPS_EXPECTED 2
7896 cat >> confdefs.h
<<\EOF
7897 #define sys_quotactl 1
7902 cat >> confdefs.h
<<\EOF
7903 #define NEW_PROC_API 1
7907 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7908 cat >> confdefs.h
<<\EOF
7909 #define NEW_PROC_API 1
7914 cat >> confdefs.h
<<\EOF
7915 #define NEW_PROC_API 1
7922 if test "$ac_cv_header_sys_procfs_h" = yes; then
7923 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7924 echo "configure:7925: checking for pstatus_t in sys/procfs.h" >&5
7925 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.
$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7933 #include <sys/procfs.h>
7938 if { (eval echo configure
:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7940 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7942 echo "configure: failed program was:" >&5
7943 cat conftest.
$ac_ext >&5
7945 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7951 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7952 cat >> confdefs.h
<<\EOF
7953 #define HAVE_PSTATUS_T 1
7957 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7959 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7960 echo "configure:7961: checking for prrun_t in sys/procfs.h" >&5
7961 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7964 cat > conftest.
$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7969 #include <sys/procfs.h>
7974 if { (eval echo configure
:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7976 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7978 echo "configure: failed program was:" >&5
7979 cat conftest.
$ac_ext >&5
7981 bfd_cv_have_sys_procfs_type_prrun_t
=no
7987 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7988 cat >> confdefs.h
<<\EOF
7989 #define HAVE_PRRUN_T 1
7993 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7995 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7996 echo "configure:7997: checking for gregset_t in sys/procfs.h" >&5
7997 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8000 cat > conftest.
$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8005 #include <sys/procfs.h>
8010 if { (eval echo configure
:8011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8012 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8014 echo "configure: failed program was:" >&5
8015 cat conftest.
$ac_ext >&5
8017 bfd_cv_have_sys_procfs_type_gregset_t
=no
8023 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8024 cat >> confdefs.h
<<\EOF
8025 #define HAVE_GREGSET_T 1
8029 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8031 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8032 echo "configure:8033: checking for fpregset_t in sys/procfs.h" >&5
8033 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8036 cat > conftest.
$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8041 #include <sys/procfs.h>
8046 if { (eval echo configure
:8047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8048 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8050 echo "configure: failed program was:" >&5
8051 cat conftest.
$ac_ext >&5
8053 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8059 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8060 cat >> confdefs.h
<<\EOF
8061 #define HAVE_FPREGSET_T 1
8065 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8067 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8068 echo "configure:8069: checking for prgregset_t in sys/procfs.h" >&5
8069 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8072 cat > conftest.
$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8077 #include <sys/procfs.h>
8082 if { (eval echo configure
:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8084 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8089 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8095 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8096 cat >> confdefs.h
<<\EOF
8097 #define HAVE_PRGREGSET_T 1
8101 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8103 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8104 echo "configure:8105: checking for prfpregset_t in sys/procfs.h" >&5
8105 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8108 cat > conftest.
$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8113 #include <sys/procfs.h>
8118 if { (eval echo configure
:8119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8120 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8122 echo "configure: failed program was:" >&5
8123 cat conftest.
$ac_ext >&5
8125 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8131 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8132 cat >> confdefs.h
<<\EOF
8133 #define HAVE_PRFPREGSET_T 1
8137 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8139 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8140 echo "configure:8141: checking for prgregset32_t in sys/procfs.h" >&5
8141 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8144 cat > conftest.
$ac_ext <<EOF
8145 #line 8146 "configure"
8146 #include "confdefs.h"
8149 #include <sys/procfs.h>
8154 if { (eval echo configure
:8155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8156 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8158 echo "configure: failed program was:" >&5
8159 cat conftest.
$ac_ext >&5
8161 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8167 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8168 cat >> confdefs.h
<<\EOF
8169 #define HAVE_PRGREGSET32_T 1
8173 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8175 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8176 echo "configure:8177: checking for prfpregset32_t in sys/procfs.h" >&5
8177 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8178 echo $ac_n "(cached) $ac_c" 1>&6
8180 cat > conftest.
$ac_ext <<EOF
8181 #line 8182 "configure"
8182 #include "confdefs.h"
8185 #include <sys/procfs.h>
8190 if { (eval echo configure
:8191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8192 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
8194 echo "configure: failed program was:" >&5
8195 cat conftest.
$ac_ext >&5
8197 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
8203 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8204 cat >> confdefs.h
<<\EOF
8205 #define HAVE_PRFPREGSET32_T 1
8209 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8211 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8212 echo "configure:8213: checking for lwpid_t in sys/procfs.h" >&5
8213 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8216 cat > conftest.
$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8221 #include <sys/procfs.h>
8226 if { (eval echo configure
:8227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8228 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8230 echo "configure: failed program was:" >&5
8231 cat conftest.
$ac_ext >&5
8233 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8239 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8240 cat >> confdefs.h
<<\EOF
8241 #define HAVE_LWPID_T 1
8245 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8247 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8248 echo "configure:8249: checking for psaddr_t in sys/procfs.h" >&5
8249 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8252 cat > conftest.
$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8257 #include <sys/procfs.h>
8262 if { (eval echo configure
:8263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8264 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8266 echo "configure: failed program was:" >&5
8267 cat conftest.
$ac_ext >&5
8269 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8275 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8276 cat >> confdefs.h
<<\EOF
8277 #define HAVE_PSADDR_T 1
8281 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8283 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8284 echo "configure:8285: checking for prsysent_t in sys/procfs.h" >&5
8285 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8288 cat > conftest.
$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8293 #include <sys/procfs.h>
8298 if { (eval echo configure
:8299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8300 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
8302 echo "configure: failed program was:" >&5
8303 cat conftest.
$ac_ext >&5
8305 bfd_cv_have_sys_procfs_type_prsysent_t
=no
8311 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8312 cat >> confdefs.h
<<\EOF
8313 #define HAVE_PRSYSENT_T 1
8317 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8319 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8320 echo "configure:8321: checking for pr_sigset_t in sys/procfs.h" >&5
8321 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8324 cat > conftest.
$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8329 #include <sys/procfs.h>
8334 if { (eval echo configure
:8335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8336 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
8338 echo "configure: failed program was:" >&5
8339 cat conftest.
$ac_ext >&5
8341 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
8347 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8348 cat >> confdefs.h
<<\EOF
8349 #define HAVE_PR_SIGSET_T 1
8353 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8355 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8356 echo "configure:8357: checking for pr_sigaction64_t in sys/procfs.h" >&5
8357 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.
$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8365 #include <sys/procfs.h>
8367 pr_sigaction64_t avar
8370 if { (eval echo configure
:8371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8372 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
8374 echo "configure: failed program was:" >&5
8375 cat conftest.
$ac_ext >&5
8377 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
8383 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8384 cat >> confdefs.h
<<\EOF
8385 #define HAVE_PR_SIGACTION64_T 1
8389 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8391 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8392 echo "configure:8393: checking for pr_siginfo64_t in sys/procfs.h" >&5
8393 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8396 cat > conftest.
$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8401 #include <sys/procfs.h>
8406 if { (eval echo configure
:8407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8408 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
8410 echo "configure: failed program was:" >&5
8411 cat conftest.
$ac_ext >&5
8413 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
8419 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8420 cat >> confdefs.h
<<\EOF
8421 #define HAVE_PR_SIGINFO64_T 1
8425 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8431 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8432 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8433 echo "configure:8434: checking whether prfpregset_t type is broken" >&5
8434 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 if test "$cross_compiling" = yes; then
8438 gdb_cv_prfpregset_t_broken
=yes
8440 cat > conftest.
$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 #include <sys/procfs.h>
8446 if (sizeof (prfpregset_t) == sizeof (void *))
8451 if { (eval echo configure
:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8453 gdb_cv_prfpregset_t_broken
=no
8455 echo "configure: failed program was:" >&5
8456 cat conftest.
$ac_ext >&5
8458 gdb_cv_prfpregset_t_broken
=yes
8465 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8466 if test $gdb_cv_prfpregset_t_broken = yes; then
8467 cat >> confdefs.h
<<\EOF
8468 #define PRFPREGSET_T_BROKEN 1
8475 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8476 echo "configure:8477: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8477 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8480 cat > conftest.
$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8484 #include <sys/types.h>
8485 #include <sys/procfs.h>
8490 dummy = ioctl(0, PIOCSET, &dummy);
8494 if { (eval echo configure
:8495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8496 gdb_cv_have_procfs_piocset
=yes
8498 echo "configure: failed program was:" >&5
8499 cat conftest.
$ac_ext >&5
8501 gdb_cv_have_procfs_piocset
=no
8506 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8507 if test $gdb_cv_have_procfs_piocset = yes; then
8508 cat >> confdefs.h
<<\EOF
8509 #define HAVE_PROCFS_PIOCSET 1
8515 if test ${host} = ${target} ; then
8517 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8518 echo "configure:8519: checking for member l_addr in struct link_map" >&5
8519 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8522 cat > conftest.
$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8527 struct link_map lm; (void) lm.l_addr;
8530 if { (eval echo configure
:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8532 gdb_cv_have_struct_link_map_with_l_members
=yes
8534 echo "configure: failed program was:" >&5
8535 cat conftest.
$ac_ext >&5
8537 gdb_cv_have_struct_link_map_with_l_members
=no
8542 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8543 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8544 cat >> confdefs.h
<<\EOF
8545 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8551 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8552 echo "configure:8553: checking for member lm_addr in struct link_map" >&5
8553 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8554 echo $ac_n "(cached) $ac_c" 1>&6
8556 cat > conftest.
$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 #include <sys/types.h>
8562 struct link_map lm; (void) lm.lm_addr;
8565 if { (eval echo configure
:8566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8567 gdb_cv_have_struct_link_map_with_lm_members
=yes
8569 echo "configure: failed program was:" >&5
8570 cat conftest.
$ac_ext >&5
8572 gdb_cv_have_struct_link_map_with_lm_members
=no
8577 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8578 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8579 cat >> confdefs.h
<<\EOF
8580 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8586 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8587 echo "configure:8588: checking for member som_addr in struct so_map" >&5
8588 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8591 cat > conftest.
$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 #include <sys/types.h>
8600 struct so_map lm; (void) lm.som_addr;
8603 if { (eval echo configure
:8604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8605 gdb_cv_have_struct_so_map_with_som_members
=yes
8607 echo "configure: failed program was:" >&5
8608 cat conftest.
$ac_ext >&5
8610 gdb_cv_have_struct_so_map_with_som_members
=no
8615 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8616 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8617 cat >> confdefs.h
<<\EOF
8618 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8624 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8625 echo "configure:8626: checking for struct link_map32 in sys/link.h" >&5
8626 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8629 cat > conftest.
$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8633 #include <sys/link.h>
8635 struct link_map32 l;
8638 if { (eval echo configure
:8639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8640 gdb_cv_have_struct_link_map32
=yes
8642 echo "configure: failed program was:" >&5
8643 cat conftest.
$ac_ext >&5
8645 gdb_cv_have_struct_link_map32
=no
8650 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8651 if test $gdb_cv_have_struct_link_map32 = yes; then
8652 cat >> confdefs.h
<<\EOF
8653 #define HAVE_STRUCT_LINK_MAP32 1
8656 cat >> confdefs.h
<<\EOF
8657 #define _SYSCALL32 1
8664 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8665 echo "configure:8666: checking for long long support in compiler" >&5
8666 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8669 cat > conftest.
$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8675 extern long long foo;
8676 switch (foo & 2) { case 0: return 1; }
8680 if { (eval echo configure
:8681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8682 gdb_cv_c_long_long
=yes
8684 echo "configure: failed program was:" >&5
8685 cat conftest.
$ac_ext >&5
8687 gdb_cv_c_long_long
=no
8692 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8693 if test $gdb_cv_c_long_long = yes; then
8694 cat >> confdefs.h
<<\EOF
8695 #define CC_HAS_LONG_LONG 1
8701 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8702 echo "configure:8703: checking for long long support in printf" >&5
8703 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8706 if test "$cross_compiling" = yes; then
8707 gdb_cv_printf_has_long_long
=no
8709 cat > conftest.
$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8716 l = (l << 16) + 0x0123;
8717 l = (l << 16) + 0x4567;
8718 l = (l << 16) + 0x89ab;
8719 l = (l << 16) + 0xcdef;
8720 sprintf (buf, "0x%016llx", l);
8721 return (strcmp ("0x0123456789abcdef", buf));
8724 if { (eval echo configure
:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8726 gdb_cv_printf_has_long_long
=yes
8728 echo "configure: failed program was:" >&5
8729 cat conftest.
$ac_ext >&5
8731 gdb_cv_printf_has_long_long
=no
8738 if test $gdb_cv_printf_has_long_long = yes; then
8739 cat >> confdefs.h
<<\EOF
8740 #define PRINTF_HAS_LONG_LONG 1
8744 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8747 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8748 echo "configure:8749: checking for long double support in compiler" >&5
8749 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8752 cat > conftest.
$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8760 if { (eval echo configure
:8761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8762 ac_cv_c_long_double
=yes
8764 echo "configure: failed program was:" >&5
8765 cat conftest.
$ac_ext >&5
8767 ac_cv_c_long_double
=no
8772 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8773 if test $ac_cv_c_long_double = yes; then
8774 cat >> confdefs.h
<<\EOF
8775 #define HAVE_LONG_DOUBLE 1
8781 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8782 echo "configure:8783: checking for long double support in printf" >&5
8783 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8786 if test "$cross_compiling" = yes; then
8787 gdb_cv_printf_has_long_double
=no
8789 cat > conftest.
$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8795 long double f = 3.141592653;
8796 sprintf (buf, "%Lg", f);
8797 return (strncmp ("3.14159", buf, 7));
8800 if { (eval echo configure
:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8802 gdb_cv_printf_has_long_double
=yes
8804 echo "configure: failed program was:" >&5
8805 cat conftest.
$ac_ext >&5
8807 gdb_cv_printf_has_long_double
=no
8814 if test $gdb_cv_printf_has_long_double = yes; then
8815 cat >> confdefs.h
<<\EOF
8816 #define PRINTF_HAS_LONG_DOUBLE 1
8820 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8823 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8824 echo "configure:8825: checking for long double support in scanf" >&5
8825 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8826 echo $ac_n "(cached) $ac_c" 1>&6
8828 if test "$cross_compiling" = yes; then
8829 gdb_cv_scanf_has_long_double
=no
8831 cat > conftest.
$ac_ext <<EOF
8832 #line 8833 "configure"
8833 #include "confdefs.h"
8836 char *buf = "3.141592653";
8838 sscanf (buf, "%Lg", &f);
8839 return !(f > 3.14159 && f < 3.14160);
8842 if { (eval echo configure
:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8844 gdb_cv_scanf_has_long_double
=yes
8846 echo "configure: failed program was:" >&5
8847 cat conftest.
$ac_ext >&5
8849 gdb_cv_scanf_has_long_double
=no
8856 if test $gdb_cv_scanf_has_long_double = yes; then
8857 cat >> confdefs.h
<<\EOF
8858 #define SCANF_HAS_LONG_DOUBLE 1
8862 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8866 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8867 echo "configure:8868: checking for -bbigtoc option" >&5
8868 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8872 SAVE_LDFLAGS
=$LDFLAGS
8875 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8876 *) gdb_cv_bigtoc
=-bbigtoc ;;
8879 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8880 cat > conftest.
$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8888 if { (eval echo configure
:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8891 echo "configure: failed program was:" >&5
8892 cat conftest.
$ac_ext >&5
8900 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8901 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8907 if test ${build} = ${host} -a ${host} = ${target} ; then
8910 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8911 echo "configure:8912: checking for HPUX/OSF thread support" >&5
8912 if test -f /usr
/include
/dce
/cma_config.h
; then
8913 if test "$GCC" = "yes" ; then
8914 echo "$ac_t""yes" 1>&6
8915 cat >> confdefs.h
<<\EOF
8916 #define HAVE_HPUX_THREAD_SUPPORT 1
8919 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8920 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8922 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8925 echo "$ac_t""no" 1>&6
8929 # See if thread_db library is around for Solaris thread debugging.
8930 # Note that we must explicitly test for version 1 of the library
8931 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8933 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8934 echo "configure:8935: checking for Solaris thread debugging library" >&5
8935 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8936 echo "$ac_t""yes" 1>&6
8937 cat >> confdefs.h
<<\EOF
8938 #define HAVE_THREAD_DB_LIB 1
8941 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8942 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8943 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8944 echo "configure:8945: checking for dlopen in -ldl" >&5
8945 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8947 echo $ac_n "(cached) $ac_c" 1>&6
8949 ac_save_LIBS
="$LIBS"
8951 cat > conftest.
$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8963 if { (eval echo configure
:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8965 eval "ac_cv_lib_$ac_lib_var=yes"
8967 echo "configure: failed program was:" >&5
8968 cat conftest.
$ac_ext >&5
8970 eval "ac_cv_lib_$ac_lib_var=no"
8973 LIBS
="$ac_save_LIBS"
8976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8977 echo "$ac_t""yes" 1>&6
8978 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8979 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8980 cat >> confdefs.h
<<EOF
8981 #define $ac_tr_lib 1
8987 echo "$ac_t""no" 1>&6
8990 if test "$GCC" = "yes" ; then
8991 # The GNU linker requires the -export-dynamic option to make
8992 # all symbols visible in the dynamic symbol table.
8993 hold_ldflags
=$LDFLAGS
8994 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8995 echo "configure:8996: checking for the ld -export-dynamic flag" >&5
8996 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8997 cat > conftest.
$ac_ext <<EOF
8998 #line 8999 "configure"
8999 #include "confdefs.h"
9005 if { (eval echo configure
:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9009 echo "configure: failed program was:" >&5
9010 cat conftest.
$ac_ext >&5
9015 LDFLAGS
=$hold_ldflags
9016 echo "$ac_t""$found" 1>&6
9017 if test $found = yes; then
9018 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9021 # Sun randomly tweaked the prototypes in <proc_service.h>
9023 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9024 echo "configure:9025: checking if <proc_service.h> is old" >&5
9025 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
9029 cat > conftest.
$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9033 #include <proc_service.h>
9035 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9041 if { (eval echo configure
:9042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9043 gdb_cv_proc_service_is_old
=no
9045 echo "configure: failed program was:" >&5
9046 cat conftest.
$ac_ext >&5
9048 gdb_cv_proc_service_is_old
=yes
9054 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9055 if test $gdb_cv_proc_service_is_old = yes; then
9056 cat >> confdefs.h
<<\EOF
9057 #define PROC_SERVICE_IS_OLD 1
9062 echo "$ac_t""no" 1>&6
9066 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9067 echo "configure:9068: checking for AiX thread debugging library" >&5
9068 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9069 echo $ac_n "(cached) $ac_c" 1>&6
9071 cat > conftest.
$ac_ext <<EOF
9072 #line 9073 "configure"
9073 #include "confdefs.h"
9074 #include <sys/pthdebug.h>
9076 #ifndef PTHDB_VERSION_3
9081 if { (eval echo configure
:9082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9083 gdb_cv_have_aix_thread_debug
=yes
9085 echo "configure: failed program was:" >&5
9086 cat conftest.
$ac_ext >&5
9088 gdb_cv_have_aix_thread_debug
=no
9093 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9094 if test $gdb_cv_have_aix_thread_debug = yes; then
9095 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
9096 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
9097 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
9104 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9105 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9106 echo "configure:9107: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9107 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9110 cat > conftest.
$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9113 #include <thread_db.h>
9115 int i = TD_NOTALLOC;
9118 if { (eval echo configure
:9119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9120 gdb_cv_thread_db_h_has_td_notalloc
=yes
9122 echo "configure: failed program was:" >&5
9123 cat conftest.
$ac_ext >&5
9125 gdb_cv_thread_db_h_has_td_notalloc
=no
9132 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9134 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9135 cat >> confdefs.h
<<\EOF
9136 #define THREAD_DB_HAS_TD_NOTALLOC 1
9141 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9142 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9143 echo "configure:9144: checking whether <sys/syscall.h> has __NR_tkill" >&5
9144 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9145 echo $ac_n "(cached) $ac_c" 1>&6
9147 cat > conftest.
$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 #include <sys/syscall.h>
9155 if { (eval echo configure
:9156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9157 gdb_cv_sys_syscall_h_has_tkill
=yes
9159 echo "configure: failed program was:" >&5
9160 cat conftest.
$ac_ext >&5
9162 gdb_cv_sys_syscall_h_has_tkill
=no
9169 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9171 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9172 cat >> confdefs.h
<<\EOF
9173 #define HAVE_TKILL_SYSCALL 1
9179 # Check whether --with-sysroot or --without-sysroot was given.
9180 if test "${with_sysroot+set}" = set; then
9181 withval
="$with_sysroot"
9183 case ${with_sysroot} in
9184 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
9185 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
9188 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9190 if test "x$exec_prefix" = xNONE
; then
9191 if test "x$prefix" = xNONE
; then
9192 test_prefix
=/usr
/local
9197 test_prefix
=$exec_prefix
9199 case ${TARGET_SYSTEM_ROOT} in
9200 "${test_prefix}"|
"${test_prefix}/"*|\
9201 '${exec_prefix}'|
'${exec_prefix}/'*)
9202 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9203 TARGET_SYSTEM_ROOT_DEFINE
="$t"
9210 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
9217 # NOTE: Don't add -Wall or -Wunused, they both include
9218 # -Wunused-parameter which reports bogus warnings.
9219 # NOTE: If you add to this list, remember to update
9220 # gdb/doc/gdbint.texinfo.
9221 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9222 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9224 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9225 # -Wunused-function -Wunused-variable -Wunused-value
9226 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9227 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9228 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9229 # -Woverloaded-virtual -Winline -Werror"
9230 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9231 if test "${enable_build_warnings+set}" = set; then
9232 enableval
="$enable_build_warnings"
9233 case "${enableval}" in
9235 no
) build_warnings
="-w";;
9236 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9237 build_warnings
="${build_warnings} ${t}";;
9238 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9239 build_warnings
="${t} ${build_warnings}";;
9240 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9242 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9243 echo "Setting compiler warning flags = $build_warnings" 6>&1
9246 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9247 if test "${enable_gdb_build_warnings+set}" = set; then
9248 enableval
="$enable_gdb_build_warnings"
9249 case "${enableval}" in
9251 no
) build_warnings
="-w";;
9252 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9253 build_warnings
="${build_warnings} ${t}";;
9254 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9255 build_warnings
="${t} ${build_warnings}";;
9256 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9258 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9259 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9264 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9266 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9267 echo "configure:9268: checking compiler warning flags" >&5
9268 # Separate out the -Werror flag as some files just cannot be
9269 # compiled with it enabled.
9270 for w
in ${build_warnings}; do
9272 -Werr*) WERROR_CFLAGS
=-Werror ;;
9273 *) # Check that GCC accepts it
9274 saved_CFLAGS
="$CFLAGS"
9276 cat > conftest.
$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9284 if { (eval echo configure
:9285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9286 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9288 echo "configure: failed program was:" >&5
9289 cat conftest.
$ac_ext >&5
9292 CFLAGS
="$saved_CFLAGS"
9295 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9300 # In the Cygwin environment, we need some additional flags.
9301 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9302 echo "configure:9303: checking for cygwin" >&5
9303 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6
9306 cat > conftest.
$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9310 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9315 egrep "lose" >/dev
/null
2>&1; then
9317 gdb_cv_os_cygwin
=yes
9326 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9329 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
9331 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
9332 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
9336 # libreadline needs libuser32.a in a cygwin environment
9338 if test x
$gdb_cv_os_cygwin = xyes
; then
9339 WIN32LIBS
="-luser32"
9341 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
9347 LIBGUI
="../libgui/src/libgui.a"
9348 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
9359 if test "${enable_gdbtk}" = "yes"; then
9361 # Gdbtk must have an absolute path to srcdir in order to run
9362 # properly when not installed.
9370 # Ok, lets find the tcl configuration
9371 # First, look for one uninstalled.
9372 # the alternative search directory is invoked by --with-tclconfig
9375 if test x
"${no_tcl}" = x
; then
9376 # we reset no_tcl in case something fails here
9378 # Check whether --with-tclconfig or --without-tclconfig was given.
9379 if test "${with_tclconfig+set}" = set; then
9380 withval
="$with_tclconfig"
9381 with_tclconfig
=${withval}
9384 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9385 echo "configure:9386: checking for Tcl configuration" >&5
9386 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9391 # First check to see if --with-tclconfig was specified.
9392 if test x
"${with_tclconfig}" != x
; then
9393 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9394 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
9396 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9400 # then check for a private Tcl installation
9401 if test x
"${ac_cv_c_tclconfig}" = x
; then
9404 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9406 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9408 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9409 if test -f "$i/${configdir}/tclConfig.sh" ; then
9410 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9415 # check in a few common install locations
9416 if test x
"${ac_cv_c_tclconfig}" = x
; then
9417 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9418 if test -f "$i/tclConfig.sh" ; then
9419 ac_cv_c_tclconfig
=`(cd $i; pwd)`
9424 # check in a few other private locations
9425 if test x
"${ac_cv_c_tclconfig}" = x
; then
9428 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9429 if test -f "$i/${configdir}/tclConfig.sh" ; then
9430 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9438 if test x
"${ac_cv_c_tclconfig}" = x
; then
9439 TCLCONFIG
="# no Tcl configs found"
9440 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9443 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
9444 echo "$ac_t""found $TCLCONFIG" 1>&6
9448 if test -z "${no_tcl}"; then
9479 # Ok, lets find the tk configuration
9480 # First, look for one uninstalled.
9481 # the alternative search directory is invoked by --with-tkconfig
9484 if test x
"${no_tk}" = x
; then
9485 # we reset no_tk in case something fails here
9487 # Check whether --with-tkconfig or --without-tkconfig was given.
9488 if test "${with_tkconfig+set}" = set; then
9489 withval
="$with_tkconfig"
9490 with_tkconfig
=${withval}
9493 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9494 echo "configure:9495: checking for Tk configuration" >&5
9495 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9496 echo $ac_n "(cached) $ac_c" 1>&6
9500 # First check to see if --with-tkconfig was specified.
9501 if test x
"${with_tkconfig}" != x
; then
9502 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9503 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
9505 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9509 # then check for a private Tk library
9510 if test x
"${ac_cv_c_tkconfig}" = x
; then
9513 `ls -dr ../tk[4-9]* 2>/dev/null` \
9515 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9517 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9518 if test -f "$i/${configdir}/tkConfig.sh" ; then
9519 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9524 # check in a few common install locations
9525 if test x
"${ac_cv_c_tkconfig}" = x
; then
9526 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9527 if test -f "$i/tkConfig.sh" ; then
9528 ac_cv_c_tkconfig
=`(cd $i; pwd)`
9533 # check in a few other private locations
9534 if test x
"${ac_cv_c_tkconfig}" = x
; then
9537 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9538 if test -f "$i/${configdir}/tkConfig.sh" ; then
9539 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9547 if test x
"${ac_cv_c_tkconfig}" = x
; then
9548 TKCONFIG
="# no Tk configs found"
9549 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9552 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
9553 echo "$ac_t""found $TKCONFIG" 1>&6
9559 # now look for Tcl library stuff
9570 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
9572 # If $no_tk is nonempty, then we can't do Tk, and there is no
9573 # point to doing Tcl.
9574 if test -z "${no_tk}"; then
9576 if test -f "$TKCONFIG" ; then
9594 # Ok, lets find the tcl source trees so we can use the headers
9595 # Warning: transition of version 9 to 10 will break this algorithm
9596 # because 10 sorts before 9. We also look for just tcl. We have to
9597 # be careful that we don't match stuff like tclX by accident.
9598 # the alternative search directory is involked by --with-tclinclude
9602 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9603 echo "configure:9604: checking for Tcl private headers. dir=${configdir}" >&5
9604 # Check whether --with-tclinclude or --without-tclinclude was given.
9605 if test "${with_tclinclude+set}" = set; then
9606 withval
="$with_tclinclude"
9607 with_tclinclude
=${withval}
9610 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
9614 # first check to see if --with-tclinclude was specified
9615 if test x
"${with_tclinclude}" != x
; then
9616 if test -f ${with_tclinclude}/tclInt.h
; then
9617 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9618 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9619 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9621 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9625 # next check if it came with Tcl configuration file
9626 if test x
"${ac_cv_c_tclconfig}" = x
; then
9627 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9628 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9632 # next check in private source directory
9634 # since ls returns lowest version numbers first, reverse its output
9635 if test x
"${ac_cv_c_tclh}" = x
; then
9638 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9639 ${srcdir}/..
/..
/tcl \
9640 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9641 ${srcdir}/..
/..
/..
/tcl \
9642 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9643 if test -f $i/generic
/tclInt.h
; then
9644 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9649 # finally check in a few common install locations
9651 # since ls returns lowest version numbers first, reverse its output
9652 if test x
"${ac_cv_c_tclh}" = x
; then
9654 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9655 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9656 /usr
/local
/src
/tcl \
9657 /usr
/local
/lib
/tcl \
9658 ${prefix}/include
; do
9659 if test -f $i/generic
/tclInt.h
; then
9660 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9665 # see if one is installed
9666 if test x
"${ac_cv_c_tclh}" = x
; then
9667 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9668 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9669 echo "configure:9670: checking for tclInt.h" >&5
9670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9673 cat > conftest.
$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9678 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9679 { (eval echo configure
:9680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9680 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9681 if test -z "$ac_err"; then
9683 eval "ac_cv_header_$ac_safe=yes"
9686 echo "configure: failed program was:" >&5
9687 cat conftest.
$ac_ext >&5
9689 eval "ac_cv_header_$ac_safe=no"
9693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9694 echo "$ac_t""yes" 1>&6
9695 ac_cv_c_tclh
=installed
9697 echo "$ac_t""no" 1>&6
9705 if test x
"${ac_cv_c_tclh}" = x
; then
9706 TCLHDIR
="# no Tcl private headers found"
9707 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9709 if test x
"${ac_cv_c_tclh}" != x
; then
9711 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9712 echo "$ac_t""is installed" 1>&6
9715 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9716 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9717 TCLHDIR
="-I${ac_cv_c_tclh}"
9725 # Ok, lets find the tk source trees so we can use the headers
9726 # If the directory (presumably symlink) named "tk" exists, use that one
9727 # in preference to any others. Same logic is used when choosing library
9728 # and again with Tcl. The search order is the best place to look first, then in
9729 # decreasing significance. The loop breaks if the trigger file is found.
9730 # Note the gross little conversion here of srcdir by cd'ing to the found
9731 # directory. This converts the path from a relative to an absolute, so
9732 # recursive cache variables for the path will work right. We check all
9733 # the possible paths in one loop rather than many seperate loops to speed
9735 # the alternative search directory is involked by --with-tkinclude
9738 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9739 echo "configure:9740: checking for Tk private headers" >&5
9740 # Check whether --with-tkinclude or --without-tkinclude was given.
9741 if test "${with_tkinclude+set}" = set; then
9742 withval
="$with_tkinclude"
9743 with_tkinclude
=${withval}
9746 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9750 # first check to see if --with-tkinclude was specified
9751 if test x
"${with_tkinclude}" != x
; then
9752 if test -f ${with_tkinclude}/tk.h
; then
9753 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9754 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9755 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9757 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9761 # next check if it came with Tk configuration file
9762 if test x
"${ac_cv_c_tkconfig}" = x
; then
9763 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9764 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9768 # next check in private source directory
9770 # since ls returns lowest version numbers first, reverse its output
9771 if test x
"${ac_cv_c_tkh}" = x
; then
9774 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9775 ${srcdir}/..
/..
/tk \
9776 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9777 ${srcdir}/..
/..
/..
/tk \
9778 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9779 if test -f $i/generic
/tk.h
; then
9780 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9785 # finally check in a few common install locations
9787 # since ls returns lowest version numbers first, reverse its output
9788 if test x
"${ac_cv_c_tkh}" = x
; then
9790 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9791 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9794 ${prefix}/include
; do
9795 if test -f $i/generic
/tk.h
; then
9796 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9801 # see if one is installed
9802 if test x
"${ac_cv_c_tkh}" = x
; then
9803 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9804 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9805 echo "configure:9806: checking for tk.h" >&5
9806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9809 cat > conftest.
$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9814 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9815 { (eval echo configure
:9816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9816 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9817 if test -z "$ac_err"; then
9819 eval "ac_cv_header_$ac_safe=yes"
9822 echo "configure: failed program was:" >&5
9823 cat conftest.
$ac_ext >&5
9825 eval "ac_cv_header_$ac_safe=no"
9829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9830 echo "$ac_t""yes" 1>&6
9831 ac_cv_c_tkh
=installed
9833 echo "$ac_t""no" 1>&6
9841 if test x
"${ac_cv_c_tkh}" != x
; then
9843 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9844 echo "$ac_t""is installed" 1>&6
9847 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9848 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9849 TKHDIR
="-I${ac_cv_c_tkh}"
9852 TKHDIR
="# no Tk directory found"
9853 echo "configure: warning: Can't find Tk private headers" 1>&2
9860 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9861 echo "configure:9862: checking for Itcl private headers. srcdir=${srcdir}" >&5
9862 if test x
"${ac_cv_c_itclh}" = x
; then
9863 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9864 if test -f $i/generic
/itcl.h
; then
9865 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9870 if test x
"${ac_cv_c_itclh}" = x
; then
9871 ITCLHDIR
="# no Itcl private headers found"
9872 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9874 if test x
"${ac_cv_c_itclh}" != x
; then
9875 ITCLHDIR
="-I${ac_cv_c_itclh}"
9877 # should always be here
9878 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9883 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9884 echo "configure:9885: checking for Itk private headers. srcdir=${srcdir}" >&5
9885 if test x
"${ac_cv_c_itkh}" = x
; then
9886 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9887 if test -f $i/generic
/itk.h
; then
9888 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9893 if test x
"${ac_cv_c_itkh}" = x
; then
9894 ITKHDIR
="# no Itk private headers found"
9895 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9897 if test x
"${ac_cv_c_itkh}" != x
; then
9898 ITKHDIR
="-I${ac_cv_c_itkh}"
9900 # should always be here
9901 # ITKLIB="../itcl/itk/unix/libitk.a"
9907 # now look for Tk library stuff
9918 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9920 # now look for Itcl library stuff
9924 # Ok, lets find the itcl configuration
9925 # First, look for one uninstalled.
9926 # the alternative search directory is invoked by --with-itclconfig
9929 if test x
"${no_itcl}" = x
; then
9930 # we reset no_itcl in case something fails here
9932 # Check whether --with-itclconfig or --without-itclconfig was given.
9933 if test "${with_itclconfig+set}" = set; then
9934 withval
="$with_itclconfig"
9935 with_itclconfig
=${withval}
9938 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9939 echo "configure:9940: checking for Itcl configuration" >&5
9940 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9941 echo $ac_n "(cached) $ac_c" 1>&6
9945 # First check to see if --with-itclconfig was specified.
9946 if test x
"${with_itclconfig}" != x
; then
9947 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9948 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9950 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9954 # then check for a private Itcl library
9955 if test x
"${ac_cv_c_itclconfig}" = x
; then
9958 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9960 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9962 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9963 if test -f "$i/itclConfig.sh" ; then
9964 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9969 # check in a few common install locations
9970 if test x
"${ac_cv_c_itclconfig}" = x
; then
9971 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9972 if test -f "$i/itclConfig.sh" ; then
9973 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9978 # check in a few other private locations
9979 if test x
"${ac_cv_c_itclconfig}" = x
; then
9981 ${srcdir}/..
/itcl
/itcl \
9982 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9983 if test -f "$i/itclConfig.sh" ; then
9984 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9992 if test x
"${ac_cv_c_itclconfig}" = x
; then
9993 ITCLCONFIG
="# no Itcl configs found"
9994 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9997 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9998 echo "$ac_t""found $ITCLCONFIG" 1>&6
10002 if test -z "${no_itcl}"; then
10004 if test -f "$ITCLCONFIG" ; then
10019 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
10020 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
10024 # now look for Itk library stuff
10027 # Ok, lets find the itk configuration
10028 # First, look for one uninstalled.
10029 # the alternative search directory is invoked by --with-itkconfig
10032 if test x
"${no_itk}" = x
; then
10033 # we reset no_itk in case something fails here
10035 # Check whether --with-itkconfig or --without-itkconfig was given.
10036 if test "${with_itkconfig+set}" = set; then
10037 withval
="$with_itkconfig"
10038 with_itkconfig
=${withval}
10041 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10042 echo "configure:10043: checking for Itk configuration" >&5
10043 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10048 # First check to see if --with-itkconfig was specified.
10049 if test x
"${with_itkconfig}" != x
; then
10050 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10051 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
10053 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10057 # then check for a private Itk library
10058 if test x
"${ac_cv_c_itkconfig}" = x
; then
10061 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10063 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10065 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10066 if test -f "$i/itkConfig.sh" ; then
10067 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10072 # check in a few common install locations
10073 if test x
"${ac_cv_c_itkconfig}" = x
; then
10074 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10075 if test -f "$i/itkConfig.sh" ; then
10076 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10081 # check in a few other private locations
10082 if test x
"${ac_cv_c_itkconfig}" = x
; then
10084 ${srcdir}/..
/itcl
/itk \
10085 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10086 if test -f "$i/itkConfig.sh" ; then
10087 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10095 if test x
"${ac_cv_c_itkconfig}" = x
; then
10096 ITKCONFIG
="# no Itk configs found"
10097 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10100 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
10101 echo "$ac_t""found $ITKCONFIG" 1>&6
10106 if test -z "${no_itcl}"; then
10108 if test -f "$ITKCONFIG" ; then
10123 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
10124 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
10127 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10128 # Tcl/Tk 8.1 require -fwritable strings. I don't
10129 # know whether 8.2 will or not, but I bet it will.
10130 # I don't have to worry about 7.x since we don't support it.
10132 if test "$GCC" = "yes"; then
10133 if test "$TCL_VERSION" != "8.0" ; then
10134 GDBTK_CFLAGS
="-fwritable-strings"
10138 # Include some libraries that Tcl and Tk want.
10139 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10140 # Yes, the ordering seems wrong here. But it isn't.
10141 # TK_LIBS is the list of libraries that need to be linked
10142 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10143 # were in LIBS then any link tests after this point would
10144 # try to include things like `$(LIBGUI)', which wouldn't work.
10145 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
10147 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10148 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10149 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10150 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
10151 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
10152 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
10153 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
10154 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
10156 if test x
$gdb_cv_os_cygwin = xyes
; then
10157 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10158 WIN32LDAPP
="-Wl,--subsystem,console"
10159 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
10164 configdirs
="${configdirs} gdbtk"
10180 # If we find X, set shell vars x_includes and x_libraries to the
10181 # paths, otherwise set no_x=yes.
10182 # Uses ac_ vars as temps to allow command line to override cache and checks.
10183 # --without-x overrides everything else, but does not touch the cache.
10184 echo $ac_n "checking for X""... $ac_c" 1>&6
10185 echo "configure:10186: checking for X" >&5
10187 # Check whether --with-x or --without-x was given.
10188 if test "${with_x+set}" = set; then
10193 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10194 if test "x$with_x" = xno
; then
10195 # The user explicitly disabled X.
10198 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
10199 # Both variables are already set.
10202 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10205 # One or both of the vars are not set, and there is no cached value.
10206 ac_x_includes
=NO ac_x_libraries
=NO
10208 if mkdir conftestdir
; then
10210 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10211 cat > Imakefile
<<'EOF'
10213 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10215 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10217 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10219 for ac_extension
in a so sl
; do
10220 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
10221 test -f $ac_im_libdir/libX11.
$ac_extension; then
10222 ac_im_usrlibdir
=$ac_im_libdir; break
10225 # Screen out bogus values from the imake configuration. They are
10226 # bogus both because they are the default anyway, and because
10227 # using them would break gcc on systems where it needs fixed includes.
10228 case "$ac_im_incroot" in
10230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
10232 case "$ac_im_usrlibdir" in
10233 /usr
/lib |
/lib
) ;;
10234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
10241 if test "$ac_x_includes" = NO
; then
10242 # Guess where to find include files, by looking for this one X11 .h file.
10243 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
10245 # First, try using that file with no special directory specified.
10246 cat > conftest.
$ac_ext <<EOF
10247 #line 10248 "configure"
10248 #include "confdefs.h"
10249 #include <$x_direct_test_include>
10251 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10252 { (eval echo configure
:10253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10253 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10254 if test -z "$ac_err"; then
10256 # We can compile using X headers with no special include directory.
10260 echo "configure: failed program was:" >&5
10261 cat conftest.
$ac_ext >&5
10263 # Look for the header file in a standard set of common directories.
10264 # Check X11 before X11Rn because it is often a symlink to the current release.
10267 /usr
/X11R
6/include \
10268 /usr
/X11R
5/include \
10269 /usr
/X11R
4/include \
10272 /usr
/include
/X11R6 \
10273 /usr
/include
/X11R5 \
10274 /usr
/include
/X11R4 \
10276 /usr
/local
/X11
/include \
10277 /usr
/local
/X11R
6/include \
10278 /usr
/local
/X11R
5/include \
10279 /usr
/local
/X11R
4/include \
10281 /usr
/local
/include
/X11 \
10282 /usr
/local
/include
/X11R6 \
10283 /usr
/local
/include
/X11R5 \
10284 /usr
/local
/include
/X11R4 \
10286 /usr
/X386
/include \
10287 /usr
/x386
/include \
10288 /usr
/XFree86
/include
/X11 \
10291 /usr
/local
/include \
10292 /usr
/unsupported
/include \
10293 /usr
/athena
/include \
10294 /usr
/local
/x11r
5/include \
10295 /usr
/lpp
/Xamples
/include \
10297 /usr
/openwin
/include \
10298 /usr
/openwin
/share
/include \
10301 if test -r "$ac_dir/$x_direct_test_include"; then
10302 ac_x_includes
=$ac_dir
10308 fi # $ac_x_includes = NO
10310 if test "$ac_x_libraries" = NO
; then
10311 # Check for the libraries.
10313 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
10314 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
10316 # See if we find them without any special options.
10317 # Don't add to $LIBS permanently.
10318 ac_save_LIBS
="$LIBS"
10319 LIBS
="-l$x_direct_test_library $LIBS"
10320 cat > conftest.
$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10325 ${x_direct_test_function}()
10328 if { (eval echo configure
:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10330 LIBS
="$ac_save_LIBS"
10331 # We can link X programs with no special library path.
10334 echo "configure: failed program was:" >&5
10335 cat conftest.
$ac_ext >&5
10337 LIBS
="$ac_save_LIBS"
10338 # First see if replacing the include by lib works.
10339 # Check X11 before X11Rn because it is often a symlink to the current release.
10340 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
10351 /usr
/local
/X11
/lib \
10352 /usr
/local
/X11R
6/lib \
10353 /usr
/local
/X11R
5/lib \
10354 /usr
/local
/X11R
4/lib \
10356 /usr
/local
/lib
/X11 \
10357 /usr
/local
/lib
/X11R6 \
10358 /usr
/local
/lib
/X11R5 \
10359 /usr
/local
/lib
/X11R4 \
10363 /usr
/XFree86
/lib
/X11 \
10367 /usr
/unsupported
/lib \
10369 /usr
/local
/x11r
5/lib \
10370 /usr
/lpp
/Xamples
/lib \
10374 /usr
/openwin
/share
/lib \
10377 for ac_extension
in a so sl
; do
10378 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
10379 ac_x_libraries
=$ac_dir
10386 fi # $ac_x_libraries = NO
10388 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
10389 # Didn't find X anywhere. Cache the known absence of X.
10390 ac_cv_have_x
="have_x=no"
10392 # Record where we found X for the cache.
10393 ac_cv_have_x
="have_x=yes \
10394 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10398 eval "$ac_cv_have_x"
10401 if test "$have_x" != yes; then
10402 echo "$ac_t""$have_x" 1>&6
10405 # If each of the values was on the command line, it overrides each guess.
10406 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10407 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10408 # Update the cache value to reflect the command line values.
10409 ac_cv_have_x
="have_x=yes \
10410 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10411 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10416 # Unlike the sim directory, whether a simulator is linked is controlled by
10417 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10418 # This code just checks for a few cases where we'd like to ignore those
10419 # definitions, even when they're present in the '.mt' file. These cases
10420 # are when --disable-sim is specified, or if the simulator directory is
10421 # not part of the source tree.
10423 # Check whether --enable-sim or --disable-sim was given.
10424 if test "${enable_sim+set}" = set; then
10425 enableval
="$enable_sim"
10426 echo "enable_sim = $enable_sim";
10427 echo "enableval = ${enableval}";
10428 case "${enableval}" in
10429 yes) ignore_sim
=false
;;
10430 no
) ignore_sim
=true
;;
10431 *) ignore_sim
=false
;;
10438 if test ! -d "${srcdir}/../sim"; then
10442 if test "${ignore_sim}" = "true"; then
10444 IGNORE_SIM_OBS
="SIM_OBS="
10448 cat >> confdefs.h
<<\EOF
10469 # target_subdir is used by the testsuite to find the target libraries.
10471 if test "${host}" != "${target}"; then
10472 target_subdir
="${target_alias}/"
10477 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10478 if test ! -f ${host_makefile_frag}; then
10479 # When building a native debuger the .mh file containing things
10480 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10481 # since it no longer contains anything useful.
10482 if test "${target}" = "${host}"; then
10483 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
10485 host_makefile_frag
=/dev
/null
10488 frags
="$frags $host_makefile_frag"
10490 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10491 if test ! -f ${target_makefile_frag}; then
10492 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
10494 frags
="$frags $target_makefile_frag"
10501 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10502 ' ${host_makefile_frag}`
10504 targetfile
=`sed -n '
10505 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10506 ' ${target_makefile_frag}`
10508 if test "${target}" = "${host}"; then
10509 # We pick this up from the host configuration file (.mh) because we
10510 # do not have a native configuration Makefile fragment.
10511 nativefile
=`sed -n '
10512 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10513 ' ${host_makefile_frag}`
10517 if test x
"${gdb_osabi}" != x
; then
10518 cat >> confdefs.h
<<EOF
10519 #define GDB_OSABI_DEFAULT $gdb_osabi
10524 # Enable multi-ice-gdb-server.
10525 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10526 if test "${enable_multi_ice+set}" = set; then
10527 enableval
="$enable_multi_ice"
10531 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10535 if test "x$enable_multi_ice" = xyes
; then
10536 configdirs
="$configdirs multi-ice"
10539 # We only build gdbserver automatically if host and target are the same.
10540 if test "x$target" = "x$host"; then
10541 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10542 echo "configure:10543: checking whether gdbserver is supported on this host" >&5
10543 if test "x$build_gdbserver" = xyes
; then
10544 configdirs
="$configdirs gdbserver"
10545 echo "$ac_t""yes" 1>&6
10547 echo "$ac_t""no" 1>&6
10551 subdirs
="doc testsuite $configdirs"
10554 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10555 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10563 if test "${hostfile}" != ""; then
10565 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10566 files
="${files} ${GDB_XM_FILE}"
10567 links
="${links} xm.h"
10568 cat >> confdefs.h
<<EOF
10569 #define GDB_XM_FILE ${GDB_XM_FILE}
10577 if test "${targetfile}" != ""; then
10579 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10580 files
="${files} ${GDB_TM_FILE}"
10581 links
="${links} tm.h"
10582 cat >> confdefs.h
<<EOF
10583 #define GDB_TM_FILE ${GDB_TM_FILE}
10591 if test "${nativefile}" != ""; then
10593 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10594 files
="${files} ${GDB_NM_FILE}"
10595 links
="${links} nm.h"
10596 cat >> confdefs.h
<<EOF
10597 #define GDB_NM_FILE ${GDB_NM_FILE}
10605 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10606 echo "configure:10607: checking for Cygwin environment" >&5
10607 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10608 echo $ac_n "(cached) $ac_c" 1>&6
10610 cat > conftest.
$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10617 #define __CYGWIN__ __CYGWIN32__
10622 if { (eval echo configure
:10623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10626 echo "configure: failed program was:" >&5
10627 cat conftest.
$ac_ext >&5
10635 echo "$ac_t""$ac_cv_cygwin" 1>&6
10637 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10638 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10639 echo "configure:10640: checking for mingw32 environment" >&5
10640 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10643 cat > conftest.
$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10648 return __MINGW32__;
10651 if { (eval echo configure
:10652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10655 echo "configure: failed program was:" >&5
10656 cat conftest.
$ac_ext >&5
10664 echo "$ac_t""$ac_cv_mingw32" 1>&6
10666 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10669 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10670 echo "configure:10671: checking for executable suffix" >&5
10671 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10672 echo $ac_n "(cached) $ac_c" 1>&6
10674 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10678 echo 'int main () { return 0; }' > conftest.
$ac_ext
10680 if { (eval echo configure
:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10681 for file in conftest.
*; do
10683 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10684 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10688 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10691 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10696 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10697 echo "$ac_t""${ac_cv_exeext}" 1>&6
10702 cat >> confdefs.h
<<\EOF
10703 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10709 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10710 if test "${with_libiconv_prefix+set}" = set; then
10711 withval
="$with_libiconv_prefix"
10713 for dir
in `echo "$withval" | tr : ' '`; do
10714 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10715 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10721 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10722 echo "configure:10723: checking for iconv" >&5
10723 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10727 am_cv_func_iconv
="no, consider installing GNU libiconv"
10729 cat > conftest.
$ac_ext <<EOF
10730 #line 10731 "configure"
10731 #include "confdefs.h"
10732 #include <stdlib.h>
10735 iconv_t cd = iconv_open("","");
10736 iconv(cd,NULL,NULL,NULL,NULL);
10740 if { (eval echo configure
:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10742 am_cv_func_iconv
=yes
10744 echo "configure: failed program was:" >&5
10745 cat conftest.
$ac_ext >&5
10748 if test "$am_cv_func_iconv" != yes; then
10749 am_save_LIBS
="$LIBS"
10750 LIBS
="$LIBS -liconv"
10751 cat > conftest.
$ac_ext <<EOF
10752 #line 10753 "configure"
10753 #include "confdefs.h"
10754 #include <stdlib.h>
10757 iconv_t cd = iconv_open("","");
10758 iconv(cd,NULL,NULL,NULL,NULL);
10762 if { (eval echo configure
:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10764 am_cv_lib_iconv
=yes
10765 am_cv_func_iconv
=yes
10767 echo "configure: failed program was:" >&5
10768 cat conftest.
$ac_ext >&5
10771 LIBS
="$am_save_LIBS"
10776 echo "$ac_t""$am_cv_func_iconv" 1>&6
10777 if test "$am_cv_func_iconv" = yes; then
10778 cat >> confdefs.h
<<\EOF
10779 #define HAVE_ICONV 1
10782 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10783 echo "configure:10784: checking for iconv declaration" >&5
10784 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10785 echo $ac_n "(cached) $ac_c" 1>&6
10788 cat > conftest.
$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10792 #include <stdlib.h>
10798 #if defined(__STDC__) || defined(__cplusplus)
10799 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10808 if { (eval echo configure
:10809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10810 am_cv_proto_iconv_arg1
=""
10812 echo "configure: failed program was:" >&5
10813 cat conftest.
$ac_ext >&5
10815 am_cv_proto_iconv_arg1
="const"
10818 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);"
10821 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10822 echo "$ac_t""${ac_t:-
10823 }$am_cv_proto_iconv" 1>&6
10824 cat >> confdefs.h
<<EOF
10825 #define ICONV_CONST $am_cv_proto_iconv_arg1
10830 if test "$am_cv_lib_iconv" = yes; then
10837 cat > confcache
<<\EOF
10838 # This file is a shell script that caches the results of configure
10839 # tests run on this system so they can be shared between configure
10840 # scripts and configure runs. It is not useful on other systems.
10841 # If it contains results you don't want to keep, you may remove or edit it.
10843 # By default, configure uses ./config.cache as the cache file,
10844 # creating it if it does not exist already. You can give configure
10845 # the --cache-file=FILE option to use a different cache file; that is
10846 # what configure does when it calls configure scripts in
10847 # subdirectories, so they share the cache.
10848 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10849 # config.status only pays attention to the cache file if you give it the
10850 # --recheck option to rerun configure.
10853 # The following way of writing the cache mishandles newlines in values,
10854 # but we know of no workaround that is simple, portable, and efficient.
10855 # So, don't put newlines in cache variables' values.
10856 # Ultrix sh set writes to stderr and can't be redirected directly,
10857 # and sets the high bit in the cache file unless we assign to the vars.
10859 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10861 # `set' does not quote correctly, so add quotes (double-quote substitution
10862 # turns \\\\ into \\, and sed turns \\ into \).
10864 -e "s/'/'\\\\''/g" \
10865 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10868 # `set' quotes correctly as required by POSIX, so do not add quotes.
10869 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10872 if cmp -s $cache_file confcache
; then
10875 if test -w $cache_file; then
10876 echo "updating cache $cache_file"
10877 cat confcache
> $cache_file
10879 echo "not updating unwritable cache $cache_file"
10884 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10886 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10887 # Let make expand exec_prefix.
10888 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10890 # Any assignment to VPATH causes Sun make to only execute
10891 # the first set of double-colon rules, so remove it if not needed.
10892 # If there is a colon in the path, we need to keep it.
10893 if test "x$srcdir" = x.
; then
10894 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10897 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10899 DEFS
=-DHAVE_CONFIG_H
10901 # Without the "./", some shells look in PATH for config.status.
10902 : ${CONFIG_STATUS=./config.status}
10904 echo creating
$CONFIG_STATUS
10905 rm -f $CONFIG_STATUS
10906 cat > $CONFIG_STATUS <<EOF
10908 # Generated automatically by configure.
10909 # Run this file to recreate the current configuration.
10910 # This directory was configured as follows,
10911 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10913 # $0 $ac_configure_args
10915 # Compiler output produced by configure, useful for debugging
10916 # configure, is in ./config.log if it exists.
10918 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10921 case "\$ac_option" in
10922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10923 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10924 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10925 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10926 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10928 -help | --help | --hel | --he | --h)
10929 echo "\$ac_cs_usage"; exit 0 ;;
10930 *) echo "\$ac_cs_usage"; exit 1 ;;
10934 ac_given_srcdir=$srcdir
10935 ac_given_INSTALL="$INSTALL"
10937 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10939 cat >> $CONFIG_STATUS <<EOF
10941 # Protect against being on the right side of a sed subst in config.status.
10942 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10943 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10947 s%@CFLAGS@%$CFLAGS%g
10948 s%@CPPFLAGS@%$CPPFLAGS%g
10949 s%@CXXFLAGS@%$CXXFLAGS%g
10950 s%@FFLAGS@%$FFLAGS%g
10952 s%@LDFLAGS@%$LDFLAGS%g
10954 s%@exec_prefix@%$exec_prefix%g
10955 s%@prefix@%$prefix%g
10956 s%@program_transform_name@%$program_transform_name%g
10957 s%@bindir@%$bindir%g
10958 s%@sbindir@%$sbindir%g
10959 s%@libexecdir@%$libexecdir%g
10960 s%@datadir@%$datadir%g
10961 s%@sysconfdir@%$sysconfdir%g
10962 s%@sharedstatedir@%$sharedstatedir%g
10963 s%@localstatedir@%$localstatedir%g
10964 s%@libdir@%$libdir%g
10965 s%@includedir@%$includedir%g
10966 s%@oldincludedir@%$oldincludedir%g
10967 s%@infodir@%$infodir%g
10968 s%@mandir@%$mandir%g
10969 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10970 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10975 s%@host_alias@%$host_alias%g
10976 s%@host_cpu@%$host_cpu%g
10977 s%@host_vendor@%$host_vendor%g
10978 s%@host_os@%$host_os%g
10979 s%@target@%$target%g
10980 s%@target_alias@%$target_alias%g
10981 s%@target_cpu@%$target_cpu%g
10982 s%@target_vendor@%$target_vendor%g
10983 s%@target_os@%$target_os%g
10985 s%@build_alias@%$build_alias%g
10986 s%@build_cpu@%$build_cpu%g
10987 s%@build_vendor@%$build_vendor%g
10988 s%@build_os@%$build_os%g
10989 s%@RANLIB@%$RANLIB%g
10990 s%@SET_MAKE@%$SET_MAKE%g
10991 s%@ALLOCA@%$ALLOCA%g
10992 s%@USE_NLS@%$USE_NLS%g
10993 s%@MSGFMT@%$MSGFMT%g
10994 s%@GMSGFMT@%$GMSGFMT%g
10995 s%@XGETTEXT@%$XGETTEXT%g
10996 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10997 s%@CATALOGS@%$CATALOGS%g
10998 s%@CATOBJEXT@%$CATOBJEXT%g
10999 s%@DATADIRNAME@%$DATADIRNAME%g
11000 s%@GMOFILES@%$GMOFILES%g
11001 s%@INSTOBJEXT@%$INSTOBJEXT%g
11002 s%@INTLDEPS@%$INTLDEPS%g
11003 s%@INTLLIBS@%$INTLLIBS%g
11004 s%@INTLOBJS@%$INTLOBJS%g
11005 s%@POFILES@%$POFILES%g
11007 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11009 s%@GT_YES@%$GT_YES%g
11010 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11012 s%@subdirs@%$subdirs%g
11014 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11015 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11016 s%@INSTALL_DATA@%$INSTALL_DATA%g
11020 s%@DLLTOOL@%$DLLTOOL%g
11021 s%@WINDRES@%$WINDRES%g
11023 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11024 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11025 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11026 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11027 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11028 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11029 s%@WIN32LIBS@%$WIN32LIBS%g
11030 s%@LIBGUI@%$LIBGUI%g
11031 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11032 s%@WIN32LDAPP@%$WIN32LDAPP%g
11033 s%@TCL_VERSION@%$TCL_VERSION%g
11034 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11035 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11036 s%@TCL_CC@%$TCL_CC%g
11037 s%@TCL_DEFS@%$TCL_DEFS%g
11038 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11039 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11040 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11041 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11042 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11043 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11044 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11045 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11046 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11047 s%@TCL_RANLIB@%$TCL_RANLIB%g
11048 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11049 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11050 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11051 s%@TK_VERSION@%$TK_VERSION%g
11052 s%@TK_DEFS@%$TK_DEFS%g
11053 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11054 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11055 s%@TK_XLIBSW@%$TK_XLIBSW%g
11056 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11057 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11058 s%@TCLHDIR@%$TCLHDIR%g
11059 s%@TKHDIR@%$TKHDIR%g
11060 s%@ITCLHDIR@%$ITCLHDIR%g
11061 s%@ITKHDIR@%$ITKHDIR%g
11062 s%@ITCL_VERSION@%$ITCL_VERSION%g
11063 s%@ITCL_DEFS@%$ITCL_DEFS%g
11064 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11065 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11066 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11067 s%@ITK_VERSION@%$ITK_VERSION%g
11068 s%@ITK_DEFS@%$ITK_DEFS%g
11069 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11070 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11071 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11072 s%@X_CFLAGS@%$X_CFLAGS%g
11073 s%@X_LDFLAGS@%$X_LDFLAGS%g
11074 s%@X_LIBS@%$X_LIBS%g
11075 s%@TCL_DEPS@%$TCL_DEPS%g
11076 s%@TK_DEPS@%$TK_DEPS%g
11077 s%@ITCLLIB@%$ITCLLIB%g
11078 s%@ITCL_DEPS@%$ITCL_DEPS%g
11079 s%@ITKLIB@%$ITKLIB%g
11080 s%@ITK_DEPS@%$ITK_DEPS%g
11081 s%@GDBTKLIBS@%$GDBTKLIBS%g
11082 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11083 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11084 s%@IGNORE_SIM@%$IGNORE_SIM%g
11085 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11086 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11087 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11088 s%@CONFIG_OBS@%$CONFIG_OBS%g
11089 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
11090 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11091 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11092 s%@CONFIG_INITS@%$CONFIG_INITS%g
11093 s%@CONFIG_ALL@%$CONFIG_ALL%g
11094 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11095 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11096 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11097 s%@target_subdir@%$target_subdir%g
11098 /@host_makefile_frag@/r $host_makefile_frag
11099 s%@host_makefile_frag@%%g
11100 /@target_makefile_frag@/r $target_makefile_frag
11101 s%@target_makefile_frag@%%g
11106 s%@EXEEXT@%$EXEEXT%g
11107 s%@LIBICONV@%$LIBICONV%g
11112 cat >> $CONFIG_STATUS <<\EOF
11114 # Split the substitutions into bite-sized pieces for seds with
11115 # small command number limits, like on Digital OSF/1 and HP-UX.
11116 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11117 ac_file
=1 # Number of current file.
11118 ac_beg
=1 # First line for current file.
11119 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11122 while $ac_more_lines; do
11123 if test $ac_beg -gt 1; then
11124 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11126 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11128 if test ! -s conftest.s
$ac_file; then
11129 ac_more_lines
=false
11130 rm -f conftest.s
$ac_file
11132 if test -z "$ac_sed_cmds"; then
11133 ac_sed_cmds
="sed -f conftest.s$ac_file"
11135 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11137 ac_file
=`expr $ac_file + 1`
11139 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11142 if test -z "$ac_sed_cmds"; then
11147 cat >> $CONFIG_STATUS <<EOF
11149 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11151 cat >> $CONFIG_STATUS <<\EOF
11152 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11155 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11156 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11157 *) ac_file_in
="${ac_file}.in" ;;
11160 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11162 # Remove last slash and all that follows it. Not all systems have dirname.
11163 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11164 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11165 # The file is in a subdirectory.
11166 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11167 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11168 # A "../" for each directory in $ac_dir_suffix.
11169 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11171 ac_dir_suffix
= ac_dots
=
11174 case "$ac_given_srcdir" in
11176 if test -z "$ac_dots"; then top_srcdir
=.
11177 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11178 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11179 *) # Relative path.
11180 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11181 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11184 case "$ac_given_INSTALL" in
11185 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11186 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11189 echo creating
"$ac_file"
11191 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11193 *Makefile
*) ac_comsub
="1i\\
11194 # $configure_input" ;;
11198 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11200 s%@configure_input@%$configure_input%g
11201 s%@srcdir@%$srcdir%g
11202 s%@top_srcdir@%$top_srcdir%g
11203 s%@INSTALL@%$INSTALL%g
11204 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11208 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11209 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11211 # ac_d sets the value in "#define NAME VALUE" lines.
11212 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11213 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11216 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11217 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11218 ac_uB
='\([ ]\)%\1#\2define\3'
11221 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11222 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11223 ac_eB
='$%\1#\2define\3'
11227 if test "${CONFIG_HEADERS+set}" != set; then
11229 cat >> $CONFIG_STATUS <<EOF
11230 CONFIG_HEADERS="config.h:config.in"
11232 cat >> $CONFIG_STATUS <<\EOF
11234 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11235 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11237 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11238 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11239 *) ac_file_in
="${ac_file}.in" ;;
11242 echo creating
$ac_file
11244 rm -f conftest.frag conftest.
in conftest.out
11245 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11246 cat $ac_file_inputs > conftest.
in
11250 # Transform confdefs.h into a sed script conftest.vals that substitutes
11251 # the proper values into config.h.in to produce config.h. And first:
11252 # Protect against being on the right side of a sed subst in config.status.
11253 # Protect against being in an unquoted here document in config.status.
11254 rm -f conftest.vals
11255 cat > conftest.hdr
<<\EOF
11258 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11262 sed -n -f conftest.hdr confdefs.h > conftest.vals
11265 # This sed command replaces #undef with comments. This is necessary, for
11266 # example, in the case of _POSIX_SOURCE, which is predefined and required
11267 # on some systems where configure will not decide to define it.
11268 cat >> conftest.vals <<\EOF
11269 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11272 # Break up conftest.vals because some shells have a limit on
11273 # the size of here documents, and old seds have small limits too.
11275 rm -f conftest.tail
11278 ac_lines=`grep -c . conftest.vals
`
11279 # grep -c gives empty output for an empty file on some AIX systems.
11280 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11281 # Write a limited-size here document to conftest.frag.
11282 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11283 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11285 sed -f conftest.frag conftest.in > conftest.out
11287 mv conftest.out conftest.in
11288 ' >> $CONFIG_STATUS
11289 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11290 rm -f conftest.vals
11291 mv conftest.tail conftest.vals
11293 rm -f conftest.vals
11295 cat >> $CONFIG_STATUS <<\EOF
11296 rm -f conftest.frag conftest.h
11297 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11298 cat conftest.in >> conftest.h
11300 if cmp -s $ac_file conftest.h 2>/dev/null; then
11301 echo "$ac_file is unchanged"
11304 # Remove last slash and all that follows it. Not all systems have dirname.
11305 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11307 # The file is in a subdirectory.
11308 test ! -d "$ac_dir" && mkdir "$ac_dir"
11311 mv conftest.h $ac_file
11317 cat >> $CONFIG_STATUS <<EOF
11318 ac_sources="$files"
11322 cat >> $CONFIG_STATUS <<\EOF
11323 srcdir=$ac_given_srcdir
11324 while test -n "$ac_sources"; do
11325 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11326 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11328 echo "linking $srcdir/$ac_source to $ac_dest"
11330 if test ! -r $srcdir/$ac_source; then
11331 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11335 # Make relative symlinks.
11336 # Remove last slash and all that follows it. Not all systems have dirname.
11337 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
11338 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11339 # The dest file is in a subdirectory.
11340 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11341 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
11342 # A "../" for each directory in $ac_dest_dir_suffix.
11343 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
11345 ac_dest_dir_suffix= ac_dots=
11349 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11350 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11353 # Make a symlink if possible; otherwise try a hard link.
11354 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11355 ln $srcdir/$ac_source $ac_dest; then :
11357 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11361 cat >> $CONFIG_STATUS <<EOF
11363 gdb_host_cpu=$gdb_host_cpu
11364 gdb_target_cpu=$gdb_target_cpu
11365 nativefile=$nativefile
11368 cat >> $CONFIG_STATUS <<\EOF
11370 if test "${nativefile}" = ""; then
11372 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11373 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11374 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11376 mv -f Makefile.tem Makefile
11379 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11380 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11381 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11382 mv -f Makefile.tmp Makefile
11385 case x$CONFIG_HEADERS in
11386 xconfig.h:config.in)
11392 chmod +x $CONFIG_STATUS
11393 rm -fr confdefs* $ac_clean_files
11394 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11396 if test "$no_recursion" != yes; then
11398 # Remove --cache-file and --srcdir arguments so they do not pile up.
11399 ac_sub_configure_args=
11401 for ac_arg in $ac_configure_args; do
11402 if test -n "$ac_prev"; then
11407 -cache-file | --cache-file | --cache-fil | --cache-fi \
11408 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11409 ac_prev=cache_file ;;
11410 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11411 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11413 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11415 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11417 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11421 for ac_config_dir in doc testsuite $configdirs; do
11423 # Do not complain, so a configure script can configure whichever
11424 # parts of a large source tree are present.
11425 if test ! -d $srcdir/$ac_config_dir; then
11429 echo configuring in $ac_config_dir
11434 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11436 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11444 # A "../" for each directory in /$ac_config_dir.
11445 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11448 .) # No --srcdir option. We are building in place.
11449 ac_sub_srcdir=$srcdir ;;
11450 /*) # Absolute path.
11451 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11452 *) # Relative path.
11453 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11456 # Check for guested configure; otherwise get Cygnus style configure.
11457 if test -f $ac_sub_srcdir/configure; then
11458 ac_sub_configure=$ac_sub_srcdir/configure
11459 elif test -f $ac_sub_srcdir/configure.in; then
11460 ac_sub_configure=$ac_configure
11462 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11466 # The recursion is here.
11467 if test -n "$ac_sub_configure"; then
11469 # Make the cache file name correct relative to the subdirectory.
11470 case "$cache_file" in
11471 /*) ac_sub_cache_file=$cache_file ;;
11472 *) # Relative path.
11473 ac_sub_cache_file="$ac_dots$cache_file" ;;
11475 case "$ac_given_INSTALL" in
11476 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11477 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11480 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11481 # The eval makes quoting arguments work.
11482 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11485 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }