3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbmi Enable GDB-MI interface"
26 --enable-tui Enable full-screen terminal user interface"
28 --enable-netrom Enable NetROM support"
30 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
32 --with-mmalloc Use memory mapped malloc package"
34 --with-included-regex Use included regex"
36 --with-cpu=CPU Set the default CPU variant to debug"
38 --enable-gdbtk Enable GDBTK GUI front end"
40 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
42 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
44 --with-tclinclude=DIR Directory where tcl private headers are"
46 --with-tkinclude=DIR Directory where tk private headers are"
48 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
50 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
52 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
54 --with-x use the X Window System"
56 --enable-sim Link gdb with simulator"
58 --enable-shared Use shared libraries"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file
=.
/config.cache
73 program_transform_name
=s
,x
,x
,
81 bindir
='${exec_prefix}/bin'
82 sbindir
='${exec_prefix}/sbin'
83 libexecdir
='${exec_prefix}/libexec'
84 datadir
='${prefix}/share'
85 sysconfdir
='${prefix}/etc'
86 sharedstatedir
='${prefix}/com'
87 localstatedir
='${prefix}/var'
88 libdir
='${exec_prefix}/lib'
89 includedir
='${prefix}/include'
90 oldincludedir
='/usr/include'
91 infodir
='${prefix}/info'
92 mandir
='${prefix}/man'
94 # Initialize some other variables.
97 SHELL
=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
123 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
124 bindir
="$ac_optarg" ;;
126 -build |
--build |
--buil |
--bui |
--bu)
128 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
129 build
="$ac_optarg" ;;
131 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
132 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
133 ac_prev
=cache_file
;;
134 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
135 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
136 cache_file
="$ac_optarg" ;;
138 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
140 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
142 datadir
="$ac_optarg" ;;
144 -disable-* |
--disable-*)
145 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* |
--enable-*)
154 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
167 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
168 |
--exec |
--exe |
--ex)
169 ac_prev
=exec_prefix
;;
170 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
171 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
172 |
--exec=* |
--exe=* |
--ex=*)
173 exec_prefix
="$ac_optarg" ;;
175 -gas |
--gas |
--ga |
--g)
176 # Obsolete; use --with-gas.
179 -help |
--help |
--hel |
--he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host |
--host |
--hos |
--ho)
236 -host=* |
--host=* |
--hos=* |
--ho=*)
239 -includedir |
--includedir |
--includedi |
--included |
--include \
240 |
--includ |
--inclu |
--incl |
--inc)
241 ac_prev
=includedir
;;
242 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
243 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
244 includedir
="$ac_optarg" ;;
246 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
248 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
249 infodir
="$ac_optarg" ;;
251 -libdir |
--libdir |
--libdi |
--libd)
253 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
254 libdir
="$ac_optarg" ;;
256 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
257 |
--libexe |
--libex |
--libe)
258 ac_prev
=libexecdir
;;
259 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
260 |
--libexe=* |
--libex=* |
--libe=*)
261 libexecdir
="$ac_optarg" ;;
263 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
264 |
--localstate |
--localstat |
--localsta |
--localst \
265 |
--locals |
--local |
--loca |
--loc |
--lo)
266 ac_prev
=localstatedir
;;
267 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
268 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
269 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
270 localstatedir
="$ac_optarg" ;;
272 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
274 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
275 mandir
="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
285 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
286 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
289 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
290 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
291 |
--oldin |
--oldi |
--old |
--ol |
--o)
292 ac_prev
=oldincludedir
;;
293 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
294 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
295 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
296 oldincludedir
="$ac_optarg" ;;
298 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
300 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
301 prefix
="$ac_optarg" ;;
303 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
304 |
--program-pre |
--program-pr |
--program-p)
305 ac_prev
=program_prefix
;;
306 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
307 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
308 program_prefix
="$ac_optarg" ;;
310 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
311 |
--program-suf |
--program-su |
--program-s)
312 ac_prev
=program_suffix
;;
313 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
314 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
315 program_suffix
="$ac_optarg" ;;
317 -program-transform-name |
--program-transform-name \
318 |
--program-transform-nam |
--program-transform-na \
319 |
--program-transform-n |
--program-transform- \
320 |
--program-transform |
--program-transfor \
321 |
--program-transfo |
--program-transf \
322 |
--program-trans |
--program-tran \
323 |
--progr-tra |
--program-tr |
--program-t)
324 ac_prev
=program_transform_name
;;
325 -program-transform-name=* |
--program-transform-name=* \
326 |
--program-transform-nam=* |
--program-transform-na=* \
327 |
--program-transform-n=* |
--program-transform-=* \
328 |
--program-transform=* |
--program-transfor=* \
329 |
--program-transfo=* |
--program-transf=* \
330 |
--program-trans=* |
--program-tran=* \
331 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
332 program_transform_name
="$ac_optarg" ;;
334 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
335 |
-silent |
--silent |
--silen |
--sile |
--sil)
338 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
340 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
342 sbindir
="$ac_optarg" ;;
344 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
345 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
346 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
348 ac_prev
=sharedstatedir
;;
349 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
350 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
351 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
353 sharedstatedir
="$ac_optarg" ;;
355 -site |
--site |
--sit)
357 -site=* |
--site=* |
--sit=*)
360 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
362 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
363 srcdir
="$ac_optarg" ;;
365 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
366 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
367 ac_prev
=sysconfdir
;;
368 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
369 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
370 sysconfdir
="$ac_optarg" ;;
372 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
374 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
375 target
="$ac_optarg" ;;
377 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
380 -version |
--version |
--versio |
--versi |
--vers)
381 echo "configure generated by autoconf version 2.13"
385 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* |
--without-*)
398 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
411 |
--x-incl |
--x-inc |
--x-in |
--x-i)
412 ac_prev
=x_includes
;;
413 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
414 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
415 x_includes
="$ac_optarg" ;;
417 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
418 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
419 ac_prev
=x_libraries
;;
420 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
421 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
422 x_libraries
="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE
; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
473 |
--no-cr |
--no-c) ;;
474 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
475 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
476 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest
* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file
=main.c
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted
=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted
=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE
; then
527 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file
in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp
='$CPP $CPPFLAGS'
550 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling
=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
565 ac_n
= ac_c
='\c' ac_t
=
570 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
571 echo "configure:572: checking whether to enable maintainer-specific portions of Makefiles" >&5
572 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
573 if test "${enable_maintainer_mode+set}" = set; then
574 enableval
="$enable_maintainer_mode"
575 USE_MAINTAINER_MODE
=$enableval
577 USE_MAINTAINER_MODE
=no
580 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
583 if test $USE_MAINTAINER_MODE = yes; then
584 MAINTAINER_MODE_TRUE
=
585 MAINTAINER_MODE_FALSE
='#'
587 MAINTAINER_MODE_TRUE
='#'
588 MAINTAINER_MODE_FALSE
=
590 MAINT
=$MAINTAINER_MODE_TRUE
594 # Extract the first word of "gcc", so it can be a program name with args.
595 set dummy gcc
; ac_word
=$2
596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
597 echo "configure:598: checking for $ac_word" >&5
598 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 if test -n "$CC"; then
602 ac_cv_prog_CC
="$CC" # Let the user override the test.
604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
606 for ac_dir
in $ac_dummy; do
607 test -z "$ac_dir" && ac_dir
=.
608 if test -f $ac_dir/$ac_word; then
617 if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
620 echo "$ac_t""no" 1>&6
623 if test -z "$CC"; then
624 # Extract the first word of "cc", so it can be a program name with args.
625 set dummy cc
; ac_word
=$2
626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627 echo "configure:628: checking for $ac_word" >&5
628 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 if test -n "$CC"; then
632 ac_cv_prog_CC
="$CC" # Let the user override the test.
634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
637 for ac_dir
in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir
=.
639 if test -f $ac_dir/$ac_word; then
640 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
649 if test $ac_prog_rejected = yes; then
650 # We found a bogon in the path, so make sure we never use it.
651 set dummy
$ac_cv_prog_CC
653 if test $# -gt 0; then
654 # We chose a different compiler from the bogus one.
655 # However, it has the same basename, so the bogon will be chosen
656 # first if we set CC to just the basename; use the full file name.
658 set dummy
"$ac_dir/$ac_word" "$@"
666 if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
669 echo "$ac_t""no" 1>&6
672 if test -z "$CC"; then
675 # Extract the first word of "cl", so it can be a program name with args.
676 set dummy cl
; ac_word
=$2
677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
678 echo "configure:679: checking for $ac_word" >&5
679 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 if test -n "$CC"; then
683 ac_cv_prog_CC
="$CC" # Let the user override the test.
685 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
687 for ac_dir
in $ac_dummy; do
688 test -z "$ac_dir" && ac_dir
=.
689 if test -f $ac_dir/$ac_word; then
698 if test -n "$CC"; then
699 echo "$ac_t""$CC" 1>&6
701 echo "$ac_t""no" 1>&6
706 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
709 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
710 echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
714 ac_cpp
='$CPP $CPPFLAGS'
715 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
716 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
717 cross_compiling
=$ac_cv_prog_cc_cross
719 cat > conftest.
$ac_ext << EOF
721 #line 722 "configure"
722 #include "confdefs.h"
726 if { (eval echo configure
:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
727 ac_cv_prog_cc_works
=yes
728 # If we can't run a trivial program, we are probably using a cross compiler.
729 if (.
/conftest
; exit) 2>/dev
/null
; then
730 ac_cv_prog_cc_cross
=no
732 ac_cv_prog_cc_cross
=yes
735 echo "configure: failed program was:" >&5
736 cat conftest.
$ac_ext >&5
737 ac_cv_prog_cc_works
=no
741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
742 ac_cpp
='$CPP $CPPFLAGS'
743 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
744 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
745 cross_compiling
=$ac_cv_prog_cc_cross
747 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
748 if test $ac_cv_prog_cc_works = no
; then
749 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
752 echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
753 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
754 cross_compiling
=$ac_cv_prog_cc_cross
756 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
757 echo "configure:758: checking whether we are using GNU C" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftest.c
<<EOF
766 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
773 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
775 if test $ac_cv_prog_gcc = yes; then
781 ac_test_CFLAGS
="${CFLAGS+set}"
782 ac_save_CFLAGS
="$CFLAGS"
784 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
785 echo "configure:786: checking whether ${CC-cc} accepts -g" >&5
786 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 echo 'void f(){}' > conftest.c
790 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
799 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
800 if test "$ac_test_CFLAGS" = set; then
801 CFLAGS
="$ac_save_CFLAGS"
802 elif test $ac_cv_prog_cc_g = yes; then
803 if test "$GCC" = yes; then
809 if test "$GCC" = yes; then
816 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
817 echo "configure:818: checking how to run the C preprocessor" >&5
818 # On Suns, sometimes $CPP names a directory.
819 if test -n "$CPP" && test -d "$CPP"; then
822 if test -z "$CPP"; then
823 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 # This must be in double quotes, not single quotes, because CPP may get
827 # substituted into the Makefile and "${CC-cc}" will confuse make.
829 # On the NeXT, cc -E runs the code through the compiler's parser,
830 # not just through cpp.
831 cat > conftest.
$ac_ext <<EOF
832 #line 833 "configure"
833 #include "confdefs.h"
837 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
838 { (eval echo configure
:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
839 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
840 if test -z "$ac_err"; then
844 echo "configure: failed program was:" >&5
845 cat conftest.
$ac_ext >&5
847 CPP
="${CC-cc} -E -traditional-cpp"
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
864 CPP
="${CC-cc} -nologo -E"
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
888 ac_cv_prog_CPP
="$CPP"
890 CPP
="$ac_cv_prog_CPP"
892 ac_cv_prog_CPP
="$CPP"
894 echo "$ac_t""$CPP" 1>&6
896 echo $ac_n "checking for AIX""... $ac_c" 1>&6
897 echo "configure:898: checking for AIX" >&5
898 cat > conftest.
$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
907 egrep "yes" >/dev
/null
2>&1; then
909 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
910 #define _ALL_SOURCE 1
915 echo "$ac_t""no" 1>&6
920 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
921 echo "configure:922: checking for POSIXized ISC" >&5
922 if test -d /etc
/conf
/kconfig.d
&&
923 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
925 echo "$ac_t""yes" 1>&6
926 ISC
=yes # If later tests want to check for ISC.
927 cat >> confdefs.h
<<\EOF
928 #define _POSIX_SOURCE 1
931 if test "$GCC" = yes; then
937 echo "$ac_t""no" 1>&6
944 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
945 echo "configure:946: checking for ${CC-cc} option to accept ANSI C" >&5
946 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 am_cv_prog_cc_stdc
=no
951 # Don't try gcc -ansi; that turns off useful extensions and
952 # breaks some systems' header files.
954 # Ultrix and OSF/1 -std1
955 # HP-UX -Aa -D_HPUX_SOURCE
956 # SVR4 -Xc -D__EXTENSIONS__
957 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
959 CC
="$ac_save_CC $ac_arg"
960 cat > conftest.
$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
965 #include <sys/types.h>
966 #include <sys/stat.h>
967 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
968 struct buf { int x; };
969 FILE * (*rcsopen) (struct buf *, struct stat *, int);
970 static char *e (p, i)
976 static char *f (char * (*g) (char **, int), char **p, ...)
981 s = g (p, va_arg (v,int));
985 int test (int i, double x);
986 struct s1 {int (*f) (int a);};
987 struct s2 {int (*f) (double a);};
988 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
994 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
998 if { (eval echo configure
:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1000 am_cv_prog_cc_stdc
="$ac_arg"; break
1002 echo "configure: failed program was:" >&5
1003 cat conftest.
$ac_ext >&5
1011 if test -z "$am_cv_prog_cc_stdc"; then
1012 echo "$ac_t""none needed" 1>&6
1014 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1016 case "x$am_cv_prog_cc_stdc" in
1018 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1023 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1024 if test -f $ac_dir/install-sh
; then
1026 ac_install_sh
="$ac_aux_dir/install-sh -c"
1028 elif test -f $ac_dir/install.sh
; then
1030 ac_install_sh
="$ac_aux_dir/install.sh -c"
1034 if test -z "$ac_aux_dir"; then
1035 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1037 ac_config_guess
=$ac_aux_dir/config.guess
1038 ac_config_sub
=$ac_aux_dir/config.sub
1039 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1042 # Do some error checking and defaulting for the host and target type.
1044 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1047 # 1. You are not allowed to specify --host, --target, and nonopt at the
1049 # 2. Host defaults to nonopt.
1050 # 3. If nonopt is not specified, then host defaults to the current host,
1051 # as determined by config.guess.
1052 # 4. Target and build default to nonopt.
1053 # 5. If nonopt is not specified, then target and build default to host.
1055 # The aliases save the names the user supplied, while $host etc.
1056 # will get canonicalized.
1057 case $host---$target---$nonopt in
1058 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1059 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1063 # Make sure we can run config.sub.
1064 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1065 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1068 echo $ac_n "checking host system type""... $ac_c" 1>&6
1069 echo "configure:1070: checking host system type" >&5
1072 case "$host_alias" in
1076 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1077 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1079 *) host_alias
=$nonopt ;;
1083 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1084 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1085 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1086 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1087 echo "$ac_t""$host" 1>&6
1089 echo $ac_n "checking target system type""... $ac_c" 1>&6
1090 echo "configure:1091: checking target system type" >&5
1092 target_alias
=$target
1093 case "$target_alias" in
1096 NONE
) target_alias
=$host_alias ;;
1097 *) target_alias
=$nonopt ;;
1101 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1102 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105 echo "$ac_t""$target" 1>&6
1107 echo $ac_n "checking build system type""... $ac_c" 1>&6
1108 echo "configure:1109: checking build system type" >&5
1111 case "$build_alias" in
1114 NONE
) build_alias
=$host_alias ;;
1115 *) build_alias
=$nonopt ;;
1119 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1120 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 echo "$ac_t""$build" 1>&6
1125 test "$host_alias" != "$target_alias" &&
1126 test "$program_prefix$program_suffix$program_transform_name" = \
1128 program_prefix
=${target_alias}-
1132 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1133 echo "configure:1134: checking whether ${MAKE-make} sets \${MAKE}" >&5
1134 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1135 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 cat > conftestmake
<<\EOF
1140 @
echo 'ac_maketemp="${MAKE}"'
1142 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1143 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1144 if test -n "$ac_maketemp"; then
1145 eval ac_cv_prog_make_
${ac_make}_set
=yes
1147 eval ac_cv_prog_make_
${ac_make}_set
=no
1151 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1152 echo "$ac_t""yes" 1>&6
1155 echo "$ac_t""no" 1>&6
1156 SET_MAKE
="MAKE=${MAKE-make}"
1159 # Extract the first word of "ranlib", so it can be a program name with args.
1160 set dummy ranlib
; ac_word
=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$RANLIB"; then
1167 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1171 for ac_dir
in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir
=.
1173 if test -f $ac_dir/$ac_word; then
1174 ac_cv_prog_RANLIB
="ranlib"
1179 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1182 RANLIB
="$ac_cv_prog_RANLIB"
1183 if test -n "$RANLIB"; then
1184 echo "$ac_t""$RANLIB" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1190 echo "configure:1191: checking for ANSI C header files" >&5
1191 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1202 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1203 { (eval echo configure
:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1204 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1205 if test -z "$ac_err"; then
1207 ac_cv_header_stdc
=yes
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1213 ac_cv_header_stdc
=no
1217 if test $ac_cv_header_stdc = yes; then
1218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1219 cat > conftest.
$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1225 egrep "memchr" >/dev
/null
2>&1; then
1229 ac_cv_header_stdc
=no
1235 if test $ac_cv_header_stdc = yes; then
1236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1243 egrep "free" >/dev
/null
2>&1; then
1247 ac_cv_header_stdc
=no
1253 if test $ac_cv_header_stdc = yes; then
1254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1255 if test "$cross_compiling" = yes; then
1258 cat > conftest.
$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1262 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1263 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1265 int main () { int i; for (i = 0; i < 256; i++)
1266 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1270 if { (eval echo configure
:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1274 echo "configure: failed program was:" >&5
1275 cat conftest.
$ac_ext >&5
1277 ac_cv_header_stdc
=no
1285 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1286 if test $ac_cv_header_stdc = yes; then
1287 cat >> confdefs.h
<<\EOF
1288 #define STDC_HEADERS 1
1293 echo $ac_n "checking for working const""... $ac_c" 1>&6
1294 echo "configure:1295: checking for working const" >&5
1295 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.
$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1304 /* Ultrix mips cc rejects this. */
1305 typedef int charset[2]; const charset x;
1306 /* SunOS 4.1.1 cc rejects this. */
1307 char const *const *ccp;
1309 /* NEC SVR4.0.2 mips cc rejects this. */
1310 struct point {int x, y;};
1311 static struct point const zero = {0,0};
1312 /* AIX XL C 1.02.0.0 rejects this.
1313 It does not let you subtract one const X* pointer from another in an arm
1314 of an if-expression whose if-part is not a constant expression */
1315 const char *g = "string";
1316 ccp = &g + (g ? g-g : 0);
1317 /* HPUX 7.0 cc rejects these. */
1320 ccp = (char const *const *) p;
1321 { /* SCO 3.2v4 cc rejects this. */
1323 char const *s = 0 ? (char *) 0 : (char const *) 0;
1327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1329 const int *foo = &x[0];
1332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1333 typedef const int *iptr;
1337 { /* AIX XL C 1.02.0.0 rejects this saying
1338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1339 struct s { int j; const int *ap[3]; };
1340 struct s *b; b->j = 5;
1342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1348 if { (eval echo configure
:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1352 echo "configure: failed program was:" >&5
1353 cat conftest.
$ac_ext >&5
1360 echo "$ac_t""$ac_cv_c_const" 1>&6
1361 if test $ac_cv_c_const = no
; then
1362 cat >> confdefs.h
<<\EOF
1368 echo $ac_n "checking for inline""... $ac_c" 1>&6
1369 echo "configure:1370: checking for inline" >&5
1370 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1374 for ac_kw
in inline __inline__ __inline
; do
1375 cat > conftest.
$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1383 if { (eval echo configure
:1384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1385 ac_cv_c_inline
=$ac_kw; break
1387 echo "configure: failed program was:" >&5
1388 cat conftest.
$ac_ext >&5
1395 echo "$ac_t""$ac_cv_c_inline" 1>&6
1396 case "$ac_cv_c_inline" in
1398 no
) cat >> confdefs.h
<<\EOF
1402 *) cat >> confdefs.h
<<EOF
1403 #define inline $ac_cv_c_inline
1408 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1409 echo "configure:1410: checking for off_t" >&5
1410 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 cat > conftest.
$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1416 #include <sys/types.h>
1422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1423 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1425 ac_cv_type_off_t
=yes
1433 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1434 if test $ac_cv_type_off_t = no
; then
1435 cat >> confdefs.h
<<\EOF
1441 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1442 echo "configure:1443: checking for size_t" >&5
1443 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 cat > conftest.
$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 #include <sys/types.h>
1455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1456 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1458 ac_cv_type_size_t
=yes
1461 ac_cv_type_size_t
=no
1466 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1467 if test $ac_cv_type_size_t = no
; then
1468 cat >> confdefs.h
<<\EOF
1469 #define size_t unsigned
1474 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1475 # for constant arguments. Useless!
1476 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1477 echo "configure:1478: checking for working alloca.h" >&5
1478 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1486 char *p = alloca(2 * sizeof(int));
1489 if { (eval echo configure
:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1491 ac_cv_header_alloca_h
=yes
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 ac_cv_header_alloca_h
=no
1501 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1502 if test $ac_cv_header_alloca_h = yes; then
1503 cat >> confdefs.h
<<\EOF
1504 #define HAVE_ALLOCA_H 1
1509 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1510 echo "configure:1511: checking for alloca" >&5
1511 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1519 # define alloca __builtin_alloca
1522 # include <malloc.h>
1523 # define alloca _alloca
1526 # include <alloca.h>
1531 # ifndef alloca /* predefined by HP cc +Olibcalls */
1540 char *p = (char *) alloca(1);
1543 if { (eval echo configure
:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1545 ac_cv_func_alloca_works
=yes
1547 echo "configure: failed program was:" >&5
1548 cat conftest.
$ac_ext >&5
1550 ac_cv_func_alloca_works
=no
1555 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1556 if test $ac_cv_func_alloca_works = yes; then
1557 cat >> confdefs.h
<<\EOF
1558 #define HAVE_ALLOCA 1
1563 if test $ac_cv_func_alloca_works = no
; then
1564 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1565 # that cause trouble. Some versions do not even contain alloca or
1566 # contain a buggy version. If you still want to use their alloca,
1567 # use ar to extract alloca.o from them instead of compiling alloca.c.
1568 ALLOCA
=alloca.
${ac_objext}
1569 cat >> confdefs.h
<<\EOF
1574 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1575 echo "configure:1576: checking whether alloca needs Cray hooks" >&5
1576 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 cat > conftest.
$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582 #if defined(CRAY) && ! defined(CRAY2)
1589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1590 egrep "webecray" >/dev
/null
2>&1; then
1601 echo "$ac_t""$ac_cv_os_cray" 1>&6
1602 if test $ac_cv_os_cray = yes; then
1603 for ac_func
in _getb67 GETB67 getb67
; do
1604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1605 echo "configure:1606: checking for $ac_func" >&5
1606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 cat > conftest.
$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 /* System header to define __stub macros and hopefully few prototypes,
1613 which can conflict with char $ac_func(); below. */
1615 /* Override any gcc2 internal prototype to avoid an error. */
1616 /* We use char because int might match the return type of a gcc2
1617 builtin and then its argument prototype would still apply. */
1622 /* The GNU C library defines this for functions which it implements
1623 to always fail with ENOSYS. Some functions are actually named
1624 something starting with __ and the normal name is an alias. */
1625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1633 if { (eval echo configure
:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1635 eval "ac_cv_func_$ac_func=yes"
1637 echo "configure: failed program was:" >&5
1638 cat conftest.
$ac_ext >&5
1640 eval "ac_cv_func_$ac_func=no"
1645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1647 cat >> confdefs.h
<<EOF
1648 #define CRAY_STACKSEG_END $ac_func
1653 echo "$ac_t""no" 1>&6
1659 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1660 echo "configure:1661: checking stack direction for C alloca" >&5
1661 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 if test "$cross_compiling" = yes; then
1665 ac_cv_c_stack_direction
=0
1667 cat > conftest.
$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 find_stack_direction ()
1672 static char *addr = 0;
1677 return find_stack_direction ();
1680 return (&dummy > addr) ? 1 : -1;
1684 exit (find_stack_direction() < 0);
1687 if { (eval echo configure
:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1689 ac_cv_c_stack_direction
=1
1691 echo "configure: failed program was:" >&5
1692 cat conftest.
$ac_ext >&5
1694 ac_cv_c_stack_direction
=-1
1701 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1702 cat >> confdefs.h
<<EOF
1703 #define STACK_DIRECTION $ac_cv_c_stack_direction
1708 for ac_hdr
in unistd.h
1710 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1712 echo "configure:1713: checking for $ac_hdr" >&5
1713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1716 cat > conftest.
$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722 { (eval echo configure
:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1724 if test -z "$ac_err"; then
1726 eval "ac_cv_header_$ac_safe=yes"
1729 echo "configure: failed program was:" >&5
1730 cat conftest.
$ac_ext >&5
1732 eval "ac_cv_header_$ac_safe=no"
1736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1737 echo "$ac_t""yes" 1>&6
1738 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1739 cat >> confdefs.h
<<EOF
1740 #define $ac_tr_hdr 1
1744 echo "$ac_t""no" 1>&6
1748 for ac_func
in getpagesize
1750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_func" >&5
1752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.
$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char $ac_func(); below. */
1761 /* Override any gcc2 internal prototype to avoid an error. */
1762 /* We use char because int might match the return type of a gcc2
1763 builtin and then its argument prototype would still apply. */
1768 /* The GNU C library defines this for functions which it implements
1769 to always fail with ENOSYS. Some functions are actually named
1770 something starting with __ and the normal name is an alias. */
1771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1779 if { (eval echo configure
:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1781 eval "ac_cv_func_$ac_func=yes"
1783 echo "configure: failed program was:" >&5
1784 cat conftest.
$ac_ext >&5
1786 eval "ac_cv_func_$ac_func=no"
1791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1794 cat >> confdefs.h
<<EOF
1795 #define $ac_tr_func 1
1799 echo "$ac_t""no" 1>&6
1803 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1804 echo "configure:1805: checking for working mmap" >&5
1805 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 if test "$cross_compiling" = yes; then
1809 ac_cv_func_mmap_fixed_mapped
=no
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1815 /* Thanks to Mike Haertel and Jim Avera for this test.
1816 Here is a matrix of mmap possibilities:
1817 mmap private not fixed
1818 mmap private fixed at somewhere currently unmapped
1819 mmap private fixed at somewhere already mapped
1820 mmap shared not fixed
1821 mmap shared fixed at somewhere currently unmapped
1822 mmap shared fixed at somewhere already mapped
1823 For private mappings, we should verify that changes cannot be read()
1824 back from the file, nor mmap's back from the file at a different
1825 address. (There have been systems where private was not correctly
1826 implemented like the infamous i386 svr4.0, and systems where the
1827 VM page cache was not coherent with the filesystem buffer cache
1828 like early versions of FreeBSD and possibly contemporary NetBSD.)
1829 For shared mappings, we should conversely verify that changes get
1830 propogated back to all the places they're supposed to be.
1832 Grep wants private fixed already mapped.
1833 The main things grep needs to know about mmap are:
1834 * does it exist and is it safe to write into the mmap'd area
1835 * how to use it (BSD variants) */
1836 #include <sys/types.h>
1838 #include <sys/mman.h>
1840 /* This mess was copied from the GNU getpagesize.h. */
1841 #ifndef HAVE_GETPAGESIZE
1842 # ifdef HAVE_UNISTD_H
1843 # include <unistd.h>
1846 /* Assume that all systems that can run configure have sys/param.h. */
1847 # ifndef HAVE_SYS_PARAM_H
1848 # define HAVE_SYS_PARAM_H 1
1851 # ifdef _SC_PAGESIZE
1852 # define getpagesize() sysconf(_SC_PAGESIZE)
1853 # else /* no _SC_PAGESIZE */
1854 # ifdef HAVE_SYS_PARAM_H
1855 # include <sys/param.h>
1856 # ifdef EXEC_PAGESIZE
1857 # define getpagesize() EXEC_PAGESIZE
1858 # else /* no EXEC_PAGESIZE */
1860 # define getpagesize() NBPG * CLSIZE
1863 # endif /* no CLSIZE */
1864 # else /* no NBPG */
1866 # define getpagesize() NBPC
1867 # else /* no NBPC */
1869 # define getpagesize() PAGESIZE
1870 # endif /* PAGESIZE */
1871 # endif /* no NBPC */
1872 # endif /* no NBPG */
1873 # endif /* no EXEC_PAGESIZE */
1874 # else /* no HAVE_SYS_PARAM_H */
1875 # define getpagesize() 8192 /* punt totally */
1876 # endif /* no HAVE_SYS_PARAM_H */
1877 # endif /* no _SC_PAGESIZE */
1879 #endif /* no HAVE_GETPAGESIZE */
1882 extern "C" { void *malloc(unsigned); }
1890 char *data, *data2, *data3;
1894 pagesize = getpagesize();
1897 * First, make a file with some known garbage in it.
1899 data = malloc(pagesize);
1902 for (i = 0; i < pagesize; ++i)
1903 *(data + i) = rand();
1905 fd = creat("conftestmmap", 0600);
1908 if (write(fd, data, pagesize) != pagesize)
1913 * Next, try to mmap the file at a fixed address which
1914 * already has something else allocated at it. If we can,
1915 * also make sure that we see the same garbage.
1917 fd = open("conftestmmap", O_RDWR);
1920 data2 = malloc(2 * pagesize);
1923 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1924 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1927 for (i = 0; i < pagesize; ++i)
1928 if (*(data + i) != *(data2 + i))
1932 * Finally, make sure that changes to the mapped area
1933 * do not percolate back to the file as seen by read().
1934 * (This is a bug on some variants of i386 svr4.0.)
1936 for (i = 0; i < pagesize; ++i)
1937 *(data2 + i) = *(data2 + i) + 1;
1938 data3 = malloc(pagesize);
1941 if (read(fd, data3, pagesize) != pagesize)
1943 for (i = 0; i < pagesize; ++i)
1944 if (*(data + i) != *(data3 + i))
1947 unlink("conftestmmap");
1952 if { (eval echo configure
:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1954 ac_cv_func_mmap_fixed_mapped
=yes
1956 echo "configure: failed program was:" >&5
1957 cat conftest.
$ac_ext >&5
1959 ac_cv_func_mmap_fixed_mapped
=no
1966 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1967 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1968 cat >> confdefs.h
<<\EOF
1975 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1976 unistd.h values.h sys
/param.h
1978 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1980 echo "configure:1981: checking for $ac_hdr" >&5
1981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 cat > conftest.
$ac_ext <<EOF
1985 #line 1986 "configure"
1986 #include "confdefs.h"
1989 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1990 { (eval echo configure
:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1991 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1992 if test -z "$ac_err"; then
1994 eval "ac_cv_header_$ac_safe=yes"
1997 echo "configure: failed program was:" >&5
1998 cat conftest.
$ac_ext >&5
2000 eval "ac_cv_header_$ac_safe=no"
2004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2006 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2007 cat >> confdefs.h
<<EOF
2008 #define $ac_tr_hdr 1
2012 echo "$ac_t""no" 1>&6
2016 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2017 __argz_count __argz_stringify __argz_next
2019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_func" >&5
2021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 cat > conftest.
$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 /* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $ac_func(); below. */
2030 /* Override any gcc2 internal prototype to avoid an error. */
2031 /* We use char because int might match the return type of a gcc2
2032 builtin and then its argument prototype would still apply. */
2037 /* The GNU C library defines this for functions which it implements
2038 to always fail with ENOSYS. Some functions are actually named
2039 something starting with __ and the normal name is an alias. */
2040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2048 if { (eval echo configure
:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2050 eval "ac_cv_func_$ac_func=yes"
2052 echo "configure: failed program was:" >&5
2053 cat conftest.
$ac_ext >&5
2055 eval "ac_cv_func_$ac_func=no"
2060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2061 echo "$ac_t""yes" 1>&6
2062 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2063 cat >> confdefs.h
<<EOF
2064 #define $ac_tr_func 1
2068 echo "$ac_t""no" 1>&6
2073 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2074 for ac_func
in stpcpy
2076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_func" >&5
2078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $ac_func(); below. */
2087 /* Override any gcc2 internal prototype to avoid an error. */
2088 /* We use char because int might match the return type of a gcc2
2089 builtin and then its argument prototype would still apply. */
2094 /* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */
2097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2105 if { (eval echo configure
:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2107 eval "ac_cv_func_$ac_func=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.
$ac_ext >&5
2112 eval "ac_cv_func_$ac_func=no"
2117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2119 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2120 cat >> confdefs.h
<<EOF
2121 #define $ac_tr_func 1
2125 echo "$ac_t""no" 1>&6
2130 if test "${ac_cv_func_stpcpy}" = "yes"; then
2131 cat >> confdefs.h
<<\EOF
2132 #define HAVE_STPCPY 1
2137 if test $ac_cv_header_locale_h = yes; then
2138 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2139 echo "configure:2140: checking for LC_MESSAGES" >&5
2140 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 cat > conftest.
$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2151 if { (eval echo configure
:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2153 am_cv_val_LC_MESSAGES
=yes
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 am_cv_val_LC_MESSAGES
=no
2163 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2164 if test $am_cv_val_LC_MESSAGES = yes; then
2165 cat >> confdefs.h
<<\EOF
2166 #define HAVE_LC_MESSAGES 1
2171 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2172 echo "configure:2173: checking whether NLS is requested" >&5
2173 # Check whether --enable-nls or --disable-nls was given.
2174 if test "${enable_nls+set}" = set; then
2175 enableval
="$enable_nls"
2181 echo "$ac_t""$USE_NLS" 1>&6
2184 USE_INCLUDED_LIBINTL
=no
2186 if test "$USE_NLS" = "yes"; then
2187 cat >> confdefs.h
<<\EOF
2188 #define ENABLE_NLS 1
2191 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2192 echo "configure:2193: checking whether included gettext is requested" >&5
2193 # Check whether --with-included-gettext or --without-included-gettext was given.
2194 if test "${with_included_gettext+set}" = set; then
2195 withval
="$with_included_gettext"
2196 nls_cv_force_use_gnu_gettext
=$withval
2198 nls_cv_force_use_gnu_gettext
=no
2201 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2203 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2204 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2206 nls_cv_header_libgt
=
2209 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2210 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2211 echo "configure:2212: checking for libintl.h" >&5
2212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 #include <libintl.h>
2220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2221 { (eval echo configure
:2222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2222 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2223 if test -z "$ac_err"; then
2225 eval "ac_cv_header_$ac_safe=yes"
2228 echo "configure: failed program was:" >&5
2229 cat conftest.
$ac_ext >&5
2231 eval "ac_cv_header_$ac_safe=no"
2235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2237 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2238 echo "configure:2239: checking for gettext in libc" >&5
2239 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 #include <libintl.h>
2247 return (int) gettext ("")
2250 if { (eval echo configure
:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2252 gt_cv_func_gettext_libc
=yes
2254 echo "configure: failed program was:" >&5
2255 cat conftest.
$ac_ext >&5
2257 gt_cv_func_gettext_libc
=no
2262 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2264 if test "$gt_cv_func_gettext_libc" != "yes"; then
2265 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2266 echo "configure:2267: checking for bindtextdomain in -lintl" >&5
2267 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 ac_save_LIBS
="$LIBS"
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* Override any gcc2 internal prototype to avoid an error. */
2277 /* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */
2279 char bindtextdomain();
2285 if { (eval echo configure
:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 eval "ac_cv_lib_$ac_lib_var=no"
2295 LIBS
="$ac_save_LIBS"
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2301 echo "configure:2302: checking for gettext in libintl" >&5
2302 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2310 return (int) gettext ("")
2313 if { (eval echo configure
:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2315 gt_cv_func_gettext_libintl
=yes
2317 echo "configure: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2320 gt_cv_func_gettext_libintl
=no
2325 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2327 echo "$ac_t""no" 1>&6
2332 if test "$gt_cv_func_gettext_libc" = "yes" \
2333 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2334 cat >> confdefs.h
<<\EOF
2335 #define HAVE_GETTEXT 1
2338 # Extract the first word of "msgfmt", so it can be a program name with args.
2339 set dummy msgfmt
; ac_word
=$2
2340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_word" >&5
2342 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2347 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2350 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2351 for ac_dir
in $PATH; do
2352 test -z "$ac_dir" && ac_dir
=.
2353 if test -f $ac_dir/$ac_word; then
2354 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2355 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2361 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2365 MSGFMT
="$ac_cv_path_MSGFMT"
2366 if test -n "$MSGFMT"; then
2367 echo "$ac_t""$MSGFMT" 1>&6
2369 echo "$ac_t""no" 1>&6
2371 if test "$MSGFMT" != "no"; then
2372 for ac_func
in dcgettext
2374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_func" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.
$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2392 /* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2403 if { (eval echo configure
:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2405 eval "ac_cv_func_$ac_func=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 eval "ac_cv_func_$ac_func=no"
2415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2418 cat >> confdefs.h
<<EOF
2419 #define $ac_tr_func 1
2423 echo "$ac_t""no" 1>&6
2427 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2428 set dummy gmsgfmt
; ac_word
=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2436 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2439 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2442 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2444 for ac_dir
in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir
=.
2446 if test -f $ac_dir/$ac_word; then
2447 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2452 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2456 GMSGFMT
="$ac_cv_path_GMSGFMT"
2457 if test -n "$GMSGFMT"; then
2458 echo "$ac_t""$GMSGFMT" 1>&6
2460 echo "$ac_t""no" 1>&6
2463 # Extract the first word of "xgettext", so it can be a program name with args.
2464 set dummy xgettext
; ac_word
=$2
2465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_word" >&5
2467 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2472 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2475 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2476 for ac_dir
in $PATH; do
2477 test -z "$ac_dir" && ac_dir
=.
2478 if test -f $ac_dir/$ac_word; then
2479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2480 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2490 XGETTEXT
="$ac_cv_path_XGETTEXT"
2491 if test -n "$XGETTEXT"; then
2492 echo "$ac_t""$XGETTEXT" 1>&6
2494 echo "$ac_t""no" 1>&6
2497 cat > conftest.
$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2502 extern int _nl_msg_cat_cntr;
2503 return _nl_msg_cat_cntr
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2511 echo "configure: failed program was:" >&5
2512 cat conftest.
$ac_ext >&5
2523 echo "$ac_t""no" 1>&6
2528 if test "$CATOBJEXT" = "NONE"; then
2529 nls_cv_use_gnu_gettext
=yes
2533 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2534 INTLOBJS
="\$(GETTOBJS)"
2535 # Extract the first word of "msgfmt", so it can be a program name with args.
2536 set dummy msgfmt
; ac_word
=$2
2537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_word" >&5
2539 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2544 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2547 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2548 for ac_dir
in $PATH; do
2549 test -z "$ac_dir" && ac_dir
=.
2550 if test -f $ac_dir/$ac_word; then
2551 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2552 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2558 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2562 MSGFMT
="$ac_cv_path_MSGFMT"
2563 if test -n "$MSGFMT"; then
2564 echo "$ac_t""$MSGFMT" 1>&6
2566 echo "$ac_t""no" 1>&6
2569 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2570 set dummy gmsgfmt
; ac_word
=$2
2571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_word" >&5
2573 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2578 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2581 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2584 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2586 for ac_dir
in $ac_dummy; do
2587 test -z "$ac_dir" && ac_dir
=.
2588 if test -f $ac_dir/$ac_word; then
2589 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2594 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2598 GMSGFMT
="$ac_cv_path_GMSGFMT"
2599 if test -n "$GMSGFMT"; then
2600 echo "$ac_t""$GMSGFMT" 1>&6
2602 echo "$ac_t""no" 1>&6
2605 # Extract the first word of "xgettext", so it can be a program name with args.
2606 set dummy xgettext
; ac_word
=$2
2607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_word" >&5
2609 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2614 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2618 for ac_dir
in $PATH; do
2619 test -z "$ac_dir" && ac_dir
=.
2620 if test -f $ac_dir/$ac_word; then
2621 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2622 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2628 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2632 XGETTEXT
="$ac_cv_path_XGETTEXT"
2633 if test -n "$XGETTEXT"; then
2634 echo "$ac_t""$XGETTEXT" 1>&6
2636 echo "$ac_t""no" 1>&6
2640 USE_INCLUDED_LIBINTL
=yes
2644 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2646 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2647 nls_cv_header_intl
=libintl.h
2648 nls_cv_header_libgt
=libgettext.h
2651 if test "$XGETTEXT" != ":"; then
2652 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2655 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2660 # We need to process the po/ directory.
2664 nls_cv_header_intl
=libintl.h
2665 nls_cv_header_libgt
=libgettext.h
2668 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2669 # because some of the sources are only built for this goal.
2670 if test "$PACKAGE" = gettext; then
2672 USE_INCLUDED_LIBINTL
=yes
2675 for lang
in $ALL_LINGUAS; do
2676 GMOFILES
="$GMOFILES $lang.gmo"
2677 POFILES
="$POFILES $lang.po"
2693 if test "x$CATOBJEXT" != "x"; then
2694 if test "x$ALL_LINGUAS" = "x"; then
2697 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2698 echo "configure:2699: checking for catalogs to be installed" >&5
2700 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2701 case "$ALL_LINGUAS" in
2702 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2705 LINGUAS
=$NEW_LINGUAS
2706 echo "$ac_t""$LINGUAS" 1>&6
2709 if test -n "$LINGUAS"; then
2710 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2714 if test $ac_cv_header_locale_h = yes; then
2715 INCLUDE_LOCALE_H
="#include <locale.h>"
2718 /* The system does not provide the header <locale.h>. Take care yourself. */"
2722 if test -f $srcdir/po2tbl.
sed.
in; then
2723 if test "$CATOBJEXT" = ".cat"; then
2724 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2725 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2726 echo "configure:2727: checking for linux/version.h" >&5
2727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 cat > conftest.
$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 #include <linux/version.h>
2735 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2736 { (eval echo configure
:2737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2737 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2738 if test -z "$ac_err"; then
2740 eval "ac_cv_header_$ac_safe=yes"
2743 echo "configure: failed program was:" >&5
2744 cat conftest.
$ac_ext >&5
2746 eval "ac_cv_header_$ac_safe=no"
2750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2751 echo "$ac_t""yes" 1>&6
2754 echo "$ac_t""no" 1>&6
2759 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2761 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2762 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2765 if test "$PACKAGE" = "gettext"; then
2775 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2781 if test -d $srcdir/po
; then
2782 test -d po || mkdir po
2783 if test "x$srcdir" != "x."; then
2784 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2785 posrcprefix
="$srcdir/"
2787 posrcprefix
="../$srcdir/"
2793 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2794 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2809 configdirs
="doc testsuite"
2811 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2812 if test "${enable_multi_ice+set}" = set; then
2813 enableval
="$enable_multi_ice"
2814 case "${enableval}" in
2815 yes ) enable_multi_ice
="yes" ;;
2816 no
) enable_multi_ice
="no" ;;
2817 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2823 if test "${enable_multi_ice}" = "yes"; then
2824 configdirs
="${configdirs} multi-ice"
2828 .
${srcdir}/configure.
host
2830 .
${srcdir}/configure.tgt
2833 for ac_prog
in mawk gawk nawk
awk
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy
$ac_prog; ac_word
=$2
2837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_word" >&5
2839 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 if test -n "$AWK"; then
2843 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2847 for ac_dir
in $ac_dummy; do
2848 test -z "$ac_dir" && ac_dir
=.
2849 if test -f $ac_dir/$ac_word; then
2850 ac_cv_prog_AWK
="$ac_prog"
2857 AWK
="$ac_cv_prog_AWK"
2858 if test -n "$AWK"; then
2859 echo "$ac_t""$AWK" 1>&6
2861 echo "$ac_t""no" 1>&6
2864 test -n "$AWK" && break
2867 # Find a good install program. We prefer a C program (faster),
2868 # so one script is as good as another. But avoid the broken or
2869 # incompatible versions:
2870 # SysV /etc/install, /usr/sbin/install
2871 # SunOS /usr/etc/install
2872 # IRIX /sbin/install
2874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2877 # ./install, which can be erroneously created by make from ./install.sh.
2878 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2879 echo "configure:2880: checking for a BSD compatible install" >&5
2880 if test -z "$INSTALL"; then
2881 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2885 for ac_dir
in $PATH; do
2886 # Account for people who put trailing slashes in PATH elements.
2888 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2890 # OSF1 and SCO ODT 3.0 have their own names for install.
2891 # Don't use installbsd from OSF since it installs stuff as root
2893 for ac_prog
in ginstall scoinst
install; do
2894 if test -f $ac_dir/$ac_prog; then
2895 if test $ac_prog = install &&
2896 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2897 # AIX install. It has an incompatible calling convention.
2900 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2911 if test "${ac_cv_path_install+set}" = set; then
2912 INSTALL
="$ac_cv_path_install"
2914 # As a last resort, use the slow shell script. We don't cache a
2915 # path for INSTALL within a source directory, because that will
2916 # break other packages using the cache if that directory is
2917 # removed, or if the path is relative.
2918 INSTALL
="$ac_install_sh"
2921 echo "$ac_t""$INSTALL" 1>&6
2923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2924 # It thinks the first close brace ends the variable substitution.
2925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2929 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2931 if test $host != $build; then
2932 ac_tool_prefix
=${host_alias}-
2937 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2938 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2940 echo "configure:2941: checking for $ac_word" >&5
2941 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 if test -n "$AR"; then
2945 ac_cv_prog_AR
="$AR" # Let the user override the test.
2947 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2949 for ac_dir
in $ac_dummy; do
2950 test -z "$ac_dir" && ac_dir
=.
2951 if test -f $ac_dir/$ac_word; then
2952 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2957 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2961 if test -n "$AR"; then
2962 echo "$ac_t""$AR" 1>&6
2964 echo "$ac_t""no" 1>&6
2969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2970 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_word" >&5
2973 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 if test -n "$RANLIB"; then
2977 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2979 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2981 for ac_dir
in $ac_dummy; do
2982 test -z "$ac_dir" && ac_dir
=.
2983 if test -f $ac_dir/$ac_word; then
2984 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2991 RANLIB
="$ac_cv_prog_RANLIB"
2992 if test -n "$RANLIB"; then
2993 echo "$ac_t""$RANLIB" 1>&6
2995 echo "$ac_t""no" 1>&6
2999 if test -z "$ac_cv_prog_RANLIB"; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "ranlib", so it can be a program name with args.
3002 set dummy ranlib
; ac_word
=$2
3003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3004 echo "configure:3005: checking for $ac_word" >&5
3005 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 if test -n "$RANLIB"; then
3009 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3013 for ac_dir
in $ac_dummy; do
3014 test -z "$ac_dir" && ac_dir
=.
3015 if test -f $ac_dir/$ac_word; then
3016 ac_cv_prog_RANLIB
="ranlib"
3021 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3024 RANLIB
="$ac_cv_prog_RANLIB"
3025 if test -n "$RANLIB"; then
3026 echo "$ac_t""$RANLIB" 1>&6
3028 echo "$ac_t""no" 1>&6
3036 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3037 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3039 echo "configure:3040: checking for $ac_word" >&5
3040 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 if test -n "$DLLTOOL"; then
3044 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3046 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3048 for ac_dir
in $ac_dummy; do
3049 test -z "$ac_dir" && ac_dir
=.
3050 if test -f $ac_dir/$ac_word; then
3051 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3056 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3059 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3060 if test -n "$DLLTOOL"; then
3061 echo "$ac_t""$DLLTOOL" 1>&6
3063 echo "$ac_t""no" 1>&6
3068 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3069 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3071 echo "configure:3072: checking for $ac_word" >&5
3072 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 if test -n "$WINDRES"; then
3076 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3080 for ac_dir
in $ac_dummy; do
3081 test -z "$ac_dir" && ac_dir
=.
3082 if test -f $ac_dir/$ac_word; then
3083 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3088 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3091 WINDRES
="$ac_cv_prog_WINDRES"
3092 if test -n "$WINDRES"; then
3093 echo "$ac_t""$WINDRES" 1>&6
3095 echo "$ac_t""no" 1>&6
3100 for ac_prog
in 'bison -y' byacc
3102 # Extract the first word of "$ac_prog", so it can be a program name with args.
3103 set dummy
$ac_prog; ac_word
=$2
3104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3105 echo "configure:3106: checking for $ac_word" >&5
3106 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 if test -n "$YACC"; then
3110 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3114 for ac_dir
in $ac_dummy; do
3115 test -z "$ac_dir" && ac_dir
=.
3116 if test -f $ac_dir/$ac_word; then
3117 ac_cv_prog_YACC
="$ac_prog"
3124 YACC
="$ac_cv_prog_YACC"
3125 if test -n "$YACC"; then
3126 echo "$ac_t""$YACC" 1>&6
3128 echo "$ac_t""no" 1>&6
3131 test -n "$YACC" && break
3133 test -n "$YACC" || YACC
="yacc"
3136 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3137 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_word" >&5
3140 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 if test -n "$MIG"; then
3144 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3148 for ac_dir
in $ac_dummy; do
3149 test -z "$ac_dir" && ac_dir
=.
3150 if test -f $ac_dir/$ac_word; then
3151 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3156 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3159 MIG
="$ac_cv_prog_MIG"
3160 if test -n "$MIG"; then
3161 echo "$ac_t""$MIG" 1>&6
3163 echo "$ac_t""no" 1>&6
3169 if test "$program_transform_name" = s
,x
,x
,; then
3170 program_transform_name
=
3172 # Double any \ or $. echo might interpret backslashes.
3173 cat <<\EOF_SED
> conftestsed
3174 s
,\\,\\\\,g
; s
,\$
,$$
,g
3176 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3179 test "$program_prefix" != NONE
&&
3180 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3181 # Use a double $ so make ignores it.
3182 test "$program_suffix" != NONE
&&
3183 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3185 # sed with no file args requires a program.
3186 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3189 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3190 echo "configure:3191: checking return type of signal handlers" >&5
3191 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #include <sys/types.h>
3203 extern "C" void (*signal (int, void (*)(int)))(int);
3205 void (*signal ()) ();
3212 if { (eval echo configure
:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3214 ac_cv_type_signal
=void
3216 echo "configure: failed program was:" >&5
3217 cat conftest.
$ac_ext >&5
3219 ac_cv_type_signal
=int
3224 echo "$ac_t""$ac_cv_type_signal" 1>&6
3225 cat >> confdefs.h
<<EOF
3226 #define RETSIGTYPE $ac_cv_type_signal
3231 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3232 echo "configure:3233: checking for ANSI C header files" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3244 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3245 { (eval echo configure
:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3246 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247 if test -z "$ac_err"; then
3249 ac_cv_header_stdc
=yes
3252 echo "configure: failed program was:" >&5
3253 cat conftest.
$ac_ext >&5
3255 ac_cv_header_stdc
=no
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267 egrep "memchr" >/dev
/null
2>&1; then
3271 ac_cv_header_stdc
=no
3277 if test $ac_cv_header_stdc = yes; then
3278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3279 cat > conftest.
$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285 egrep "free" >/dev
/null
2>&1; then
3289 ac_cv_header_stdc
=no
3295 if test $ac_cv_header_stdc = yes; then
3296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3297 if test "$cross_compiling" = yes; then
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3304 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3305 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3307 int main () { int i; for (i = 0; i < 256; i++)
3308 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3312 if { (eval echo configure
:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3316 echo "configure: failed program was:" >&5
3317 cat conftest.
$ac_ext >&5
3319 ac_cv_header_stdc
=no
3327 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3328 if test $ac_cv_header_stdc = yes; then
3329 cat >> confdefs.h
<<\EOF
3330 #define STDC_HEADERS 1
3337 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3338 cat >> confdefs.h
<<\EOF
3339 #define _MSE_INT_H 1
3344 for ac_hdr
in ctype.h endian.h link.h thread_db.h proc_service.h \
3345 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3346 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3347 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3348 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3349 time.h sys
/ioctl.h sys
/user.h \
3350 dirent.h sys
/ndir.h sys
/dir.h ndir.h \
3353 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3355 echo "configure:3356: checking for $ac_hdr" >&5
3356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 cat > conftest.
$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3364 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3365 { (eval echo configure
:3366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3366 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3367 if test -z "$ac_err"; then
3369 eval "ac_cv_header_$ac_safe=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.
$ac_ext >&5
3375 eval "ac_cv_header_$ac_safe=no"
3379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3381 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3382 cat >> confdefs.h
<<EOF
3383 #define $ac_tr_hdr 1
3387 echo "$ac_t""no" 1>&6
3391 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3392 echo "configure:3393: checking whether stat file-mode macros are broken" >&5
3393 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3402 #if defined(S_ISBLK) && defined(S_IFDIR)
3403 # if S_ISBLK (S_IFDIR)
3408 #if defined(S_ISBLK) && defined(S_IFCHR)
3409 # if S_ISBLK (S_IFCHR)
3414 #if defined(S_ISLNK) && defined(S_IFREG)
3415 # if S_ISLNK (S_IFREG)
3420 #if defined(S_ISSOCK) && defined(S_IFREG)
3421 # if S_ISSOCK (S_IFREG)
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 egrep "You lose" >/dev
/null
2>&1; then
3430 ac_cv_header_stat_broken
=yes
3433 ac_cv_header_stat_broken
=no
3439 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3440 if test $ac_cv_header_stat_broken = yes; then
3441 cat >> confdefs.h
<<\EOF
3442 #define STAT_MACROS_BROKEN 1
3448 echo $ac_n "checking for working const""... $ac_c" 1>&6
3449 echo "configure:3450: checking for working const" >&5
3450 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 cat > conftest.
$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3459 /* Ultrix mips cc rejects this. */
3460 typedef int charset[2]; const charset x;
3461 /* SunOS 4.1.1 cc rejects this. */
3462 char const *const *ccp;
3464 /* NEC SVR4.0.2 mips cc rejects this. */
3465 struct point {int x, y;};
3466 static struct point const zero = {0,0};
3467 /* AIX XL C 1.02.0.0 rejects this.
3468 It does not let you subtract one const X* pointer from another in an arm
3469 of an if-expression whose if-part is not a constant expression */
3470 const char *g = "string";
3471 ccp = &g + (g ? g-g : 0);
3472 /* HPUX 7.0 cc rejects these. */
3475 ccp = (char const *const *) p;
3476 { /* SCO 3.2v4 cc rejects this. */
3478 char const *s = 0 ? (char *) 0 : (char const *) 0;
3482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3484 const int *foo = &x[0];
3487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3488 typedef const int *iptr;
3492 { /* AIX XL C 1.02.0.0 rejects this saying
3493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3494 struct s { int j; const int *ap[3]; };
3495 struct s *b; b->j = 5;
3497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3503 if { (eval echo configure
:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3507 echo "configure: failed program was:" >&5
3508 cat conftest.
$ac_ext >&5
3515 echo "$ac_t""$ac_cv_c_const" 1>&6
3516 if test $ac_cv_c_const = no
; then
3517 cat >> confdefs.h
<<\EOF
3524 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3527 echo "configure:3528: checking for $ac_func" >&5
3528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.
$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* System header to define __stub macros and hopefully few prototypes,
3535 which can conflict with char $ac_func(); below. */
3537 /* Override any gcc2 internal prototype to avoid an error. */
3538 /* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3544 /* The GNU C library defines this for functions which it implements
3545 to always fail with ENOSYS. Some functions are actually named
3546 something starting with __ and the normal name is an alias. */
3547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3555 if { (eval echo configure
:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3557 eval "ac_cv_func_$ac_func=yes"
3559 echo "configure: failed program was:" >&5
3560 cat conftest.
$ac_ext >&5
3562 eval "ac_cv_func_$ac_func=no"
3567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3569 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3570 cat >> confdefs.h
<<EOF
3571 #define $ac_tr_func 1
3575 echo "$ac_t""no" 1>&6
3579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3580 # for constant arguments. Useless!
3581 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3582 echo "configure:3583: checking for working alloca.h" >&5
3583 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.
$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3591 char *p = alloca(2 * sizeof(int));
3594 if { (eval echo configure
:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3596 ac_cv_header_alloca_h
=yes
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 ac_cv_header_alloca_h
=no
3606 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3607 if test $ac_cv_header_alloca_h = yes; then
3608 cat >> confdefs.h
<<\EOF
3609 #define HAVE_ALLOCA_H 1
3614 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3615 echo "configure:3616: checking for alloca" >&5
3616 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.
$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3624 # define alloca __builtin_alloca
3627 # include <malloc.h>
3628 # define alloca _alloca
3631 # include <alloca.h>
3636 # ifndef alloca /* predefined by HP cc +Olibcalls */
3645 char *p = (char *) alloca(1);
3648 if { (eval echo configure
:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3650 ac_cv_func_alloca_works
=yes
3652 echo "configure: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3655 ac_cv_func_alloca_works
=no
3660 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3661 if test $ac_cv_func_alloca_works = yes; then
3662 cat >> confdefs.h
<<\EOF
3663 #define HAVE_ALLOCA 1
3668 if test $ac_cv_func_alloca_works = no
; then
3669 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3670 # that cause trouble. Some versions do not even contain alloca or
3671 # contain a buggy version. If you still want to use their alloca,
3672 # use ar to extract alloca.o from them instead of compiling alloca.c.
3673 ALLOCA
=alloca.
${ac_objext}
3674 cat >> confdefs.h
<<\EOF
3679 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3680 echo "configure:3681: checking whether alloca needs Cray hooks" >&5
3681 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 cat > conftest.
$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 #if defined(CRAY) && ! defined(CRAY2)
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 egrep "webecray" >/dev
/null
2>&1; then
3706 echo "$ac_t""$ac_cv_os_cray" 1>&6
3707 if test $ac_cv_os_cray = yes; then
3708 for ac_func
in _getb67 GETB67 getb67
; do
3709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3710 echo "configure:3711: checking for $ac_func" >&5
3711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 cat > conftest.
$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 /* System header to define __stub macros and hopefully few prototypes,
3718 which can conflict with char $ac_func(); below. */
3720 /* Override any gcc2 internal prototype to avoid an error. */
3721 /* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3727 /* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3738 if { (eval echo configure
:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3740 eval "ac_cv_func_$ac_func=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.
$ac_ext >&5
3745 eval "ac_cv_func_$ac_func=no"
3750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 cat >> confdefs.h
<<EOF
3753 #define CRAY_STACKSEG_END $ac_func
3758 echo "$ac_t""no" 1>&6
3764 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3765 echo "configure:3766: checking stack direction for C alloca" >&5
3766 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 if test "$cross_compiling" = yes; then
3770 ac_cv_c_stack_direction
=0
3772 cat > conftest.
$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 find_stack_direction ()
3777 static char *addr = 0;
3782 return find_stack_direction ();
3785 return (&dummy > addr) ? 1 : -1;
3789 exit (find_stack_direction() < 0);
3792 if { (eval echo configure
:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3794 ac_cv_c_stack_direction
=1
3796 echo "configure: failed program was:" >&5
3797 cat conftest.
$ac_ext >&5
3799 ac_cv_c_stack_direction
=-1
3806 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3807 cat >> confdefs.h
<<EOF
3808 #define STACK_DIRECTION $ac_cv_c_stack_direction
3814 # See if machine/reg.h supports the %fs and %gs i386 segment registers.
3815 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
3816 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
3817 echo "configure:3818: checking for r_fs in struct reg" >&5
3818 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 cat > conftest.
$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3824 #include <machine/reg.h>
3826 struct reg r; r.r_fs;
3829 if { (eval echo configure
:3830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3831 gdb_cv_struct_reg_r_fs
=yes
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 gdb_cv_struct_reg_r_fs
=no
3841 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
3842 if test $gdb_cv_struct_reg_r_fs = yes; then
3843 cat >> confdefs.h
<<\EOF
3844 #define HAVE_STRUCT_REG_R_FS 1
3848 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
3849 echo "configure:3850: checking for r_gs in struct reg" >&5
3850 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.
$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 #include <machine/reg.h>
3858 struct reg r; r.r_gs;
3861 if { (eval echo configure
:3862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863 gdb_cv_struct_reg_r_gs
=yes
3865 echo "configure: failed program was:" >&5
3866 cat conftest.
$ac_ext >&5
3868 gdb_cv_struct_reg_r_gs
=no
3873 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
3874 if test $gdb_cv_struct_reg_r_gs = yes; then
3875 cat >> confdefs.h
<<\EOF
3876 #define HAVE_STRUCT_REG_R_GS 1
3881 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
3882 echo "configure:3883: checking for PTRACE_GETREGS" >&5
3883 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 #include <sys/ptrace.h>
3894 if { (eval echo configure
:3895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3896 gdb_cv_have_ptrace_getregs
=yes
3898 echo "configure: failed program was:" >&5
3899 cat conftest.
$ac_ext >&5
3901 gdb_cv_have_ptrace_getregs
=no
3906 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
3907 if test $gdb_cv_have_ptrace_getregs = yes; then
3908 cat >> confdefs.h
<<\EOF
3909 #define HAVE_PTRACE_GETREGS 1
3914 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3915 echo "configure:3916: checking for PTRACE_GETXFPREGS" >&5
3916 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.
$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 #include <sys/ptrace.h>
3927 if { (eval echo configure
:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3929 gdb_cv_have_ptrace_getxfpregs
=yes
3931 echo "configure: failed program was:" >&5
3932 cat conftest.
$ac_ext >&5
3934 gdb_cv_have_ptrace_getxfpregs
=no
3939 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3940 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3941 cat >> confdefs.h
<<\EOF
3942 #define HAVE_PTRACE_GETXFPREGS 1
3947 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3948 echo "configure:3949: checking for socketpair in -lsocket" >&5
3949 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 ac_save_LIBS
="$LIBS"
3954 LIBS
="-lsocket $LIBS"
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3967 if { (eval echo configure
:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3969 eval "ac_cv_lib_$ac_lib_var=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.
$ac_ext >&5
3974 eval "ac_cv_lib_$ac_lib_var=no"
3977 LIBS
="$ac_save_LIBS"
3980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3982 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3983 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3984 cat >> confdefs.h
<<EOF
3985 #define $ac_tr_lib 1
3988 LIBS
="-lsocket $LIBS"
3991 echo "$ac_t""no" 1>&6
3994 for ac_func
in socketpair
3996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3997 echo "configure:3998: checking for $ac_func" >&5
3998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* System header to define __stub macros and hopefully few prototypes,
4005 which can conflict with char $ac_func(); below. */
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4014 /* The GNU C library defines this for functions which it implements
4015 to always fail with ENOSYS. Some functions are actually named
4016 something starting with __ and the normal name is an alias. */
4017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4025 if { (eval echo configure
:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4027 eval "ac_cv_func_$ac_func=yes"
4029 echo "configure: failed program was:" >&5
4030 cat conftest.
$ac_ext >&5
4032 eval "ac_cv_func_$ac_func=no"
4037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4040 cat >> confdefs.h
<<EOF
4041 #define $ac_tr_func 1
4045 echo "$ac_t""no" 1>&6
4051 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4052 echo "configure:4053: checking whether malloc must be declared" >&5
4053 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 cat > conftest.
$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4061 #ifdef HAVE_STRING_H
4064 #ifdef HAVE_STRINGS_H
4065 #include <strings.h>
4068 #ifdef HAVE_STDLIB_H
4071 #ifdef HAVE_UNISTD_H
4075 char *(*pfn) = (char *(*)) malloc
4078 if { (eval echo configure
:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 bfd_cv_decl_needed_malloc
=no
4082 echo "configure: failed program was:" >&5
4083 cat conftest.
$ac_ext >&5
4085 bfd_cv_decl_needed_malloc
=yes
4090 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4091 if test $bfd_cv_decl_needed_malloc = yes; then
4092 cat >> confdefs.h
<<\EOF
4093 #define NEED_DECLARATION_MALLOC 1
4098 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4099 echo "configure:4100: checking whether realloc must be declared" >&5
4100 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 cat > conftest.
$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4108 #ifdef HAVE_STRING_H
4111 #ifdef HAVE_STRINGS_H
4112 #include <strings.h>
4115 #ifdef HAVE_STDLIB_H
4118 #ifdef HAVE_UNISTD_H
4122 char *(*pfn) = (char *(*)) realloc
4125 if { (eval echo configure
:4126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 bfd_cv_decl_needed_realloc
=no
4129 echo "configure: failed program was:" >&5
4130 cat conftest.
$ac_ext >&5
4132 bfd_cv_decl_needed_realloc
=yes
4137 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4138 if test $bfd_cv_decl_needed_realloc = yes; then
4139 cat >> confdefs.h
<<\EOF
4140 #define NEED_DECLARATION_REALLOC 1
4145 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4146 echo "configure:4147: checking whether free must be declared" >&5
4147 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4155 #ifdef HAVE_STRING_H
4158 #ifdef HAVE_STRINGS_H
4159 #include <strings.h>
4162 #ifdef HAVE_STDLIB_H
4165 #ifdef HAVE_UNISTD_H
4169 char *(*pfn) = (char *(*)) free
4172 if { (eval echo configure
:4173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4174 bfd_cv_decl_needed_free
=no
4176 echo "configure: failed program was:" >&5
4177 cat conftest.
$ac_ext >&5
4179 bfd_cv_decl_needed_free
=yes
4184 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4185 if test $bfd_cv_decl_needed_free = yes; then
4186 cat >> confdefs.h
<<\EOF
4187 #define NEED_DECLARATION_FREE 1
4192 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4193 echo "configure:4194: checking whether strerror must be declared" >&5
4194 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 cat > conftest.
$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4202 #ifdef HAVE_STRING_H
4205 #ifdef HAVE_STRINGS_H
4206 #include <strings.h>
4209 #ifdef HAVE_STDLIB_H
4212 #ifdef HAVE_UNISTD_H
4216 char *(*pfn) = (char *(*)) strerror
4219 if { (eval echo configure
:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 bfd_cv_decl_needed_strerror
=no
4223 echo "configure: failed program was:" >&5
4224 cat conftest.
$ac_ext >&5
4226 bfd_cv_decl_needed_strerror
=yes
4231 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4232 if test $bfd_cv_decl_needed_strerror = yes; then
4233 cat >> confdefs.h
<<\EOF
4234 #define NEED_DECLARATION_STRERROR 1
4239 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4240 echo "configure:4241: checking whether strdup must be declared" >&5
4241 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 cat > conftest.
$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4249 #ifdef HAVE_STRING_H
4252 #ifdef HAVE_STRINGS_H
4253 #include <strings.h>
4256 #ifdef HAVE_STDLIB_H
4259 #ifdef HAVE_UNISTD_H
4263 char *(*pfn) = (char *(*)) strdup
4266 if { (eval echo configure
:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4268 bfd_cv_decl_needed_strdup
=no
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4273 bfd_cv_decl_needed_strdup
=yes
4278 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4279 if test $bfd_cv_decl_needed_strdup = yes; then
4280 cat >> confdefs.h
<<\EOF
4281 #define NEED_DECLARATION_STRDUP 1
4286 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4287 echo "configure:4288: checking whether strstr must be declared" >&5
4288 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 cat > conftest.
$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4296 #ifdef HAVE_STRING_H
4299 #ifdef HAVE_STRINGS_H
4300 #include <strings.h>
4303 #ifdef HAVE_STDLIB_H
4306 #ifdef HAVE_UNISTD_H
4310 char *(*pfn) = (char *(*)) strstr
4313 if { (eval echo configure
:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4315 bfd_cv_decl_needed_strstr
=no
4317 echo "configure: failed program was:" >&5
4318 cat conftest.
$ac_ext >&5
4320 bfd_cv_decl_needed_strstr
=yes
4325 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4326 if test $bfd_cv_decl_needed_strstr = yes; then
4327 cat >> confdefs.h
<<\EOF
4328 #define NEED_DECLARATION_STRSTR 1
4335 # The following save_state_t checkery is only necessary for HPUX
4336 # versions earlier than 10.20. When those fade from memory, this
4337 # could be expunged. --jsm 1999-03-22
4339 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4340 echo "configure:4341: checking for HPUX save_state structure" >&5
4341 cat > conftest.
$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 #include <machine/save_state.h>
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 egrep "save_state_t" >/dev
/null
2>&1; then
4349 gdb_cv_hpux_savestate
=yes
4352 gdb_cv_hpux_savestate
=no
4356 cat > conftest.
$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 #include <machine/save_state.h>
4361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362 egrep "ss_wide" >/dev
/null
2>&1; then
4364 gdb_cv_hpux_sswide
=yes
4367 gdb_cv_hpux_sswide
=no
4371 if test $gdb_cv_hpux_savestate = yes
4373 cat >> confdefs.h
<<\EOF
4374 #define HAVE_STRUCT_SAVE_STATE_T 1
4378 if test $gdb_cv_hpux_sswide = yes
4380 cat >> confdefs.h
<<\EOF
4381 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4385 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4388 # If we are configured native on GNU/Linux, work around problems with
4390 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4392 if test "${target}" = "${host}"; then
4395 cat >> confdefs.h
<<\EOF
4396 #define START_INFERIOR_TRAPS_EXPECTED 2
4399 cat >> confdefs.h
<<\EOF
4400 #define sys_quotactl 1
4404 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4405 cat >> confdefs.h
<<\EOF
4406 #define NEW_PROC_API 1
4411 cat >> confdefs.h
<<\EOF
4412 #define NEW_PROC_API 1
4419 if test "$ac_cv_header_sys_procfs_h" = yes; then
4420 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4421 echo "configure:4422: checking for pstatus_t in sys/procfs.h" >&5
4422 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 cat > conftest.
$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 #include <sys/procfs.h>
4433 if { (eval echo configure
:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4435 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4437 echo "configure: failed program was:" >&5
4438 cat conftest.
$ac_ext >&5
4440 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4446 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4447 cat >> confdefs.h
<<\EOF
4448 #define HAVE_PSTATUS_T 1
4452 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4454 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4455 echo "configure:4456: checking for prrun_t in sys/procfs.h" >&5
4456 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.
$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4462 #include <sys/procfs.h>
4467 if { (eval echo configure
:4468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4469 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4471 echo "configure: failed program was:" >&5
4472 cat conftest.
$ac_ext >&5
4474 bfd_cv_have_sys_procfs_type_prrun_t
=no
4480 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4481 cat >> confdefs.h
<<\EOF
4482 #define HAVE_PRRUN_T 1
4486 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4488 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4489 echo "configure:4490: checking for gregset_t in sys/procfs.h" >&5
4490 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.
$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 #include <sys/procfs.h>
4501 if { (eval echo configure
:4502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4503 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4505 echo "configure: failed program was:" >&5
4506 cat conftest.
$ac_ext >&5
4508 bfd_cv_have_sys_procfs_type_gregset_t
=no
4514 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4515 cat >> confdefs.h
<<\EOF
4516 #define HAVE_GREGSET_T 1
4520 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4522 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4523 echo "configure:4524: checking for fpregset_t in sys/procfs.h" >&5
4524 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4527 cat > conftest.
$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4530 #include <sys/procfs.h>
4535 if { (eval echo configure
:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4537 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4539 echo "configure: failed program was:" >&5
4540 cat conftest.
$ac_ext >&5
4542 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4548 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4549 cat >> confdefs.h
<<\EOF
4550 #define HAVE_FPREGSET_T 1
4554 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4556 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4557 echo "configure:4558: checking for prgregset_t in sys/procfs.h" >&5
4558 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.
$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <sys/procfs.h>
4569 if { (eval echo configure
:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4571 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4573 echo "configure: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4576 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4582 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4583 cat >> confdefs.h
<<\EOF
4584 #define HAVE_PRGREGSET_T 1
4588 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4590 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4591 echo "configure:4592: checking for prfpregset_t in sys/procfs.h" >&5
4592 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.
$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 #include <sys/procfs.h>
4603 if { (eval echo configure
:4604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4605 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4607 echo "configure: failed program was:" >&5
4608 cat conftest.
$ac_ext >&5
4610 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4616 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4617 cat >> confdefs.h
<<\EOF
4618 #define HAVE_PRFPREGSET_T 1
4622 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4624 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4625 echo "configure:4626: checking for lwpid_t in sys/procfs.h" >&5
4626 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.
$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <sys/procfs.h>
4637 if { (eval echo configure
:4638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4639 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4641 echo "configure: failed program was:" >&5
4642 cat conftest.
$ac_ext >&5
4644 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4650 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4651 cat >> confdefs.h
<<\EOF
4652 #define HAVE_LWPID_T 1
4656 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4658 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4659 echo "configure:4660: checking for psaddr_t in sys/procfs.h" >&5
4660 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 cat > conftest.
$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include <sys/procfs.h>
4671 if { (eval echo configure
:4672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4673 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4675 echo "configure: failed program was:" >&5
4676 cat conftest.
$ac_ext >&5
4678 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4684 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4685 cat >> confdefs.h
<<\EOF
4686 #define HAVE_PSADDR_T 1
4690 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4695 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4696 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
4697 echo "configure:4698: checking whether prfpregset_t type is broken" >&5
4698 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 if test "$cross_compiling" = yes; then
4702 gdb_cv_prfpregset_t_broken
=yes
4704 cat > conftest.
$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 #include <sys/procfs.h>
4710 if (sizeof (prfpregset_t) == sizeof (void *))
4715 if { (eval echo configure
:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4717 gdb_cv_prfpregset_t_broken
=no
4719 echo "configure: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4722 gdb_cv_prfpregset_t_broken
=yes
4729 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
4730 if test $gdb_cv_prfpregset_t_broken = yes; then
4731 cat >> confdefs.h
<<\EOF
4732 #define PRFPREGSET_T_BROKEN 1
4739 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4740 echo "configure:4741: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4741 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 cat > conftest.
$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4748 #include <sys/types.h>
4749 #include <sys/procfs.h>
4754 dummy = ioctl(0, PIOCSET, &dummy);
4758 if { (eval echo configure
:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 gdb_cv_have_procfs_piocset
=yes
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 gdb_cv_have_procfs_piocset
=no
4770 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4771 if test $gdb_cv_have_procfs_piocset = yes; then
4772 cat >> confdefs.h
<<\EOF
4773 #define HAVE_PROCFS_PIOCSET 1
4779 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4780 echo "configure:4781: checking for main in -lm" >&5
4781 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 ac_save_LIBS
="$LIBS"
4787 cat > conftest.
$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4795 if { (eval echo configure
:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4797 eval "ac_cv_lib_$ac_lib_var=yes"
4799 echo "configure: failed program was:" >&5
4800 cat conftest.
$ac_ext >&5
4802 eval "ac_cv_lib_$ac_lib_var=no"
4805 LIBS
="$ac_save_LIBS"
4808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4809 echo "$ac_t""yes" 1>&6
4810 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4812 cat >> confdefs.h
<<EOF
4813 #define $ac_tr_lib 1
4819 echo "$ac_t""no" 1>&6
4823 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4824 echo "configure:4825: checking for wctype in -lc" >&5
4825 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 ac_save_LIBS
="$LIBS"
4831 cat > conftest.
$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 /* Override any gcc2 internal prototype to avoid an error. */
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4843 if { (eval echo configure
:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4845 eval "ac_cv_lib_$ac_lib_var=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.
$ac_ext >&5
4850 eval "ac_cv_lib_$ac_lib_var=no"
4853 LIBS
="$ac_save_LIBS"
4856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4857 echo "$ac_t""yes" 1>&6
4860 echo "$ac_t""no" 1>&6
4861 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4862 echo "configure:4863: checking for wctype in -lw" >&5
4863 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 ac_save_LIBS
="$LIBS"
4869 cat > conftest.
$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4881 if { (eval echo configure
:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.
$ac_ext >&5
4888 eval "ac_cv_lib_$ac_lib_var=no"
4891 LIBS
="$ac_save_LIBS"
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4897 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4898 cat >> confdefs.h
<<EOF
4899 #define $ac_tr_lib 1
4905 echo "$ac_t""no" 1>&6
4912 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4913 echo "configure:4914: checking for long long support in compiler" >&5
4914 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 cat > conftest.
$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4923 extern long long foo;
4924 switch (foo & 2) { case 0: return 1; }
4928 if { (eval echo configure
:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 gdb_cv_c_long_long
=yes
4932 echo "configure: failed program was:" >&5
4933 cat conftest.
$ac_ext >&5
4935 gdb_cv_c_long_long
=no
4940 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4941 if test $gdb_cv_c_long_long = yes; then
4942 cat >> confdefs.h
<<\EOF
4943 #define CC_HAS_LONG_LONG 1
4949 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4950 echo "configure:4951: checking for long long support in printf" >&5
4951 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4954 if test "$cross_compiling" = yes; then
4955 gdb_cv_printf_has_long_long
=no
4957 cat > conftest.
$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4964 l = (l << 16) + 0x0123;
4965 l = (l << 16) + 0x4567;
4966 l = (l << 16) + 0x89ab;
4967 l = (l << 16) + 0xcdef;
4968 sprintf (buf, "0x%016llx", l);
4969 return (strcmp ("0x0123456789abcdef", buf));
4972 if { (eval echo configure
:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4974 gdb_cv_printf_has_long_long
=yes
4976 echo "configure: failed program was:" >&5
4977 cat conftest.
$ac_ext >&5
4979 gdb_cv_printf_has_long_long
=no
4986 if test $gdb_cv_printf_has_long_long = yes; then
4987 cat >> confdefs.h
<<\EOF
4988 #define PRINTF_HAS_LONG_LONG 1
4992 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4995 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4996 echo "configure:4997: checking for long double support in compiler" >&5
4997 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 cat > conftest.
$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5008 if { (eval echo configure
:5009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5010 ac_cv_c_long_double
=yes
5012 echo "configure: failed program was:" >&5
5013 cat conftest.
$ac_ext >&5
5015 ac_cv_c_long_double
=no
5020 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5021 if test $ac_cv_c_long_double = yes; then
5022 cat >> confdefs.h
<<\EOF
5023 #define HAVE_LONG_DOUBLE 1
5029 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5030 echo "configure:5031: checking for long double support in printf" >&5
5031 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 if test "$cross_compiling" = yes; then
5035 gdb_cv_printf_has_long_double
=no
5037 cat > conftest.
$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5043 long double f = 3.141592653;
5044 sprintf (buf, "%Lg", f);
5045 return (strncmp ("3.14159", buf, 7));
5048 if { (eval echo configure
:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5050 gdb_cv_printf_has_long_double
=yes
5052 echo "configure: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5055 gdb_cv_printf_has_long_double
=no
5062 if test $gdb_cv_printf_has_long_double = yes; then
5063 cat >> confdefs.h
<<\EOF
5064 #define PRINTF_HAS_LONG_DOUBLE 1
5068 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
5071 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
5072 echo "configure:5073: checking for long double support in scanf" >&5
5073 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 if test "$cross_compiling" = yes; then
5077 gdb_cv_scanf_has_long_double
=no
5079 cat > conftest.
$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5084 char *buf = "3.141592653";
5086 sscanf (buf, "%Lg", &f);
5087 return !(f > 3.14159 && f < 3.14160);
5090 if { (eval echo configure
:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5092 gdb_cv_scanf_has_long_double
=yes
5094 echo "configure: failed program was:" >&5
5095 cat conftest.
$ac_ext >&5
5097 gdb_cv_scanf_has_long_double
=no
5104 if test $gdb_cv_scanf_has_long_double = yes; then
5105 cat >> confdefs.h
<<\EOF
5106 #define SCANF_HAS_LONG_DOUBLE 1
5110 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
5112 for ac_hdr
in unistd.h
5114 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5115 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5116 echo "configure:5117: checking for $ac_hdr" >&5
5117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5120 cat > conftest.
$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5125 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5126 { (eval echo configure
:5127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5127 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5128 if test -z "$ac_err"; then
5130 eval "ac_cv_header_$ac_safe=yes"
5133 echo "configure: failed program was:" >&5
5134 cat conftest.
$ac_ext >&5
5136 eval "ac_cv_header_$ac_safe=no"
5140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5142 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5143 cat >> confdefs.h
<<EOF
5144 #define $ac_tr_hdr 1
5148 echo "$ac_t""no" 1>&6
5152 for ac_func
in getpagesize
5154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5155 echo "configure:5156: checking for $ac_func" >&5
5156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 cat > conftest.
$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5162 /* System header to define __stub macros and hopefully few prototypes,
5163 which can conflict with char $ac_func(); below. */
5165 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5172 /* The GNU C library defines this for functions which it implements
5173 to always fail with ENOSYS. Some functions are actually named
5174 something starting with __ and the normal name is an alias. */
5175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5183 if { (eval echo configure
:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5185 eval "ac_cv_func_$ac_func=yes"
5187 echo "configure: failed program was:" >&5
5188 cat conftest.
$ac_ext >&5
5190 eval "ac_cv_func_$ac_func=no"
5195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5198 cat >> confdefs.h
<<EOF
5199 #define $ac_tr_func 1
5203 echo "$ac_t""no" 1>&6
5207 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5208 echo "configure:5209: checking for working mmap" >&5
5209 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 if test "$cross_compiling" = yes; then
5213 ac_cv_func_mmap_fixed_mapped
=no
5215 cat > conftest.
$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5219 /* Thanks to Mike Haertel and Jim Avera for this test.
5220 Here is a matrix of mmap possibilities:
5221 mmap private not fixed
5222 mmap private fixed at somewhere currently unmapped
5223 mmap private fixed at somewhere already mapped
5224 mmap shared not fixed
5225 mmap shared fixed at somewhere currently unmapped
5226 mmap shared fixed at somewhere already mapped
5227 For private mappings, we should verify that changes cannot be read()
5228 back from the file, nor mmap's back from the file at a different
5229 address. (There have been systems where private was not correctly
5230 implemented like the infamous i386 svr4.0, and systems where the
5231 VM page cache was not coherent with the filesystem buffer cache
5232 like early versions of FreeBSD and possibly contemporary NetBSD.)
5233 For shared mappings, we should conversely verify that changes get
5234 propogated back to all the places they're supposed to be.
5236 Grep wants private fixed already mapped.
5237 The main things grep needs to know about mmap are:
5238 * does it exist and is it safe to write into the mmap'd area
5239 * how to use it (BSD variants) */
5240 #include <sys/types.h>
5242 #include <sys/mman.h>
5244 /* This mess was copied from the GNU getpagesize.h. */
5245 #ifndef HAVE_GETPAGESIZE
5246 # ifdef HAVE_UNISTD_H
5247 # include <unistd.h>
5250 /* Assume that all systems that can run configure have sys/param.h. */
5251 # ifndef HAVE_SYS_PARAM_H
5252 # define HAVE_SYS_PARAM_H 1
5255 # ifdef _SC_PAGESIZE
5256 # define getpagesize() sysconf(_SC_PAGESIZE)
5257 # else /* no _SC_PAGESIZE */
5258 # ifdef HAVE_SYS_PARAM_H
5259 # include <sys/param.h>
5260 # ifdef EXEC_PAGESIZE
5261 # define getpagesize() EXEC_PAGESIZE
5262 # else /* no EXEC_PAGESIZE */
5264 # define getpagesize() NBPG * CLSIZE
5267 # endif /* no CLSIZE */
5268 # else /* no NBPG */
5270 # define getpagesize() NBPC
5271 # else /* no NBPC */
5273 # define getpagesize() PAGESIZE
5274 # endif /* PAGESIZE */
5275 # endif /* no NBPC */
5276 # endif /* no NBPG */
5277 # endif /* no EXEC_PAGESIZE */
5278 # else /* no HAVE_SYS_PARAM_H */
5279 # define getpagesize() 8192 /* punt totally */
5280 # endif /* no HAVE_SYS_PARAM_H */
5281 # endif /* no _SC_PAGESIZE */
5283 #endif /* no HAVE_GETPAGESIZE */
5286 extern "C" { void *malloc(unsigned); }
5294 char *data, *data2, *data3;
5298 pagesize = getpagesize();
5301 * First, make a file with some known garbage in it.
5303 data = malloc(pagesize);
5306 for (i = 0; i < pagesize; ++i)
5307 *(data + i) = rand();
5309 fd = creat("conftestmmap", 0600);
5312 if (write(fd, data, pagesize) != pagesize)
5317 * Next, try to mmap the file at a fixed address which
5318 * already has something else allocated at it. If we can,
5319 * also make sure that we see the same garbage.
5321 fd = open("conftestmmap", O_RDWR);
5324 data2 = malloc(2 * pagesize);
5327 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5328 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5331 for (i = 0; i < pagesize; ++i)
5332 if (*(data + i) != *(data2 + i))
5336 * Finally, make sure that changes to the mapped area
5337 * do not percolate back to the file as seen by read().
5338 * (This is a bug on some variants of i386 svr4.0.)
5340 for (i = 0; i < pagesize; ++i)
5341 *(data2 + i) = *(data2 + i) + 1;
5342 data3 = malloc(pagesize);
5345 if (read(fd, data3, pagesize) != pagesize)
5347 for (i = 0; i < pagesize; ++i)
5348 if (*(data + i) != *(data3 + i))
5351 unlink("conftestmmap");
5356 if { (eval echo configure
:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5358 ac_cv_func_mmap_fixed_mapped
=yes
5360 echo "configure: failed program was:" >&5
5361 cat conftest.
$ac_ext >&5
5363 ac_cv_func_mmap_fixed_mapped
=no
5370 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5372 cat >> confdefs.h
<<\EOF
5381 if test ${build} = ${host} -a ${host} = ${target} ; then
5384 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5385 echo "configure:5386: checking for HPUX/OSF thread support" >&5
5386 if test -f /usr
/include
/dce
/cma_config.h
; then
5387 if test "$GCC" = "yes" ; then
5388 echo "$ac_t""yes" 1>&6
5389 cat >> confdefs.h
<<\EOF
5390 #define HAVE_HPUX_THREAD_SUPPORT 1
5393 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
5394 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
5396 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5399 echo "$ac_t""no" 1>&6
5403 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5404 echo "configure:5405: checking for Solaris thread debugging library" >&5
5405 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5406 echo "$ac_t""yes" 1>&6
5407 cat >> confdefs.h
<<\EOF
5408 #define HAVE_THREAD_DB_LIB 1
5411 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
5412 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5413 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5414 echo "configure:5415: checking for dlopen in -ldl" >&5
5415 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 ac_save_LIBS
="$LIBS"
5421 cat > conftest.
$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5433 if { (eval echo configure
:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5435 eval "ac_cv_lib_$ac_lib_var=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.
$ac_ext >&5
5440 eval "ac_cv_lib_$ac_lib_var=no"
5443 LIBS
="$ac_save_LIBS"
5446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5450 cat >> confdefs.h
<<EOF
5451 #define $ac_tr_lib 1
5457 echo "$ac_t""no" 1>&6
5460 if test "$GCC" = "yes" ; then
5461 # The GNU linker requires the -export-dynamic option to make
5462 # all symbols visible in the dynamic symbol table.
5463 hold_ldflags
=$LDFLAGS
5464 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5465 echo "configure:5466: checking for the ld -export-dynamic flag" >&5
5466 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5467 cat > conftest.
$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5475 if { (eval echo configure
:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5479 echo "configure: failed program was:" >&5
5480 cat conftest.
$ac_ext >&5
5485 LDFLAGS
=$hold_ldflags
5486 echo "$ac_t""$found" 1>&6
5487 if test $found = yes; then
5488 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5491 # Sun randomly tweaked the prototypes in <proc_service.h>
5493 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5494 echo "configure:5495: checking if <proc_service.h> is old" >&5
5495 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5499 cat > conftest.
$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5503 #include <proc_service.h>
5505 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5511 if { (eval echo configure
:5512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5513 gdb_cv_proc_service_is_old
=no
5515 echo "configure: failed program was:" >&5
5516 cat conftest.
$ac_ext >&5
5518 gdb_cv_proc_service_is_old
=yes
5524 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5525 if test $gdb_cv_proc_service_is_old = yes; then
5526 cat >> confdefs.h
<<\EOF
5527 #define PROC_SERVICE_IS_OLD 1
5532 echo "$ac_t""no" 1>&6
5540 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5541 if test "${enable_gdbmi+set}" = set; then
5542 enableval
="$enable_gdbmi"
5544 case "${enable_gdbmi}" in
5546 "") enable_gdbmi
=yes ;;
5548 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5554 case ${enable_gdbmi} in
5556 if test -d "${srcdir}/mi" ; then
5557 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5558 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5559 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5560 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5561 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5562 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
5563 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
5564 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5565 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5570 # Check whether --enable-tui or --disable-tui was given.
5571 if test "${enable_tui+set}" = set; then
5572 enableval
="$enable_tui"
5574 case "${enable_tui}" in
5576 "") enable_tui
=yes ;;
5578 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5584 case ${enable_tui} in
5586 if test -d "${srcdir}/tui" ; then
5587 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
5588 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
5589 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_TUI_SRCS)"
5590 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
5591 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
5592 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
5593 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
5594 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
5595 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
5600 # Check whether --enable-netrom or --disable-netrom was given.
5601 if test "${enable_netrom+set}" = set; then
5602 enableval
="$enable_netrom"
5603 case "${enableval}" in
5604 yes) enable_netrom
=yes ;;
5605 no
) enable_netrom
=no
;;
5606 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5611 if test "${enable_netrom}" = "yes"; then
5612 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5613 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5617 # Don't add -Wall or -Wunused, they include -Wunused-parameter which
5619 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5620 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
5621 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5622 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5623 # -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual
5624 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5625 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5626 # -Woverloaded-virtual -Winline -Werror"
5627 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5628 if test "${enable_build_warnings+set}" = set; then
5629 enableval
="$enable_build_warnings"
5630 case "${enableval}" in
5632 no
) build_warnings
="-w";;
5633 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5634 build_warnings
="${build_warnings} ${t}";;
5635 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5636 build_warnings
="${t} ${build_warnings}";;
5637 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5639 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5640 echo "Setting compiler warning flags = $build_warnings" 6>&1
5645 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5647 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
5648 echo "configure:5649: checking compiler warning flags" >&5
5649 # Separate out the -Werror flag as some files just cannot be
5650 # compiled with it enabled.
5651 for w
in ${build_warnings}; do
5653 -Werr*) WERROR_CFLAGS
=-Werror ;;
5654 *) # Check that GCC accepts it
5655 if $CC $w 2>&1 |
grep 'unrecognized option' > /dev
/null
; then
5658 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5662 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
5672 # Check whether --with-mmalloc or --without-mmalloc was given.
5673 if test "${with_mmalloc+set}" = set; then
5674 withval
="$with_mmalloc"
5675 case "${withval}" in
5676 yes) want_mmalloc
=true
;;
5677 no
) want_mmalloc
=false
;;
5678 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5684 if test x
$want_mmalloc = xtrue
; then
5685 cat >> confdefs.h
<<\EOF
5686 #define USE_MMALLOC 1
5689 cat >> confdefs.h
<<\EOF
5690 #define MMCHECK_FORCE 1
5693 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5694 MMALLOC
='../mmalloc/libmmalloc.a'
5697 # Check whether --with-included-regex or --without-included-regex was given.
5698 if test "${with_included_regex+set}" = set; then
5699 withval
="$with_included_regex"
5700 case "${withval}" in
5701 yes) want_included_regex
=true
;;
5702 no
) want_included_regex
=false
;;
5703 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
5706 want_included_regex
=true
5709 if test $want_included_regex = false
; then
5710 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
5711 echo "configure:5712: checking for GNU regex" >&5
5712 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5715 cat > conftest.
$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 #include <gnu-versions.h>
5719 #include <sys/types.h>
5722 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
5723 #error No valid GNU regex.
5728 if { (eval echo configure
:5729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5730 gdb_cv_have_gnu_regex
=yes
5732 echo "configure: failed program was:" >&5
5733 cat conftest.
$ac_ext >&5
5735 gdb_cv_have_gnu_regex
=no
5740 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
5741 if test $gdb_cv_have_gnu_regex = no
; then
5742 want_included_regex
=true
5746 if test x
${want_included_regex} = xtrue
; then
5748 cat >> confdefs.h
<<\EOF
5749 #define USE_INCLUDED_REGEX 1
5755 # In the Cygwin environment, we need some additional flags.
5756 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5757 echo "configure:5758: checking for cygwin" >&5
5758 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 cat > conftest.
$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5765 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5770 egrep "lose" >/dev
/null
2>&1; then
5772 gdb_cv_os_cygwin
=yes
5781 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5783 if test x
$gdb_host = xgo32
; then
5786 if test x
$gdb_cv_os_cygwin = xyes
; then
5787 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5790 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5791 echo "configure:5792: checking for tgetent in -lncurses" >&5
5792 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5796 ac_save_LIBS
="$LIBS"
5797 LIBS
="-lncurses $LIBS"
5798 cat > conftest.
$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5801 /* Override any gcc2 internal prototype to avoid an error. */
5802 /* We use char because int might match the return type of a gcc2
5803 builtin and then its argument prototype would still apply. */
5810 if { (eval echo configure
:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5812 eval "ac_cv_lib_$ac_lib_var=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.
$ac_ext >&5
5817 eval "ac_cv_lib_$ac_lib_var=no"
5820 LIBS
="$ac_save_LIBS"
5823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5824 echo "$ac_t""yes" 1>&6
5827 echo "$ac_t""no" 1>&6
5828 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5829 echo "configure:5830: checking for tgetent in -lHcurses" >&5
5830 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 ac_save_LIBS
="$LIBS"
5835 LIBS
="-lHcurses $LIBS"
5836 cat > conftest.
$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5848 if { (eval echo configure
:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5850 eval "ac_cv_lib_$ac_lib_var=yes"
5852 echo "configure: failed program was:" >&5
5853 cat conftest.
$ac_ext >&5
5855 eval "ac_cv_lib_$ac_lib_var=no"
5858 LIBS
="$ac_save_LIBS"
5861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5862 echo "$ac_t""yes" 1>&6
5865 echo "$ac_t""no" 1>&6
5866 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5867 echo "configure:5868: checking for tgetent in -ltermlib" >&5
5868 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5872 ac_save_LIBS
="$LIBS"
5873 LIBS
="-ltermlib $LIBS"
5874 cat > conftest.
$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5877 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5886 if { (eval echo configure
:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5888 eval "ac_cv_lib_$ac_lib_var=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.
$ac_ext >&5
5893 eval "ac_cv_lib_$ac_lib_var=no"
5896 LIBS
="$ac_save_LIBS"
5899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5900 echo "$ac_t""yes" 1>&6
5903 echo "$ac_t""no" 1>&6
5904 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5905 echo "configure:5906: checking for tgetent in -ltermcap" >&5
5906 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5910 ac_save_LIBS
="$LIBS"
5911 LIBS
="-ltermcap $LIBS"
5912 cat > conftest.
$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5915 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5924 if { (eval echo configure
:5925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5926 eval "ac_cv_lib_$ac_lib_var=yes"
5928 echo "configure: failed program was:" >&5
5929 cat conftest.
$ac_ext >&5
5931 eval "ac_cv_lib_$ac_lib_var=no"
5934 LIBS
="$ac_save_LIBS"
5937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5938 echo "$ac_t""yes" 1>&6
5941 echo "$ac_t""no" 1>&6
5942 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5943 echo "configure:5944: checking for tgetent in -lcurses" >&5
5944 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 ac_save_LIBS
="$LIBS"
5949 LIBS
="-lcurses $LIBS"
5950 cat > conftest.
$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* Override any gcc2 internal prototype to avoid an error. */
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5962 if { (eval echo configure
:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5964 eval "ac_cv_lib_$ac_lib_var=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.
$ac_ext >&5
5969 eval "ac_cv_lib_$ac_lib_var=no"
5972 LIBS
="$ac_save_LIBS"
5975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5979 echo "$ac_t""no" 1>&6
5980 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5981 echo "configure:5982: checking for tgetent in -lterminfo" >&5
5982 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 ac_save_LIBS
="$LIBS"
5987 LIBS
="-lterminfo $LIBS"
5988 cat > conftest.
$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* Override any gcc2 internal prototype to avoid an error. */
5992 /* We use char because int might match the return type of a gcc2
5993 builtin and then its argument prototype would still apply. */
6000 if { (eval echo configure
:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6002 eval "ac_cv_lib_$ac_lib_var=yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.
$ac_ext >&5
6007 eval "ac_cv_lib_$ac_lib_var=no"
6010 LIBS
="$ac_save_LIBS"
6013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6017 echo "$ac_t""no" 1>&6
6031 if test "x$TERM_LIB" = x
6033 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
6039 # libreadline needs libuser32.a in a cygwin environment
6041 if test x
$gdb_cv_os_cygwin = xyes
; then
6042 WIN32LIBS
="-luser32"
6044 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
6050 LIBGUI
="../libgui/src/libgui.a"
6051 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
6055 # Check whether --with-cpu or --without-cpu was given.
6056 if test "${with_cpu+set}" = set; then
6059 powerpc-
* | powerpcle-
* )
6060 ## It would be nice to keep this table in sync with the one in
6062 case "${with_cpu}" in
6063 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
6065 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
6067 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
6068 ## These are all RS6000 variants, as far as GDB is concerned.
6078 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
6084 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
6087 cat >> confdefs.h
<<EOF
6088 #define TARGET_CPU_DEFAULT "${with_cpu}"
6096 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6097 if test "${enable_gdbtk+set}" = set; then
6098 enableval
="$enable_gdbtk"
6099 case "${enableval}" in
6103 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6106 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6114 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
6118 # Default is on for everything but go32 and Cygwin
6123 if test -d "${srcdir}/gdbtk" ; then
6139 if test "${enable_gdbtk}" = "yes"; then
6143 # Ok, lets find the tcl configuration
6144 # First, look for one uninstalled.
6145 # the alternative search directory is invoked by --with-tclconfig
6148 if test x
"${no_tcl}" = x
; then
6149 # we reset no_tcl in case something fails here
6151 # Check whether --with-tclconfig or --without-tclconfig was given.
6152 if test "${with_tclconfig+set}" = set; then
6153 withval
="$with_tclconfig"
6154 with_tclconfig
=${withval}
6157 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
6158 echo "configure:6159: checking for Tcl configuration" >&5
6159 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6164 # First check to see if --with-tclconfig was specified.
6165 if test x
"${with_tclconfig}" != x
; then
6166 if test -f "${with_tclconfig}/tclConfig.sh" ; then
6167 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
6169 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
6173 # then check for a private Tcl installation
6174 if test x
"${ac_cv_c_tclconfig}" = x
; then
6177 `ls -dr ../tcl[7-9]* 2>/dev/null` \
6179 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
6181 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
6182 if test -f "$i/${configdir}/tclConfig.sh" ; then
6183 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6188 # check in a few common install locations
6189 if test x
"${ac_cv_c_tclconfig}" = x
; then
6190 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6191 if test -f "$i/tclConfig.sh" ; then
6192 ac_cv_c_tclconfig
=`(cd $i; pwd)`
6197 # check in a few other private locations
6198 if test x
"${ac_cv_c_tclconfig}" = x
; then
6201 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
6202 if test -f "$i/${configdir}/tclConfig.sh" ; then
6203 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6211 if test x
"${ac_cv_c_tclconfig}" = x
; then
6212 TCLCONFIG
="# no Tcl configs found"
6213 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
6216 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
6217 echo "$ac_t""found $TCLCONFIG" 1>&6
6221 if test -z "${no_tcl}"; then
6251 # Ok, lets find the tk configuration
6252 # First, look for one uninstalled.
6253 # the alternative search directory is invoked by --with-tkconfig
6256 if test x
"${no_tk}" = x
; then
6257 # we reset no_tk in case something fails here
6259 # Check whether --with-tkconfig or --without-tkconfig was given.
6260 if test "${with_tkconfig+set}" = set; then
6261 withval
="$with_tkconfig"
6262 with_tkconfig
=${withval}
6265 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6266 echo "configure:6267: checking for Tk configuration" >&5
6267 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
6268 echo $ac_n "(cached) $ac_c" 1>&6
6272 # First check to see if --with-tkconfig was specified.
6273 if test x
"${with_tkconfig}" != x
; then
6274 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6275 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
6277 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
6281 # then check for a private Tk library
6282 if test x
"${ac_cv_c_tkconfig}" = x
; then
6285 `ls -dr ../tk[4-9]* 2>/dev/null` \
6287 `ls -dr ../../tk[4-9]* 2>/dev/null` \
6289 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
6290 if test -f "$i/${configdir}/tkConfig.sh" ; then
6291 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6296 # check in a few common install locations
6297 if test x
"${ac_cv_c_tkconfig}" = x
; then
6298 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6299 if test -f "$i/tkConfig.sh" ; then
6300 ac_cv_c_tkconfig
=`(cd $i; pwd)`
6305 # check in a few other private locations
6306 if test x
"${ac_cv_c_tkconfig}" = x
; then
6309 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
6310 if test -f "$i/${configdir}/tkConfig.sh" ; then
6311 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6319 if test x
"${ac_cv_c_tkconfig}" = x
; then
6320 TKCONFIG
="# no Tk configs found"
6321 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6324 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
6325 echo "$ac_t""found $TKCONFIG" 1>&6
6331 # If $no_tk is nonempty, then we can't do Tk, and there is no
6332 # point to doing Tcl.
6333 if test -z "${no_tk}"; then
6335 if test -f "$TKCONFIG" ; then
6353 # Ok, lets find the tcl source trees so we can use the headers
6354 # Warning: transition of version 9 to 10 will break this algorithm
6355 # because 10 sorts before 9. We also look for just tcl. We have to
6356 # be careful that we don't match stuff like tclX by accident.
6357 # the alternative search directory is involked by --with-tclinclude
6361 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6362 echo "configure:6363: checking for Tcl private headers. dir=${configdir}" >&5
6363 # Check whether --with-tclinclude or --without-tclinclude was given.
6364 if test "${with_tclinclude+set}" = set; then
6365 withval
="$with_tclinclude"
6366 with_tclinclude
=${withval}
6369 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6373 # first check to see if --with-tclinclude was specified
6374 if test x
"${with_tclinclude}" != x
; then
6375 if test -f ${with_tclinclude}/tclInt.h
; then
6376 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
6377 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
6378 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
6380 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6384 # next check if it came with Tcl configuration file
6385 if test x
"${ac_cv_c_tclconfig}" = x
; then
6386 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
6387 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
6391 # next check in private source directory
6393 # since ls returns lowest version numbers first, reverse its output
6394 if test x
"${ac_cv_c_tclh}" = x
; then
6397 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6398 ${srcdir}/..
/..
/tcl \
6399 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6400 ${srcdir}/..
/..
/..
/tcl \
6401 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6402 if test -f $i/generic
/tclInt.h
; then
6403 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6408 # finally check in a few common install locations
6410 # since ls returns lowest version numbers first, reverse its output
6411 if test x
"${ac_cv_c_tclh}" = x
; then
6413 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6414 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6415 /usr
/local
/src
/tcl \
6416 /usr
/local
/lib
/tcl \
6417 ${prefix}/include
; do
6418 if test -f $i/generic
/tclInt.h
; then
6419 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6424 # see if one is installed
6425 if test x
"${ac_cv_c_tclh}" = x
; then
6426 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6427 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6428 echo "configure:6429: checking for tclInt.h" >&5
6429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 cat > conftest.
$ac_ext <<EOF
6433 #line 6434 "configure"
6434 #include "confdefs.h"
6437 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6438 { (eval echo configure
:6439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6439 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6440 if test -z "$ac_err"; then
6442 eval "ac_cv_header_$ac_safe=yes"
6445 echo "configure: failed program was:" >&5
6446 cat conftest.
$ac_ext >&5
6448 eval "ac_cv_header_$ac_safe=no"
6452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6453 echo "$ac_t""yes" 1>&6
6454 ac_cv_c_tclh
=installed
6456 echo "$ac_t""no" 1>&6
6464 if test x
"${ac_cv_c_tclh}" = x
; then
6465 TCLHDIR
="# no Tcl private headers found"
6466 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6468 if test x
"${ac_cv_c_tclh}" != x
; then
6470 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
6471 echo "$ac_t""is installed" 1>&6
6474 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6475 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6476 TCLHDIR
="-I${ac_cv_c_tclh}"
6484 # Ok, lets find the tk source trees so we can use the headers
6485 # If the directory (presumably symlink) named "tk" exists, use that one
6486 # in preference to any others. Same logic is used when choosing library
6487 # and again with Tcl. The search order is the best place to look first, then in
6488 # decreasing significance. The loop breaks if the trigger file is found.
6489 # Note the gross little conversion here of srcdir by cd'ing to the found
6490 # directory. This converts the path from a relative to an absolute, so
6491 # recursive cache variables for the path will work right. We check all
6492 # the possible paths in one loop rather than many seperate loops to speed
6494 # the alternative search directory is involked by --with-tkinclude
6497 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6498 echo "configure:6499: checking for Tk private headers" >&5
6499 # Check whether --with-tkinclude or --without-tkinclude was given.
6500 if test "${with_tkinclude+set}" = set; then
6501 withval
="$with_tkinclude"
6502 with_tkinclude
=${withval}
6505 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6509 # first check to see if --with-tkinclude was specified
6510 if test x
"${with_tkinclude}" != x
; then
6511 if test -f ${with_tkinclude}/tk.h
; then
6512 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6513 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6514 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6516 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6520 # next check if it came with Tk configuration file
6521 if test x
"${ac_cv_c_tkconfig}" = x
; then
6522 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6523 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6527 # next check in private source directory
6529 # since ls returns lowest version numbers first, reverse its output
6530 if test x
"${ac_cv_c_tkh}" = x
; then
6533 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6534 ${srcdir}/..
/..
/tk \
6535 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6536 ${srcdir}/..
/..
/..
/tk \
6537 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6538 if test -f $i/generic
/tk.h
; then
6539 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6544 # finally check in a few common install locations
6546 # since ls returns lowest version numbers first, reverse its output
6547 if test x
"${ac_cv_c_tkh}" = x
; then
6549 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6550 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6553 ${prefix}/include
; do
6554 if test -f $i/generic
/tk.h
; then
6555 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6560 # see if one is installed
6561 if test x
"${ac_cv_c_tkh}" = x
; then
6562 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6563 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6564 echo "configure:6565: checking for tk.h" >&5
6565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6568 cat > conftest.
$ac_ext <<EOF
6569 #line 6570 "configure"
6570 #include "confdefs.h"
6573 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6574 { (eval echo configure
:6575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6575 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6576 if test -z "$ac_err"; then
6578 eval "ac_cv_header_$ac_safe=yes"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.
$ac_ext >&5
6584 eval "ac_cv_header_$ac_safe=no"
6588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6590 ac_cv_c_tkh
=installed
6592 echo "$ac_t""no" 1>&6
6600 if test x
"${ac_cv_c_tkh}" != x
; then
6602 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6603 echo "$ac_t""is installed" 1>&6
6606 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6607 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6608 TKHDIR
="-I${ac_cv_c_tkh}"
6611 TKHDIR
="# no Tk directory found"
6612 echo "configure: warning: Can't find Tk private headers" 1>&2
6619 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6620 echo "configure:6621: checking for Itcl private headers. srcdir=${srcdir}" >&5
6621 if test x
"${ac_cv_c_itclh}" = x
; then
6622 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6623 if test -f $i/generic
/itcl.h
; then
6624 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6629 if test x
"${ac_cv_c_itclh}" = x
; then
6630 ITCLHDIR
="# no Itcl private headers found"
6631 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6633 if test x
"${ac_cv_c_itclh}" != x
; then
6634 ITCLHDIR
="-I${ac_cv_c_itclh}"
6636 # should always be here
6637 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6642 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6643 echo "configure:6644: checking for Itk private headers. srcdir=${srcdir}" >&5
6644 if test x
"${ac_cv_c_itkh}" = x
; then
6645 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6646 if test -f $i/generic
/itk.h
; then
6647 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6652 if test x
"${ac_cv_c_itkh}" = x
; then
6653 ITKHDIR
="# no Itk private headers found"
6654 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6656 if test x
"${ac_cv_c_itkh}" != x
; then
6657 ITKHDIR
="-I${ac_cv_c_itkh}"
6659 # should always be here
6660 # ITKLIB="../itcl/itk/unix/libitk.a"
6665 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6666 echo "configure:6667: checking for Tix private headers. srcdir=${srcdir}" >&5
6667 if test x
"${ac_cv_c_tixh}" = x
; then
6668 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6669 if test -f $i/generic
/tix.h
; then
6670 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6675 if test x
"${ac_cv_c_tixh}" = x
; then
6676 TIXHDIR
="# no Tix private headers found"
6677 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6679 if test x
"${ac_cv_c_tixh}" != x
; then
6680 TIXHDIR
="-I${ac_cv_c_tixh}"
6685 # now look for Itcl library stuff
6689 # Ok, lets find the itcl configuration
6690 # First, look for one uninstalled.
6691 # the alternative search directory is invoked by --with-itclconfig
6694 if test x
"${no_itcl}" = x
; then
6695 # we reset no_itcl in case something fails here
6697 # Check whether --with-itclconfig or --without-itclconfig was given.
6698 if test "${with_itclconfig+set}" = set; then
6699 withval
="$with_itclconfig"
6700 with_itclconfig
=${withval}
6703 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6704 echo "configure:6705: checking for Itcl configuration" >&5
6705 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6710 # First check to see if --with-itclconfig was specified.
6711 if test x
"${with_itclconfig}" != x
; then
6712 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6713 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6715 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6719 # then check for a private Itcl library
6720 if test x
"${ac_cv_c_itclconfig}" = x
; then
6723 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6725 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6727 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6728 if test -f "$i/itclConfig.sh" ; then
6729 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6734 # check in a few common install locations
6735 if test x
"${ac_cv_c_itclconfig}" = x
; then
6736 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6737 if test -f "$i/itclConfig.sh" ; then
6738 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6743 # check in a few other private locations
6744 if test x
"${ac_cv_c_itclconfig}" = x
; then
6746 ${srcdir}/..
/itcl
/itcl \
6747 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6748 if test -f "$i/itclConfig.sh" ; then
6749 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6757 if test x
"${ac_cv_c_itclconfig}" = x
; then
6758 ITCLCONFIG
="# no Itcl configs found"
6759 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6762 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6763 echo "$ac_t""found $ITCLCONFIG" 1>&6
6767 if test -z "${no_itcl}"; then
6769 if test -f "$ITCLCONFIG" ; then
6785 itcldir
=..
/itcl
/itcl
/win
/
6788 itcldir
=..
/itcl
/itcl
/unix
/
6793 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
6794 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6798 # now look for Itk library stuff
6801 # Ok, lets find the itk configuration
6802 # First, look for one uninstalled.
6803 # the alternative search directory is invoked by --with-itkconfig
6806 if test x
"${no_itk}" = x
; then
6807 # we reset no_itk in case something fails here
6809 # Check whether --with-itkconfig or --without-itkconfig was given.
6810 if test "${with_itkconfig+set}" = set; then
6811 withval
="$with_itkconfig"
6812 with_itkconfig
=${withval}
6815 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6816 echo "configure:6817: checking for Itk configuration" >&5
6817 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6822 # First check to see if --with-itkconfig was specified.
6823 if test x
"${with_itkconfig}" != x
; then
6824 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6825 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
6827 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6831 # then check for a private Itk library
6832 if test x
"${ac_cv_c_itkconfig}" = x
; then
6835 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6837 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6839 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6840 if test -f "$i/itkConfig.sh" ; then
6841 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6846 # check in a few common install locations
6847 if test x
"${ac_cv_c_itkconfig}" = x
; then
6848 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6849 if test -f "$i/itkConfig.sh" ; then
6850 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6855 # check in a few other private locations
6856 if test x
"${ac_cv_c_itkconfig}" = x
; then
6858 ${srcdir}/..
/itcl
/itk \
6859 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6860 if test -f "$i/itkConfig.sh" ; then
6861 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6869 if test x
"${ac_cv_c_itkconfig}" = x
; then
6870 ITKCONFIG
="# no Itk configs found"
6871 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6874 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
6875 echo "$ac_t""found $ITKCONFIG" 1>&6
6880 if test -z "${no_itcl}"; then
6882 if test -f "$ITKCONFIG" ; then
6899 itkdir
=..
/itcl
/itk
/win
/
6902 itkdir
=..
/itcl
/itk
/unix
/
6906 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
6907 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
6910 # now look for Tix library stuff
6913 # Ok, lets find the tix configuration
6914 # First, look for one uninstalled.
6915 # the alternative search directory is invoked by --with-itkconfig
6918 if test x
"${no_tix}" = x
; then
6919 # we reset no_tix in case something fails here
6921 # Check whether --with-tixconfig or --without-tixconfig was given.
6922 if test "${with_tixconfig+set}" = set; then
6923 withval
="$with_tixconfig"
6924 with_tixconfig
=${withval}
6927 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6928 echo "configure:6929: checking for Tix configuration" >&5
6929 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6934 # First check to see if --with-tixconfig was specified.
6935 if test x
"${with_tixconfig}" != x
; then
6936 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6937 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
6939 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6943 # then check for a private Tix library
6944 if test x
"${ac_cv_c_tixconfig}" = x
; then
6947 `ls -dr ../tix 2>/dev/null` \
6949 `ls -dr ../../tix 2>/dev/null` \
6951 `ls -dr ../../../tix 2>/dev/null` ; do
6952 echo "**** Looking at $i - with ${configdir}"
6953 if test -f "$i/tixConfig.sh" ; then
6954 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6959 # check in a few common install locations
6960 if test x
"${ac_cv_c_tixconfig}" = x
; then
6961 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6962 echo "**** Looking at $i"
6963 if test -f "$i/tixConfig.sh" ; then
6964 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6969 # check in a few other private locations
6970 echo "**** Other private locations"
6971 if test x
"${ac_cv_c_tixconfig}" = x
; then
6974 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6975 echo "**** Looking at $i - with ${configdir}"
6976 if test -f "$i/${configdir}/tixConfig.sh" ; then
6977 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
6985 if test x
"${ac_cv_c_tixconfig}" = x
; then
6986 TIXCONFIG
="# no Tix configs found"
6987 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6990 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
6991 echo "$ac_t""found $TIXCONFIG" 1>&6
6996 if test -z "${no_tix}"; then
6998 if test -f "$TIXCONFIG" ; then
7009 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
7010 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
7013 ENABLE_CFLAGS
="$ENABLE_CFLAGS -DGDBTK"
7014 # Tcl/Tk 8.1 require -fwritable strings. I don't
7015 # know whether 8.2 will or not, but I bet it will.
7016 # I don't have to worry about 7.x since we don't support it.
7018 if test "$GCC" = "yes"; then
7019 if test "$TCL_VERSION" != "8.0" ; then
7020 GDBTK_CFLAGS
="-fwritable-strings"
7024 # Include some libraries that Tcl and Tk want.
7025 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
7026 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
7027 # Yes, the ordering seems wrong here. But it isn't.
7028 # TK_LIBS is the list of libraries that need to be linked
7029 # after Tcl/Tk. Note that this isn't put into LIBS. If it
7030 # were in LIBS then any link tests after this point would
7031 # try to include things like `$(LIBGUI)', which wouldn't work.
7032 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
7033 CONFIG_SRCS
="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
7034 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
7035 CONFIG_INITS
="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
7036 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
7037 CONFIG_CLEAN
="${CONFIG_ALL} \$(SUBDIR_GDBTK_CLEAN)"
7038 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
7039 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
7041 if test x
$gdb_cv_os_cygwin = xyes
; then
7042 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
7043 WIN32LDAPP
="-Wl,--subsystem,console"
7044 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
7062 # If we find X, set shell vars x_includes and x_libraries to the
7063 # paths, otherwise set no_x=yes.
7064 # Uses ac_ vars as temps to allow command line to override cache and checks.
7065 # --without-x overrides everything else, but does not touch the cache.
7066 echo $ac_n "checking for X""... $ac_c" 1>&6
7067 echo "configure:7068: checking for X" >&5
7069 # Check whether --with-x or --without-x was given.
7070 if test "${with_x+set}" = set; then
7075 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7076 if test "x$with_x" = xno
; then
7077 # The user explicitly disabled X.
7080 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7081 # Both variables are already set.
7084 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 # One or both of the vars are not set, and there is no cached value.
7088 ac_x_includes
=NO ac_x_libraries
=NO
7090 if mkdir conftestdir
; then
7092 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7093 cat > Imakefile
<<'EOF'
7095 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7097 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7098 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7099 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7100 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7101 for ac_extension
in a so sl
; do
7102 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7103 test -f $ac_im_libdir/libX11.
$ac_extension; then
7104 ac_im_usrlibdir
=$ac_im_libdir; break
7107 # Screen out bogus values from the imake configuration. They are
7108 # bogus both because they are the default anyway, and because
7109 # using them would break gcc on systems where it needs fixed includes.
7110 case "$ac_im_incroot" in
7112 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
7114 case "$ac_im_usrlibdir" in
7116 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
7123 if test "$ac_x_includes" = NO
; then
7124 # Guess where to find include files, by looking for this one X11 .h file.
7125 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
7127 # First, try using that file with no special directory specified.
7128 cat > conftest.
$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 #include <$x_direct_test_include>
7133 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7134 { (eval echo configure
:7135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7135 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7136 if test -z "$ac_err"; then
7138 # We can compile using X headers with no special include directory.
7142 echo "configure: failed program was:" >&5
7143 cat conftest.
$ac_ext >&5
7145 # Look for the header file in a standard set of common directories.
7146 # Check X11 before X11Rn because it is often a symlink to the current release.
7149 /usr
/X11R
6/include \
7150 /usr
/X11R
5/include \
7151 /usr
/X11R
4/include \
7154 /usr
/include
/X11R6 \
7155 /usr
/include
/X11R5 \
7156 /usr
/include
/X11R4 \
7158 /usr
/local
/X11
/include \
7159 /usr
/local
/X11R
6/include \
7160 /usr
/local
/X11R
5/include \
7161 /usr
/local
/X11R
4/include \
7163 /usr
/local
/include
/X11 \
7164 /usr
/local
/include
/X11R6 \
7165 /usr
/local
/include
/X11R5 \
7166 /usr
/local
/include
/X11R4 \
7170 /usr
/XFree86
/include
/X11 \
7173 /usr
/local
/include \
7174 /usr
/unsupported
/include \
7175 /usr
/athena
/include \
7176 /usr
/local
/x11r
5/include \
7177 /usr
/lpp
/Xamples
/include \
7179 /usr
/openwin
/include \
7180 /usr
/openwin
/share
/include \
7183 if test -r "$ac_dir/$x_direct_test_include"; then
7184 ac_x_includes
=$ac_dir
7190 fi # $ac_x_includes = NO
7192 if test "$ac_x_libraries" = NO
; then
7193 # Check for the libraries.
7195 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
7196 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
7198 # See if we find them without any special options.
7199 # Don't add to $LIBS permanently.
7200 ac_save_LIBS
="$LIBS"
7201 LIBS
="-l$x_direct_test_library $LIBS"
7202 cat > conftest.
$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7207 ${x_direct_test_function}()
7210 if { (eval echo configure
:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7212 LIBS
="$ac_save_LIBS"
7213 # We can link X programs with no special library path.
7216 echo "configure: failed program was:" >&5
7217 cat conftest.
$ac_ext >&5
7219 LIBS
="$ac_save_LIBS"
7220 # First see if replacing the include by lib works.
7221 # Check X11 before X11Rn because it is often a symlink to the current release.
7222 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
7233 /usr
/local
/X11
/lib \
7234 /usr
/local
/X11R
6/lib \
7235 /usr
/local
/X11R
5/lib \
7236 /usr
/local
/X11R
4/lib \
7238 /usr
/local
/lib
/X11 \
7239 /usr
/local
/lib
/X11R6 \
7240 /usr
/local
/lib
/X11R5 \
7241 /usr
/local
/lib
/X11R4 \
7245 /usr
/XFree86
/lib
/X11 \
7249 /usr
/unsupported
/lib \
7251 /usr
/local
/x11r
5/lib \
7252 /usr
/lpp
/Xamples
/lib \
7256 /usr
/openwin
/share
/lib \
7259 for ac_extension
in a so sl
; do
7260 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
7261 ac_x_libraries
=$ac_dir
7268 fi # $ac_x_libraries = NO
7270 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
7271 # Didn't find X anywhere. Cache the known absence of X.
7272 ac_cv_have_x
="have_x=no"
7274 # Record where we found X for the cache.
7275 ac_cv_have_x
="have_x=yes \
7276 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7280 eval "$ac_cv_have_x"
7283 if test "$have_x" != yes; then
7284 echo "$ac_t""$have_x" 1>&6
7287 # If each of the values was on the command line, it overrides each guess.
7288 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7289 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7290 # Update the cache value to reflect the command line values.
7291 ac_cv_have_x
="have_x=yes \
7292 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7293 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7298 # Unlike the sim directory, whether a simulator is linked is controlled by
7299 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7300 # This code just checks for a few cases where we'd like to ignore those
7301 # definitions, even when they're present in the '.mt' file. These cases
7302 # are when --disable-sim is specified, or if the simulator directory is
7303 # not part of the soruce tree.
7305 # Check whether --enable-sim or --disable-sim was given.
7306 if test "${enable_sim+set}" = set; then
7307 enableval
="$enable_sim"
7308 echo "enable_sim = $enable_sim";
7309 echo "enableval = ${enableval}";
7310 case "${enableval}" in
7311 yes) ignore_sim
=false
;;
7312 no
) ignore_sim
=true
;;
7313 *) ignore_sim
=false
;;
7320 if test ! -d "${srcdir}/../sim"; then
7324 if test "${ignore_sim}" = "true"; then
7326 IGNORE_SIM_OBS
="SIM_OBS="
7330 cat >> confdefs.h
<<\EOF
7349 # Begin stuff to support --enable-shared
7350 # Check whether --enable-shared or --disable-shared was given.
7351 if test "${enable_shared+set}" = set; then
7352 enableval
="$enable_shared"
7353 case "${enableval}" in
7362 # If we have shared libraries, try to set rpath reasonably.
7363 if test "${shared}" = "true"; then
7366 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
7368 *-*-irix5* |
*-*-irix6*)
7369 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7373 *-*-linux* |
*-pc-linux-gnu*)
7374 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7377 HLDFLAGS
='-R $(libdir)'
7380 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
7385 # On SunOS, if the linker supports the -rpath option, use it to
7386 # prevent ../bfd and ../opcodes from being included in the run time
7390 echo 'main () { }' > conftest.c
7391 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
7392 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
7394 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
7396 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
7398 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
7400 elif test "${shared}" = "true"; then
7401 HLDFLAGS
='-Wl,-rpath=$(libdir)'
7403 HLDFLAGS
='-Wl,-rpath='
7405 rm -f conftest.t conftest.c conftest
7410 # End stuff to support --enable-shared
7412 # target_subdir is used by the testsuite to find the target libraries.
7414 if test "${host}" != "${target}"; then
7415 target_subdir
="${target_alias}/"
7420 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7421 if test ! -f ${host_makefile_frag}; then
7422 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
7424 frags
="$frags $host_makefile_frag"
7426 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7427 if test ! -f ${target_makefile_frag}; then
7428 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
7430 frags
="$frags $target_makefile_frag"
7437 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7438 ' ${host_makefile_frag}`
7440 targetfile
=`sed -n '
7441 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7442 ' ${target_makefile_frag}`
7444 # these really aren't orthogonal true/false values of the same condition,
7445 # but shells are slow enough that I like to reuse the test conditions
7447 if test "${target}" = "${host}"; then
7448 nativefile
=`sed -n '
7449 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7450 ' ${host_makefile_frag}`
7452 # GDBserver is only useful in a "native" enviroment
7453 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7457 SUBDIRS
="doc testsuite nlm"
7458 if test "${enable_multi_ice}" = "yes"; then
7459 SUBDIRS
="${SUBDIRS} multi-ice"
7464 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7465 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7466 # corresponding links. But we have to remove the xm.h files and tm.h
7467 # files anyway, e.g. when switching from "configure host" to
7473 if test "${hostfile}" != ""; then
7474 files
="${files} config/${gdb_host_cpu}/${hostfile}"
7475 links
="${links} xm.h"
7478 if test "${targetfile}" != ""; then
7479 files
="${files} config/${gdb_target_cpu}/${targetfile}"
7480 links
="${links} tm.h"
7483 if test "${nativefile}" != ""; then
7484 files
="${files} config/${gdb_host_cpu}/${nativefile}"
7485 links
="${links} nm.h"
7487 # A cross-only configuration.
7488 files
="${files} config/nm-empty.h"
7489 links
="${links} nm.h"
7491 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7492 echo "configure:7493: checking whether ln -s works" >&5
7493 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7497 if ln -s X conftestdata
2>/dev
/null
7500 ac_cv_prog_LN_S
="ln -s"
7505 LN_S
="$ac_cv_prog_LN_S"
7506 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7507 echo "$ac_t""yes" 1>&6
7509 echo "$ac_t""no" 1>&6
7515 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7516 echo "configure:7517: checking for Cygwin environment" >&5
7517 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7520 cat > conftest.
$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7527 #define __CYGWIN__ __CYGWIN32__
7532 if { (eval echo configure
:7533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7536 echo "configure: failed program was:" >&5
7537 cat conftest.
$ac_ext >&5
7545 echo "$ac_t""$ac_cv_cygwin" 1>&6
7547 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7548 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7549 echo "configure:7550: checking for mingw32 environment" >&5
7550 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 cat > conftest.
$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7561 if { (eval echo configure
:7562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7565 echo "configure: failed program was:" >&5
7566 cat conftest.
$ac_ext >&5
7574 echo "$ac_t""$ac_cv_mingw32" 1>&6
7576 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7579 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7580 echo "configure:7581: checking for executable suffix" >&5
7581 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7588 echo 'int main () { return 0; }' > conftest.
$ac_ext
7590 if { (eval echo configure
:7591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7591 for file in conftest.
*; do
7593 *.c |
*.o |
*.obj
) ;;
7594 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7598 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7601 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7606 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7607 echo "$ac_t""${ac_cv_exeext}" 1>&6
7611 subdirs
="$configdirs"
7614 cat > confcache
<<\EOF
7615 # This file is a shell script that caches the results of configure
7616 # tests run on this system so they can be shared between configure
7617 # scripts and configure runs. It is not useful on other systems.
7618 # If it contains results you don't want to keep, you may remove or edit it.
7620 # By default, configure uses ./config.cache as the cache file,
7621 # creating it if it does not exist already. You can give configure
7622 # the --cache-file=FILE option to use a different cache file; that is
7623 # what configure does when it calls configure scripts in
7624 # subdirectories, so they share the cache.
7625 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7626 # config.status only pays attention to the cache file if you give it the
7627 # --recheck option to rerun configure.
7630 # The following way of writing the cache mishandles newlines in values,
7631 # but we know of no workaround that is simple, portable, and efficient.
7632 # So, don't put newlines in cache variables' values.
7633 # Ultrix sh set writes to stderr and can't be redirected directly,
7634 # and sets the high bit in the cache file unless we assign to the vars.
7636 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7638 # `set' does not quote correctly, so add quotes (double-quote substitution
7639 # turns \\\\ into \\, and sed turns \\ into \).
7641 -e "s/'/'\\\\''/g" \
7642 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7645 # `set' quotes correctly as required by POSIX, so do not add quotes.
7646 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7649 if cmp -s $cache_file confcache
; then
7652 if test -w $cache_file; then
7653 echo "updating cache $cache_file"
7654 cat confcache
> $cache_file
7656 echo "not updating unwritable cache $cache_file"
7661 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7663 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7664 # Let make expand exec_prefix.
7665 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7667 # Any assignment to VPATH causes Sun make to only execute
7668 # the first set of double-colon rules, so remove it if not needed.
7669 # If there is a colon in the path, we need to keep it.
7670 if test "x$srcdir" = x.
; then
7671 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7674 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7676 DEFS
=-DHAVE_CONFIG_H
7678 # Without the "./", some shells look in PATH for config.status.
7679 : ${CONFIG_STATUS=./config.status}
7681 echo creating
$CONFIG_STATUS
7682 rm -f $CONFIG_STATUS
7683 cat > $CONFIG_STATUS <<EOF
7685 # Generated automatically by configure.
7686 # Run this file to recreate the current configuration.
7687 # This directory was configured as follows,
7688 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7690 # $0 $ac_configure_args
7692 # Compiler output produced by configure, useful for debugging
7693 # configure, is in ./config.log if it exists.
7695 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7698 case "\$ac_option" in
7699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7700 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7701 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7702 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7703 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7705 -help | --help | --hel | --he | --h)
7706 echo "\$ac_cs_usage"; exit 0 ;;
7707 *) echo "\$ac_cs_usage"; exit 1 ;;
7711 ac_given_srcdir=$srcdir
7712 ac_given_INSTALL="$INSTALL"
7714 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7716 cat >> $CONFIG_STATUS <<EOF
7718 # Protect against being on the right side of a sed subst in config.status.
7719 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7720 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7724 s%@CFLAGS@%$CFLAGS%g
7725 s%@CPPFLAGS@%$CPPFLAGS%g
7726 s%@CXXFLAGS@%$CXXFLAGS%g
7727 s%@FFLAGS@%$FFLAGS%g
7729 s%@LDFLAGS@%$LDFLAGS%g
7731 s%@exec_prefix@%$exec_prefix%g
7732 s%@prefix@%$prefix%g
7733 s%@program_transform_name@%$program_transform_name%g
7734 s%@bindir@%$bindir%g
7735 s%@sbindir@%$sbindir%g
7736 s%@libexecdir@%$libexecdir%g
7737 s%@datadir@%$datadir%g
7738 s%@sysconfdir@%$sysconfdir%g
7739 s%@sharedstatedir@%$sharedstatedir%g
7740 s%@localstatedir@%$localstatedir%g
7741 s%@libdir@%$libdir%g
7742 s%@includedir@%$includedir%g
7743 s%@oldincludedir@%$oldincludedir%g
7744 s%@infodir@%$infodir%g
7745 s%@mandir@%$mandir%g
7746 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7747 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7752 s%@host_alias@%$host_alias%g
7753 s%@host_cpu@%$host_cpu%g
7754 s%@host_vendor@%$host_vendor%g
7755 s%@host_os@%$host_os%g
7756 s%@target@%$target%g
7757 s%@target_alias@%$target_alias%g
7758 s%@target_cpu@%$target_cpu%g
7759 s%@target_vendor@%$target_vendor%g
7760 s%@target_os@%$target_os%g
7762 s%@build_alias@%$build_alias%g
7763 s%@build_cpu@%$build_cpu%g
7764 s%@build_vendor@%$build_vendor%g
7765 s%@build_os@%$build_os%g
7766 s%@SET_MAKE@%$SET_MAKE%g
7767 s%@RANLIB@%$RANLIB%g
7768 s%@ALLOCA@%$ALLOCA%g
7769 s%@USE_NLS@%$USE_NLS%g
7770 s%@MSGFMT@%$MSGFMT%g
7771 s%@GMSGFMT@%$GMSGFMT%g
7772 s%@XGETTEXT@%$XGETTEXT%g
7773 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7774 s%@CATALOGS@%$CATALOGS%g
7775 s%@CATOBJEXT@%$CATOBJEXT%g
7776 s%@DATADIRNAME@%$DATADIRNAME%g
7777 s%@GMOFILES@%$GMOFILES%g
7778 s%@INSTOBJEXT@%$INSTOBJEXT%g
7779 s%@INTLDEPS@%$INTLDEPS%g
7780 s%@INTLLIBS@%$INTLLIBS%g
7781 s%@INTLOBJS@%$INTLOBJS%g
7782 s%@POFILES@%$POFILES%g
7784 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7786 s%@GT_YES@%$GT_YES%g
7787 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7790 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7791 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7792 s%@INSTALL_DATA@%$INSTALL_DATA%g
7794 s%@DLLTOOL@%$DLLTOOL%g
7795 s%@WINDRES@%$WINDRES%g
7798 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7799 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7800 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7801 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7802 s%@MMALLOC@%$MMALLOC%g
7804 s%@TERM_LIB@%$TERM_LIB%g
7805 s%@WIN32LIBS@%$WIN32LIBS%g
7806 s%@LIBGUI@%$LIBGUI%g
7807 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7808 s%@WIN32LDAPP@%$WIN32LDAPP%g
7809 s%@TCL_VERSION@%$TCL_VERSION%g
7810 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7811 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7812 s%@TCL_CC@%$TCL_CC%g
7813 s%@TCL_DEFS@%$TCL_DEFS%g
7814 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7815 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7816 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7817 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7818 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7819 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7820 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7821 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7822 s%@TCL_RANLIB@%$TCL_RANLIB%g
7823 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7824 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7825 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7826 s%@TK_VERSION@%$TK_VERSION%g
7827 s%@TK_DEFS@%$TK_DEFS%g
7828 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7829 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7830 s%@TK_XLIBSW@%$TK_XLIBSW%g
7831 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7832 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7833 s%@TCLHDIR@%$TCLHDIR%g
7834 s%@TKHDIR@%$TKHDIR%g
7835 s%@ITCLHDIR@%$ITCLHDIR%g
7836 s%@ITKHDIR@%$ITKHDIR%g
7837 s%@TIXHDIR@%$TIXHDIR%g
7838 s%@ITCL_VERSION@%$ITCL_VERSION%g
7839 s%@ITCL_DEFS@%$ITCL_DEFS%g
7840 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7841 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7842 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7843 s%@ITK_VERSION@%$ITK_VERSION%g
7844 s%@ITK_DEFS@%$ITK_DEFS%g
7845 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7846 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7847 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7848 s%@TIX_VERSION@%$TIX_VERSION%g
7849 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7850 s%@X_CFLAGS@%$X_CFLAGS%g
7851 s%@X_LDFLAGS@%$X_LDFLAGS%g
7852 s%@X_LIBS@%$X_LIBS%g
7853 s%@ITCLLIB@%$ITCLLIB%g
7854 s%@ITCL_DEPS@%$ITCL_DEPS%g
7855 s%@ITKLIB@%$ITKLIB%g
7856 s%@ITK_DEPS@%$ITK_DEPS%g
7857 s%@TIXLIB@%$TIXLIB%g
7858 s%@TIX_DEPS@%$TIX_DEPS%g
7859 s%@GDBTKLIBS@%$GDBTKLIBS%g
7860 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7861 s%@IGNORE_SIM@%$IGNORE_SIM%g
7862 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7863 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7864 s%@CONFIG_OBS@%$CONFIG_OBS%g
7865 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7866 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7867 s%@CONFIG_INITS@%$CONFIG_INITS%g
7868 s%@CONFIG_ALL@%$CONFIG_ALL%g
7869 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
7870 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
7871 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
7872 s%@HLDFLAGS@%$HLDFLAGS%g
7873 s%@HLDENV@%$HLDENV%g
7874 s%@target_subdir@%$target_subdir%g
7875 /@host_makefile_frag@/r $host_makefile_frag
7876 s%@host_makefile_frag@%%g
7877 /@target_makefile_frag@/r $target_makefile_frag
7878 s%@target_makefile_frag@%%g
7880 s%@SUBDIRS@%$SUBDIRS%g
7882 s%@EXEEXT@%$EXEEXT%g
7883 s%@subdirs@%$subdirs%g
7888 cat >> $CONFIG_STATUS <<\EOF
7890 # Split the substitutions into bite-sized pieces for seds with
7891 # small command number limits, like on Digital OSF/1 and HP-UX.
7892 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7893 ac_file
=1 # Number of current file.
7894 ac_beg
=1 # First line for current file.
7895 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7898 while $ac_more_lines; do
7899 if test $ac_beg -gt 1; then
7900 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7902 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7904 if test ! -s conftest.s
$ac_file; then
7906 rm -f conftest.s
$ac_file
7908 if test -z "$ac_sed_cmds"; then
7909 ac_sed_cmds
="sed -f conftest.s$ac_file"
7911 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7913 ac_file
=`expr $ac_file + 1`
7915 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7918 if test -z "$ac_sed_cmds"; then
7923 cat >> $CONFIG_STATUS <<EOF
7925 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
7927 cat >> $CONFIG_STATUS <<\EOF
7928 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7931 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7932 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7933 *) ac_file_in
="${ac_file}.in" ;;
7936 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7938 # Remove last slash and all that follows it. Not all systems have dirname.
7939 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7940 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7941 # The file is in a subdirectory.
7942 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7943 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7944 # A "../" for each directory in $ac_dir_suffix.
7945 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7947 ac_dir_suffix
= ac_dots
=
7950 case "$ac_given_srcdir" in
7952 if test -z "$ac_dots"; then top_srcdir
=.
7953 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7954 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7956 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7957 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7960 case "$ac_given_INSTALL" in
7961 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7962 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7965 echo creating
"$ac_file"
7967 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7969 *Makefile
*) ac_comsub
="1i\\
7970 # $configure_input" ;;
7974 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7976 s%@configure_input@%$configure_input%g
7977 s%@srcdir@%$srcdir%g
7978 s%@top_srcdir@%$top_srcdir%g
7979 s%@INSTALL@%$INSTALL%g
7980 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7985 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7987 # ac_d sets the value in "#define NAME VALUE" lines.
7988 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7989 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7992 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7993 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7994 ac_uB
='\([ ]\)%\1#\2define\3'
7997 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7998 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7999 ac_eB
='$%\1#\2define\3'
8003 if test "${CONFIG_HEADERS+set}" != set; then
8005 cat >> $CONFIG_STATUS <<EOF
8006 CONFIG_HEADERS="config.h:config.in"
8008 cat >> $CONFIG_STATUS <<\EOF
8010 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8013 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8014 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8015 *) ac_file_in
="${ac_file}.in" ;;
8018 echo creating
$ac_file
8020 rm -f conftest.frag conftest.
in conftest.out
8021 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8022 cat $ac_file_inputs > conftest.
in
8026 # Transform confdefs.h into a sed script conftest.vals that substitutes
8027 # the proper values into config.h.in to produce config.h. And first:
8028 # Protect against being on the right side of a sed subst in config.status.
8029 # Protect against being in an unquoted here document in config.status.
8031 cat > conftest.hdr
<<\EOF
8034 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8038 sed -n -f conftest.hdr confdefs.h > conftest.vals
8041 # This sed command replaces #undef with comments. This is necessary, for
8042 # example, in the case of _POSIX_SOURCE, which is predefined and required
8043 # on some systems where configure will not decide to define it.
8044 cat >> conftest.vals <<\EOF
8045 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8048 # Break up conftest.vals because some shells have a limit on
8049 # the size of here documents, and old seds have small limits too.
8054 ac_lines=`grep -c . conftest.vals
`
8055 # grep -c gives empty output for an empty file on some AIX systems.
8056 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8057 # Write a limited-size here document to conftest.frag.
8058 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8059 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8061 sed -f conftest.frag conftest.in > conftest.out
8063 mv conftest.out conftest.in
8065 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8067 mv conftest.tail conftest.vals
8071 cat >> $CONFIG_STATUS <<\EOF
8072 rm -f conftest.frag conftest.h
8073 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8074 cat conftest.in >> conftest.h
8076 if cmp -s $ac_file conftest.h 2>/dev/null; then
8077 echo "$ac_file is unchanged"
8080 # Remove last slash and all that follows it. Not all systems have dirname.
8081 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8083 # The file is in a subdirectory.
8084 test ! -d "$ac_dir" && mkdir "$ac_dir"
8087 mv conftest.h $ac_file
8093 cat >> $CONFIG_STATUS <<EOF
8098 cat >> $CONFIG_STATUS <<\EOF
8099 srcdir=$ac_given_srcdir
8100 while test -n "$ac_sources"; do
8101 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8102 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8104 echo "linking $srcdir/$ac_source to $ac_dest"
8106 if test ! -r $srcdir/$ac_source; then
8107 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8111 # Make relative symlinks.
8112 # Remove last slash and all that follows it. Not all systems have dirname.
8113 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
8114 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8115 # The dest file is in a subdirectory.
8116 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8117 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
8118 # A "../" for each directory in $ac_dest_dir_suffix.
8119 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
8121 ac_dest_dir_suffix= ac_dots=
8125 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8126 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8129 # Make a symlink if possible; otherwise try a hard link.
8130 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8131 ln $srcdir/$ac_source $ac_dest; then :
8133 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8137 cat >> $CONFIG_STATUS <<EOF
8139 gdb_host_cpu=$gdb_host_cpu
8140 gdb_target_cpu=$gdb_target_cpu
8141 nativefile=$nativefile
8144 cat >> $CONFIG_STATUS <<\EOF
8146 if test "${nativefile}" = ""; then
8147 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
8148 < Makefile > Makefile.tem
8149 mv -f Makefile.tem Makefile
8152 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
8153 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
8154 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
8155 mv -f Makefile.tmp Makefile
8158 case x$CONFIG_HEADERS in
8159 xconfig.h:config.in)
8165 chmod +x $CONFIG_STATUS
8166 rm -fr confdefs* $ac_clean_files
8167 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8169 if test "$no_recursion" != yes; then
8171 # Remove --cache-file and --srcdir arguments so they do not pile up.
8172 ac_sub_configure_args=
8174 for ac_arg in $ac_configure_args; do
8175 if test -n "$ac_prev"; then
8180 -cache-file | --cache-file | --cache-fil | --cache-fi \
8181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8182 ac_prev=cache_file ;;
8183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8190 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8194 for ac_config_dir in $configdirs; do
8196 # Do not complain, so a configure script can configure whichever
8197 # parts of a large source tree are present.
8198 if test ! -d $srcdir/$ac_config_dir; then
8202 echo configuring in $ac_config_dir
8207 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8209 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8217 # A "../" for each directory in /$ac_config_dir.
8218 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8221 .) # No --srcdir option. We are building in place.
8222 ac_sub_srcdir=$srcdir ;;
8223 /*) # Absolute path.
8224 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8226 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8229 # Check for guested configure; otherwise get Cygnus style configure.
8230 if test -f $ac_sub_srcdir/configure; then
8231 ac_sub_configure=$ac_sub_srcdir/configure
8232 elif test -f $ac_sub_srcdir/configure.in; then
8233 ac_sub_configure=$ac_configure
8235 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8239 # The recursion is here.
8240 if test -n "$ac_sub_configure"; then
8242 # Make the cache file name correct relative to the subdirectory.
8243 case "$cache_file" in
8244 /*) ac_sub_cache_file=$cache_file ;;
8246 ac_sub_cache_file="$ac_dots$cache_file" ;;
8248 case "$ac_given_INSTALL" in
8249 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8250 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8253 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8254 # The eval makes quoting arguments work.
8255 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8258 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }