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-mmalloc Use memory mapped malloc package"
48 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
50 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
52 --with-tclinclude=DIR Directory where tcl private headers are"
54 --with-tkinclude=DIR Directory where tk private headers are"
56 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
58 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
60 --with-x use the X Window System"
62 --enable-sim Link gdb with simulator"
64 --enable-multi-ice build the multi-ice-gdb-server"
66 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file
=.
/config.cache
81 program_transform_name
=s
,x
,x
,
90 bindir
='${exec_prefix}/bin'
91 sbindir
='${exec_prefix}/sbin'
92 libexecdir
='${exec_prefix}/libexec'
93 datadir
='${prefix}/share'
94 sysconfdir
='${prefix}/etc'
95 sharedstatedir
='${prefix}/com'
96 localstatedir
='${prefix}/var'
97 libdir
='${exec_prefix}/lib'
98 includedir
='${prefix}/include'
99 oldincludedir
='/usr/include'
100 infodir
='${prefix}/info'
101 mandir
='${prefix}/man'
103 # Initialize some other variables.
106 SHELL
=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
132 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
133 bindir
="$ac_optarg" ;;
135 -build |
--build |
--buil |
--bui |
--bu)
137 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
138 build
="$ac_optarg" ;;
140 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
141 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
142 ac_prev
=cache_file
;;
143 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
144 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
145 cache_file
="$ac_optarg" ;;
147 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
149 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
151 datadir
="$ac_optarg" ;;
153 -disable-* |
--disable-*)
154 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* |
--enable-*)
163 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
176 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
177 |
--exec |
--exe |
--ex)
178 ac_prev
=exec_prefix
;;
179 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
180 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
181 |
--exec=* |
--exe=* |
--ex=*)
182 exec_prefix
="$ac_optarg" ;;
184 -gas |
--gas |
--ga |
--g)
185 # Obsolete; use --with-gas.
188 -help |
--help |
--hel |
--he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --site-file=FILE use FILE as the site file
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
244 -host |
--host |
--hos |
--ho)
246 -host=* |
--host=* |
--hos=* |
--ho=*)
249 -includedir |
--includedir |
--includedi |
--included |
--include \
250 |
--includ |
--inclu |
--incl |
--inc)
251 ac_prev
=includedir
;;
252 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
253 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
254 includedir
="$ac_optarg" ;;
256 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
258 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
259 infodir
="$ac_optarg" ;;
261 -libdir |
--libdir |
--libdi |
--libd)
263 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
264 libdir
="$ac_optarg" ;;
266 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
267 |
--libexe |
--libex |
--libe)
268 ac_prev
=libexecdir
;;
269 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
270 |
--libexe=* |
--libex=* |
--libe=*)
271 libexecdir
="$ac_optarg" ;;
273 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
274 |
--localstate |
--localstat |
--localsta |
--localst \
275 |
--locals |
--local |
--loca |
--loc |
--lo)
276 ac_prev
=localstatedir
;;
277 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
278 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
279 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
280 localstatedir
="$ac_optarg" ;;
282 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
284 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
285 mandir
="$ac_optarg" ;;
288 # Obsolete; use --without-fp.
291 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
295 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
296 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
299 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
300 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
301 |
--oldin |
--oldi |
--old |
--ol |
--o)
302 ac_prev
=oldincludedir
;;
303 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
304 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
305 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
306 oldincludedir
="$ac_optarg" ;;
308 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
310 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
311 prefix
="$ac_optarg" ;;
313 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
314 |
--program-pre |
--program-pr |
--program-p)
315 ac_prev
=program_prefix
;;
316 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
317 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
318 program_prefix
="$ac_optarg" ;;
320 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
321 |
--program-suf |
--program-su |
--program-s)
322 ac_prev
=program_suffix
;;
323 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
324 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
325 program_suffix
="$ac_optarg" ;;
327 -program-transform-name |
--program-transform-name \
328 |
--program-transform-nam |
--program-transform-na \
329 |
--program-transform-n |
--program-transform- \
330 |
--program-transform |
--program-transfor \
331 |
--program-transfo |
--program-transf \
332 |
--program-trans |
--program-tran \
333 |
--progr-tra |
--program-tr |
--program-t)
334 ac_prev
=program_transform_name
;;
335 -program-transform-name=* |
--program-transform-name=* \
336 |
--program-transform-nam=* |
--program-transform-na=* \
337 |
--program-transform-n=* |
--program-transform-=* \
338 |
--program-transform=* |
--program-transfor=* \
339 |
--program-transfo=* |
--program-transf=* \
340 |
--program-trans=* |
--program-tran=* \
341 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
342 program_transform_name
="$ac_optarg" ;;
344 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
345 |
-silent |
--silent |
--silen |
--sile |
--sil)
348 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
350 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
352 sbindir
="$ac_optarg" ;;
354 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
355 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
356 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
358 ac_prev
=sharedstatedir
;;
359 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
360 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
361 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
363 sharedstatedir
="$ac_optarg" ;;
365 -site |
--site |
--sit)
367 -site=* |
--site=* |
--sit=*)
370 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
372 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
373 sitefile
="$ac_optarg" ;;
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=main.c
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$sitefile"; then
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE
; then
543 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 CONFIG_SITE
="$sitefile"
551 for ac_site_file
in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp
='$CPP $CPPFLAGS'
569 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling
=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
584 ac_n
= ac_c
='\c' ac_t
=
589 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
590 echo "configure:591: checking whether to enable maintainer-specific portions of Makefiles" >&5
591 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
592 if test "${enable_maintainer_mode+set}" = set; then
593 enableval
="$enable_maintainer_mode"
594 USE_MAINTAINER_MODE
=$enableval
596 USE_MAINTAINER_MODE
=no
599 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
602 if test $USE_MAINTAINER_MODE = yes; then
603 MAINTAINER_MODE_TRUE
=
604 MAINTAINER_MODE_FALSE
='#'
606 MAINTAINER_MODE_TRUE
='#'
607 MAINTAINER_MODE_FALSE
=
609 MAINT
=$MAINTAINER_MODE_TRUE
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc
; ac_word
=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC
="$CC" # Let the user override the test.
623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
625 for ac_dir
in $ac_dummy; do
626 test -z "$ac_dir" && ac_dir
=.
627 if test -f $ac_dir/$ac_word; then
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
643 # Extract the first word of "cc", so it can be a program name with args.
644 set dummy cc
; ac_word
=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
656 for ac_dir
in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir
=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy
$ac_cv_prog_CC
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
677 set dummy
"$ac_dir/$ac_word" "$@"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
694 # Extract the first word of "cl", so it can be a program name with args.
695 set dummy cl
; ac_word
=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC
="$CC" # Let the user override the test.
704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp
='$CPP $CPPFLAGS'
734 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling
=$ac_cv_prog_cc_cross
738 cat > conftest.
$ac_ext << EOF
740 #line 741 "configure"
741 #include "confdefs.h"
745 if { (eval echo configure
:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
746 ac_cv_prog_cc_works
=yes
747 # If we can't run a trivial program, we are probably using a cross compiler.
748 if (.
/conftest
; exit) 2>/dev
/null
; then
749 ac_cv_prog_cc_cross
=no
751 ac_cv_prog_cc_cross
=yes
754 echo "configure: failed program was:" >&5
755 cat conftest.
$ac_ext >&5
756 ac_cv_prog_cc_works
=no
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp
='$CPP $CPPFLAGS'
762 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling
=$ac_cv_prog_cc_cross
766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
767 if test $ac_cv_prog_cc_works = no
; then
768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773 cross_compiling
=$ac_cv_prog_cc_cross
775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
776 echo "configure:777: checking whether we are using GNU C" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftest.c
<<EOF
785 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794 if test $ac_cv_prog_gcc = yes; then
800 ac_test_CFLAGS
="${CFLAGS+set}"
801 ac_save_CFLAGS
="$CFLAGS"
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS
="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
822 if test "$GCC" = yes; then
828 if test "$GCC" = yes; then
835 cat >> confdefs.h
<<\EOF
836 #define _GNU_SOURCE 1
840 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
841 echo "configure:842: checking how to run the C preprocessor" >&5
842 # On Suns, sometimes $CPP names a directory.
843 if test -n "$CPP" && test -d "$CPP"; then
846 if test -z "$CPP"; then
847 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 # This must be in double quotes, not single quotes, because CPP may get
851 # substituted into the Makefile and "${CC-cc}" will confuse make.
853 # On the NeXT, cc -E runs the code through the compiler's parser,
854 # not just through cpp.
855 cat > conftest.
$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
861 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
862 { (eval echo configure
:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
863 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
864 if test -z "$ac_err"; then
868 echo "configure: failed program was:" >&5
869 cat conftest.
$ac_ext >&5
871 CPP
="${CC-cc} -E -traditional-cpp"
872 cat > conftest.
$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
878 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
879 { (eval echo configure
:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
880 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
881 if test -z "$ac_err"; then
885 echo "configure: failed program was:" >&5
886 cat conftest.
$ac_ext >&5
888 CPP
="${CC-cc} -nologo -E"
889 cat > conftest.
$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
895 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
896 { (eval echo configure
:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
897 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
898 if test -z "$ac_err"; then
902 echo "configure: failed program was:" >&5
903 cat conftest.
$ac_ext >&5
912 ac_cv_prog_CPP
="$CPP"
914 CPP
="$ac_cv_prog_CPP"
916 ac_cv_prog_CPP
="$CPP"
918 echo "$ac_t""$CPP" 1>&6
920 echo $ac_n "checking for AIX""... $ac_c" 1>&6
921 echo "configure:922: checking for AIX" >&5
922 cat > conftest.
$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
931 egrep "yes" >/dev
/null
2>&1; then
933 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
934 #define _ALL_SOURCE 1
939 echo "$ac_t""no" 1>&6
944 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
945 echo "configure:946: checking for POSIXized ISC" >&5
946 if test -d /etc
/conf
/kconfig.d
&&
947 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
949 echo "$ac_t""yes" 1>&6
950 ISC
=yes # If later tests want to check for ISC.
951 cat >> confdefs.h
<<\EOF
952 #define _POSIX_SOURCE 1
955 if test "$GCC" = yes; then
961 echo "$ac_t""no" 1>&6
968 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
969 echo "configure:970: checking for ${CC-cc} option to accept ANSI C" >&5
970 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 am_cv_prog_cc_stdc
=no
975 # Don't try gcc -ansi; that turns off useful extensions and
976 # breaks some systems' header files.
978 # Ultrix and OSF/1 -std1
979 # HP-UX 10.20 and later -Ae
980 # HP-UX older versions -Aa -D_HPUX_SOURCE
981 # SVR4 -Xc -D__EXTENSIONS__
982 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
984 CC
="$ac_save_CC $ac_arg"
985 cat > conftest.
$ac_ext <<EOF
986 #line 987 "configure"
987 #include "confdefs.h"
990 #include <sys/types.h>
991 #include <sys/stat.h>
992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
993 struct buf { int x; };
994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
995 static char *e (p, i)
1001 static char *f (char * (*g) (char **, int), char **p, ...)
1006 s = g (p, va_arg (v,int));
1010 int test (int i, double x);
1011 struct s1 {int (*f) (int a);};
1012 struct s2 {int (*f) (double a);};
1013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1023 if { (eval echo configure
:1024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1025 am_cv_prog_cc_stdc
="$ac_arg"; break
1027 echo "configure: failed program was:" >&5
1028 cat conftest.
$ac_ext >&5
1036 if test -z "$am_cv_prog_cc_stdc"; then
1037 echo "$ac_t""none needed" 1>&6
1039 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1041 case "x$am_cv_prog_cc_stdc" in
1043 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1048 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1049 if test -f $ac_dir/install-sh
; then
1051 ac_install_sh
="$ac_aux_dir/install-sh -c"
1053 elif test -f $ac_dir/install.sh
; then
1055 ac_install_sh
="$ac_aux_dir/install.sh -c"
1059 if test -z "$ac_aux_dir"; then
1060 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1062 ac_config_guess
=$ac_aux_dir/config.guess
1063 ac_config_sub
=$ac_aux_dir/config.sub
1064 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1067 # Do some error checking and defaulting for the host and target type.
1069 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1072 # 1. You are not allowed to specify --host, --target, and nonopt at the
1074 # 2. Host defaults to nonopt.
1075 # 3. If nonopt is not specified, then host defaults to the current host,
1076 # as determined by config.guess.
1077 # 4. Target and build default to nonopt.
1078 # 5. If nonopt is not specified, then target and build default to host.
1080 # The aliases save the names the user supplied, while $host etc.
1081 # will get canonicalized.
1082 case $host---$target---$nonopt in
1083 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1084 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1088 # Make sure we can run config.sub.
1089 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1090 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1093 echo $ac_n "checking host system type""... $ac_c" 1>&6
1094 echo "configure:1095: checking host system type" >&5
1097 case "$host_alias" in
1101 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1102 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1104 *) host_alias
=$nonopt ;;
1108 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1109 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1110 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1111 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1112 echo "$ac_t""$host" 1>&6
1114 echo $ac_n "checking target system type""... $ac_c" 1>&6
1115 echo "configure:1116: checking target system type" >&5
1117 target_alias
=$target
1118 case "$target_alias" in
1121 NONE
) target_alias
=$host_alias ;;
1122 *) target_alias
=$nonopt ;;
1126 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1127 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1128 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1129 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1130 echo "$ac_t""$target" 1>&6
1132 echo $ac_n "checking build system type""... $ac_c" 1>&6
1133 echo "configure:1134: checking build system type" >&5
1136 case "$build_alias" in
1139 NONE
) build_alias
=$host_alias ;;
1140 *) build_alias
=$nonopt ;;
1144 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1145 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1146 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1147 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1148 echo "$ac_t""$build" 1>&6
1150 test "$host_alias" != "$target_alias" &&
1151 test "$program_prefix$program_suffix$program_transform_name" = \
1153 program_prefix
=${target_alias}-
1156 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1157 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1158 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1159 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1160 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1162 if test $host != $build; then
1163 ac_tool_prefix
=${host_alias}-
1168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1169 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 if test -n "$RANLIB"; then
1176 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1180 for ac_dir
in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir
=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1190 RANLIB
="$ac_cv_prog_RANLIB"
1191 if test -n "$RANLIB"; then
1192 echo "$ac_t""$RANLIB" 1>&6
1194 echo "$ac_t""no" 1>&6
1198 if test -z "$ac_cv_prog_RANLIB"; then
1199 if test -n "$ac_tool_prefix"; then
1200 # Extract the first word of "ranlib", so it can be a program name with args.
1201 set dummy ranlib
; ac_word
=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 if test -n "$RANLIB"; then
1208 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1212 for ac_dir
in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir
=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_RANLIB
="ranlib"
1220 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1223 RANLIB
="$ac_cv_prog_RANLIB"
1224 if test -n "$RANLIB"; then
1225 echo "$ac_t""$RANLIB" 1>&6
1227 echo "$ac_t""no" 1>&6
1237 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1238 echo "configure:1239: checking whether ${MAKE-make} sets \${MAKE}" >&5
1239 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1240 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftestmake
<<\EOF
1245 @
echo 'ac_maketemp="${MAKE}"'
1247 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1248 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1249 if test -n "$ac_maketemp"; then
1250 eval ac_cv_prog_make_
${ac_make}_set
=yes
1252 eval ac_cv_prog_make_
${ac_make}_set
=no
1256 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1257 echo "$ac_t""yes" 1>&6
1260 echo "$ac_t""no" 1>&6
1261 SET_MAKE
="MAKE=${MAKE-make}"
1264 # Extract the first word of "ranlib", so it can be a program name with args.
1265 set dummy ranlib
; ac_word
=$2
1266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1267 echo "configure:1268: checking for $ac_word" >&5
1268 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 if test -n "$RANLIB"; then
1272 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1274 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1276 for ac_dir
in $ac_dummy; do
1277 test -z "$ac_dir" && ac_dir
=.
1278 if test -f $ac_dir/$ac_word; then
1279 ac_cv_prog_RANLIB
="ranlib"
1284 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1287 RANLIB
="$ac_cv_prog_RANLIB"
1288 if test -n "$RANLIB"; then
1289 echo "$ac_t""$RANLIB" 1>&6
1291 echo "$ac_t""no" 1>&6
1294 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1295 echo "configure:1296: checking for ANSI C header files" >&5
1296 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 cat > conftest.
$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1307 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1308 { (eval echo configure
:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1309 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1310 if test -z "$ac_err"; then
1312 ac_cv_header_stdc
=yes
1315 echo "configure: failed program was:" >&5
1316 cat conftest.
$ac_ext >&5
1318 ac_cv_header_stdc
=no
1322 if test $ac_cv_header_stdc = yes; then
1323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1324 cat > conftest.
$ac_ext <<EOF
1325 #line 1326 "configure"
1326 #include "confdefs.h"
1329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1330 egrep "memchr" >/dev
/null
2>&1; then
1334 ac_cv_header_stdc
=no
1340 if test $ac_cv_header_stdc = yes; then
1341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1342 cat > conftest.
$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1348 egrep "free" >/dev
/null
2>&1; then
1352 ac_cv_header_stdc
=no
1358 if test $ac_cv_header_stdc = yes; then
1359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1360 if test "$cross_compiling" = yes; then
1363 cat > conftest.
$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1367 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1368 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1370 int main () { int i; for (i = 0; i < 256; i++)
1371 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1375 if { (eval echo configure
:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1379 echo "configure: failed program was:" >&5
1380 cat conftest.
$ac_ext >&5
1382 ac_cv_header_stdc
=no
1390 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1391 if test $ac_cv_header_stdc = yes; then
1392 cat >> confdefs.h
<<\EOF
1393 #define STDC_HEADERS 1
1398 echo $ac_n "checking for working const""... $ac_c" 1>&6
1399 echo "configure:1400: checking for working const" >&5
1400 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 cat > conftest.
$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1409 /* Ultrix mips cc rejects this. */
1410 typedef int charset[2]; const charset x;
1411 /* SunOS 4.1.1 cc rejects this. */
1412 char const *const *ccp;
1414 /* NEC SVR4.0.2 mips cc rejects this. */
1415 struct point {int x, y;};
1416 static struct point const zero = {0,0};
1417 /* AIX XL C 1.02.0.0 rejects this.
1418 It does not let you subtract one const X* pointer from another in an arm
1419 of an if-expression whose if-part is not a constant expression */
1420 const char *g = "string";
1421 ccp = &g + (g ? g-g : 0);
1422 /* HPUX 7.0 cc rejects these. */
1425 ccp = (char const *const *) p;
1426 { /* SCO 3.2v4 cc rejects this. */
1428 char const *s = 0 ? (char *) 0 : (char const *) 0;
1432 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1434 const int *foo = &x[0];
1437 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1438 typedef const int *iptr;
1442 { /* AIX XL C 1.02.0.0 rejects this saying
1443 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1444 struct s { int j; const int *ap[3]; };
1445 struct s *b; b->j = 5;
1447 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1453 if { (eval echo configure
:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1457 echo "configure: failed program was:" >&5
1458 cat conftest.
$ac_ext >&5
1465 echo "$ac_t""$ac_cv_c_const" 1>&6
1466 if test $ac_cv_c_const = no
; then
1467 cat >> confdefs.h
<<\EOF
1473 echo $ac_n "checking for inline""... $ac_c" 1>&6
1474 echo "configure:1475: checking for inline" >&5
1475 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1479 for ac_kw
in inline __inline__ __inline
; do
1480 cat > conftest.
$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1488 if { (eval echo configure
:1489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490 ac_cv_c_inline
=$ac_kw; break
1492 echo "configure: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1500 echo "$ac_t""$ac_cv_c_inline" 1>&6
1501 case "$ac_cv_c_inline" in
1503 no
) cat >> confdefs.h
<<\EOF
1507 *) cat >> confdefs.h
<<EOF
1508 #define inline $ac_cv_c_inline
1513 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1514 echo "configure:1515: checking for off_t" >&5
1515 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1518 cat > conftest.
$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 #include <sys/types.h>
1527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1528 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1530 ac_cv_type_off_t
=yes
1538 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1539 if test $ac_cv_type_off_t = no
; then
1540 cat >> confdefs.h
<<\EOF
1546 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1547 echo "configure:1548: checking for size_t" >&5
1548 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 cat > conftest.
$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1554 #include <sys/types.h>
1560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1561 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1563 ac_cv_type_size_t
=yes
1566 ac_cv_type_size_t
=no
1571 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1572 if test $ac_cv_type_size_t = no
; then
1573 cat >> confdefs.h
<<\EOF
1574 #define size_t unsigned
1579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1580 # for constant arguments. Useless!
1581 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1582 echo "configure:1583: checking for working alloca.h" >&5
1583 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 cat > conftest.
$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1591 char *p = alloca(2 * sizeof(int));
1594 if { (eval echo configure
:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1596 ac_cv_header_alloca_h
=yes
1598 echo "configure: failed program was:" >&5
1599 cat conftest.
$ac_ext >&5
1601 ac_cv_header_alloca_h
=no
1606 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1607 if test $ac_cv_header_alloca_h = yes; then
1608 cat >> confdefs.h
<<\EOF
1609 #define HAVE_ALLOCA_H 1
1614 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1615 echo "configure:1616: checking for alloca" >&5
1616 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 cat > conftest.
$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1624 # define alloca __builtin_alloca
1627 # include <malloc.h>
1628 # define alloca _alloca
1631 # include <alloca.h>
1636 # ifndef alloca /* predefined by HP cc +Olibcalls */
1645 char *p = (char *) alloca(1);
1648 if { (eval echo configure
:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1650 ac_cv_func_alloca_works
=yes
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1655 ac_cv_func_alloca_works
=no
1660 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1661 if test $ac_cv_func_alloca_works = yes; then
1662 cat >> confdefs.h
<<\EOF
1663 #define HAVE_ALLOCA 1
1668 if test $ac_cv_func_alloca_works = no
; then
1669 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1670 # that cause trouble. Some versions do not even contain alloca or
1671 # contain a buggy version. If you still want to use their alloca,
1672 # use ar to extract alloca.o from them instead of compiling alloca.c.
1673 ALLOCA
=alloca.
${ac_objext}
1674 cat >> confdefs.h
<<\EOF
1679 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether alloca needs Cray hooks" >&5
1681 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #if defined(CRAY) && ! defined(CRAY2)
1694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1695 egrep "webecray" >/dev
/null
2>&1; then
1706 echo "$ac_t""$ac_cv_os_cray" 1>&6
1707 if test $ac_cv_os_cray = yes; then
1708 for ac_func
in _getb67 GETB67 getb67
; do
1709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_func" >&5
1711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 /* System header to define __stub macros and hopefully few prototypes,
1718 which can conflict with char $ac_func(); below. */
1720 /* Override any gcc2 internal prototype to avoid an error. */
1721 /* We use char because int might match the return type of a gcc2
1722 builtin and then its argument prototype would still apply. */
1727 /* The GNU C library defines this for functions which it implements
1728 to always fail with ENOSYS. Some functions are actually named
1729 something starting with __ and the normal name is an alias. */
1730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1738 if { (eval echo configure
:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1740 eval "ac_cv_func_$ac_func=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.
$ac_ext >&5
1745 eval "ac_cv_func_$ac_func=no"
1750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1752 cat >> confdefs.h
<<EOF
1753 #define CRAY_STACKSEG_END $ac_func
1758 echo "$ac_t""no" 1>&6
1764 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1765 echo "configure:1766: checking stack direction for C alloca" >&5
1766 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 if test "$cross_compiling" = yes; then
1770 ac_cv_c_stack_direction
=0
1772 cat > conftest.
$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 find_stack_direction ()
1777 static char *addr = 0;
1782 return find_stack_direction ();
1785 return (&dummy > addr) ? 1 : -1;
1789 exit (find_stack_direction() < 0);
1792 if { (eval echo configure
:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1794 ac_cv_c_stack_direction
=1
1796 echo "configure: failed program was:" >&5
1797 cat conftest.
$ac_ext >&5
1799 ac_cv_c_stack_direction
=-1
1806 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1807 cat >> confdefs.h
<<EOF
1808 #define STACK_DIRECTION $ac_cv_c_stack_direction
1813 for ac_hdr
in unistd.h
1815 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_hdr" >&5
1818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1827 { (eval echo configure
:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1829 if test -z "$ac_err"; then
1831 eval "ac_cv_header_$ac_safe=yes"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.
$ac_ext >&5
1837 eval "ac_cv_header_$ac_safe=no"
1841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1844 cat >> confdefs.h
<<EOF
1845 #define $ac_tr_hdr 1
1849 echo "$ac_t""no" 1>&6
1853 for ac_func
in getpagesize
1855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1856 echo "configure:1857: checking for $ac_func" >&5
1857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 cat > conftest.
$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 /* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $ac_func(); below. */
1866 /* Override any gcc2 internal prototype to avoid an error. */
1867 /* We use char because int might match the return type of a gcc2
1868 builtin and then its argument prototype would still apply. */
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1884 if { (eval echo configure
:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1886 eval "ac_cv_func_$ac_func=yes"
1888 echo "configure: failed program was:" >&5
1889 cat conftest.
$ac_ext >&5
1891 eval "ac_cv_func_$ac_func=no"
1896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1897 echo "$ac_t""yes" 1>&6
1898 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1899 cat >> confdefs.h
<<EOF
1900 #define $ac_tr_func 1
1904 echo "$ac_t""no" 1>&6
1908 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1909 echo "configure:1910: checking for working mmap" >&5
1910 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 if test "$cross_compiling" = yes; then
1914 ac_cv_func_mmap_fixed_mapped
=no
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1920 /* Thanks to Mike Haertel and Jim Avera for this test.
1921 Here is a matrix of mmap possibilities:
1922 mmap private not fixed
1923 mmap private fixed at somewhere currently unmapped
1924 mmap private fixed at somewhere already mapped
1925 mmap shared not fixed
1926 mmap shared fixed at somewhere currently unmapped
1927 mmap shared fixed at somewhere already mapped
1928 For private mappings, we should verify that changes cannot be read()
1929 back from the file, nor mmap's back from the file at a different
1930 address. (There have been systems where private was not correctly
1931 implemented like the infamous i386 svr4.0, and systems where the
1932 VM page cache was not coherent with the filesystem buffer cache
1933 like early versions of FreeBSD and possibly contemporary NetBSD.)
1934 For shared mappings, we should conversely verify that changes get
1935 propogated back to all the places they're supposed to be.
1937 Grep wants private fixed already mapped.
1938 The main things grep needs to know about mmap are:
1939 * does it exist and is it safe to write into the mmap'd area
1940 * how to use it (BSD variants) */
1941 #include <sys/types.h>
1943 #include <sys/mman.h>
1945 /* This mess was copied from the GNU getpagesize.h. */
1946 #ifndef HAVE_GETPAGESIZE
1947 # ifdef HAVE_UNISTD_H
1948 # include <unistd.h>
1951 /* Assume that all systems that can run configure have sys/param.h. */
1952 # ifndef HAVE_SYS_PARAM_H
1953 # define HAVE_SYS_PARAM_H 1
1956 # ifdef _SC_PAGESIZE
1957 # define getpagesize() sysconf(_SC_PAGESIZE)
1958 # else /* no _SC_PAGESIZE */
1959 # ifdef HAVE_SYS_PARAM_H
1960 # include <sys/param.h>
1961 # ifdef EXEC_PAGESIZE
1962 # define getpagesize() EXEC_PAGESIZE
1963 # else /* no EXEC_PAGESIZE */
1965 # define getpagesize() NBPG * CLSIZE
1968 # endif /* no CLSIZE */
1969 # else /* no NBPG */
1971 # define getpagesize() NBPC
1972 # else /* no NBPC */
1974 # define getpagesize() PAGESIZE
1975 # endif /* PAGESIZE */
1976 # endif /* no NBPC */
1977 # endif /* no NBPG */
1978 # endif /* no EXEC_PAGESIZE */
1979 # else /* no HAVE_SYS_PARAM_H */
1980 # define getpagesize() 8192 /* punt totally */
1981 # endif /* no HAVE_SYS_PARAM_H */
1982 # endif /* no _SC_PAGESIZE */
1984 #endif /* no HAVE_GETPAGESIZE */
1987 extern "C" { void *malloc(unsigned); }
1995 char *data, *data2, *data3;
1999 pagesize = getpagesize();
2002 * First, make a file with some known garbage in it.
2004 data = malloc(pagesize);
2007 for (i = 0; i < pagesize; ++i)
2008 *(data + i) = rand();
2010 fd = creat("conftestmmap", 0600);
2013 if (write(fd, data, pagesize) != pagesize)
2018 * Next, try to mmap the file at a fixed address which
2019 * already has something else allocated at it. If we can,
2020 * also make sure that we see the same garbage.
2022 fd = open("conftestmmap", O_RDWR);
2025 data2 = malloc(2 * pagesize);
2028 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2029 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2030 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2032 for (i = 0; i < pagesize; ++i)
2033 if (*(data + i) != *(data2 + i))
2037 * Finally, make sure that changes to the mapped area
2038 * do not percolate back to the file as seen by read().
2039 * (This is a bug on some variants of i386 svr4.0.)
2041 for (i = 0; i < pagesize; ++i)
2042 *(data2 + i) = *(data2 + i) + 1;
2043 data3 = malloc(pagesize);
2046 if (read(fd, data3, pagesize) != pagesize)
2048 for (i = 0; i < pagesize; ++i)
2049 if (*(data + i) != *(data3 + i))
2052 unlink("conftestmmap");
2057 if { (eval echo configure
:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2059 ac_cv_func_mmap_fixed_mapped
=yes
2061 echo "configure: failed program was:" >&5
2062 cat conftest.
$ac_ext >&5
2064 ac_cv_func_mmap_fixed_mapped
=no
2071 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2072 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2073 cat >> confdefs.h
<<\EOF
2080 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2081 unistd.h values.h sys
/param.h
2083 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2085 echo "configure:2086: checking for $ac_hdr" >&5
2086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2094 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2095 { (eval echo configure
:2096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2096 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2097 if test -z "$ac_err"; then
2099 eval "ac_cv_header_$ac_safe=yes"
2102 echo "configure: failed program was:" >&5
2103 cat conftest.
$ac_ext >&5
2105 eval "ac_cv_header_$ac_safe=no"
2109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2110 echo "$ac_t""yes" 1>&6
2111 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2112 cat >> confdefs.h
<<EOF
2113 #define $ac_tr_hdr 1
2117 echo "$ac_t""no" 1>&6
2121 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2122 __argz_count __argz_stringify __argz_next
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_func" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $ac_func(); below. */
2135 /* Override any gcc2 internal prototype to avoid an error. */
2136 /* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2153 if { (eval echo configure
:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2155 eval "ac_cv_func_$ac_func=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2160 eval "ac_cv_func_$ac_func=no"
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2168 cat >> confdefs.h
<<EOF
2169 #define $ac_tr_func 1
2173 echo "$ac_t""no" 1>&6
2178 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2179 for ac_func
in stpcpy
2181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_func" >&5
2183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.
$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189 /* System header to define __stub macros and hopefully few prototypes,
2190 which can conflict with char $ac_func(); below. */
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2199 /* The GNU C library defines this for functions which it implements
2200 to always fail with ENOSYS. Some functions are actually named
2201 something starting with __ and the normal name is an alias. */
2202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2210 if { (eval echo configure
:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2212 eval "ac_cv_func_$ac_func=yes"
2214 echo "configure: failed program was:" >&5
2215 cat conftest.
$ac_ext >&5
2217 eval "ac_cv_func_$ac_func=no"
2222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2223 echo "$ac_t""yes" 1>&6
2224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2225 cat >> confdefs.h
<<EOF
2226 #define $ac_tr_func 1
2230 echo "$ac_t""no" 1>&6
2235 if test "${ac_cv_func_stpcpy}" = "yes"; then
2236 cat >> confdefs.h
<<\EOF
2237 #define HAVE_STPCPY 1
2242 if test $ac_cv_header_locale_h = yes; then
2243 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2244 echo "configure:2245: checking for LC_MESSAGES" >&5
2245 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.
$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2258 am_cv_val_LC_MESSAGES
=yes
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 am_cv_val_LC_MESSAGES
=no
2268 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2269 if test $am_cv_val_LC_MESSAGES = yes; then
2270 cat >> confdefs.h
<<\EOF
2271 #define HAVE_LC_MESSAGES 1
2276 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2277 echo "configure:2278: checking whether NLS is requested" >&5
2278 # Check whether --enable-nls or --disable-nls was given.
2279 if test "${enable_nls+set}" = set; then
2280 enableval
="$enable_nls"
2286 echo "$ac_t""$USE_NLS" 1>&6
2289 USE_INCLUDED_LIBINTL
=no
2291 if test "$USE_NLS" = "yes"; then
2292 cat >> confdefs.h
<<\EOF
2293 #define ENABLE_NLS 1
2296 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2297 echo "configure:2298: checking whether included gettext is requested" >&5
2298 # Check whether --with-included-gettext or --without-included-gettext was given.
2299 if test "${with_included_gettext+set}" = set; then
2300 withval
="$with_included_gettext"
2301 nls_cv_force_use_gnu_gettext
=$withval
2303 nls_cv_force_use_gnu_gettext
=no
2306 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2308 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2309 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2311 nls_cv_header_libgt
=
2314 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2316 echo "configure:2317: checking for libintl.h" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.
$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <libintl.h>
2325 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure
:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2330 eval "ac_cv_header_$ac_safe=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2336 eval "ac_cv_header_$ac_safe=no"
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2343 echo "configure:2344: checking for gettext in libc" >&5
2344 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 cat > conftest.
$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2350 #include <libintl.h>
2352 return (int) gettext ("")
2355 if { (eval echo configure
:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2357 gt_cv_func_gettext_libc
=yes
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 gt_cv_func_gettext_libc
=no
2367 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2369 if test "$gt_cv_func_gettext_libc" != "yes"; then
2370 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2371 echo "configure:2372: checking for bindtextdomain in -lintl" >&5
2372 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 ac_save_LIBS
="$LIBS"
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384 char bindtextdomain();
2390 if { (eval echo configure
:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2392 eval "ac_cv_lib_$ac_lib_var=yes"
2394 echo "configure: failed program was:" >&5
2395 cat conftest.
$ac_ext >&5
2397 eval "ac_cv_lib_$ac_lib_var=no"
2400 LIBS
="$ac_save_LIBS"
2403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2406 echo "configure:2407: checking for gettext in libintl" >&5
2407 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.
$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2415 return (int) gettext ("")
2418 if { (eval echo configure
:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2420 gt_cv_func_gettext_libintl
=yes
2422 echo "configure: failed program was:" >&5
2423 cat conftest.
$ac_ext >&5
2425 gt_cv_func_gettext_libintl
=no
2430 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2432 echo "$ac_t""no" 1>&6
2437 if test "$gt_cv_func_gettext_libc" = "yes" \
2438 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2439 cat >> confdefs.h
<<\EOF
2440 #define HAVE_GETTEXT 1
2443 # Extract the first word of "msgfmt", so it can be a program name with args.
2444 set dummy msgfmt
; ac_word
=$2
2445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2446 echo "configure:2447: checking for $ac_word" >&5
2447 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2452 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2456 for ac_dir
in $PATH; do
2457 test -z "$ac_dir" && ac_dir
=.
2458 if test -f $ac_dir/$ac_word; then
2459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2460 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2466 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2470 MSGFMT
="$ac_cv_path_MSGFMT"
2471 if test -n "$MSGFMT"; then
2472 echo "$ac_t""$MSGFMT" 1>&6
2474 echo "$ac_t""no" 1>&6
2476 if test "$MSGFMT" != "no"; then
2477 for ac_func
in dcgettext
2479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_func" >&5
2481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.
$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 /* System header to define __stub macros and hopefully few prototypes,
2488 which can conflict with char $ac_func(); below. */
2490 /* Override any gcc2 internal prototype to avoid an error. */
2491 /* We use char because int might match the return type of a gcc2
2492 builtin and then its argument prototype would still apply. */
2497 /* The GNU C library defines this for functions which it implements
2498 to always fail with ENOSYS. Some functions are actually named
2499 something starting with __ and the normal name is an alias. */
2500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2508 if { (eval echo configure
:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2510 eval "ac_cv_func_$ac_func=yes"
2512 echo "configure: failed program was:" >&5
2513 cat conftest.
$ac_ext >&5
2515 eval "ac_cv_func_$ac_func=no"
2520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2523 cat >> confdefs.h
<<EOF
2524 #define $ac_tr_func 1
2528 echo "$ac_t""no" 1>&6
2532 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2533 set dummy gmsgfmt
; ac_word
=$2
2534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_word" >&5
2536 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2541 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2544 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2547 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2549 for ac_dir
in $ac_dummy; do
2550 test -z "$ac_dir" && ac_dir
=.
2551 if test -f $ac_dir/$ac_word; then
2552 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2557 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2561 GMSGFMT
="$ac_cv_path_GMSGFMT"
2562 if test -n "$GMSGFMT"; then
2563 echo "$ac_t""$GMSGFMT" 1>&6
2565 echo "$ac_t""no" 1>&6
2568 # Extract the first word of "xgettext", so it can be a program name with args.
2569 set dummy xgettext
; ac_word
=$2
2570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_word" >&5
2572 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2577 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2580 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2581 for ac_dir
in $PATH; do
2582 test -z "$ac_dir" && ac_dir
=.
2583 if test -f $ac_dir/$ac_word; then
2584 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2585 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2591 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2595 XGETTEXT
="$ac_cv_path_XGETTEXT"
2596 if test -n "$XGETTEXT"; then
2597 echo "$ac_t""$XGETTEXT" 1>&6
2599 echo "$ac_t""no" 1>&6
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2607 extern int _nl_msg_cat_cntr;
2608 return _nl_msg_cat_cntr
2611 if { (eval echo configure
:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2616 echo "configure: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2628 echo "$ac_t""no" 1>&6
2633 if test "$CATOBJEXT" = "NONE"; then
2634 nls_cv_use_gnu_gettext
=yes
2638 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2639 INTLOBJS
="\$(GETTOBJS)"
2640 # Extract the first word of "msgfmt", so it can be a program name with args.
2641 set dummy msgfmt
; ac_word
=$2
2642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2643 echo "configure:2644: checking for $ac_word" >&5
2644 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2649 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2652 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2653 for ac_dir
in $PATH; do
2654 test -z "$ac_dir" && ac_dir
=.
2655 if test -f $ac_dir/$ac_word; then
2656 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2657 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2663 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2667 MSGFMT
="$ac_cv_path_MSGFMT"
2668 if test -n "$MSGFMT"; then
2669 echo "$ac_t""$MSGFMT" 1>&6
2671 echo "$ac_t""no" 1>&6
2674 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2675 set dummy gmsgfmt
; ac_word
=$2
2676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_word" >&5
2678 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2683 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2686 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2689 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2691 for ac_dir
in $ac_dummy; do
2692 test -z "$ac_dir" && ac_dir
=.
2693 if test -f $ac_dir/$ac_word; then
2694 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2699 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2703 GMSGFMT
="$ac_cv_path_GMSGFMT"
2704 if test -n "$GMSGFMT"; then
2705 echo "$ac_t""$GMSGFMT" 1>&6
2707 echo "$ac_t""no" 1>&6
2710 # Extract the first word of "xgettext", so it can be a program name with args.
2711 set dummy xgettext
; ac_word
=$2
2712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_word" >&5
2714 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2719 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2722 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2723 for ac_dir
in $PATH; do
2724 test -z "$ac_dir" && ac_dir
=.
2725 if test -f $ac_dir/$ac_word; then
2726 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2727 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2733 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2737 XGETTEXT
="$ac_cv_path_XGETTEXT"
2738 if test -n "$XGETTEXT"; then
2739 echo "$ac_t""$XGETTEXT" 1>&6
2741 echo "$ac_t""no" 1>&6
2745 USE_INCLUDED_LIBINTL
=yes
2749 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2751 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2752 nls_cv_header_intl
=libintl.h
2753 nls_cv_header_libgt
=libgettext.h
2756 if test "$XGETTEXT" != ":"; then
2757 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2760 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2765 # We need to process the po/ directory.
2769 nls_cv_header_intl
=libintl.h
2770 nls_cv_header_libgt
=libgettext.h
2773 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2774 # because some of the sources are only built for this goal.
2775 if test "$PACKAGE" = gettext; then
2777 USE_INCLUDED_LIBINTL
=yes
2780 for lang
in $ALL_LINGUAS; do
2781 GMOFILES
="$GMOFILES $lang.gmo"
2782 POFILES
="$POFILES $lang.po"
2798 if test "x$CATOBJEXT" != "x"; then
2799 if test "x$ALL_LINGUAS" = "x"; then
2802 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2803 echo "configure:2804: checking for catalogs to be installed" >&5
2805 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2806 case "$ALL_LINGUAS" in
2807 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2810 LINGUAS
=$NEW_LINGUAS
2811 echo "$ac_t""$LINGUAS" 1>&6
2814 if test -n "$LINGUAS"; then
2815 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2819 if test $ac_cv_header_locale_h = yes; then
2820 INCLUDE_LOCALE_H
="#include <locale.h>"
2823 /* The system does not provide the header <locale.h>. Take care yourself. */"
2827 if test -f $srcdir/po2tbl.
sed.
in; then
2828 if test "$CATOBJEXT" = ".cat"; then
2829 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2830 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2831 echo "configure:2832: checking for linux/version.h" >&5
2832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 #include <linux/version.h>
2840 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure
:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2845 eval "ac_cv_header_$ac_safe=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.
$ac_ext >&5
2851 eval "ac_cv_header_$ac_safe=no"
2855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2856 echo "$ac_t""yes" 1>&6
2859 echo "$ac_t""no" 1>&6
2864 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2866 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2867 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2870 if test "$PACKAGE" = "gettext"; then
2880 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2886 if test -f $srcdir/po
/POTFILES.
in; then
2887 test -d po || mkdir po
2888 if test "x$srcdir" != "x."; then
2889 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2890 posrcprefix
="$srcdir/"
2892 posrcprefix
="../$srcdir/"
2898 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2899 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2902 cat >> confdefs.h
<<\EOF
2903 #define PACKAGE "gdb"
2907 debugdir
=${libdir}/debug
2909 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2910 if test "${with_separate_debug_dir+set}" = set; then
2911 withval
="$with_separate_debug_dir"
2912 debugdir
="${withval}"
2917 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
2918 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2919 ac_define_dir
=`eval echo $debugdir`
2920 ac_define_dir
=`eval echo $ac_define_dir`
2921 cat >> confdefs.h
<<EOF
2922 #define DEBUGDIR "$ac_define_dir"
2926 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2940 subdirs
="doc testsuite"
2944 .
$srcdir/configure.
host
2946 .
$srcdir/configure.tgt
2948 # Fetch the default architecture and default target vector from BFD.
2949 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2951 # We only want the first architecture, so strip off the others if
2952 # there is more than one.
2953 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2955 if test "x$targ_archs" != x
; then
2956 cat >> confdefs.h
<<EOF
2957 #define DEFAULT_BFD_ARCH $targ_archs
2961 if test "x$targ_defvec" != x
; then
2962 cat >> confdefs.h
<<EOF
2963 #define DEFAULT_BFD_VEC $targ_defvec
2968 if test "$program_transform_name" = s
,x
,x
,; then
2969 program_transform_name
=
2971 # Double any \ or $. echo might interpret backslashes.
2972 cat <<\EOF_SED
> conftestsed
2973 s
,\\,\\\\,g
; s
,\$
,$$
,g
2975 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2978 test "$program_prefix" != NONE
&&
2979 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2980 # Use a double $ so make ignores it.
2981 test "$program_suffix" != NONE
&&
2982 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2984 # sed with no file args requires a program.
2985 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2988 # The CLI cannot be disabled yet, but may be in the future.
2991 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2992 if test "${enable_gdbcli+set}" = set; then
2993 enableval
="$enable_gdbcli"
2998 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
3000 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3006 if test x
"$enable_gdbcli" = xyes
; then
3007 if test -d $srcdir/cli
; then
3008 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3009 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3010 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3011 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
3012 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3013 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
3014 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
3015 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
3016 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
3021 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3022 if test "${enable_gdbmi+set}" = set; then
3023 enableval
="$enable_gdbmi"
3028 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3034 if test x
"$enable_gdbmi" = xyes
; then
3035 if test -d $srcdir/mi
; then
3036 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3037 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3038 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3039 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3040 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3041 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3042 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3043 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3044 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3049 # Check whether --enable-tui or --disable-tui was given.
3050 if test "${enable_tui+set}" = set; then
3051 enableval
="$enable_tui"
3056 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3060 if test x
"$enable_tui" = xyes
; then
3061 if test -d $srcdir/tui
; then
3062 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3063 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3064 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3065 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3066 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3067 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3068 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3069 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3070 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3076 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3077 if test "${enable_gdbtk+set}" = set; then
3078 enableval
="$enable_gdbtk"
3083 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3086 if test -d $srcdir/gdbtk
; then
3093 # We unconditionally disable gdbtk tests on selected platforms.
3096 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3100 # Libunwind support.
3101 # Check whether --with-libunwind or --without-libunwind was given.
3102 if test "${with_libunwind+set}" = set; then
3103 withval
="$with_libunwind"
3104 case "${withval}" in
3105 yes) enable_libunwind
=yes ;;
3106 no
) enable_libunwind
=no
;;
3107 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3111 for ac_hdr
in libunwind.h
3113 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_hdr" >&5
3116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 cat > conftest.
$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3124 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3125 { (eval echo configure
:3126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3126 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3127 if test -z "$ac_err"; then
3129 eval "ac_cv_header_$ac_safe=yes"
3132 echo "configure: failed program was:" >&5
3133 cat conftest.
$ac_ext >&5
3135 eval "ac_cv_header_$ac_safe=no"
3139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3141 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3142 cat >> confdefs.h
<<EOF
3143 #define $ac_tr_hdr 1
3147 echo "$ac_t""no" 1>&6
3151 for ac_hdr
in libunwind-ia64.h
3153 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_hdr" >&5
3156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3164 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3165 { (eval echo configure
:3166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3166 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3167 if test -z "$ac_err"; then
3169 eval "ac_cv_header_$ac_safe=yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3175 eval "ac_cv_header_$ac_safe=no"
3179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3180 echo "$ac_t""yes" 1>&6
3181 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3182 cat >> confdefs.h
<<EOF
3183 #define $ac_tr_hdr 1
3187 echo "$ac_t""no" 1>&6
3191 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
3192 enable_libunwind
=yes;
3198 if test x
"$enable_libunwind" = xyes
; then
3199 for ac_hdr
in libunwind.h
3201 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3203 echo "configure:3204: checking for $ac_hdr" >&5
3204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.
$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3212 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3213 { (eval echo configure
:3214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3214 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3215 if test -z "$ac_err"; then
3217 eval "ac_cv_header_$ac_safe=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.
$ac_ext >&5
3223 eval "ac_cv_header_$ac_safe=no"
3227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3229 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3230 cat >> confdefs.h
<<EOF
3231 #define $ac_tr_hdr 1
3235 echo "$ac_t""no" 1>&6
3239 for ac_hdr
in libunwind-ia64.h
3241 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_hdr" >&5
3244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.
$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3253 { (eval echo configure
:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3255 if test -z "$ac_err"; then
3257 eval "ac_cv_header_$ac_safe=yes"
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3263 eval "ac_cv_header_$ac_safe=no"
3267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3270 cat >> confdefs.h
<<EOF
3271 #define $ac_tr_hdr 1
3275 echo "$ac_t""no" 1>&6
3279 cat >> confdefs.h
<<\EOF
3280 #define HAVE_LIBUNWIND 1
3283 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
3284 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
3285 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
3288 # Profiling support.
3289 # Check whether --enable-profiling or --disable-profiling was given.
3290 if test "${enable_profiling+set}" = set; then
3291 enableval
="$enable_profiling"
3296 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3303 for ac_func
in monstartup _mcleanup
3305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3306 echo "configure:3307: checking for $ac_func" >&5
3307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 cat > conftest.
$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 /* System header to define __stub macros and hopefully few prototypes,
3314 which can conflict with char $ac_func(); below. */
3316 /* Override any gcc2 internal prototype to avoid an error. */
3317 /* We use char because int might match the return type of a gcc2
3318 builtin and then its argument prototype would still apply. */
3323 /* The GNU C library defines this for functions which it implements
3324 to always fail with ENOSYS. Some functions are actually named
3325 something starting with __ and the normal name is an alias. */
3326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3334 if { (eval echo configure
:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3336 eval "ac_cv_func_$ac_func=yes"
3338 echo "configure: failed program was:" >&5
3339 cat conftest.
$ac_ext >&5
3341 eval "ac_cv_func_$ac_func=no"
3346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3347 echo "$ac_t""yes" 1>&6
3348 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3349 cat >> confdefs.h
<<EOF
3350 #define $ac_tr_func 1
3354 echo "$ac_t""no" 1>&6
3358 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3359 echo "configure:3360: checking for _etext" >&5
3360 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3373 if { (eval echo configure
:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3375 ac_cv_var__etext
=yes
3377 echo "configure: failed program was:" >&5
3378 cat conftest.
$ac_ext >&5
3385 echo "$ac_t""$ac_cv_var__etext" 1>&6
3386 if test $ac_cv_var__etext = yes; then
3387 cat >> confdefs.h
<<\EOF
3388 #define HAVE__ETEXT 1
3392 if test "$enable_profiling" = yes ; then
3393 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
3394 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3397 OLD_CFLAGS
="$CFLAGS"
3398 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
3400 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3401 echo "configure:3402: checking whether $CC supports -pg" >&5
3402 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3413 if { (eval echo configure
:3414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3415 ac_cv_cc_supports_pg
=yes
3417 echo "configure: failed program was:" >&5
3418 cat conftest.
$ac_ext >&5
3420 ac_cv_cc_supports_pg
=no
3425 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3427 if test $ac_cv_cc_supports_pg = no
; then
3428 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3431 CFLAGS
="$OLD_CFLAGS"
3434 # --------------------- #
3435 # Checks for programs. #
3436 # --------------------- #
3438 for ac_prog
in mawk gawk nawk
awk
3440 # Extract the first word of "$ac_prog", so it can be a program name with args.
3441 set dummy
$ac_prog; ac_word
=$2
3442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_word" >&5
3444 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 if test -n "$AWK"; then
3448 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3450 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3452 for ac_dir
in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir
=.
3454 if test -f $ac_dir/$ac_word; then
3455 ac_cv_prog_AWK
="$ac_prog"
3462 AWK
="$ac_cv_prog_AWK"
3463 if test -n "$AWK"; then
3464 echo "$ac_t""$AWK" 1>&6
3466 echo "$ac_t""no" 1>&6
3469 test -n "$AWK" && break
3472 # Find a good install program. We prefer a C program (faster),
3473 # so one script is as good as another. But avoid the broken or
3474 # incompatible versions:
3475 # SysV /etc/install, /usr/sbin/install
3476 # SunOS /usr/etc/install
3477 # IRIX /sbin/install
3479 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3480 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3481 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3482 # ./install, which can be erroneously created by make from ./install.sh.
3483 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3484 echo "configure:3485: checking for a BSD compatible install" >&5
3485 if test -z "$INSTALL"; then
3486 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3490 for ac_dir
in $PATH; do
3491 # Account for people who put trailing slashes in PATH elements.
3493 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3495 # OSF1 and SCO ODT 3.0 have their own names for install.
3496 # Don't use installbsd from OSF since it installs stuff as root
3498 for ac_prog
in ginstall scoinst
install; do
3499 if test -f $ac_dir/$ac_prog; then
3500 if test $ac_prog = install &&
3501 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3502 # AIX install. It has an incompatible calling convention.
3505 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3516 if test "${ac_cv_path_install+set}" = set; then
3517 INSTALL
="$ac_cv_path_install"
3519 # As a last resort, use the slow shell script. We don't cache a
3520 # path for INSTALL within a source directory, because that will
3521 # break other packages using the cache if that directory is
3522 # removed, or if the path is relative.
3523 INSTALL
="$ac_install_sh"
3526 echo "$ac_t""$INSTALL" 1>&6
3528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529 # It thinks the first close brace ends the variable substitution.
3530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3534 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3536 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3537 echo "configure:3538: checking whether ln -s works" >&5
3538 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3542 if ln -s X conftestdata
2>/dev
/null
3545 ac_cv_prog_LN_S
="ln -s"
3550 LN_S
="$ac_cv_prog_LN_S"
3551 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3552 echo "$ac_t""yes" 1>&6
3554 echo "$ac_t""no" 1>&6
3557 # Extract the first word of "ranlib", so it can be a program name with args.
3558 set dummy ranlib
; ac_word
=$2
3559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3560 echo "configure:3561: checking for $ac_word" >&5
3561 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 if test -n "$RANLIB"; then
3565 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3569 for ac_dir
in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir
=.
3571 if test -f $ac_dir/$ac_word; then
3572 ac_cv_prog_RANLIB
="ranlib"
3577 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3580 RANLIB
="$ac_cv_prog_RANLIB"
3581 if test -n "$RANLIB"; then
3582 echo "$ac_t""$RANLIB" 1>&6
3584 echo "$ac_t""no" 1>&6
3587 for ac_prog
in 'bison -y' byacc
3589 # Extract the first word of "$ac_prog", so it can be a program name with args.
3590 set dummy
$ac_prog; ac_word
=$2
3591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3592 echo "configure:3593: checking for $ac_word" >&5
3593 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 if test -n "$YACC"; then
3597 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3601 for ac_dir
in $ac_dummy; do
3602 test -z "$ac_dir" && ac_dir
=.
3603 if test -f $ac_dir/$ac_word; then
3604 ac_cv_prog_YACC
="$ac_prog"
3611 YACC
="$ac_cv_prog_YACC"
3612 if test -n "$YACC"; then
3613 echo "$ac_t""$YACC" 1>&6
3615 echo "$ac_t""no" 1>&6
3618 test -n "$YACC" && break
3620 test -n "$YACC" || YACC
="yacc"
3623 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3624 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3626 echo "configure:3627: checking for $ac_word" >&5
3627 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 if test -n "$AR"; then
3631 ac_cv_prog_AR
="$AR" # Let the user override the test.
3633 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3635 for ac_dir
in $ac_dummy; do
3636 test -z "$ac_dir" && ac_dir
=.
3637 if test -f $ac_dir/$ac_word; then
3638 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3643 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3647 if test -n "$AR"; then
3648 echo "$ac_t""$AR" 1>&6
3650 echo "$ac_t""no" 1>&6
3655 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3656 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_word" >&5
3659 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 if test -n "$DLLTOOL"; then
3663 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3665 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3667 for ac_dir
in $ac_dummy; do
3668 test -z "$ac_dir" && ac_dir
=.
3669 if test -f $ac_dir/$ac_word; then
3670 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3675 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3678 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3679 if test -n "$DLLTOOL"; then
3680 echo "$ac_t""$DLLTOOL" 1>&6
3682 echo "$ac_t""no" 1>&6
3687 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3688 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3690 echo "configure:3691: checking for $ac_word" >&5
3691 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 if test -n "$WINDRES"; then
3695 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3697 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3699 for ac_dir
in $ac_dummy; do
3700 test -z "$ac_dir" && ac_dir
=.
3701 if test -f $ac_dir/$ac_word; then
3702 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3707 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3710 WINDRES
="$ac_cv_prog_WINDRES"
3711 if test -n "$WINDRES"; then
3712 echo "$ac_t""$WINDRES" 1>&6
3714 echo "$ac_t""no" 1>&6
3720 # Needed for GNU/Hurd.
3721 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3722 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_word" >&5
3725 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 if test -n "$MIG"; then
3729 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3733 for ac_dir
in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir
=.
3735 if test -f $ac_dir/$ac_word; then
3736 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3741 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3744 MIG
="$ac_cv_prog_MIG"
3745 if test -n "$MIG"; then
3746 echo "$ac_t""$MIG" 1>&6
3748 echo "$ac_t""no" 1>&6
3754 # ---------------------- #
3755 # Checks for libraries. #
3756 # ---------------------- #
3758 # We might need to link with -lm; most simulators need it.
3759 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3760 echo "configure:3761: checking for main in -lm" >&5
3761 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 ac_save_LIBS
="$LIBS"
3767 cat > conftest.
$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3775 if { (eval echo configure
:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3777 eval "ac_cv_lib_$ac_lib_var=yes"
3779 echo "configure: failed program was:" >&5
3780 cat conftest.
$ac_ext >&5
3782 eval "ac_cv_lib_$ac_lib_var=no"
3785 LIBS
="$ac_save_LIBS"
3788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3791 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3792 cat >> confdefs.h
<<EOF
3793 #define $ac_tr_lib 1
3799 echo "$ac_t""no" 1>&6
3803 # We need to link with -lw to get `wctype' on Solaris before Solaris
3804 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3805 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3806 # is known to have this problem). Therefore we avoid libw if we can.
3807 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3808 echo "configure:3809: checking for wctype" >&5
3809 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 cat > conftest.
$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 /* System header to define __stub macros and hopefully few prototypes,
3816 which can conflict with char wctype(); below. */
3818 /* Override any gcc2 internal prototype to avoid an error. */
3819 /* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_wctype) || defined (__stub___wctype)
3836 if { (eval echo configure
:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3838 eval "ac_cv_func_wctype=yes"
3840 echo "configure: failed program was:" >&5
3841 cat conftest.
$ac_ext >&5
3843 eval "ac_cv_func_wctype=no"
3848 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3852 echo "$ac_t""no" 1>&6
3853 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3854 echo "configure:3855: checking for wctype in -lw" >&5
3855 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 ac_save_LIBS
="$LIBS"
3861 cat > conftest.
$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3873 if { (eval echo configure
:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3875 eval "ac_cv_lib_$ac_lib_var=yes"
3877 echo "configure: failed program was:" >&5
3878 cat conftest.
$ac_ext >&5
3880 eval "ac_cv_lib_$ac_lib_var=no"
3883 LIBS
="$ac_save_LIBS"
3886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3888 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3890 cat >> confdefs.h
<<EOF
3891 #define $ac_tr_lib 1
3897 echo "$ac_t""no" 1>&6
3903 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3905 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3906 echo "configure:3907: checking for library containing gethostbyname" >&5
3907 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_func_search_save_LIBS
="$LIBS"
3911 ac_cv_search_gethostbyname
="no"
3912 cat > conftest.
$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char gethostbyname();
3924 if { (eval echo configure
:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3926 ac_cv_search_gethostbyname
="none required"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.
$ac_ext >&5
3932 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl
; do
3933 LIBS
="-l$i $ac_func_search_save_LIBS"
3934 cat > conftest.
$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3937 /* Override any gcc2 internal prototype to avoid an error. */
3938 /* We use char because int might match the return type of a gcc2
3939 builtin and then its argument prototype would still apply. */
3940 char gethostbyname();
3946 if { (eval echo configure
:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3948 ac_cv_search_gethostbyname
="-l$i"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.
$ac_ext >&5
3956 LIBS
="$ac_func_search_save_LIBS"
3959 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3960 if test "$ac_cv_search_gethostbyname" != "no"; then
3961 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3967 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3969 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3970 echo "configure:3971: checking for library containing socketpair" >&5
3971 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 ac_func_search_save_LIBS
="$LIBS"
3975 ac_cv_search_socketpair
="no"
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3988 if { (eval echo configure
:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3990 ac_cv_search_socketpair
="none required"
3992 echo "configure: failed program was:" >&5
3993 cat conftest.
$ac_ext >&5
3996 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3997 LIBS
="-l$i $ac_func_search_save_LIBS"
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4010 if { (eval echo configure
:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4012 ac_cv_search_socketpair
="-l$i"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.
$ac_ext >&5
4020 LIBS
="$ac_func_search_save_LIBS"
4023 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4024 if test "$ac_cv_search_socketpair" != "no"; then
4025 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
4031 # Since GDB uses Readline, we need termcap functionality, so we need
4032 # to find a library that provides that. When GDB is configured with
4033 # --enable-tui, we need full curses functionality.
4035 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4036 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4037 # Makefile fragments. That's why we need to have `Hcurses' before
4038 # `curses'. I don't see why we should use HP curses if a more
4039 # standard curses is available, except that according to HP's
4040 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4041 # HP-UX 10.10 and 10.20.
4043 if test "$need_curses" = yes; then
4045 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4046 echo "configure:4047: checking for library containing initscr" >&5
4047 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 ac_func_search_save_LIBS
="$LIBS"
4051 ac_cv_search_initscr
="no"
4052 cat > conftest.
$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* Override any gcc2 internal prototype to avoid an error. */
4056 /* We use char because int might match the return type of a gcc2
4057 builtin and then its argument prototype would still apply. */
4064 if { (eval echo configure
:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4066 ac_cv_search_initscr
="none required"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.
$ac_ext >&5
4072 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
4073 LIBS
="-l$i $ac_func_search_save_LIBS"
4074 cat > conftest.
$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4086 if { (eval echo configure
:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4088 ac_cv_search_initscr
="-l$i"
4091 echo "configure: failed program was:" >&5
4092 cat conftest.
$ac_ext >&5
4096 LIBS
="$ac_func_search_save_LIBS"
4099 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4100 if test "$ac_cv_search_initscr" != "no"; then
4101 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
4104 { echo "configure: error: no curses library found" 1>&2; exit 1; }
4110 if test -d $srcdir/libtermcap
; then
4111 LIBS
="../libtermcap/libtermcap.a $LIBS"
4112 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
4115 # ??? Is this really true?
4116 ac_cv_search_tgetent
="none required"
4119 # Readline prefers curses over termcap on AIX.
4122 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4123 echo "configure:4124: checking for library containing tgetent" >&5
4124 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 ac_func_search_save_LIBS
="$LIBS"
4128 ac_cv_search_tgetent
="no"
4129 cat > conftest.
$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4141 if { (eval echo configure
:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4143 ac_cv_search_tgetent
="none required"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4149 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
4150 LIBS
="-l$i $ac_func_search_save_LIBS"
4151 cat > conftest.
$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4163 if { (eval echo configure
:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4165 ac_cv_search_tgetent
="-l$i"
4168 echo "configure: failed program was:" >&5
4169 cat conftest.
$ac_ext >&5
4173 LIBS
="$ac_func_search_save_LIBS"
4176 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4177 if test "$ac_cv_search_tgetent" != "no"; then
4178 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4186 # Note: We used to check for libtermlib and libterminfo too, but
4187 # Readline doesn't, so I think we're safe with leaving them out.
4189 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4190 echo "configure:4191: checking for library containing tgetent" >&5
4191 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 ac_func_search_save_LIBS
="$LIBS"
4195 ac_cv_search_tgetent
="no"
4196 cat > conftest.
$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4199 /* Override any gcc2 internal prototype to avoid an error. */
4200 /* We use char because int might match the return type of a gcc2
4201 builtin and then its argument prototype would still apply. */
4208 if { (eval echo configure
:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4210 ac_cv_search_tgetent
="none required"
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4216 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
4217 LIBS
="-l$i $ac_func_search_save_LIBS"
4218 cat > conftest.
$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 /* Override any gcc2 internal prototype to avoid an error. */
4222 /* We use char because int might match the return type of a gcc2
4223 builtin and then its argument prototype would still apply. */
4230 if { (eval echo configure
:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4232 ac_cv_search_tgetent
="-l$i"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.
$ac_ext >&5
4240 LIBS
="$ac_func_search_save_LIBS"
4243 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4244 if test "$ac_cv_search_tgetent" != "no"; then
4245 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4251 if test "$ac_cv_search_tgetent" = no
; then
4252 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4255 # ------------------------- #
4256 # Checks for header files. #
4257 # ------------------------- #
4260 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4262 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4263 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4264 echo "configure:4265: checking for $ac_hdr that defines DIR" >&5
4265 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.
$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 #include <sys/types.h>
4277 if { (eval echo configure
:4278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4279 eval "ac_cv_header_dirent_$ac_safe=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.
$ac_ext >&5
4284 eval "ac_cv_header_dirent_$ac_safe=no"
4288 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4291 cat >> confdefs.h
<<EOF
4292 #define $ac_tr_hdr 1
4294 ac_header_dirent
=$ac_hdr; break
4296 echo "$ac_t""no" 1>&6
4299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4300 if test $ac_header_dirent = dirent.h
; then
4301 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4302 echo "configure:4303: checking for opendir in -ldir" >&5
4303 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 ac_save_LIBS
="$LIBS"
4309 cat > conftest.
$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */
4321 if { (eval echo configure
:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4323 eval "ac_cv_lib_$ac_lib_var=yes"
4325 echo "configure: failed program was:" >&5
4326 cat conftest.
$ac_ext >&5
4328 eval "ac_cv_lib_$ac_lib_var=no"
4331 LIBS
="$ac_save_LIBS"
4334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4338 echo "$ac_t""no" 1>&6
4342 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4343 echo "configure:4344: checking for opendir in -lx" >&5
4344 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 ac_save_LIBS
="$LIBS"
4350 cat > conftest.
$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4362 if { (eval echo configure
:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4364 eval "ac_cv_lib_$ac_lib_var=yes"
4366 echo "configure: failed program was:" >&5
4367 cat conftest.
$ac_ext >&5
4369 eval "ac_cv_lib_$ac_lib_var=no"
4372 LIBS
="$ac_save_LIBS"
4375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4379 echo "$ac_t""no" 1>&6
4384 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4385 echo "configure:4386: checking whether stat file-mode macros are broken" >&5
4386 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 cat > conftest.
$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 #include <sys/types.h>
4393 #include <sys/stat.h>
4395 #if defined(S_ISBLK) && defined(S_IFDIR)
4396 # if S_ISBLK (S_IFDIR)
4401 #if defined(S_ISBLK) && defined(S_IFCHR)
4402 # if S_ISBLK (S_IFCHR)
4407 #if defined(S_ISLNK) && defined(S_IFREG)
4408 # if S_ISLNK (S_IFREG)
4413 #if defined(S_ISSOCK) && defined(S_IFREG)
4414 # if S_ISSOCK (S_IFREG)
4420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421 egrep "You lose" >/dev
/null
2>&1; then
4423 ac_cv_header_stat_broken
=yes
4426 ac_cv_header_stat_broken
=no
4432 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4433 if test $ac_cv_header_stat_broken = yes; then
4434 cat >> confdefs.h
<<\EOF
4435 #define STAT_MACROS_BROKEN 1
4440 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4441 echo "configure:4442: checking for ANSI C header files" >&5
4442 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 cat > conftest.
$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure
:4455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4458 ac_cv_header_stdc
=yes
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 ac_cv_header_stdc
=no
4468 if test $ac_cv_header_stdc = yes; then
4469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4470 cat > conftest.
$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476 egrep "memchr" >/dev
/null
2>&1; then
4480 ac_cv_header_stdc
=no
4486 if test $ac_cv_header_stdc = yes; then
4487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 egrep "free" >/dev
/null
2>&1; then
4498 ac_cv_header_stdc
=no
4504 if test $ac_cv_header_stdc = yes; then
4505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4506 if test "$cross_compiling" = yes; then
4509 cat > conftest.
$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4513 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4514 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 int main () { int i; for (i = 0; i < 256; i++)
4517 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4521 if { (eval echo configure
:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4525 echo "configure: failed program was:" >&5
4526 cat conftest.
$ac_ext >&5
4528 ac_cv_header_stdc
=no
4536 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4537 if test $ac_cv_header_stdc = yes; then
4538 cat >> confdefs.h
<<\EOF
4539 #define STDC_HEADERS 1
4544 for ac_hdr
in link.h
4546 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_hdr" >&5
4549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 cat > conftest.
$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4557 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4558 { (eval echo configure
:4559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4559 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4560 if test -z "$ac_err"; then
4562 eval "ac_cv_header_$ac_safe=yes"
4565 echo "configure: failed program was:" >&5
4566 cat conftest.
$ac_ext >&5
4568 eval "ac_cv_header_$ac_safe=no"
4572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4573 echo "$ac_t""yes" 1>&6
4574 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4575 cat >> confdefs.h
<<EOF
4576 #define $ac_tr_hdr 1
4580 echo "$ac_t""no" 1>&6
4584 for ac_hdr
in nlist.h
4586 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4588 echo "configure:4589: checking for $ac_hdr" >&5
4589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.
$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4597 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4598 { (eval echo configure
:4599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4599 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4600 if test -z "$ac_err"; then
4602 eval "ac_cv_header_$ac_safe=yes"
4605 echo "configure: failed program was:" >&5
4606 cat conftest.
$ac_ext >&5
4608 eval "ac_cv_header_$ac_safe=no"
4612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4614 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4615 cat >> confdefs.h
<<EOF
4616 #define $ac_tr_hdr 1
4620 echo "$ac_t""no" 1>&6
4624 for ac_hdr
in poll.h sys
/poll.h
4626 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4628 echo "configure:4629: checking for $ac_hdr" >&5
4629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 cat > conftest.
$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4637 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4638 { (eval echo configure
:4639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4639 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4640 if test -z "$ac_err"; then
4642 eval "ac_cv_header_$ac_safe=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.
$ac_ext >&5
4648 eval "ac_cv_header_$ac_safe=no"
4652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4654 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4655 cat >> confdefs.h
<<EOF
4656 #define $ac_tr_hdr 1
4660 echo "$ac_t""no" 1>&6
4664 for ac_hdr
in proc_service.h thread_db.h
4666 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_hdr" >&5
4669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 cat > conftest.
$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4677 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4678 { (eval echo configure
:4679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4679 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4680 if test -z "$ac_err"; then
4682 eval "ac_cv_header_$ac_safe=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4688 eval "ac_cv_header_$ac_safe=no"
4692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4693 echo "$ac_t""yes" 1>&6
4694 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4695 cat >> confdefs.h
<<EOF
4696 #define $ac_tr_hdr 1
4700 echo "$ac_t""no" 1>&6
4704 for ac_hdr
in stddef.h
4706 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4708 echo "configure:4709: checking for $ac_hdr" >&5
4709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 cat > conftest.
$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4717 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4718 { (eval echo configure
:4719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4719 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4720 if test -z "$ac_err"; then
4722 eval "ac_cv_header_$ac_safe=yes"
4725 echo "configure: failed program was:" >&5
4726 cat conftest.
$ac_ext >&5
4728 eval "ac_cv_header_$ac_safe=no"
4732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4735 cat >> confdefs.h
<<EOF
4736 #define $ac_tr_hdr 1
4740 echo "$ac_t""no" 1>&6
4744 for ac_hdr
in stdlib.h
4746 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_hdr" >&5
4749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 cat > conftest.
$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4757 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4758 { (eval echo configure
:4759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4759 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4760 if test -z "$ac_err"; then
4762 eval "ac_cv_header_$ac_safe=yes"
4765 echo "configure: failed program was:" >&5
4766 cat conftest.
$ac_ext >&5
4768 eval "ac_cv_header_$ac_safe=no"
4772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4775 cat >> confdefs.h
<<EOF
4776 #define $ac_tr_hdr 1
4780 echo "$ac_t""no" 1>&6
4784 for ac_hdr
in stdint.h
4786 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_hdr" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4797 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4798 { (eval echo configure
:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4799 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4800 if test -z "$ac_err"; then
4802 eval "ac_cv_header_$ac_safe=yes"
4805 echo "configure: failed program was:" >&5
4806 cat conftest.
$ac_ext >&5
4808 eval "ac_cv_header_$ac_safe=no"
4812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4815 cat >> confdefs.h
<<EOF
4816 #define $ac_tr_hdr 1
4820 echo "$ac_t""no" 1>&6
4824 for ac_hdr
in string.h memory.h
strings.h
4826 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4828 echo "configure:4829: checking for $ac_hdr" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.
$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4837 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure
:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4842 eval "ac_cv_header_$ac_safe=yes"
4845 echo "configure: failed program was:" >&5
4846 cat conftest.
$ac_ext >&5
4848 eval "ac_cv_header_$ac_safe=no"
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4855 cat >> confdefs.h
<<EOF
4856 #define $ac_tr_hdr 1
4860 echo "$ac_t""no" 1>&6
4864 for ac_hdr
in sys
/fault.h
4866 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4868 echo "configure:4869: checking for $ac_hdr" >&5
4869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4877 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4878 { (eval echo configure
:4879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4879 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4880 if test -z "$ac_err"; then
4882 eval "ac_cv_header_$ac_safe=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.
$ac_ext >&5
4888 eval "ac_cv_header_$ac_safe=no"
4892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4894 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4895 cat >> confdefs.h
<<EOF
4896 #define $ac_tr_hdr 1
4900 echo "$ac_t""no" 1>&6
4904 for ac_hdr
in sys
/file.h
4906 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4908 echo "configure:4909: checking for $ac_hdr" >&5
4909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4912 cat > conftest.
$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4917 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4918 { (eval echo configure
:4919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4919 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4920 if test -z "$ac_err"; then
4922 eval "ac_cv_header_$ac_safe=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.
$ac_ext >&5
4928 eval "ac_cv_header_$ac_safe=no"
4932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4935 cat >> confdefs.h
<<EOF
4936 #define $ac_tr_hdr 1
4940 echo "$ac_t""no" 1>&6
4944 for ac_hdr
in sys
/filio.h
4946 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4948 echo "configure:4949: checking for $ac_hdr" >&5
4949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 cat > conftest.
$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4957 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4958 { (eval echo configure
:4959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4959 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4960 if test -z "$ac_err"; then
4962 eval "ac_cv_header_$ac_safe=yes"
4965 echo "configure: failed program was:" >&5
4966 cat conftest.
$ac_ext >&5
4968 eval "ac_cv_header_$ac_safe=no"
4972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4973 echo "$ac_t""yes" 1>&6
4974 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4975 cat >> confdefs.h
<<EOF
4976 #define $ac_tr_hdr 1
4980 echo "$ac_t""no" 1>&6
4984 for ac_hdr
in sys
/ioctl.h
4986 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4988 echo "configure:4989: checking for $ac_hdr" >&5
4989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4992 cat > conftest.
$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4997 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4998 { (eval echo configure
:4999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4999 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5000 if test -z "$ac_err"; then
5002 eval "ac_cv_header_$ac_safe=yes"
5005 echo "configure: failed program was:" >&5
5006 cat conftest.
$ac_ext >&5
5008 eval "ac_cv_header_$ac_safe=no"
5012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5013 echo "$ac_t""yes" 1>&6
5014 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5015 cat >> confdefs.h
<<EOF
5016 #define $ac_tr_hdr 1
5020 echo "$ac_t""no" 1>&6
5024 for ac_hdr
in sys
/param.h
5026 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5028 echo "configure:5029: checking for $ac_hdr" >&5
5029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5032 cat > conftest.
$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5037 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5038 { (eval echo configure
:5039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5039 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5040 if test -z "$ac_err"; then
5042 eval "ac_cv_header_$ac_safe=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5048 eval "ac_cv_header_$ac_safe=no"
5052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5055 cat >> confdefs.h
<<EOF
5056 #define $ac_tr_hdr 1
5060 echo "$ac_t""no" 1>&6
5064 for ac_hdr
in sys
/proc.h
5066 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_hdr" >&5
5069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.
$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5078 { (eval echo configure
:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5080 if test -z "$ac_err"; then
5082 eval "ac_cv_header_$ac_safe=yes"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.
$ac_ext >&5
5088 eval "ac_cv_header_$ac_safe=no"
5092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5093 echo "$ac_t""yes" 1>&6
5094 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5095 cat >> confdefs.h
<<EOF
5096 #define $ac_tr_hdr 1
5100 echo "$ac_t""no" 1>&6
5104 for ac_hdr
in sys
/procfs.h
5106 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5108 echo "configure:5109: checking for $ac_hdr" >&5
5109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5112 cat > conftest.
$ac_ext <<EOF
5113 #line 5114 "configure"
5114 #include "confdefs.h"
5117 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5118 { (eval echo configure
:5119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5119 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5120 if test -z "$ac_err"; then
5122 eval "ac_cv_header_$ac_safe=yes"
5125 echo "configure: failed program was:" >&5
5126 cat conftest.
$ac_ext >&5
5128 eval "ac_cv_header_$ac_safe=no"
5132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5134 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5135 cat >> confdefs.h
<<EOF
5136 #define $ac_tr_hdr 1
5140 echo "$ac_t""no" 1>&6
5144 for ac_hdr
in sys
/ptrace.h ptrace.h
5146 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5148 echo "configure:5149: checking for $ac_hdr" >&5
5149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5152 cat > conftest.
$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5157 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5158 { (eval echo configure
:5159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5159 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5160 if test -z "$ac_err"; then
5162 eval "ac_cv_header_$ac_safe=yes"
5165 echo "configure: failed program was:" >&5
5166 cat conftest.
$ac_ext >&5
5168 eval "ac_cv_header_$ac_safe=no"
5172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5175 cat >> confdefs.h
<<EOF
5176 #define $ac_tr_hdr 1
5180 echo "$ac_t""no" 1>&6
5184 for ac_hdr
in sys
/reg.h sys
/debugreg.h
5186 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5188 echo "configure:5189: checking for $ac_hdr" >&5
5189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 cat > conftest.
$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5197 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5198 { (eval echo configure
:5199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5199 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5200 if test -z "$ac_err"; then
5202 eval "ac_cv_header_$ac_safe=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.
$ac_ext >&5
5208 eval "ac_cv_header_$ac_safe=no"
5212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5213 echo "$ac_t""yes" 1>&6
5214 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5215 cat >> confdefs.h
<<EOF
5216 #define $ac_tr_hdr 1
5220 echo "$ac_t""no" 1>&6
5224 for ac_hdr
in sys
/select.h
5226 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5228 echo "configure:5229: checking for $ac_hdr" >&5
5229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.
$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5237 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5238 { (eval echo configure
:5239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5239 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5240 if test -z "$ac_err"; then
5242 eval "ac_cv_header_$ac_safe=yes"
5245 echo "configure: failed program was:" >&5
5246 cat conftest.
$ac_ext >&5
5248 eval "ac_cv_header_$ac_safe=no"
5252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5255 cat >> confdefs.h
<<EOF
5256 #define $ac_tr_hdr 1
5260 echo "$ac_t""no" 1>&6
5264 for ac_hdr
in sys
/syscall.h
5266 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5268 echo "configure:5269: checking for $ac_hdr" >&5
5269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5272 cat > conftest.
$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5278 { (eval echo configure
:5279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5280 if test -z "$ac_err"; then
5282 eval "ac_cv_header_$ac_safe=yes"
5285 echo "configure: failed program was:" >&5
5286 cat conftest.
$ac_ext >&5
5288 eval "ac_cv_header_$ac_safe=no"
5292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5295 cat >> confdefs.h
<<EOF
5296 #define $ac_tr_hdr 1
5300 echo "$ac_t""no" 1>&6
5304 for ac_hdr
in sys
/user.h
5306 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5308 echo "configure:5309: checking for $ac_hdr" >&5
5309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5312 cat > conftest.
$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5318 { (eval echo configure
:5319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5320 if test -z "$ac_err"; then
5322 eval "ac_cv_header_$ac_safe=yes"
5325 echo "configure: failed program was:" >&5
5326 cat conftest.
$ac_ext >&5
5328 eval "ac_cv_header_$ac_safe=no"
5332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5333 echo "$ac_t""yes" 1>&6
5334 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5335 cat >> confdefs.h
<<EOF
5336 #define $ac_tr_hdr 1
5340 echo "$ac_t""no" 1>&6
5344 for ac_hdr
in sys
/wait.h
wait.h
5346 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5348 echo "configure:5349: checking for $ac_hdr" >&5
5349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5352 cat > conftest.
$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5358 { (eval echo configure
:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5360 if test -z "$ac_err"; then
5362 eval "ac_cv_header_$ac_safe=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.
$ac_ext >&5
5368 eval "ac_cv_header_$ac_safe=no"
5372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5374 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5375 cat >> confdefs.h
<<EOF
5376 #define $ac_tr_hdr 1
5380 echo "$ac_t""no" 1>&6
5384 for ac_hdr
in termios.h termio.h sgtty.h
5386 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5388 echo "configure:5389: checking for $ac_hdr" >&5
5389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.
$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5398 { (eval echo configure
:5399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5399 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5400 if test -z "$ac_err"; then
5402 eval "ac_cv_header_$ac_safe=yes"
5405 echo "configure: failed program was:" >&5
5406 cat conftest.
$ac_ext >&5
5408 eval "ac_cv_header_$ac_safe=no"
5412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5415 cat >> confdefs.h
<<EOF
5416 #define $ac_tr_hdr 1
5420 echo "$ac_t""no" 1>&6
5424 for ac_hdr
in unistd.h
5426 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_hdr" >&5
5429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 cat > conftest.
$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5437 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5438 { (eval echo configure
:5439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5439 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5440 if test -z "$ac_err"; then
5442 eval "ac_cv_header_$ac_safe=yes"
5445 echo "configure: failed program was:" >&5
5446 cat conftest.
$ac_ext >&5
5448 eval "ac_cv_header_$ac_safe=no"
5452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5453 echo "$ac_t""yes" 1>&6
5454 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5455 cat >> confdefs.h
<<EOF
5456 #define $ac_tr_hdr 1
5460 echo "$ac_t""no" 1>&6
5465 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5466 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5467 # think that we don't have <curses.h> if we're using GCC.
5470 if test "$GCC" = yes; then
5471 cat >> confdefs.h
<<\EOF
5472 #define _MSE_INT_H 1
5477 for ac_hdr
in curses.h ncurses.h term.h
5479 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_hdr" >&5
5482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.
$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5490 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5491 { (eval echo configure
:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5492 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5493 if test -z "$ac_err"; then
5495 eval "ac_cv_header_$ac_safe=yes"
5498 echo "configure: failed program was:" >&5
5499 cat conftest.
$ac_ext >&5
5501 eval "ac_cv_header_$ac_safe=no"
5505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5506 echo "$ac_t""yes" 1>&6
5507 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5508 cat >> confdefs.h
<<EOF
5509 #define $ac_tr_hdr 1
5513 echo "$ac_t""no" 1>&6
5518 # FIXME: kettenis/20030102: In most cases we include these
5519 # unconditionally, so what's the point in checking these?
5520 for ac_hdr
in ctype.h
time.h
5522 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5524 echo "configure:5525: checking for $ac_hdr" >&5
5525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5528 cat > conftest.
$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5534 { (eval echo configure
:5535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5535 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5536 if test -z "$ac_err"; then
5538 eval "ac_cv_header_$ac_safe=yes"
5541 echo "configure: failed program was:" >&5
5542 cat conftest.
$ac_ext >&5
5544 eval "ac_cv_header_$ac_safe=no"
5548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5549 echo "$ac_t""yes" 1>&6
5550 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5551 cat >> confdefs.h
<<EOF
5552 #define $ac_tr_hdr 1
5556 echo "$ac_t""no" 1>&6
5561 # ------------------------- #
5562 # Checks for declarations. #
5563 # ------------------------- #
5565 for ac_func
in getopt
5567 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5568 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5569 echo "configure:5570: checking whether $ac_func is declared" >&5
5570 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5573 cat > conftest.
$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5577 #define $ac_tr_decl 1
5582 char *(*pfn) = (char *(*)) $ac_func ;
5586 if { (eval echo configure
:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5588 eval "gcc_cv_have_decl_$ac_func=yes"
5590 echo "configure: failed program was:" >&5
5591 cat conftest.
$ac_ext >&5
5593 eval "gcc_cv_have_decl_$ac_func=no"
5598 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
5600 #define $ac_tr_decl 1
5604 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
5605 #define $ac_tr_decl 0
5611 if test x
= y
; then
5612 cat >> confdefs.h
<<\EOF
5613 #define HAVE_DECL_GETOPT 1
5618 # ------------------ #
5619 # Checks for types. #
5620 # ------------------ #
5622 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5623 echo "configure:5624: checking return type of signal handlers" >&5
5624 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5627 cat > conftest.
$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5630 #include <sys/types.h>
5636 extern "C" void (*signal (int, void (*)(int)))(int);
5638 void (*signal ()) ();
5645 if { (eval echo configure
:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5647 ac_cv_type_signal
=void
5649 echo "configure: failed program was:" >&5
5650 cat conftest.
$ac_ext >&5
5652 ac_cv_type_signal
=int
5657 echo "$ac_t""$ac_cv_type_signal" 1>&6
5658 cat >> confdefs.h
<<EOF
5659 #define RETSIGTYPE $ac_cv_type_signal
5664 # ------------------------------------- #
5665 # Checks for compiler characteristics. #
5666 # ------------------------------------- #
5668 echo $ac_n "checking for working const""... $ac_c" 1>&6
5669 echo "configure:5670: checking for working const" >&5
5670 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 cat > conftest.
$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5679 /* Ultrix mips cc rejects this. */
5680 typedef int charset[2]; const charset x;
5681 /* SunOS 4.1.1 cc rejects this. */
5682 char const *const *ccp;
5684 /* NEC SVR4.0.2 mips cc rejects this. */
5685 struct point {int x, y;};
5686 static struct point const zero = {0,0};
5687 /* AIX XL C 1.02.0.0 rejects this.
5688 It does not let you subtract one const X* pointer from another in an arm
5689 of an if-expression whose if-part is not a constant expression */
5690 const char *g = "string";
5691 ccp = &g + (g ? g-g : 0);
5692 /* HPUX 7.0 cc rejects these. */
5695 ccp = (char const *const *) p;
5696 { /* SCO 3.2v4 cc rejects this. */
5698 char const *s = 0 ? (char *) 0 : (char const *) 0;
5702 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5704 const int *foo = &x[0];
5707 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5708 typedef const int *iptr;
5712 { /* AIX XL C 1.02.0.0 rejects this saying
5713 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5714 struct s { int j; const int *ap[3]; };
5715 struct s *b; b->j = 5;
5717 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5723 if { (eval echo configure
:5724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5727 echo "configure: failed program was:" >&5
5728 cat conftest.
$ac_ext >&5
5735 echo "$ac_t""$ac_cv_c_const" 1>&6
5736 if test $ac_cv_c_const = no
; then
5737 cat >> confdefs.h
<<\EOF
5743 echo $ac_n "checking for inline""... $ac_c" 1>&6
5744 echo "configure:5745: checking for inline" >&5
5745 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5749 for ac_kw
in inline __inline__ __inline
; do
5750 cat > conftest.
$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5758 if { (eval echo configure
:5759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5760 ac_cv_c_inline
=$ac_kw; break
5762 echo "configure: failed program was:" >&5
5763 cat conftest.
$ac_ext >&5
5770 echo "$ac_t""$ac_cv_c_inline" 1>&6
5771 case "$ac_cv_c_inline" in
5773 no
) cat >> confdefs.h
<<\EOF
5777 *) cat >> confdefs.h
<<EOF
5778 #define inline $ac_cv_c_inline
5784 # ------------------------------ #
5785 # Checks for library functions. #
5786 # ------------------------------ #
5788 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5789 # for constant arguments. Useless!
5790 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5791 echo "configure:5792: checking for working alloca.h" >&5
5792 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5795 cat > conftest.
$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5800 char *p = alloca(2 * sizeof(int));
5803 if { (eval echo configure
:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5805 ac_cv_header_alloca_h
=yes
5807 echo "configure: failed program was:" >&5
5808 cat conftest.
$ac_ext >&5
5810 ac_cv_header_alloca_h
=no
5815 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5816 if test $ac_cv_header_alloca_h = yes; then
5817 cat >> confdefs.h
<<\EOF
5818 #define HAVE_ALLOCA_H 1
5823 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5824 echo "configure:5825: checking for alloca" >&5
5825 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5828 cat > conftest.
$ac_ext <<EOF
5829 #line 5830 "configure"
5830 #include "confdefs.h"
5833 # define alloca __builtin_alloca
5836 # include <malloc.h>
5837 # define alloca _alloca
5840 # include <alloca.h>
5845 # ifndef alloca /* predefined by HP cc +Olibcalls */
5854 char *p = (char *) alloca(1);
5857 if { (eval echo configure
:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5859 ac_cv_func_alloca_works
=yes
5861 echo "configure: failed program was:" >&5
5862 cat conftest.
$ac_ext >&5
5864 ac_cv_func_alloca_works
=no
5869 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5870 if test $ac_cv_func_alloca_works = yes; then
5871 cat >> confdefs.h
<<\EOF
5872 #define HAVE_ALLOCA 1
5877 if test $ac_cv_func_alloca_works = no
; then
5878 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5879 # that cause trouble. Some versions do not even contain alloca or
5880 # contain a buggy version. If you still want to use their alloca,
5881 # use ar to extract alloca.o from them instead of compiling alloca.c.
5882 ALLOCA
=alloca.
${ac_objext}
5883 cat >> confdefs.h
<<\EOF
5888 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5889 echo "configure:5890: checking whether alloca needs Cray hooks" >&5
5890 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5893 cat > conftest.
$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 #if defined(CRAY) && ! defined(CRAY2)
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 egrep "webecray" >/dev
/null
2>&1; then
5915 echo "$ac_t""$ac_cv_os_cray" 1>&6
5916 if test $ac_cv_os_cray = yes; then
5917 for ac_func
in _getb67 GETB67 getb67
; do
5918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5919 echo "configure:5920: checking for $ac_func" >&5
5920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.
$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 /* System header to define __stub macros and hopefully few prototypes,
5927 which can conflict with char $ac_func(); below. */
5929 /* Override any gcc2 internal prototype to avoid an error. */
5930 /* We use char because int might match the return type of a gcc2
5931 builtin and then its argument prototype would still apply. */
5936 /* The GNU C library defines this for functions which it implements
5937 to always fail with ENOSYS. Some functions are actually named
5938 something starting with __ and the normal name is an alias. */
5939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5947 if { (eval echo configure
:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5949 eval "ac_cv_func_$ac_func=yes"
5951 echo "configure: failed program was:" >&5
5952 cat conftest.
$ac_ext >&5
5954 eval "ac_cv_func_$ac_func=no"
5959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5960 echo "$ac_t""yes" 1>&6
5961 cat >> confdefs.h
<<EOF
5962 #define CRAY_STACKSEG_END $ac_func
5967 echo "$ac_t""no" 1>&6
5973 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5974 echo "configure:5975: checking stack direction for C alloca" >&5
5975 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5978 if test "$cross_compiling" = yes; then
5979 ac_cv_c_stack_direction
=0
5981 cat > conftest.
$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 find_stack_direction ()
5986 static char *addr = 0;
5991 return find_stack_direction ();
5994 return (&dummy > addr) ? 1 : -1;
5998 exit (find_stack_direction() < 0);
6001 if { (eval echo configure
:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6003 ac_cv_c_stack_direction
=1
6005 echo "configure: failed program was:" >&5
6006 cat conftest.
$ac_ext >&5
6008 ac_cv_c_stack_direction
=-1
6015 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6016 cat >> confdefs.h
<<EOF
6017 #define STACK_DIRECTION $ac_cv_c_stack_direction
6022 for ac_hdr
in unistd.h
6024 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_hdr" >&5
6027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.
$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6035 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6036 { (eval echo configure
:6037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6037 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6038 if test -z "$ac_err"; then
6040 eval "ac_cv_header_$ac_safe=yes"
6043 echo "configure: failed program was:" >&5
6044 cat conftest.
$ac_ext >&5
6046 eval "ac_cv_header_$ac_safe=no"
6050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6052 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6053 cat >> confdefs.h
<<EOF
6054 #define $ac_tr_hdr 1
6058 echo "$ac_t""no" 1>&6
6062 for ac_func
in getpagesize
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.
$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char $ac_func(); below. */
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6093 if { (eval echo configure
:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6095 eval "ac_cv_func_$ac_func=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.
$ac_ext >&5
6100 eval "ac_cv_func_$ac_func=no"
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 cat >> confdefs.h
<<EOF
6109 #define $ac_tr_func 1
6113 echo "$ac_t""no" 1>&6
6117 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6118 echo "configure:6119: checking for working mmap" >&5
6119 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 if test "$cross_compiling" = yes; then
6123 ac_cv_func_mmap_fixed_mapped
=no
6125 cat > conftest.
$ac_ext <<EOF
6126 #line 6127 "configure"
6127 #include "confdefs.h"
6129 /* Thanks to Mike Haertel and Jim Avera for this test.
6130 Here is a matrix of mmap possibilities:
6131 mmap private not fixed
6132 mmap private fixed at somewhere currently unmapped
6133 mmap private fixed at somewhere already mapped
6134 mmap shared not fixed
6135 mmap shared fixed at somewhere currently unmapped
6136 mmap shared fixed at somewhere already mapped
6137 For private mappings, we should verify that changes cannot be read()
6138 back from the file, nor mmap's back from the file at a different
6139 address. (There have been systems where private was not correctly
6140 implemented like the infamous i386 svr4.0, and systems where the
6141 VM page cache was not coherent with the filesystem buffer cache
6142 like early versions of FreeBSD and possibly contemporary NetBSD.)
6143 For shared mappings, we should conversely verify that changes get
6144 propogated back to all the places they're supposed to be.
6146 Grep wants private fixed already mapped.
6147 The main things grep needs to know about mmap are:
6148 * does it exist and is it safe to write into the mmap'd area
6149 * how to use it (BSD variants) */
6150 #include <sys/types.h>
6152 #include <sys/mman.h>
6154 /* This mess was copied from the GNU getpagesize.h. */
6155 #ifndef HAVE_GETPAGESIZE
6156 # ifdef HAVE_UNISTD_H
6157 # include <unistd.h>
6160 /* Assume that all systems that can run configure have sys/param.h. */
6161 # ifndef HAVE_SYS_PARAM_H
6162 # define HAVE_SYS_PARAM_H 1
6165 # ifdef _SC_PAGESIZE
6166 # define getpagesize() sysconf(_SC_PAGESIZE)
6167 # else /* no _SC_PAGESIZE */
6168 # ifdef HAVE_SYS_PARAM_H
6169 # include <sys/param.h>
6170 # ifdef EXEC_PAGESIZE
6171 # define getpagesize() EXEC_PAGESIZE
6172 # else /* no EXEC_PAGESIZE */
6174 # define getpagesize() NBPG * CLSIZE
6177 # endif /* no CLSIZE */
6178 # else /* no NBPG */
6180 # define getpagesize() NBPC
6181 # else /* no NBPC */
6183 # define getpagesize() PAGESIZE
6184 # endif /* PAGESIZE */
6185 # endif /* no NBPC */
6186 # endif /* no NBPG */
6187 # endif /* no EXEC_PAGESIZE */
6188 # else /* no HAVE_SYS_PARAM_H */
6189 # define getpagesize() 8192 /* punt totally */
6190 # endif /* no HAVE_SYS_PARAM_H */
6191 # endif /* no _SC_PAGESIZE */
6193 #endif /* no HAVE_GETPAGESIZE */
6196 extern "C" { void *malloc(unsigned); }
6204 char *data, *data2, *data3;
6208 pagesize = getpagesize();
6211 * First, make a file with some known garbage in it.
6213 data = malloc(pagesize);
6216 for (i = 0; i < pagesize; ++i)
6217 *(data + i) = rand();
6219 fd = creat("conftestmmap", 0600);
6222 if (write(fd, data, pagesize) != pagesize)
6227 * Next, try to mmap the file at a fixed address which
6228 * already has something else allocated at it. If we can,
6229 * also make sure that we see the same garbage.
6231 fd = open("conftestmmap", O_RDWR);
6234 data2 = malloc(2 * pagesize);
6237 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6238 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6239 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6241 for (i = 0; i < pagesize; ++i)
6242 if (*(data + i) != *(data2 + i))
6246 * Finally, make sure that changes to the mapped area
6247 * do not percolate back to the file as seen by read().
6248 * (This is a bug on some variants of i386 svr4.0.)
6250 for (i = 0; i < pagesize; ++i)
6251 *(data2 + i) = *(data2 + i) + 1;
6252 data3 = malloc(pagesize);
6255 if (read(fd, data3, pagesize) != pagesize)
6257 for (i = 0; i < pagesize; ++i)
6258 if (*(data + i) != *(data3 + i))
6261 unlink("conftestmmap");
6266 if { (eval echo configure
:6267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6268 ac_cv_func_mmap_fixed_mapped
=yes
6270 echo "configure: failed program was:" >&5
6271 cat conftest.
$ac_ext >&5
6273 ac_cv_func_mmap_fixed_mapped
=no
6280 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6281 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6282 cat >> confdefs.h
<<\EOF
6288 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6289 echo "configure:6290: checking for pid_t" >&5
6290 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.
$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 #include <sys/types.h>
6302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6303 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6305 ac_cv_type_pid_t
=yes
6313 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6314 if test $ac_cv_type_pid_t = no
; then
6315 cat >> confdefs.h
<<\EOF
6321 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6322 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6323 echo "configure:6324: checking for vfork.h" >&5
6324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6325 echo $ac_n "(cached) $ac_c" 1>&6
6327 cat > conftest.
$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6332 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6333 { (eval echo configure
:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6334 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6335 if test -z "$ac_err"; then
6337 eval "ac_cv_header_$ac_safe=yes"
6340 echo "configure: failed program was:" >&5
6341 cat conftest.
$ac_ext >&5
6343 eval "ac_cv_header_$ac_safe=no"
6347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 cat >> confdefs.h
<<\EOF
6350 #define HAVE_VFORK_H 1
6354 echo "$ac_t""no" 1>&6
6357 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6358 echo "configure:6359: checking for working vfork" >&5
6359 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 if test "$cross_compiling" = yes; then
6363 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6364 echo "configure:6365: checking for vfork" >&5
6365 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6368 cat > conftest.
$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6371 /* System header to define __stub macros and hopefully few prototypes,
6372 which can conflict with char vfork(); below. */
6374 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6381 /* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384 #if defined (__stub_vfork) || defined (__stub___vfork)
6392 if { (eval echo configure
:6393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6394 eval "ac_cv_func_vfork=yes"
6396 echo "configure: failed program was:" >&5
6397 cat conftest.
$ac_ext >&5
6399 eval "ac_cv_func_vfork=no"
6404 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6405 echo "$ac_t""yes" 1>&6
6408 echo "$ac_t""no" 1>&6
6411 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6413 cat > conftest.
$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6416 /* Thanks to Paul Eggert for this test. */
6418 #include <sys/types.h>
6419 #include <sys/stat.h>
6420 #ifdef HAVE_UNISTD_H
6426 /* On some sparc systems, changes by the child to local and incoming
6427 argument registers are propagated back to the parent.
6428 The compiler is told about this with #include <vfork.h>,
6429 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6430 Test for this by using a static variable whose address
6431 is put into a register that is clobbered by the vfork. */
6434 sparc_address_test (int arg)
6436 sparc_address_test (arg) int arg;
6454 pid_t parent = getpid ();
6457 sparc_address_test ();
6462 /* Here is another test for sparc vfork register problems.
6463 This test uses lots of local variables, at least
6464 as many local variables as main has allocated so far
6465 including compiler temporaries. 4 locals are enough for
6466 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6467 A buggy compiler should reuse the register of parent
6468 for one of the local variables, since it will think that
6469 parent can't possibly be used any more in this routine.
6470 Assigning to the local variable will thus munge parent
6471 in the parent process. */
6473 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6474 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6475 /* Convince the compiler that p..p7 are live; otherwise, it might
6476 use the same hardware register for all 8 local variables. */
6477 if (p != p1 || p != p2 || p != p3 || p != p4
6478 || p != p5 || p != p6 || p != p7)
6481 /* On some systems (e.g. IRIX 3.3),
6482 vfork doesn't separate parent from child file descriptors.
6483 If the child closes a descriptor before it execs or exits,
6484 this munges the parent's descriptor as well.
6485 Test for this by closing stdout in the child. */
6486 _exit(close(fileno(stdout)) != 0);
6491 while (wait(&status) != child)
6494 /* Was there some problem with vforking? */
6497 /* Did the child fail? (This shouldn't happen.) */
6500 /* Did the vfork/compiler bug occur? */
6501 || parent != getpid()
6503 /* Did the file descriptor bug occur? */
6504 || fstat(fileno(stdout), &st) != 0
6509 if { (eval echo configure
:6510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6511 ac_cv_func_vfork_works
=yes
6513 echo "configure: failed program was:" >&5
6514 cat conftest.
$ac_ext >&5
6516 ac_cv_func_vfork_works
=no
6523 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6524 if test $ac_cv_func_vfork_works = no
; then
6525 cat >> confdefs.h
<<\EOF
6531 for ac_func
in canonicalize_file_name realpath
6533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6534 echo "configure:6535: checking for $ac_func" >&5
6535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 cat > conftest.
$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 /* System header to define __stub macros and hopefully few prototypes,
6542 which can conflict with char $ac_func(); below. */
6544 /* Override any gcc2 internal prototype to avoid an error. */
6545 /* We use char because int might match the return type of a gcc2
6546 builtin and then its argument prototype would still apply. */
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6562 if { (eval echo configure
:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6564 eval "ac_cv_func_$ac_func=yes"
6566 echo "configure: failed program was:" >&5
6567 cat conftest.
$ac_ext >&5
6569 eval "ac_cv_func_$ac_func=no"
6574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6575 echo "$ac_t""yes" 1>&6
6576 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6577 cat >> confdefs.h
<<EOF
6578 #define $ac_tr_func 1
6582 echo "$ac_t""no" 1>&6
6588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6589 echo "configure:6590: checking for $ac_func" >&5
6590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 cat > conftest.
$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 /* System header to define __stub macros and hopefully few prototypes,
6597 which can conflict with char $ac_func(); below. */
6599 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6606 /* The GNU C library defines this for functions which it implements
6607 to always fail with ENOSYS. Some functions are actually named
6608 something starting with __ and the normal name is an alias. */
6609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6617 if { (eval echo configure
:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6619 eval "ac_cv_func_$ac_func=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.
$ac_ext >&5
6624 eval "ac_cv_func_$ac_func=no"
6629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6632 cat >> confdefs.h
<<EOF
6633 #define $ac_tr_func 1
6637 echo "$ac_t""no" 1>&6
6641 for ac_func
in pread64
6643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6644 echo "configure:6645: checking for $ac_func" >&5
6645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6648 cat > conftest.
$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 /* System header to define __stub macros and hopefully few prototypes,
6652 which can conflict with char $ac_func(); below. */
6654 /* Override any gcc2 internal prototype to avoid an error. */
6655 /* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */
6661 /* The GNU C library defines this for functions which it implements
6662 to always fail with ENOSYS. Some functions are actually named
6663 something starting with __ and the normal name is an alias. */
6664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6672 if { (eval echo configure
:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6674 eval "ac_cv_func_$ac_func=yes"
6676 echo "configure: failed program was:" >&5
6677 cat conftest.
$ac_ext >&5
6679 eval "ac_cv_func_$ac_func=no"
6684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6686 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6687 cat >> confdefs.h
<<EOF
6688 #define $ac_tr_func 1
6692 echo "$ac_t""no" 1>&6
6698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6699 echo "configure:6700: checking for $ac_func" >&5
6700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6703 cat > conftest.
$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6706 /* System header to define __stub macros and hopefully few prototypes,
6707 which can conflict with char $ac_func(); below. */
6709 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6716 /* The GNU C library defines this for functions which it implements
6717 to always fail with ENOSYS. Some functions are actually named
6718 something starting with __ and the normal name is an alias. */
6719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6727 if { (eval echo configure
:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6729 eval "ac_cv_func_$ac_func=yes"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.
$ac_ext >&5
6734 eval "ac_cv_func_$ac_func=no"
6739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6740 echo "$ac_t""yes" 1>&6
6741 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6742 cat >> confdefs.h
<<EOF
6743 #define $ac_tr_func 1
6747 echo "$ac_t""no" 1>&6
6751 for ac_func
in setpgid setpgrp
6753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6754 echo "configure:6755: checking for $ac_func" >&5
6755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6758 cat > conftest.
$ac_ext <<EOF
6759 #line 6760 "configure"
6760 #include "confdefs.h"
6761 /* System header to define __stub macros and hopefully few prototypes,
6762 which can conflict with char $ac_func(); below. */
6764 /* Override any gcc2 internal prototype to avoid an error. */
6765 /* We use char because int might match the return type of a gcc2
6766 builtin and then its argument prototype would still apply. */
6771 /* The GNU C library defines this for functions which it implements
6772 to always fail with ENOSYS. Some functions are actually named
6773 something starting with __ and the normal name is an alias. */
6774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6782 if { (eval echo configure
:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6784 eval "ac_cv_func_$ac_func=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.
$ac_ext >&5
6789 eval "ac_cv_func_$ac_func=no"
6794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6797 cat >> confdefs.h
<<EOF
6798 #define $ac_tr_func 1
6802 echo "$ac_t""no" 1>&6
6806 for ac_func
in sigaction sigprocmask sigsetmask
6808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6809 echo "configure:6810: checking for $ac_func" >&5
6810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6811 echo $ac_n "(cached) $ac_c" 1>&6
6813 cat > conftest.
$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6816 /* System header to define __stub macros and hopefully few prototypes,
6817 which can conflict with char $ac_func(); below. */
6819 /* Override any gcc2 internal prototype to avoid an error. */
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6826 /* The GNU C library defines this for functions which it implements
6827 to always fail with ENOSYS. Some functions are actually named
6828 something starting with __ and the normal name is an alias. */
6829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6837 if { (eval echo configure
:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6839 eval "ac_cv_func_$ac_func=yes"
6841 echo "configure: failed program was:" >&5
6842 cat conftest.
$ac_ext >&5
6844 eval "ac_cv_func_$ac_func=no"
6849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6850 echo "$ac_t""yes" 1>&6
6851 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6852 cat >> confdefs.h
<<EOF
6853 #define $ac_tr_func 1
6857 echo "$ac_t""no" 1>&6
6861 for ac_func
in socketpair
6863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_func" >&5
6865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6868 cat > conftest.
$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func(); below. */
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6892 if { (eval echo configure
:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6894 eval "ac_cv_func_$ac_func=yes"
6896 echo "configure: failed program was:" >&5
6897 cat conftest.
$ac_ext >&5
6899 eval "ac_cv_func_$ac_func=no"
6904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6907 cat >> confdefs.h
<<EOF
6908 #define $ac_tr_func 1
6912 echo "$ac_t""no" 1>&6
6916 for ac_func
in syscall
6918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6919 echo "configure:6920: checking for $ac_func" >&5
6920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 cat > conftest.
$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char $ac_func(); below. */
6929 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6947 if { (eval echo configure
:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6949 eval "ac_cv_func_$ac_func=yes"
6951 echo "configure: failed program was:" >&5
6952 cat conftest.
$ac_ext >&5
6954 eval "ac_cv_func_$ac_func=no"
6959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6961 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6962 cat >> confdefs.h
<<EOF
6963 #define $ac_tr_func 1
6967 echo "$ac_t""no" 1>&6
6972 if test "$cross_compiling" = no
; then
6973 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6974 echo "configure:6975: checking whether setpgrp takes no argument" >&5
6975 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6978 if test "$cross_compiling" = yes; then
6979 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6981 cat > conftest.
$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6985 #ifdef HAVE_UNISTD_H
6990 * If this system has a BSD-style setpgrp, which takes arguments, exit
6995 if (setpgrp(1,1) == -1)
7002 if { (eval echo configure
:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7004 ac_cv_func_setpgrp_void
=no
7006 echo "configure: failed program was:" >&5
7007 cat conftest.
$ac_ext >&5
7009 ac_cv_func_setpgrp_void
=yes
7017 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7018 if test $ac_cv_func_setpgrp_void = yes; then
7019 cat >> confdefs.h
<<\EOF
7020 #define SETPGRP_VOID 1
7026 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7027 echo "configure:7028: checking whether setpgrp takes no argument" >&5
7028 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7031 cat > conftest.
$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7039 if (setpgrp(1,1) == -1)
7046 if { (eval echo configure
:7047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7048 ac_cv_func_setpgrp_void
=no
7050 echo "configure: failed program was:" >&5
7051 cat conftest.
$ac_ext >&5
7053 ac_cv_func_setpgrp_void
=yes
7058 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7059 if test $ac_cv_func_setpgrp_void = yes; then
7060 cat >> confdefs.h
<<\EOF
7061 #define SETPGRP_VOID 1
7067 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7068 # since sigsetjmp might only be defined as a macro.
7069 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7070 echo "configure:7071: checking for sigsetjmp" >&5
7071 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7074 cat > conftest.
$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7081 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7084 if { (eval echo configure
:7085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7086 gdb_cv_func_sigsetjmp
=yes
7088 echo "configure: failed program was:" >&5
7089 cat conftest.
$ac_ext >&5
7091 gdb_cv_func_sigsetjmp
=no
7096 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7097 if test $gdb_cv_func_sigsetjmp = yes; then
7098 cat >> confdefs.h
<<\EOF
7099 #define HAVE_SIGSETJMP 1
7104 # Assume we'll default to using the included libiberty regex.
7105 gdb_use_included_regex
=yes
7107 # However, if the system regex is GNU regex, then default to *not*
7108 # using the included regex.
7109 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7110 echo "configure:7111: checking for GNU regex" >&5
7111 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7112 echo $ac_n "(cached) $ac_c" 1>&6
7114 cat > conftest.
$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7117 #include <gnu-versions.h>
7119 #define REGEX_INTERFACE_VERSION 1
7120 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7121 # error "Version mismatch"
7125 if { (eval echo configure
:7126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7127 gdb_cv_have_gnu_regex
=yes
7129 echo "configure: failed program was:" >&5
7130 cat conftest.
$ac_ext >&5
7132 gdb_cv_have_gnu_regex
=no
7137 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7138 if test $gdb_cv_have_gnu_regex = yes; then
7139 gdb_use_included_regex
=no
7142 # Check whether --with-included-regex or --without-included-regex was given.
7143 if test "${with_included_regex+set}" = set; then
7144 withval
="$with_included_regex"
7145 gdb_with_regex
=$withval
7147 gdb_with_regex
=$gdb_use_included_regex
7150 if test "$gdb_with_regex" = yes; then
7151 cat >> confdefs.h
<<\EOF
7152 #define USE_INCLUDED_REGEX 1
7157 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7158 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7159 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7160 echo "configure:7161: checking for r_fs in struct reg" >&5
7161 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7162 echo $ac_n "(cached) $ac_c" 1>&6
7164 cat > conftest.
$ac_ext <<EOF
7165 #line 7166 "configure"
7166 #include "confdefs.h"
7167 #include <machine/reg.h>
7169 struct reg r; r.r_fs;
7172 if { (eval echo configure
:7173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7174 gdb_cv_struct_reg_r_fs
=yes
7176 echo "configure: failed program was:" >&5
7177 cat conftest.
$ac_ext >&5
7179 gdb_cv_struct_reg_r_fs
=no
7184 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7185 if test $gdb_cv_struct_reg_r_fs = yes; then
7186 cat >> confdefs.h
<<\EOF
7187 #define HAVE_STRUCT_REG_R_FS 1
7191 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7192 echo "configure:7193: checking for r_gs in struct reg" >&5
7193 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7196 cat > conftest.
$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 #include <machine/reg.h>
7201 struct reg r; r.r_gs;
7204 if { (eval echo configure
:7205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7206 gdb_cv_struct_reg_r_gs
=yes
7208 echo "configure: failed program was:" >&5
7209 cat conftest.
$ac_ext >&5
7211 gdb_cv_struct_reg_r_gs
=no
7216 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7217 if test $gdb_cv_struct_reg_r_gs = yes; then
7218 cat >> confdefs.h
<<\EOF
7219 #define HAVE_STRUCT_REG_R_GS 1
7224 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7225 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7226 echo "configure:7227: checking for PTRACE_GETREGS" >&5
7227 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7230 cat > conftest.
$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 #include <sys/ptrace.h>
7238 if { (eval echo configure
:7239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7240 gdb_cv_have_ptrace_getregs
=yes
7242 echo "configure: failed program was:" >&5
7243 cat conftest.
$ac_ext >&5
7245 gdb_cv_have_ptrace_getregs
=no
7250 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7251 if test $gdb_cv_have_ptrace_getregs = yes; then
7252 cat >> confdefs.h
<<\EOF
7253 #define HAVE_PTRACE_GETREGS 1
7258 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7259 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7260 echo "configure:7261: checking for PTRACE_GETFPXREGS" >&5
7261 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7264 cat > conftest.
$ac_ext <<EOF
7265 #line 7266 "configure"
7266 #include "confdefs.h"
7267 #include <sys/ptrace.h>
7272 if { (eval echo configure
:7273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7274 gdb_cv_have_ptrace_getfpxregs
=yes
7276 echo "configure: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7279 gdb_cv_have_ptrace_getfpxregs
=no
7284 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7285 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7286 cat >> confdefs.h
<<\EOF
7287 #define HAVE_PTRACE_GETFPXREGS 1
7292 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7293 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7294 echo "configure:7295: checking for PT_GETDBREGS" >&5
7295 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7296 echo $ac_n "(cached) $ac_c" 1>&6
7298 cat > conftest.
$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 #include <sys/types.h>
7302 #include <sys/ptrace.h>
7307 if { (eval echo configure
:7308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7309 gdb_cv_have_pt_getdbregs
=yes
7311 echo "configure: failed program was:" >&5
7312 cat conftest.
$ac_ext >&5
7314 gdb_cv_have_pt_getdbregs
=no
7319 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7320 if test $gdb_cv_have_pt_getdbregs = yes; then
7321 cat >> confdefs.h
<<\EOF
7322 #define HAVE_PT_GETDBREGS 1
7327 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7328 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7329 echo "configure:7330: checking for PT_GETXMMREGS" >&5
7330 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7333 cat > conftest.
$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 #include <sys/types.h>
7337 #include <sys/ptrace.h>
7342 if { (eval echo configure
:7343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7344 gdb_cv_have_pt_getxmmregs
=yes
7346 echo "configure: failed program was:" >&5
7347 cat conftest.
$ac_ext >&5
7349 gdb_cv_have_pt_getxmmregs
=no
7354 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7355 if test $gdb_cv_have_pt_getxmmregs = yes; then
7356 cat >> confdefs.h
<<\EOF
7357 #define HAVE_PT_GETXMMREGS 1
7362 # See if stdint.h provides the uintptr_t type.
7363 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7364 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7365 echo "configure:7366: checking for uintptr_t in stdint.h" >&5
7366 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+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"
7377 if { (eval echo configure
:7378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7379 gdb_cv_have_uintptr_t
=yes
7381 echo "configure: failed program was:" >&5
7382 cat conftest.
$ac_ext >&5
7384 gdb_cv_have_uintptr_t
=no
7389 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7390 if test $gdb_cv_have_uintptr_t = yes; then
7391 cat >> confdefs.h
<<\EOF
7392 #define HAVE_UINTPTR_T 1
7397 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7398 echo "configure:7399: checking whether malloc must be declared" >&5
7399 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 cat > conftest.
$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7407 #ifdef HAVE_STRING_H
7410 #ifdef HAVE_STRINGS_H
7411 #include <strings.h>
7414 #ifdef HAVE_STDLIB_H
7417 #ifdef HAVE_UNISTD_H
7421 char *(*pfn) = (char *(*)) malloc
7424 if { (eval echo configure
:7425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7426 bfd_cv_decl_needed_malloc
=no
7428 echo "configure: failed program was:" >&5
7429 cat conftest.
$ac_ext >&5
7431 bfd_cv_decl_needed_malloc
=yes
7436 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7437 if test $bfd_cv_decl_needed_malloc = yes; then
7438 cat >> confdefs.h
<<\EOF
7439 #define NEED_DECLARATION_MALLOC 1
7444 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7445 echo "configure:7446: checking whether realloc must be declared" >&5
7446 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
7449 cat > conftest.
$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7454 #ifdef HAVE_STRING_H
7457 #ifdef HAVE_STRINGS_H
7458 #include <strings.h>
7461 #ifdef HAVE_STDLIB_H
7464 #ifdef HAVE_UNISTD_H
7468 char *(*pfn) = (char *(*)) realloc
7471 if { (eval echo configure
:7472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7473 bfd_cv_decl_needed_realloc
=no
7475 echo "configure: failed program was:" >&5
7476 cat conftest.
$ac_ext >&5
7478 bfd_cv_decl_needed_realloc
=yes
7483 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7484 if test $bfd_cv_decl_needed_realloc = yes; then
7485 cat >> confdefs.h
<<\EOF
7486 #define NEED_DECLARATION_REALLOC 1
7491 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7492 echo "configure:7493: checking whether free must be declared" >&5
7493 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7496 cat > conftest.
$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7501 #ifdef HAVE_STRING_H
7504 #ifdef HAVE_STRINGS_H
7505 #include <strings.h>
7508 #ifdef HAVE_STDLIB_H
7511 #ifdef HAVE_UNISTD_H
7515 char *(*pfn) = (char *(*)) free
7518 if { (eval echo configure
:7519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7520 bfd_cv_decl_needed_free
=no
7522 echo "configure: failed program was:" >&5
7523 cat conftest.
$ac_ext >&5
7525 bfd_cv_decl_needed_free
=yes
7530 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7531 if test $bfd_cv_decl_needed_free = yes; then
7532 cat >> confdefs.h
<<\EOF
7533 #define NEED_DECLARATION_FREE 1
7538 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7539 echo "configure:7540: checking whether strerror must be declared" >&5
7540 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7541 echo $ac_n "(cached) $ac_c" 1>&6
7543 cat > conftest.
$ac_ext <<EOF
7544 #line 7545 "configure"
7545 #include "confdefs.h"
7548 #ifdef HAVE_STRING_H
7551 #ifdef HAVE_STRINGS_H
7552 #include <strings.h>
7555 #ifdef HAVE_STDLIB_H
7558 #ifdef HAVE_UNISTD_H
7562 char *(*pfn) = (char *(*)) strerror
7565 if { (eval echo configure
:7566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7567 bfd_cv_decl_needed_strerror
=no
7569 echo "configure: failed program was:" >&5
7570 cat conftest.
$ac_ext >&5
7572 bfd_cv_decl_needed_strerror
=yes
7577 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7578 if test $bfd_cv_decl_needed_strerror = yes; then
7579 cat >> confdefs.h
<<\EOF
7580 #define NEED_DECLARATION_STRERROR 1
7585 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7586 echo "configure:7587: checking whether strdup must be declared" >&5
7587 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7590 cat > conftest.
$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7595 #ifdef HAVE_STRING_H
7598 #ifdef HAVE_STRINGS_H
7599 #include <strings.h>
7602 #ifdef HAVE_STDLIB_H
7605 #ifdef HAVE_UNISTD_H
7609 char *(*pfn) = (char *(*)) strdup
7612 if { (eval echo configure
:7613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7614 bfd_cv_decl_needed_strdup
=no
7616 echo "configure: failed program was:" >&5
7617 cat conftest.
$ac_ext >&5
7619 bfd_cv_decl_needed_strdup
=yes
7624 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7625 if test $bfd_cv_decl_needed_strdup = yes; then
7626 cat >> confdefs.h
<<\EOF
7627 #define NEED_DECLARATION_STRDUP 1
7632 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7633 echo "configure:7634: checking whether strstr must be declared" >&5
7634 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7637 cat > conftest.
$ac_ext <<EOF
7638 #line 7639 "configure"
7639 #include "confdefs.h"
7642 #ifdef HAVE_STRING_H
7645 #ifdef HAVE_STRINGS_H
7646 #include <strings.h>
7649 #ifdef HAVE_STDLIB_H
7652 #ifdef HAVE_UNISTD_H
7656 char *(*pfn) = (char *(*)) strstr
7659 if { (eval echo configure
:7660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7661 bfd_cv_decl_needed_strstr
=no
7663 echo "configure: failed program was:" >&5
7664 cat conftest.
$ac_ext >&5
7666 bfd_cv_decl_needed_strstr
=yes
7671 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7672 if test $bfd_cv_decl_needed_strstr = yes; then
7673 cat >> confdefs.h
<<\EOF
7674 #define NEED_DECLARATION_STRSTR 1
7679 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7680 echo "configure:7681: checking whether canonicalize_file_name must be declared" >&5
7681 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7684 cat > conftest.
$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7689 #ifdef HAVE_STRING_H
7692 #ifdef HAVE_STRINGS_H
7693 #include <strings.h>
7696 #ifdef HAVE_STDLIB_H
7699 #ifdef HAVE_UNISTD_H
7703 char *(*pfn) = (char *(*)) canonicalize_file_name
7706 if { (eval echo configure
:7707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7708 bfd_cv_decl_needed_canonicalize_file_name
=no
7710 echo "configure: failed program was:" >&5
7711 cat conftest.
$ac_ext >&5
7713 bfd_cv_decl_needed_canonicalize_file_name
=yes
7718 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7719 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7720 cat >> confdefs.h
<<\EOF
7721 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7727 # The following save_state_t checkery is only necessary for HPUX
7728 # versions earlier than 10.20. When those fade from memory, this
7729 # could be expunged. --jsm 1999-03-22
7731 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7732 echo "configure:7733: checking for HPUX save_state structure" >&5
7733 cat > conftest.
$ac_ext <<EOF
7734 #line 7735 "configure"
7735 #include "confdefs.h"
7736 #include <machine/save_state.h>
7738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7739 egrep "save_state_t" >/dev
/null
2>&1; then
7741 gdb_cv_hpux_savestate
=yes
7744 gdb_cv_hpux_savestate
=no
7748 cat > conftest.
$ac_ext <<EOF
7749 #line 7750 "configure"
7750 #include "confdefs.h"
7751 #include <machine/save_state.h>
7753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7754 egrep "ss_wide" >/dev
/null
2>&1; then
7756 gdb_cv_hpux_sswide
=yes
7759 gdb_cv_hpux_sswide
=no
7763 if test $gdb_cv_hpux_savestate = yes
7765 cat >> confdefs.h
<<\EOF
7766 #define HAVE_STRUCT_SAVE_STATE_T 1
7770 if test $gdb_cv_hpux_sswide = yes
7772 cat >> confdefs.h
<<\EOF
7773 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7777 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7780 # If we are configured native on GNU/Linux, work around problems with
7782 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7784 if test "${target}" = "${host}"; then
7787 cat >> confdefs.h
<<\EOF
7788 #define START_INFERIOR_TRAPS_EXPECTED 2
7791 cat >> confdefs.h
<<\EOF
7792 #define sys_quotactl 1
7797 cat >> confdefs.h
<<\EOF
7798 #define NEW_PROC_API 1
7802 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7803 cat >> confdefs.h
<<\EOF
7804 #define NEW_PROC_API 1
7809 cat >> confdefs.h
<<\EOF
7810 #define NEW_PROC_API 1
7817 if test "$ac_cv_header_sys_procfs_h" = yes; then
7818 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7819 echo "configure:7820: checking for pstatus_t in sys/procfs.h" >&5
7820 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7823 cat > conftest.
$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7828 #include <sys/procfs.h>
7833 if { (eval echo configure
:7834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7835 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7837 echo "configure: failed program was:" >&5
7838 cat conftest.
$ac_ext >&5
7840 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7846 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7847 cat >> confdefs.h
<<\EOF
7848 #define HAVE_PSTATUS_T 1
7852 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7854 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7855 echo "configure:7856: checking for prrun_t in sys/procfs.h" >&5
7856 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7859 cat > conftest.
$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7864 #include <sys/procfs.h>
7869 if { (eval echo configure
:7870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7871 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7873 echo "configure: failed program was:" >&5
7874 cat conftest.
$ac_ext >&5
7876 bfd_cv_have_sys_procfs_type_prrun_t
=no
7882 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7883 cat >> confdefs.h
<<\EOF
7884 #define HAVE_PRRUN_T 1
7888 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7890 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7891 echo "configure:7892: checking for gregset_t in sys/procfs.h" >&5
7892 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7895 cat > conftest.
$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7900 #include <sys/procfs.h>
7905 if { (eval echo configure
:7906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7907 bfd_cv_have_sys_procfs_type_gregset_t
=yes
7909 echo "configure: failed program was:" >&5
7910 cat conftest.
$ac_ext >&5
7912 bfd_cv_have_sys_procfs_type_gregset_t
=no
7918 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7919 cat >> confdefs.h
<<\EOF
7920 #define HAVE_GREGSET_T 1
7924 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7926 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7927 echo "configure:7928: checking for fpregset_t in sys/procfs.h" >&5
7928 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7931 cat > conftest.
$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7936 #include <sys/procfs.h>
7941 if { (eval echo configure
:7942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7943 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
7945 echo "configure: failed program was:" >&5
7946 cat conftest.
$ac_ext >&5
7948 bfd_cv_have_sys_procfs_type_fpregset_t
=no
7954 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7955 cat >> confdefs.h
<<\EOF
7956 #define HAVE_FPREGSET_T 1
7960 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7962 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7963 echo "configure:7964: checking for prgregset_t in sys/procfs.h" >&5
7964 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7967 cat > conftest.
$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7972 #include <sys/procfs.h>
7977 if { (eval echo configure
:7978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7979 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7981 echo "configure: failed program was:" >&5
7982 cat conftest.
$ac_ext >&5
7984 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7990 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7991 cat >> confdefs.h
<<\EOF
7992 #define HAVE_PRGREGSET_T 1
7996 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7998 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7999 echo "configure:8000: checking for prfpregset_t in sys/procfs.h" >&5
8000 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8003 cat > conftest.
$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8008 #include <sys/procfs.h>
8013 if { (eval echo configure
:8014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8015 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8017 echo "configure: failed program was:" >&5
8018 cat conftest.
$ac_ext >&5
8020 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8026 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8027 cat >> confdefs.h
<<\EOF
8028 #define HAVE_PRFPREGSET_T 1
8032 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8034 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8035 echo "configure:8036: checking for prgregset32_t in sys/procfs.h" >&5
8036 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8039 cat > conftest.
$ac_ext <<EOF
8040 #line 8041 "configure"
8041 #include "confdefs.h"
8044 #include <sys/procfs.h>
8049 if { (eval echo configure
:8050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8051 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8053 echo "configure: failed program was:" >&5
8054 cat conftest.
$ac_ext >&5
8056 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8062 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8063 cat >> confdefs.h
<<\EOF
8064 #define HAVE_PRGREGSET32_T 1
8068 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8070 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8071 echo "configure:8072: checking for prfpregset32_t in sys/procfs.h" >&5
8072 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8073 echo $ac_n "(cached) $ac_c" 1>&6
8075 cat > conftest.
$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8080 #include <sys/procfs.h>
8085 if { (eval echo configure
:8086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8087 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
8089 echo "configure: failed program was:" >&5
8090 cat conftest.
$ac_ext >&5
8092 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
8098 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8099 cat >> confdefs.h
<<\EOF
8100 #define HAVE_PRFPREGSET32_T 1
8104 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8106 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8107 echo "configure:8108: checking for lwpid_t in sys/procfs.h" >&5
8108 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8111 cat > conftest.
$ac_ext <<EOF
8112 #line 8113 "configure"
8113 #include "confdefs.h"
8116 #include <sys/procfs.h>
8121 if { (eval echo configure
:8122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8123 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8125 echo "configure: failed program was:" >&5
8126 cat conftest.
$ac_ext >&5
8128 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8134 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8135 cat >> confdefs.h
<<\EOF
8136 #define HAVE_LWPID_T 1
8140 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8142 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8143 echo "configure:8144: checking for psaddr_t in sys/procfs.h" >&5
8144 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8147 cat > conftest.
$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8152 #include <sys/procfs.h>
8157 if { (eval echo configure
:8158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8159 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8161 echo "configure: failed program was:" >&5
8162 cat conftest.
$ac_ext >&5
8164 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8170 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8171 cat >> confdefs.h
<<\EOF
8172 #define HAVE_PSADDR_T 1
8176 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8178 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8179 echo "configure:8180: checking for prsysent_t in sys/procfs.h" >&5
8180 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8183 cat > conftest.
$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8188 #include <sys/procfs.h>
8193 if { (eval echo configure
:8194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8195 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
8197 echo "configure: failed program was:" >&5
8198 cat conftest.
$ac_ext >&5
8200 bfd_cv_have_sys_procfs_type_prsysent_t
=no
8206 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8207 cat >> confdefs.h
<<\EOF
8208 #define HAVE_PRSYSENT_T 1
8212 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8214 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8215 echo "configure:8216: checking for pr_sigset_t in sys/procfs.h" >&5
8216 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8219 cat > conftest.
$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8224 #include <sys/procfs.h>
8229 if { (eval echo configure
:8230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8231 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
8233 echo "configure: failed program was:" >&5
8234 cat conftest.
$ac_ext >&5
8236 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
8242 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8243 cat >> confdefs.h
<<\EOF
8244 #define HAVE_PR_SIGSET_T 1
8248 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8250 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8251 echo "configure:8252: checking for pr_sigaction64_t in sys/procfs.h" >&5
8252 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 cat > conftest.
$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8260 #include <sys/procfs.h>
8262 pr_sigaction64_t avar
8265 if { (eval echo configure
:8266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8267 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
8269 echo "configure: failed program was:" >&5
8270 cat conftest.
$ac_ext >&5
8272 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
8278 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8279 cat >> confdefs.h
<<\EOF
8280 #define HAVE_PR_SIGACTION64_T 1
8284 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8286 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8287 echo "configure:8288: checking for pr_siginfo64_t in sys/procfs.h" >&5
8288 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8289 echo $ac_n "(cached) $ac_c" 1>&6
8291 cat > conftest.
$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8296 #include <sys/procfs.h>
8301 if { (eval echo configure
:8302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8303 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
8305 echo "configure: failed program was:" >&5
8306 cat conftest.
$ac_ext >&5
8308 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
8314 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8315 cat >> confdefs.h
<<\EOF
8316 #define HAVE_PR_SIGINFO64_T 1
8320 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8326 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8327 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8328 echo "configure:8329: checking whether prfpregset_t type is broken" >&5
8329 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
8332 if test "$cross_compiling" = yes; then
8333 gdb_cv_prfpregset_t_broken
=yes
8335 cat > conftest.
$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 #include <sys/procfs.h>
8341 if (sizeof (prfpregset_t) == sizeof (void *))
8346 if { (eval echo configure
:8347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8348 gdb_cv_prfpregset_t_broken
=no
8350 echo "configure: failed program was:" >&5
8351 cat conftest.
$ac_ext >&5
8353 gdb_cv_prfpregset_t_broken
=yes
8360 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8361 if test $gdb_cv_prfpregset_t_broken = yes; then
8362 cat >> confdefs.h
<<\EOF
8363 #define PRFPREGSET_T_BROKEN 1
8370 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8371 echo "configure:8372: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8372 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8375 cat > conftest.
$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8379 #include <sys/types.h>
8380 #include <sys/procfs.h>
8385 dummy = ioctl(0, PIOCSET, &dummy);
8389 if { (eval echo configure
:8390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8391 gdb_cv_have_procfs_piocset
=yes
8393 echo "configure: failed program was:" >&5
8394 cat conftest.
$ac_ext >&5
8396 gdb_cv_have_procfs_piocset
=no
8401 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8402 if test $gdb_cv_have_procfs_piocset = yes; then
8403 cat >> confdefs.h
<<\EOF
8404 #define HAVE_PROCFS_PIOCSET 1
8410 if test ${host} = ${target} ; then
8412 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8413 echo "configure:8414: checking for member l_addr in struct link_map" >&5
8414 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8415 echo $ac_n "(cached) $ac_c" 1>&6
8417 cat > conftest.
$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8422 struct link_map lm; (void) lm.l_addr;
8425 if { (eval echo configure
:8426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8427 gdb_cv_have_struct_link_map_with_l_members
=yes
8429 echo "configure: failed program was:" >&5
8430 cat conftest.
$ac_ext >&5
8432 gdb_cv_have_struct_link_map_with_l_members
=no
8437 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8438 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8439 cat >> confdefs.h
<<\EOF
8440 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8446 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8447 echo "configure:8448: checking for member lm_addr in struct link_map" >&5
8448 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8451 cat > conftest.
$ac_ext <<EOF
8452 #line 8453 "configure"
8453 #include "confdefs.h"
8454 #include <sys/types.h>
8457 struct link_map lm; (void) lm.lm_addr;
8460 if { (eval echo configure
:8461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8462 gdb_cv_have_struct_link_map_with_lm_members
=yes
8464 echo "configure: failed program was:" >&5
8465 cat conftest.
$ac_ext >&5
8467 gdb_cv_have_struct_link_map_with_lm_members
=no
8472 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8473 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8474 cat >> confdefs.h
<<\EOF
8475 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8481 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8482 echo "configure:8483: checking for member som_addr in struct so_map" >&5
8483 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8486 cat > conftest.
$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8489 #include <sys/types.h>
8495 struct so_map lm; (void) lm.som_addr;
8498 if { (eval echo configure
:8499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8500 gdb_cv_have_struct_so_map_with_som_members
=yes
8502 echo "configure: failed program was:" >&5
8503 cat conftest.
$ac_ext >&5
8505 gdb_cv_have_struct_so_map_with_som_members
=no
8510 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8511 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8512 cat >> confdefs.h
<<\EOF
8513 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8519 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8520 echo "configure:8521: checking for struct link_map32 in sys/link.h" >&5
8521 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8524 cat > conftest.
$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8528 #include <sys/link.h>
8530 struct link_map32 l;
8533 if { (eval echo configure
:8534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8535 gdb_cv_have_struct_link_map32
=yes
8537 echo "configure: failed program was:" >&5
8538 cat conftest.
$ac_ext >&5
8540 gdb_cv_have_struct_link_map32
=no
8545 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8546 if test $gdb_cv_have_struct_link_map32 = yes; then
8547 cat >> confdefs.h
<<\EOF
8548 #define HAVE_STRUCT_LINK_MAP32 1
8551 cat >> confdefs.h
<<\EOF
8552 #define _SYSCALL32 1
8559 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8560 echo "configure:8561: checking for long long support in compiler" >&5
8561 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8564 cat > conftest.
$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8570 extern long long foo;
8571 switch (foo & 2) { case 0: return 1; }
8575 if { (eval echo configure
:8576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8577 gdb_cv_c_long_long
=yes
8579 echo "configure: failed program was:" >&5
8580 cat conftest.
$ac_ext >&5
8582 gdb_cv_c_long_long
=no
8587 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8588 if test $gdb_cv_c_long_long = yes; then
8589 cat >> confdefs.h
<<\EOF
8590 #define CC_HAS_LONG_LONG 1
8596 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8597 echo "configure:8598: checking for long long support in printf" >&5
8598 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8601 if test "$cross_compiling" = yes; then
8602 gdb_cv_printf_has_long_long
=no
8604 cat > conftest.
$ac_ext <<EOF
8605 #line 8606 "configure"
8606 #include "confdefs.h"
8611 l = (l << 16) + 0x0123;
8612 l = (l << 16) + 0x4567;
8613 l = (l << 16) + 0x89ab;
8614 l = (l << 16) + 0xcdef;
8615 sprintf (buf, "0x%016llx", l);
8616 return (strcmp ("0x0123456789abcdef", buf));
8619 if { (eval echo configure
:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8621 gdb_cv_printf_has_long_long
=yes
8623 echo "configure: failed program was:" >&5
8624 cat conftest.
$ac_ext >&5
8626 gdb_cv_printf_has_long_long
=no
8633 if test $gdb_cv_printf_has_long_long = yes; then
8634 cat >> confdefs.h
<<\EOF
8635 #define PRINTF_HAS_LONG_LONG 1
8639 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8642 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8643 echo "configure:8644: checking for long double support in compiler" >&5
8644 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8647 cat > conftest.
$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8655 if { (eval echo configure
:8656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8657 ac_cv_c_long_double
=yes
8659 echo "configure: failed program was:" >&5
8660 cat conftest.
$ac_ext >&5
8662 ac_cv_c_long_double
=no
8667 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8668 if test $ac_cv_c_long_double = yes; then
8669 cat >> confdefs.h
<<\EOF
8670 #define HAVE_LONG_DOUBLE 1
8676 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8677 echo "configure:8678: checking for long double support in printf" >&5
8678 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6
8681 if test "$cross_compiling" = yes; then
8682 gdb_cv_printf_has_long_double
=no
8684 cat > conftest.
$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8690 long double f = 3.141592653;
8691 sprintf (buf, "%Lg", f);
8692 return (strncmp ("3.14159", buf, 7));
8695 if { (eval echo configure
:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8697 gdb_cv_printf_has_long_double
=yes
8699 echo "configure: failed program was:" >&5
8700 cat conftest.
$ac_ext >&5
8702 gdb_cv_printf_has_long_double
=no
8709 if test $gdb_cv_printf_has_long_double = yes; then
8710 cat >> confdefs.h
<<\EOF
8711 #define PRINTF_HAS_LONG_DOUBLE 1
8715 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8718 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8719 echo "configure:8720: checking for long double support in scanf" >&5
8720 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8723 if test "$cross_compiling" = yes; then
8724 gdb_cv_scanf_has_long_double
=no
8726 cat > conftest.
$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8731 char *buf = "3.141592653";
8733 sscanf (buf, "%Lg", &f);
8734 return !(f > 3.14159 && f < 3.14160);
8737 if { (eval echo configure
:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8739 gdb_cv_scanf_has_long_double
=yes
8741 echo "configure: failed program was:" >&5
8742 cat conftest.
$ac_ext >&5
8744 gdb_cv_scanf_has_long_double
=no
8751 if test $gdb_cv_scanf_has_long_double = yes; then
8752 cat >> confdefs.h
<<\EOF
8753 #define SCANF_HAS_LONG_DOUBLE 1
8757 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8761 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8762 echo "configure:8763: checking for -bbigtoc option" >&5
8763 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8767 SAVE_LDFLAGS
=$LDFLAGS
8770 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8771 *) gdb_cv_bigtoc
=-bbigtoc ;;
8774 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8775 cat > conftest.
$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8783 if { (eval echo configure
:8784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8786 echo "configure: failed program was:" >&5
8787 cat conftest.
$ac_ext >&5
8795 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8796 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8802 if test ${build} = ${host} -a ${host} = ${target} ; then
8805 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8806 echo "configure:8807: checking for HPUX/OSF thread support" >&5
8807 if test -f /usr
/include
/dce
/cma_config.h
; then
8808 if test "$GCC" = "yes" ; then
8809 echo "$ac_t""yes" 1>&6
8810 cat >> confdefs.h
<<\EOF
8811 #define HAVE_HPUX_THREAD_SUPPORT 1
8814 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8815 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8817 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8820 echo "$ac_t""no" 1>&6
8824 # See if thread_db library is around for Solaris thread debugging.
8825 # Note that we must explicitly test for version 1 of the library
8826 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8828 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8829 echo "configure:8830: checking for Solaris thread debugging library" >&5
8830 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8831 echo "$ac_t""yes" 1>&6
8832 cat >> confdefs.h
<<\EOF
8833 #define HAVE_THREAD_DB_LIB 1
8836 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8837 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8838 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8839 echo "configure:8840: checking for dlopen in -ldl" >&5
8840 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8844 ac_save_LIBS
="$LIBS"
8846 cat > conftest.
$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 /* Override any gcc2 internal prototype to avoid an error. */
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8858 if { (eval echo configure
:8859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8860 eval "ac_cv_lib_$ac_lib_var=yes"
8862 echo "configure: failed program was:" >&5
8863 cat conftest.
$ac_ext >&5
8865 eval "ac_cv_lib_$ac_lib_var=no"
8868 LIBS
="$ac_save_LIBS"
8871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8872 echo "$ac_t""yes" 1>&6
8873 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8875 cat >> confdefs.h
<<EOF
8876 #define $ac_tr_lib 1
8882 echo "$ac_t""no" 1>&6
8885 if test "$GCC" = "yes" ; then
8886 # The GNU linker requires the -export-dynamic option to make
8887 # all symbols visible in the dynamic symbol table.
8888 hold_ldflags
=$LDFLAGS
8889 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8890 echo "configure:8891: checking for the ld -export-dynamic flag" >&5
8891 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8892 cat > conftest.
$ac_ext <<EOF
8893 #line 8894 "configure"
8894 #include "confdefs.h"
8900 if { (eval echo configure
:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8904 echo "configure: failed program was:" >&5
8905 cat conftest.
$ac_ext >&5
8910 LDFLAGS
=$hold_ldflags
8911 echo "$ac_t""$found" 1>&6
8912 if test $found = yes; then
8913 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8916 # Sun randomly tweaked the prototypes in <proc_service.h>
8918 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8919 echo "configure:8920: checking if <proc_service.h> is old" >&5
8920 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8924 cat > conftest.
$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8928 #include <proc_service.h>
8930 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8936 if { (eval echo configure
:8937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8938 gdb_cv_proc_service_is_old
=no
8940 echo "configure: failed program was:" >&5
8941 cat conftest.
$ac_ext >&5
8943 gdb_cv_proc_service_is_old
=yes
8949 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8950 if test $gdb_cv_proc_service_is_old = yes; then
8951 cat >> confdefs.h
<<\EOF
8952 #define PROC_SERVICE_IS_OLD 1
8957 echo "$ac_t""no" 1>&6
8961 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8962 echo "configure:8963: checking for AiX thread debugging library" >&5
8963 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8966 cat > conftest.
$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969 #include <sys/pthdebug.h>
8971 #ifndef PTHDB_VERSION_3
8976 if { (eval echo configure
:8977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8978 gdb_cv_have_aix_thread_debug
=yes
8980 echo "configure: failed program was:" >&5
8981 cat conftest.
$ac_ext >&5
8983 gdb_cv_have_aix_thread_debug
=no
8988 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8989 if test $gdb_cv_have_aix_thread_debug = yes; then
8990 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
8991 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
8992 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8999 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9000 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9001 echo "configure:9002: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9002 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9005 cat > conftest.
$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008 #include <thread_db.h>
9010 int i = TD_NOTALLOC;
9013 if { (eval echo configure
:9014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9015 gdb_cv_thread_db_h_has_td_notalloc
=yes
9017 echo "configure: failed program was:" >&5
9018 cat conftest.
$ac_ext >&5
9020 gdb_cv_thread_db_h_has_td_notalloc
=no
9027 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9029 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9030 cat >> confdefs.h
<<\EOF
9031 #define THREAD_DB_HAS_TD_NOTALLOC 1
9036 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9037 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9038 echo "configure:9039: checking whether <sys/syscall.h> has __NR_tkill" >&5
9039 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9042 cat > conftest.
$ac_ext <<EOF
9043 #line 9044 "configure"
9044 #include "confdefs.h"
9045 #include <sys/syscall.h>
9050 if { (eval echo configure
:9051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9052 gdb_cv_sys_syscall_h_has_tkill
=yes
9054 echo "configure: failed program was:" >&5
9055 cat conftest.
$ac_ext >&5
9057 gdb_cv_sys_syscall_h_has_tkill
=no
9064 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9066 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9067 cat >> confdefs.h
<<\EOF
9068 #define HAVE_TKILL_SYSCALL 1
9074 # Check whether --with-sysroot or --without-sysroot was given.
9075 if test "${with_sysroot+set}" = set; then
9076 withval
="$with_sysroot"
9078 case ${with_sysroot} in
9079 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
9080 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
9083 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9085 if test "x$exec_prefix" = xNONE
; then
9086 if test "x$prefix" = xNONE
; then
9087 test_prefix
=/usr
/local
9092 test_prefix
=$exec_prefix
9094 case ${TARGET_SYSTEM_ROOT} in
9095 "${test_prefix}"|
"${test_prefix}/"*|\
9096 '${exec_prefix}'|
'${exec_prefix}/'*)
9097 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9098 TARGET_SYSTEM_ROOT_DEFINE
="$t"
9105 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
9112 # NOTE: Don't add -Wall or -Wunused, they both include
9113 # -Wunused-parameter which reports bogus warnings.
9114 # NOTE: If you add to this list, remember to update
9115 # gdb/doc/gdbint.texinfo.
9116 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9117 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral"
9118 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9119 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
9120 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9121 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9122 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9123 # -Woverloaded-virtual -Winline -Werror"
9124 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9125 if test "${enable_build_warnings+set}" = set; then
9126 enableval
="$enable_build_warnings"
9127 case "${enableval}" in
9129 no
) build_warnings
="-w";;
9130 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9131 build_warnings
="${build_warnings} ${t}";;
9132 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9133 build_warnings
="${t} ${build_warnings}";;
9134 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9136 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9137 echo "Setting compiler warning flags = $build_warnings" 6>&1
9140 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9141 if test "${enable_gdb_build_warnings+set}" = set; then
9142 enableval
="$enable_gdb_build_warnings"
9143 case "${enableval}" in
9145 no
) build_warnings
="-w";;
9146 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9147 build_warnings
="${build_warnings} ${t}";;
9148 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9149 build_warnings
="${t} ${build_warnings}";;
9150 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9152 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9153 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9158 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9160 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9161 echo "configure:9162: checking compiler warning flags" >&5
9162 # Separate out the -Werror flag as some files just cannot be
9163 # compiled with it enabled.
9164 for w
in ${build_warnings}; do
9166 -Werr*) WERROR_CFLAGS
=-Werror ;;
9167 *) # Check that GCC accepts it
9168 saved_CFLAGS
="$CFLAGS"
9170 cat > conftest.
$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9178 if { (eval echo configure
:9179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9180 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9182 echo "configure: failed program was:" >&5
9183 cat conftest.
$ac_ext >&5
9186 CFLAGS
="$saved_CFLAGS"
9189 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9199 # Check whether --with-mmalloc or --without-mmalloc was given.
9200 if test "${with_mmalloc+set}" = set; then
9201 withval
="$with_mmalloc"
9202 case "${withval}" in
9203 yes) want_mmalloc
=true
;;
9204 no
) want_mmalloc
=false
;;
9205 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
9211 if test x
$want_mmalloc = xtrue
; then
9212 cat >> confdefs.h
<<\EOF
9213 #define USE_MMALLOC 1
9216 cat >> confdefs.h
<<\EOF
9217 #define MMCHECK_FORCE 1
9220 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
9221 MMALLOC
='../mmalloc/libmmalloc.a'
9224 # In the Cygwin environment, we need some additional flags.
9225 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9226 echo "configure:9227: checking for cygwin" >&5
9227 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9230 cat > conftest.
$ac_ext <<EOF
9231 #line 9232 "configure"
9232 #include "confdefs.h"
9234 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9239 egrep "lose" >/dev
/null
2>&1; then
9241 gdb_cv_os_cygwin
=yes
9250 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9253 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
9255 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
9256 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
9260 # libreadline needs libuser32.a in a cygwin environment
9262 if test x
$gdb_cv_os_cygwin = xyes
; then
9263 WIN32LIBS
="-luser32"
9265 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
9271 LIBGUI
="../libgui/src/libgui.a"
9272 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
9283 if test "${enable_gdbtk}" = "yes"; then
9285 # Gdbtk must have an absolute path to srcdir in order to run
9286 # properly when not installed.
9294 # Ok, lets find the tcl configuration
9295 # First, look for one uninstalled.
9296 # the alternative search directory is invoked by --with-tclconfig
9299 if test x
"${no_tcl}" = x
; then
9300 # we reset no_tcl in case something fails here
9302 # Check whether --with-tclconfig or --without-tclconfig was given.
9303 if test "${with_tclconfig+set}" = set; then
9304 withval
="$with_tclconfig"
9305 with_tclconfig
=${withval}
9308 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9309 echo "configure:9310: checking for Tcl configuration" >&5
9310 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9311 echo $ac_n "(cached) $ac_c" 1>&6
9315 # First check to see if --with-tclconfig was specified.
9316 if test x
"${with_tclconfig}" != x
; then
9317 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9318 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
9320 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9324 # then check for a private Tcl installation
9325 if test x
"${ac_cv_c_tclconfig}" = x
; then
9328 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9330 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9332 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9333 if test -f "$i/${configdir}/tclConfig.sh" ; then
9334 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9339 # check in a few common install locations
9340 if test x
"${ac_cv_c_tclconfig}" = x
; then
9341 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9342 if test -f "$i/tclConfig.sh" ; then
9343 ac_cv_c_tclconfig
=`(cd $i; pwd)`
9348 # check in a few other private locations
9349 if test x
"${ac_cv_c_tclconfig}" = x
; then
9352 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9353 if test -f "$i/${configdir}/tclConfig.sh" ; then
9354 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9362 if test x
"${ac_cv_c_tclconfig}" = x
; then
9363 TCLCONFIG
="# no Tcl configs found"
9364 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9367 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
9368 echo "$ac_t""found $TCLCONFIG" 1>&6
9372 if test -z "${no_tcl}"; then
9403 # Ok, lets find the tk configuration
9404 # First, look for one uninstalled.
9405 # the alternative search directory is invoked by --with-tkconfig
9408 if test x
"${no_tk}" = x
; then
9409 # we reset no_tk in case something fails here
9411 # Check whether --with-tkconfig or --without-tkconfig was given.
9412 if test "${with_tkconfig+set}" = set; then
9413 withval
="$with_tkconfig"
9414 with_tkconfig
=${withval}
9417 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9418 echo "configure:9419: checking for Tk configuration" >&5
9419 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9424 # First check to see if --with-tkconfig was specified.
9425 if test x
"${with_tkconfig}" != x
; then
9426 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9427 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
9429 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9433 # then check for a private Tk library
9434 if test x
"${ac_cv_c_tkconfig}" = x
; then
9437 `ls -dr ../tk[4-9]* 2>/dev/null` \
9439 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9441 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9442 if test -f "$i/${configdir}/tkConfig.sh" ; then
9443 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9448 # check in a few common install locations
9449 if test x
"${ac_cv_c_tkconfig}" = x
; then
9450 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9451 if test -f "$i/tkConfig.sh" ; then
9452 ac_cv_c_tkconfig
=`(cd $i; pwd)`
9457 # check in a few other private locations
9458 if test x
"${ac_cv_c_tkconfig}" = x
; then
9461 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9462 if test -f "$i/${configdir}/tkConfig.sh" ; then
9463 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9471 if test x
"${ac_cv_c_tkconfig}" = x
; then
9472 TKCONFIG
="# no Tk configs found"
9473 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9476 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
9477 echo "$ac_t""found $TKCONFIG" 1>&6
9483 # now look for Tcl library stuff
9494 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
9496 # If $no_tk is nonempty, then we can't do Tk, and there is no
9497 # point to doing Tcl.
9498 if test -z "${no_tk}"; then
9500 if test -f "$TKCONFIG" ; then
9518 # Ok, lets find the tcl source trees so we can use the headers
9519 # Warning: transition of version 9 to 10 will break this algorithm
9520 # because 10 sorts before 9. We also look for just tcl. We have to
9521 # be careful that we don't match stuff like tclX by accident.
9522 # the alternative search directory is involked by --with-tclinclude
9526 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9527 echo "configure:9528: checking for Tcl private headers. dir=${configdir}" >&5
9528 # Check whether --with-tclinclude or --without-tclinclude was given.
9529 if test "${with_tclinclude+set}" = set; then
9530 withval
="$with_tclinclude"
9531 with_tclinclude
=${withval}
9534 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9538 # first check to see if --with-tclinclude was specified
9539 if test x
"${with_tclinclude}" != x
; then
9540 if test -f ${with_tclinclude}/tclInt.h
; then
9541 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9542 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9543 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9545 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9549 # next check if it came with Tcl configuration file
9550 if test x
"${ac_cv_c_tclconfig}" = x
; then
9551 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9552 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9556 # next check in private source directory
9558 # since ls returns lowest version numbers first, reverse its output
9559 if test x
"${ac_cv_c_tclh}" = x
; then
9562 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9563 ${srcdir}/..
/..
/tcl \
9564 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9565 ${srcdir}/..
/..
/..
/tcl \
9566 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9567 if test -f $i/generic
/tclInt.h
; then
9568 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9573 # finally check in a few common install locations
9575 # since ls returns lowest version numbers first, reverse its output
9576 if test x
"${ac_cv_c_tclh}" = x
; then
9578 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9579 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9580 /usr
/local
/src
/tcl \
9581 /usr
/local
/lib
/tcl \
9582 ${prefix}/include
; do
9583 if test -f $i/generic
/tclInt.h
; then
9584 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9589 # see if one is installed
9590 if test x
"${ac_cv_c_tclh}" = x
; then
9591 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9592 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9593 echo "configure:9594: checking for tclInt.h" >&5
9594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9597 cat > conftest.
$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9603 { (eval echo configure
:9604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9604 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9605 if test -z "$ac_err"; then
9607 eval "ac_cv_header_$ac_safe=yes"
9610 echo "configure: failed program was:" >&5
9611 cat conftest.
$ac_ext >&5
9613 eval "ac_cv_header_$ac_safe=no"
9617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9618 echo "$ac_t""yes" 1>&6
9619 ac_cv_c_tclh
=installed
9621 echo "$ac_t""no" 1>&6
9629 if test x
"${ac_cv_c_tclh}" = x
; then
9630 TCLHDIR
="# no Tcl private headers found"
9631 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9633 if test x
"${ac_cv_c_tclh}" != x
; then
9635 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9636 echo "$ac_t""is installed" 1>&6
9639 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9640 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9641 TCLHDIR
="-I${ac_cv_c_tclh}"
9649 # Ok, lets find the tk source trees so we can use the headers
9650 # If the directory (presumably symlink) named "tk" exists, use that one
9651 # in preference to any others. Same logic is used when choosing library
9652 # and again with Tcl. The search order is the best place to look first, then in
9653 # decreasing significance. The loop breaks if the trigger file is found.
9654 # Note the gross little conversion here of srcdir by cd'ing to the found
9655 # directory. This converts the path from a relative to an absolute, so
9656 # recursive cache variables for the path will work right. We check all
9657 # the possible paths in one loop rather than many seperate loops to speed
9659 # the alternative search directory is involked by --with-tkinclude
9662 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9663 echo "configure:9664: checking for Tk private headers" >&5
9664 # Check whether --with-tkinclude or --without-tkinclude was given.
9665 if test "${with_tkinclude+set}" = set; then
9666 withval
="$with_tkinclude"
9667 with_tkinclude
=${withval}
9670 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9674 # first check to see if --with-tkinclude was specified
9675 if test x
"${with_tkinclude}" != x
; then
9676 if test -f ${with_tkinclude}/tk.h
; then
9677 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9678 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9679 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9681 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9685 # next check if it came with Tk configuration file
9686 if test x
"${ac_cv_c_tkconfig}" = x
; then
9687 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9688 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9692 # next check in private source directory
9694 # since ls returns lowest version numbers first, reverse its output
9695 if test x
"${ac_cv_c_tkh}" = x
; then
9698 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9699 ${srcdir}/..
/..
/tk \
9700 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9701 ${srcdir}/..
/..
/..
/tk \
9702 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9703 if test -f $i/generic
/tk.h
; then
9704 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9709 # finally check in a few common install locations
9711 # since ls returns lowest version numbers first, reverse its output
9712 if test x
"${ac_cv_c_tkh}" = x
; then
9714 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9715 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9718 ${prefix}/include
; do
9719 if test -f $i/generic
/tk.h
; then
9720 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9725 # see if one is installed
9726 if test x
"${ac_cv_c_tkh}" = x
; then
9727 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9728 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9729 echo "configure:9730: checking for tk.h" >&5
9730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9733 cat > conftest.
$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9738 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9739 { (eval echo configure
:9740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9740 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9741 if test -z "$ac_err"; then
9743 eval "ac_cv_header_$ac_safe=yes"
9746 echo "configure: failed program was:" >&5
9747 cat conftest.
$ac_ext >&5
9749 eval "ac_cv_header_$ac_safe=no"
9753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9754 echo "$ac_t""yes" 1>&6
9755 ac_cv_c_tkh
=installed
9757 echo "$ac_t""no" 1>&6
9765 if test x
"${ac_cv_c_tkh}" != x
; then
9767 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9768 echo "$ac_t""is installed" 1>&6
9771 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9772 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9773 TKHDIR
="-I${ac_cv_c_tkh}"
9776 TKHDIR
="# no Tk directory found"
9777 echo "configure: warning: Can't find Tk private headers" 1>&2
9784 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9785 echo "configure:9786: checking for Itcl private headers. srcdir=${srcdir}" >&5
9786 if test x
"${ac_cv_c_itclh}" = x
; then
9787 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9788 if test -f $i/generic
/itcl.h
; then
9789 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9794 if test x
"${ac_cv_c_itclh}" = x
; then
9795 ITCLHDIR
="# no Itcl private headers found"
9796 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9798 if test x
"${ac_cv_c_itclh}" != x
; then
9799 ITCLHDIR
="-I${ac_cv_c_itclh}"
9801 # should always be here
9802 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9807 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9808 echo "configure:9809: checking for Itk private headers. srcdir=${srcdir}" >&5
9809 if test x
"${ac_cv_c_itkh}" = x
; then
9810 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9811 if test -f $i/generic
/itk.h
; then
9812 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9817 if test x
"${ac_cv_c_itkh}" = x
; then
9818 ITKHDIR
="# no Itk private headers found"
9819 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9821 if test x
"${ac_cv_c_itkh}" != x
; then
9822 ITKHDIR
="-I${ac_cv_c_itkh}"
9824 # should always be here
9825 # ITKLIB="../itcl/itk/unix/libitk.a"
9831 # now look for Tk library stuff
9842 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9844 # now look for Itcl library stuff
9848 # Ok, lets find the itcl configuration
9849 # First, look for one uninstalled.
9850 # the alternative search directory is invoked by --with-itclconfig
9853 if test x
"${no_itcl}" = x
; then
9854 # we reset no_itcl in case something fails here
9856 # Check whether --with-itclconfig or --without-itclconfig was given.
9857 if test "${with_itclconfig+set}" = set; then
9858 withval
="$with_itclconfig"
9859 with_itclconfig
=${withval}
9862 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9863 echo "configure:9864: checking for Itcl configuration" >&5
9864 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9869 # First check to see if --with-itclconfig was specified.
9870 if test x
"${with_itclconfig}" != x
; then
9871 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9872 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9874 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9878 # then check for a private Itcl library
9879 if test x
"${ac_cv_c_itclconfig}" = x
; then
9882 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9884 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9886 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9887 if test -f "$i/itclConfig.sh" ; then
9888 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9893 # check in a few common install locations
9894 if test x
"${ac_cv_c_itclconfig}" = x
; then
9895 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9896 if test -f "$i/itclConfig.sh" ; then
9897 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9902 # check in a few other private locations
9903 if test x
"${ac_cv_c_itclconfig}" = x
; then
9905 ${srcdir}/..
/itcl
/itcl \
9906 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9907 if test -f "$i/itclConfig.sh" ; then
9908 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9916 if test x
"${ac_cv_c_itclconfig}" = x
; then
9917 ITCLCONFIG
="# no Itcl configs found"
9918 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9921 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9922 echo "$ac_t""found $ITCLCONFIG" 1>&6
9926 if test -z "${no_itcl}"; then
9928 if test -f "$ITCLCONFIG" ; then
9943 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9944 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9948 # now look for Itk library stuff
9951 # Ok, lets find the itk configuration
9952 # First, look for one uninstalled.
9953 # the alternative search directory is invoked by --with-itkconfig
9956 if test x
"${no_itk}" = x
; then
9957 # we reset no_itk in case something fails here
9959 # Check whether --with-itkconfig or --without-itkconfig was given.
9960 if test "${with_itkconfig+set}" = set; then
9961 withval
="$with_itkconfig"
9962 with_itkconfig
=${withval}
9965 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9966 echo "configure:9967: checking for Itk configuration" >&5
9967 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9972 # First check to see if --with-itkconfig was specified.
9973 if test x
"${with_itkconfig}" != x
; then
9974 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9975 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9977 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9981 # then check for a private Itk library
9982 if test x
"${ac_cv_c_itkconfig}" = x
; then
9985 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9987 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9989 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9990 if test -f "$i/itkConfig.sh" ; then
9991 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9996 # check in a few common install locations
9997 if test x
"${ac_cv_c_itkconfig}" = x
; then
9998 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9999 if test -f "$i/itkConfig.sh" ; then
10000 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10005 # check in a few other private locations
10006 if test x
"${ac_cv_c_itkconfig}" = x
; then
10008 ${srcdir}/..
/itcl
/itk \
10009 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10010 if test -f "$i/itkConfig.sh" ; then
10011 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10019 if test x
"${ac_cv_c_itkconfig}" = x
; then
10020 ITKCONFIG
="# no Itk configs found"
10021 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10024 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
10025 echo "$ac_t""found $ITKCONFIG" 1>&6
10030 if test -z "${no_itcl}"; then
10032 if test -f "$ITKCONFIG" ; then
10047 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
10048 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
10051 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10052 # Tcl/Tk 8.1 require -fwritable strings. I don't
10053 # know whether 8.2 will or not, but I bet it will.
10054 # I don't have to worry about 7.x since we don't support it.
10056 if test "$GCC" = "yes"; then
10057 if test "$TCL_VERSION" != "8.0" ; then
10058 GDBTK_CFLAGS
="-fwritable-strings"
10062 # Include some libraries that Tcl and Tk want.
10063 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10064 # Yes, the ordering seems wrong here. But it isn't.
10065 # TK_LIBS is the list of libraries that need to be linked
10066 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10067 # were in LIBS then any link tests after this point would
10068 # try to include things like `$(LIBGUI)', which wouldn't work.
10069 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
10071 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10072 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10073 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10074 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
10075 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
10076 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
10077 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
10078 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
10080 if test x
$gdb_cv_os_cygwin = xyes
; then
10081 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10082 WIN32LDAPP
="-Wl,--subsystem,console"
10083 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
10088 configdirs
="${configdirs} gdbtk"
10104 # If we find X, set shell vars x_includes and x_libraries to the
10105 # paths, otherwise set no_x=yes.
10106 # Uses ac_ vars as temps to allow command line to override cache and checks.
10107 # --without-x overrides everything else, but does not touch the cache.
10108 echo $ac_n "checking for X""... $ac_c" 1>&6
10109 echo "configure:10110: checking for X" >&5
10111 # Check whether --with-x or --without-x was given.
10112 if test "${with_x+set}" = set; then
10117 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10118 if test "x$with_x" = xno
; then
10119 # The user explicitly disabled X.
10122 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
10123 # Both variables are already set.
10126 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10129 # One or both of the vars are not set, and there is no cached value.
10130 ac_x_includes
=NO ac_x_libraries
=NO
10132 if mkdir conftestdir
; then
10134 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10135 cat > Imakefile
<<'EOF'
10137 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10139 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10140 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10141 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10142 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10143 for ac_extension
in a so sl
; do
10144 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
10145 test -f $ac_im_libdir/libX11.
$ac_extension; then
10146 ac_im_usrlibdir
=$ac_im_libdir; break
10149 # Screen out bogus values from the imake configuration. They are
10150 # bogus both because they are the default anyway, and because
10151 # using them would break gcc on systems where it needs fixed includes.
10152 case "$ac_im_incroot" in
10154 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
10156 case "$ac_im_usrlibdir" in
10157 /usr
/lib |
/lib
) ;;
10158 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
10165 if test "$ac_x_includes" = NO
; then
10166 # Guess where to find include files, by looking for this one X11 .h file.
10167 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
10169 # First, try using that file with no special directory specified.
10170 cat > conftest.
$ac_ext <<EOF
10171 #line 10172 "configure"
10172 #include "confdefs.h"
10173 #include <$x_direct_test_include>
10175 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10176 { (eval echo configure
:10177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10177 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10178 if test -z "$ac_err"; then
10180 # We can compile using X headers with no special include directory.
10184 echo "configure: failed program was:" >&5
10185 cat conftest.
$ac_ext >&5
10187 # Look for the header file in a standard set of common directories.
10188 # Check X11 before X11Rn because it is often a symlink to the current release.
10191 /usr
/X11R
6/include \
10192 /usr
/X11R
5/include \
10193 /usr
/X11R
4/include \
10196 /usr
/include
/X11R6 \
10197 /usr
/include
/X11R5 \
10198 /usr
/include
/X11R4 \
10200 /usr
/local
/X11
/include \
10201 /usr
/local
/X11R
6/include \
10202 /usr
/local
/X11R
5/include \
10203 /usr
/local
/X11R
4/include \
10205 /usr
/local
/include
/X11 \
10206 /usr
/local
/include
/X11R6 \
10207 /usr
/local
/include
/X11R5 \
10208 /usr
/local
/include
/X11R4 \
10210 /usr
/X386
/include \
10211 /usr
/x386
/include \
10212 /usr
/XFree86
/include
/X11 \
10215 /usr
/local
/include \
10216 /usr
/unsupported
/include \
10217 /usr
/athena
/include \
10218 /usr
/local
/x11r
5/include \
10219 /usr
/lpp
/Xamples
/include \
10221 /usr
/openwin
/include \
10222 /usr
/openwin
/share
/include \
10225 if test -r "$ac_dir/$x_direct_test_include"; then
10226 ac_x_includes
=$ac_dir
10232 fi # $ac_x_includes = NO
10234 if test "$ac_x_libraries" = NO
; then
10235 # Check for the libraries.
10237 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
10238 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
10240 # See if we find them without any special options.
10241 # Don't add to $LIBS permanently.
10242 ac_save_LIBS
="$LIBS"
10243 LIBS
="-l$x_direct_test_library $LIBS"
10244 cat > conftest.
$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10249 ${x_direct_test_function}()
10252 if { (eval echo configure
:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10254 LIBS
="$ac_save_LIBS"
10255 # We can link X programs with no special library path.
10258 echo "configure: failed program was:" >&5
10259 cat conftest.
$ac_ext >&5
10261 LIBS
="$ac_save_LIBS"
10262 # First see if replacing the include by lib works.
10263 # Check X11 before X11Rn because it is often a symlink to the current release.
10264 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
10275 /usr
/local
/X11
/lib \
10276 /usr
/local
/X11R
6/lib \
10277 /usr
/local
/X11R
5/lib \
10278 /usr
/local
/X11R
4/lib \
10280 /usr
/local
/lib
/X11 \
10281 /usr
/local
/lib
/X11R6 \
10282 /usr
/local
/lib
/X11R5 \
10283 /usr
/local
/lib
/X11R4 \
10287 /usr
/XFree86
/lib
/X11 \
10291 /usr
/unsupported
/lib \
10293 /usr
/local
/x11r
5/lib \
10294 /usr
/lpp
/Xamples
/lib \
10298 /usr
/openwin
/share
/lib \
10301 for ac_extension
in a so sl
; do
10302 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
10303 ac_x_libraries
=$ac_dir
10310 fi # $ac_x_libraries = NO
10312 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
10313 # Didn't find X anywhere. Cache the known absence of X.
10314 ac_cv_have_x
="have_x=no"
10316 # Record where we found X for the cache.
10317 ac_cv_have_x
="have_x=yes \
10318 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10322 eval "$ac_cv_have_x"
10325 if test "$have_x" != yes; then
10326 echo "$ac_t""$have_x" 1>&6
10329 # If each of the values was on the command line, it overrides each guess.
10330 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10331 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10332 # Update the cache value to reflect the command line values.
10333 ac_cv_have_x
="have_x=yes \
10334 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10335 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10340 # Unlike the sim directory, whether a simulator is linked is controlled by
10341 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10342 # This code just checks for a few cases where we'd like to ignore those
10343 # definitions, even when they're present in the '.mt' file. These cases
10344 # are when --disable-sim is specified, or if the simulator directory is
10345 # not part of the source tree.
10347 # Check whether --enable-sim or --disable-sim was given.
10348 if test "${enable_sim+set}" = set; then
10349 enableval
="$enable_sim"
10350 echo "enable_sim = $enable_sim";
10351 echo "enableval = ${enableval}";
10352 case "${enableval}" in
10353 yes) ignore_sim
=false
;;
10354 no
) ignore_sim
=true
;;
10355 *) ignore_sim
=false
;;
10362 if test ! -d "${srcdir}/../sim"; then
10366 if test "${ignore_sim}" = "true"; then
10368 IGNORE_SIM_OBS
="SIM_OBS="
10372 cat >> confdefs.h
<<\EOF
10393 # target_subdir is used by the testsuite to find the target libraries.
10395 if test "${host}" != "${target}"; then
10396 target_subdir
="${target_alias}/"
10401 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10402 if test ! -f ${host_makefile_frag}; then
10403 # When building a native debuger the .mh file containing things
10404 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10405 # since it no longer contains anything useful.
10406 if test "${target}" = "${host}"; then
10407 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
10409 host_makefile_frag
=/dev
/null
10412 frags
="$frags $host_makefile_frag"
10414 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10415 if test ! -f ${target_makefile_frag}; then
10416 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
10418 frags
="$frags $target_makefile_frag"
10425 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10426 ' ${host_makefile_frag}`
10428 targetfile
=`sed -n '
10429 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10430 ' ${target_makefile_frag}`
10432 if test "${target}" = "${host}"; then
10433 # We pick this up from the host configuration file (.mh) because we
10434 # do not have a native configuration Makefile fragment.
10435 nativefile
=`sed -n '
10436 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10437 ' ${host_makefile_frag}`
10441 if test x
"${gdb_osabi}" != x
; then
10442 cat >> confdefs.h
<<EOF
10443 #define GDB_OSABI_DEFAULT $gdb_osabi
10448 # Enable multi-ice-gdb-server.
10449 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10450 if test "${enable_multi_ice+set}" = set; then
10451 enableval
="$enable_multi_ice"
10455 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10459 if test "x$enable_multi_ice" = xyes
; then
10460 configdirs
="$configdirs multi-ice"
10463 # We only build gdbserver automatically if host and target are the same.
10464 if test "x$target" = "x$host"; then
10465 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10466 echo "configure:10467: checking whether gdbserver is supported on this host" >&5
10467 if test "x$build_gdbserver" = xyes
; then
10468 configdirs
="$configdirs gdbserver"
10469 echo "$ac_t""yes" 1>&6
10471 echo "$ac_t""no" 1>&6
10475 subdirs
="doc testsuite $configdirs"
10478 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10479 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10487 if test "${hostfile}" != ""; then
10489 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10490 files
="${files} ${GDB_XM_FILE}"
10491 links
="${links} xm.h"
10492 cat >> confdefs.h
<<EOF
10493 #define GDB_XM_FILE ${GDB_XM_FILE}
10501 if test "${targetfile}" != ""; then
10503 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10504 files
="${files} ${GDB_TM_FILE}"
10505 links
="${links} tm.h"
10506 cat >> confdefs.h
<<EOF
10507 #define GDB_TM_FILE ${GDB_TM_FILE}
10515 if test "${nativefile}" != ""; then
10517 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10518 files
="${files} ${GDB_NM_FILE}"
10519 links
="${links} nm.h"
10520 cat >> confdefs.h
<<EOF
10521 #define GDB_NM_FILE ${GDB_NM_FILE}
10529 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10530 echo "configure:10531: checking for Cygwin environment" >&5
10531 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10532 echo $ac_n "(cached) $ac_c" 1>&6
10534 cat > conftest.
$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10541 #define __CYGWIN__ __CYGWIN32__
10546 if { (eval echo configure
:10547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10550 echo "configure: failed program was:" >&5
10551 cat conftest.
$ac_ext >&5
10559 echo "$ac_t""$ac_cv_cygwin" 1>&6
10561 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10562 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10563 echo "configure:10564: checking for mingw32 environment" >&5
10564 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10567 cat > conftest.
$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10572 return __MINGW32__;
10575 if { (eval echo configure
:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10579 echo "configure: failed program was:" >&5
10580 cat conftest.
$ac_ext >&5
10588 echo "$ac_t""$ac_cv_mingw32" 1>&6
10590 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10593 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10594 echo "configure:10595: checking for executable suffix" >&5
10595 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10596 echo $ac_n "(cached) $ac_c" 1>&6
10598 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10602 echo 'int main () { return 0; }' > conftest.
$ac_ext
10604 if { (eval echo configure
:10605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10605 for file in conftest.
*; do
10607 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10608 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10612 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10615 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10620 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10621 echo "$ac_t""${ac_cv_exeext}" 1>&6
10626 cat >> confdefs.h
<<\EOF
10627 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10633 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10634 if test "${with_libiconv_prefix+set}" = set; then
10635 withval
="$with_libiconv_prefix"
10637 for dir
in `echo "$withval" | tr : ' '`; do
10638 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10639 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10645 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10646 echo "configure:10647: checking for iconv" >&5
10647 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10648 echo $ac_n "(cached) $ac_c" 1>&6
10651 am_cv_func_iconv
="no, consider installing GNU libiconv"
10653 cat > conftest.
$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 #include <stdlib.h>
10659 iconv_t cd = iconv_open("","");
10660 iconv(cd,NULL,NULL,NULL,NULL);
10664 if { (eval echo configure
:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10666 am_cv_func_iconv
=yes
10668 echo "configure: failed program was:" >&5
10669 cat conftest.
$ac_ext >&5
10672 if test "$am_cv_func_iconv" != yes; then
10673 am_save_LIBS
="$LIBS"
10674 LIBS
="$LIBS -liconv"
10675 cat > conftest.
$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 #include <stdlib.h>
10681 iconv_t cd = iconv_open("","");
10682 iconv(cd,NULL,NULL,NULL,NULL);
10686 if { (eval echo configure
:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10688 am_cv_lib_iconv
=yes
10689 am_cv_func_iconv
=yes
10691 echo "configure: failed program was:" >&5
10692 cat conftest.
$ac_ext >&5
10695 LIBS
="$am_save_LIBS"
10700 echo "$ac_t""$am_cv_func_iconv" 1>&6
10701 if test "$am_cv_func_iconv" = yes; then
10702 cat >> confdefs.h
<<\EOF
10703 #define HAVE_ICONV 1
10706 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10707 echo "configure:10708: checking for iconv declaration" >&5
10708 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10712 cat > conftest.
$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10716 #include <stdlib.h>
10722 #if defined(__STDC__) || defined(__cplusplus)
10723 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10732 if { (eval echo configure
:10733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10734 am_cv_proto_iconv_arg1
=""
10736 echo "configure: failed program was:" >&5
10737 cat conftest.
$ac_ext >&5
10739 am_cv_proto_iconv_arg1
="const"
10742 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);"
10745 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10746 echo "$ac_t""${ac_t:-
10747 }$am_cv_proto_iconv" 1>&6
10748 cat >> confdefs.h
<<EOF
10749 #define ICONV_CONST $am_cv_proto_iconv_arg1
10754 if test "$am_cv_lib_iconv" = yes; then
10761 cat > confcache
<<\EOF
10762 # This file is a shell script that caches the results of configure
10763 # tests run on this system so they can be shared between configure
10764 # scripts and configure runs. It is not useful on other systems.
10765 # If it contains results you don't want to keep, you may remove or edit it.
10767 # By default, configure uses ./config.cache as the cache file,
10768 # creating it if it does not exist already. You can give configure
10769 # the --cache-file=FILE option to use a different cache file; that is
10770 # what configure does when it calls configure scripts in
10771 # subdirectories, so they share the cache.
10772 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10773 # config.status only pays attention to the cache file if you give it the
10774 # --recheck option to rerun configure.
10777 # The following way of writing the cache mishandles newlines in values,
10778 # but we know of no workaround that is simple, portable, and efficient.
10779 # So, don't put newlines in cache variables' values.
10780 # Ultrix sh set writes to stderr and can't be redirected directly,
10781 # and sets the high bit in the cache file unless we assign to the vars.
10783 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10785 # `set' does not quote correctly, so add quotes (double-quote substitution
10786 # turns \\\\ into \\, and sed turns \\ into \).
10788 -e "s/'/'\\\\''/g" \
10789 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10792 # `set' quotes correctly as required by POSIX, so do not add quotes.
10793 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10796 if cmp -s $cache_file confcache
; then
10799 if test -w $cache_file; then
10800 echo "updating cache $cache_file"
10801 cat confcache
> $cache_file
10803 echo "not updating unwritable cache $cache_file"
10808 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10810 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10811 # Let make expand exec_prefix.
10812 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10814 # Any assignment to VPATH causes Sun make to only execute
10815 # the first set of double-colon rules, so remove it if not needed.
10816 # If there is a colon in the path, we need to keep it.
10817 if test "x$srcdir" = x.
; then
10818 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10821 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10823 DEFS
=-DHAVE_CONFIG_H
10825 # Without the "./", some shells look in PATH for config.status.
10826 : ${CONFIG_STATUS=./config.status}
10828 echo creating
$CONFIG_STATUS
10829 rm -f $CONFIG_STATUS
10830 cat > $CONFIG_STATUS <<EOF
10832 # Generated automatically by configure.
10833 # Run this file to recreate the current configuration.
10834 # This directory was configured as follows,
10835 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10837 # $0 $ac_configure_args
10839 # Compiler output produced by configure, useful for debugging
10840 # configure, is in ./config.log if it exists.
10842 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10845 case "\$ac_option" in
10846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10847 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10848 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10849 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10850 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10852 -help | --help | --hel | --he | --h)
10853 echo "\$ac_cs_usage"; exit 0 ;;
10854 *) echo "\$ac_cs_usage"; exit 1 ;;
10858 ac_given_srcdir=$srcdir
10859 ac_given_INSTALL="$INSTALL"
10861 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10863 cat >> $CONFIG_STATUS <<EOF
10865 # Protect against being on the right side of a sed subst in config.status.
10866 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10867 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10871 s%@CFLAGS@%$CFLAGS%g
10872 s%@CPPFLAGS@%$CPPFLAGS%g
10873 s%@CXXFLAGS@%$CXXFLAGS%g
10874 s%@FFLAGS@%$FFLAGS%g
10876 s%@LDFLAGS@%$LDFLAGS%g
10878 s%@exec_prefix@%$exec_prefix%g
10879 s%@prefix@%$prefix%g
10880 s%@program_transform_name@%$program_transform_name%g
10881 s%@bindir@%$bindir%g
10882 s%@sbindir@%$sbindir%g
10883 s%@libexecdir@%$libexecdir%g
10884 s%@datadir@%$datadir%g
10885 s%@sysconfdir@%$sysconfdir%g
10886 s%@sharedstatedir@%$sharedstatedir%g
10887 s%@localstatedir@%$localstatedir%g
10888 s%@libdir@%$libdir%g
10889 s%@includedir@%$includedir%g
10890 s%@oldincludedir@%$oldincludedir%g
10891 s%@infodir@%$infodir%g
10892 s%@mandir@%$mandir%g
10893 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10894 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10899 s%@host_alias@%$host_alias%g
10900 s%@host_cpu@%$host_cpu%g
10901 s%@host_vendor@%$host_vendor%g
10902 s%@host_os@%$host_os%g
10903 s%@target@%$target%g
10904 s%@target_alias@%$target_alias%g
10905 s%@target_cpu@%$target_cpu%g
10906 s%@target_vendor@%$target_vendor%g
10907 s%@target_os@%$target_os%g
10909 s%@build_alias@%$build_alias%g
10910 s%@build_cpu@%$build_cpu%g
10911 s%@build_vendor@%$build_vendor%g
10912 s%@build_os@%$build_os%g
10913 s%@RANLIB@%$RANLIB%g
10914 s%@SET_MAKE@%$SET_MAKE%g
10915 s%@ALLOCA@%$ALLOCA%g
10916 s%@USE_NLS@%$USE_NLS%g
10917 s%@MSGFMT@%$MSGFMT%g
10918 s%@GMSGFMT@%$GMSGFMT%g
10919 s%@XGETTEXT@%$XGETTEXT%g
10920 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10921 s%@CATALOGS@%$CATALOGS%g
10922 s%@CATOBJEXT@%$CATOBJEXT%g
10923 s%@DATADIRNAME@%$DATADIRNAME%g
10924 s%@GMOFILES@%$GMOFILES%g
10925 s%@INSTOBJEXT@%$INSTOBJEXT%g
10926 s%@INTLDEPS@%$INTLDEPS%g
10927 s%@INTLLIBS@%$INTLLIBS%g
10928 s%@INTLOBJS@%$INTLOBJS%g
10929 s%@POFILES@%$POFILES%g
10931 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10933 s%@GT_YES@%$GT_YES%g
10934 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10936 s%@subdirs@%$subdirs%g
10938 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10939 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10940 s%@INSTALL_DATA@%$INSTALL_DATA%g
10944 s%@DLLTOOL@%$DLLTOOL%g
10945 s%@WINDRES@%$WINDRES%g
10947 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10948 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
10949 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
10950 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10951 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10952 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10953 s%@MMALLOC@%$MMALLOC%g
10954 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10955 s%@WIN32LIBS@%$WIN32LIBS%g
10956 s%@LIBGUI@%$LIBGUI%g
10957 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10958 s%@WIN32LDAPP@%$WIN32LDAPP%g
10959 s%@TCL_VERSION@%$TCL_VERSION%g
10960 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10961 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10962 s%@TCL_CC@%$TCL_CC%g
10963 s%@TCL_DEFS@%$TCL_DEFS%g
10964 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10965 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10966 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10967 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10968 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10969 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10970 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10971 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
10972 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10973 s%@TCL_RANLIB@%$TCL_RANLIB%g
10974 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10975 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10976 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10977 s%@TK_VERSION@%$TK_VERSION%g
10978 s%@TK_DEFS@%$TK_DEFS%g
10979 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10980 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10981 s%@TK_XLIBSW@%$TK_XLIBSW%g
10982 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10983 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10984 s%@TCLHDIR@%$TCLHDIR%g
10985 s%@TKHDIR@%$TKHDIR%g
10986 s%@ITCLHDIR@%$ITCLHDIR%g
10987 s%@ITKHDIR@%$ITKHDIR%g
10988 s%@ITCL_VERSION@%$ITCL_VERSION%g
10989 s%@ITCL_DEFS@%$ITCL_DEFS%g
10990 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10991 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10992 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10993 s%@ITK_VERSION@%$ITK_VERSION%g
10994 s%@ITK_DEFS@%$ITK_DEFS%g
10995 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10996 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10997 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10998 s%@X_CFLAGS@%$X_CFLAGS%g
10999 s%@X_LDFLAGS@%$X_LDFLAGS%g
11000 s%@X_LIBS@%$X_LIBS%g
11001 s%@TCL_DEPS@%$TCL_DEPS%g
11002 s%@TK_DEPS@%$TK_DEPS%g
11003 s%@ITCLLIB@%$ITCLLIB%g
11004 s%@ITCL_DEPS@%$ITCL_DEPS%g
11005 s%@ITKLIB@%$ITKLIB%g
11006 s%@ITK_DEPS@%$ITK_DEPS%g
11007 s%@GDBTKLIBS@%$GDBTKLIBS%g
11008 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11009 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11010 s%@IGNORE_SIM@%$IGNORE_SIM%g
11011 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11012 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11013 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11014 s%@CONFIG_OBS@%$CONFIG_OBS%g
11015 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
11016 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11017 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11018 s%@CONFIG_INITS@%$CONFIG_INITS%g
11019 s%@CONFIG_ALL@%$CONFIG_ALL%g
11020 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11021 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11022 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11023 s%@target_subdir@%$target_subdir%g
11024 /@host_makefile_frag@/r $host_makefile_frag
11025 s%@host_makefile_frag@%%g
11026 /@target_makefile_frag@/r $target_makefile_frag
11027 s%@target_makefile_frag@%%g
11032 s%@EXEEXT@%$EXEEXT%g
11033 s%@LIBICONV@%$LIBICONV%g
11038 cat >> $CONFIG_STATUS <<\EOF
11040 # Split the substitutions into bite-sized pieces for seds with
11041 # small command number limits, like on Digital OSF/1 and HP-UX.
11042 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11043 ac_file
=1 # Number of current file.
11044 ac_beg
=1 # First line for current file.
11045 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11048 while $ac_more_lines; do
11049 if test $ac_beg -gt 1; then
11050 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11052 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11054 if test ! -s conftest.s
$ac_file; then
11055 ac_more_lines
=false
11056 rm -f conftest.s
$ac_file
11058 if test -z "$ac_sed_cmds"; then
11059 ac_sed_cmds
="sed -f conftest.s$ac_file"
11061 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11063 ac_file
=`expr $ac_file + 1`
11065 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11068 if test -z "$ac_sed_cmds"; then
11073 cat >> $CONFIG_STATUS <<EOF
11075 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11077 cat >> $CONFIG_STATUS <<\EOF
11078 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11081 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11082 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11083 *) ac_file_in
="${ac_file}.in" ;;
11086 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11088 # Remove last slash and all that follows it. Not all systems have dirname.
11089 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11090 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11091 # The file is in a subdirectory.
11092 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11093 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11094 # A "../" for each directory in $ac_dir_suffix.
11095 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11097 ac_dir_suffix
= ac_dots
=
11100 case "$ac_given_srcdir" in
11102 if test -z "$ac_dots"; then top_srcdir
=.
11103 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11104 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11105 *) # Relative path.
11106 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11107 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11110 case "$ac_given_INSTALL" in
11111 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11112 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11115 echo creating
"$ac_file"
11117 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11119 *Makefile
*) ac_comsub
="1i\\
11120 # $configure_input" ;;
11124 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11126 s%@configure_input@%$configure_input%g
11127 s%@srcdir@%$srcdir%g
11128 s%@top_srcdir@%$top_srcdir%g
11129 s%@INSTALL@%$INSTALL%g
11130 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11134 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11135 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11137 # ac_d sets the value in "#define NAME VALUE" lines.
11138 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11139 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11142 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11143 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11144 ac_uB
='\([ ]\)%\1#\2define\3'
11147 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11148 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11149 ac_eB
='$%\1#\2define\3'
11153 if test "${CONFIG_HEADERS+set}" != set; then
11155 cat >> $CONFIG_STATUS <<EOF
11156 CONFIG_HEADERS="config.h:config.in"
11158 cat >> $CONFIG_STATUS <<\EOF
11160 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11163 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11164 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11165 *) ac_file_in
="${ac_file}.in" ;;
11168 echo creating
$ac_file
11170 rm -f conftest.frag conftest.
in conftest.out
11171 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11172 cat $ac_file_inputs > conftest.
in
11176 # Transform confdefs.h into a sed script conftest.vals that substitutes
11177 # the proper values into config.h.in to produce config.h. And first:
11178 # Protect against being on the right side of a sed subst in config.status.
11179 # Protect against being in an unquoted here document in config.status.
11180 rm -f conftest.vals
11181 cat > conftest.hdr
<<\EOF
11184 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11188 sed -n -f conftest.hdr confdefs.h > conftest.vals
11191 # This sed command replaces #undef with comments. This is necessary, for
11192 # example, in the case of _POSIX_SOURCE, which is predefined and required
11193 # on some systems where configure will not decide to define it.
11194 cat >> conftest.vals <<\EOF
11195 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11198 # Break up conftest.vals because some shells have a limit on
11199 # the size of here documents, and old seds have small limits too.
11201 rm -f conftest.tail
11204 ac_lines=`grep -c . conftest.vals
`
11205 # grep -c gives empty output for an empty file on some AIX systems.
11206 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11207 # Write a limited-size here document to conftest.frag.
11208 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11209 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11211 sed -f conftest.frag conftest.in > conftest.out
11213 mv conftest.out conftest.in
11214 ' >> $CONFIG_STATUS
11215 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11216 rm -f conftest.vals
11217 mv conftest.tail conftest.vals
11219 rm -f conftest.vals
11221 cat >> $CONFIG_STATUS <<\EOF
11222 rm -f conftest.frag conftest.h
11223 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11224 cat conftest.in >> conftest.h
11226 if cmp -s $ac_file conftest.h 2>/dev/null; then
11227 echo "$ac_file is unchanged"
11230 # Remove last slash and all that follows it. Not all systems have dirname.
11231 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11232 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11233 # The file is in a subdirectory.
11234 test ! -d "$ac_dir" && mkdir "$ac_dir"
11237 mv conftest.h $ac_file
11243 cat >> $CONFIG_STATUS <<EOF
11244 ac_sources="$files"
11248 cat >> $CONFIG_STATUS <<\EOF
11249 srcdir=$ac_given_srcdir
11250 while test -n "$ac_sources"; do
11251 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11252 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11254 echo "linking $srcdir/$ac_source to $ac_dest"
11256 if test ! -r $srcdir/$ac_source; then
11257 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11261 # Make relative symlinks.
11262 # Remove last slash and all that follows it. Not all systems have dirname.
11263 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
11264 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11265 # The dest file is in a subdirectory.
11266 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11267 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
11268 # A "../" for each directory in $ac_dest_dir_suffix.
11269 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
11271 ac_dest_dir_suffix= ac_dots=
11275 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11276 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11279 # Make a symlink if possible; otherwise try a hard link.
11280 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11281 ln $srcdir/$ac_source $ac_dest; then :
11283 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11287 cat >> $CONFIG_STATUS <<EOF
11289 gdb_host_cpu=$gdb_host_cpu
11290 gdb_target_cpu=$gdb_target_cpu
11291 nativefile=$nativefile
11294 cat >> $CONFIG_STATUS <<\EOF
11296 if test "${nativefile}" = ""; then
11298 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11299 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11300 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11302 mv -f Makefile.tem Makefile
11305 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11306 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11307 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11308 mv -f Makefile.tmp Makefile
11311 case x$CONFIG_HEADERS in
11312 xconfig.h:config.in)
11318 chmod +x $CONFIG_STATUS
11319 rm -fr confdefs* $ac_clean_files
11320 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11322 if test "$no_recursion" != yes; then
11324 # Remove --cache-file and --srcdir arguments so they do not pile up.
11325 ac_sub_configure_args=
11327 for ac_arg in $ac_configure_args; do
11328 if test -n "$ac_prev"; then
11333 -cache-file | --cache-file | --cache-fil | --cache-fi \
11334 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11335 ac_prev=cache_file ;;
11336 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11337 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11343 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11347 for ac_config_dir in doc testsuite $configdirs; do
11349 # Do not complain, so a configure script can configure whichever
11350 # parts of a large source tree are present.
11351 if test ! -d $srcdir/$ac_config_dir; then
11355 echo configuring in $ac_config_dir
11360 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11362 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11370 # A "../" for each directory in /$ac_config_dir.
11371 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11374 .) # No --srcdir option. We are building in place.
11375 ac_sub_srcdir=$srcdir ;;
11376 /*) # Absolute path.
11377 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11378 *) # Relative path.
11379 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11382 # Check for guested configure; otherwise get Cygnus style configure.
11383 if test -f $ac_sub_srcdir/configure; then
11384 ac_sub_configure=$ac_sub_srcdir/configure
11385 elif test -f $ac_sub_srcdir/configure.in; then
11386 ac_sub_configure=$ac_configure
11388 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11392 # The recursion is here.
11393 if test -n "$ac_sub_configure"; then
11395 # Make the cache file name correct relative to the subdirectory.
11396 case "$cache_file" in
11397 /*) ac_sub_cache_file=$cache_file ;;
11398 *) # Relative path.
11399 ac_sub_cache_file="$ac_dots$cache_file" ;;
11401 case "$ac_given_INSTALL" in
11402 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11403 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11406 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11407 # The eval makes quoting arguments work.
11408 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11411 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }