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 for ac_prog
in 'bison -y' byacc
3038 # Extract the first word of "$ac_prog", so it can be a program name with args.
3039 set dummy
$ac_prog; ac_word
=$2
3040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3041 echo "configure:3042: checking for $ac_word" >&5
3042 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 if test -n "$YACC"; then
3046 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3048 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3050 for ac_dir
in $ac_dummy; do
3051 test -z "$ac_dir" && ac_dir
=.
3052 if test -f $ac_dir/$ac_word; then
3053 ac_cv_prog_YACC
="$ac_prog"
3060 YACC
="$ac_cv_prog_YACC"
3061 if test -n "$YACC"; then
3062 echo "$ac_t""$YACC" 1>&6
3064 echo "$ac_t""no" 1>&6
3067 test -n "$YACC" && break
3069 test -n "$YACC" || YACC
="yacc"
3072 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3073 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3075 echo "configure:3076: checking for $ac_word" >&5
3076 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 if test -n "$MIG"; then
3080 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3082 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3084 for ac_dir
in $ac_dummy; do
3085 test -z "$ac_dir" && ac_dir
=.
3086 if test -f $ac_dir/$ac_word; then
3087 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3092 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3095 MIG
="$ac_cv_prog_MIG"
3096 if test -n "$MIG"; then
3097 echo "$ac_t""$MIG" 1>&6
3099 echo "$ac_t""no" 1>&6
3105 if test "$program_transform_name" = s
,x
,x
,; then
3106 program_transform_name
=
3108 # Double any \ or $. echo might interpret backslashes.
3109 cat <<\EOF_SED
> conftestsed
3110 s
,\\,\\\\,g
; s
,\$
,$$
,g
3112 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3115 test "$program_prefix" != NONE
&&
3116 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3117 # Use a double $ so make ignores it.
3118 test "$program_suffix" != NONE
&&
3119 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3121 # sed with no file args requires a program.
3122 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3125 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3126 echo "configure:3127: checking return type of signal handlers" >&5
3127 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 cat > conftest.
$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 #include <sys/types.h>
3139 extern "C" void (*signal (int, void (*)(int)))(int);
3141 void (*signal ()) ();
3148 if { (eval echo configure
:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3150 ac_cv_type_signal
=void
3152 echo "configure: failed program was:" >&5
3153 cat conftest.
$ac_ext >&5
3155 ac_cv_type_signal
=int
3160 echo "$ac_t""$ac_cv_type_signal" 1>&6
3161 cat >> confdefs.h
<<EOF
3162 #define RETSIGTYPE $ac_cv_type_signal
3167 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3168 echo "configure:3169: checking for ANSI C header files" >&5
3169 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 cat > conftest.
$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3181 { (eval echo configure
:3182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3183 if test -z "$ac_err"; then
3185 ac_cv_header_stdc
=yes
3188 echo "configure: failed program was:" >&5
3189 cat conftest.
$ac_ext >&5
3191 ac_cv_header_stdc
=no
3195 if test $ac_cv_header_stdc = yes; then
3196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3197 cat > conftest.
$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3203 egrep "memchr" >/dev
/null
2>&1; then
3207 ac_cv_header_stdc
=no
3213 if test $ac_cv_header_stdc = yes; then
3214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3215 cat > conftest.
$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 egrep "free" >/dev
/null
2>&1; then
3225 ac_cv_header_stdc
=no
3231 if test $ac_cv_header_stdc = yes; then
3232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3233 if test "$cross_compiling" = yes; then
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3240 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3241 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3243 int main () { int i; for (i = 0; i < 256; i++)
3244 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3248 if { (eval echo configure
:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3252 echo "configure: failed program was:" >&5
3253 cat conftest.
$ac_ext >&5
3255 ac_cv_header_stdc
=no
3263 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3264 if test $ac_cv_header_stdc = yes; then
3265 cat >> confdefs.h
<<\EOF
3266 #define STDC_HEADERS 1
3273 case $host_os in solaris2.7
) case "$GCC" in yes)
3274 cat >> confdefs.h
<<\EOF
3275 #define _MSE_INT_H 1
3280 for ac_hdr
in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3281 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3282 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3283 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3284 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3287 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3289 echo "configure:3290: checking for $ac_hdr" >&5
3290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.
$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3298 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3299 { (eval echo configure
:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3300 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3301 if test -z "$ac_err"; then
3303 eval "ac_cv_header_$ac_safe=yes"
3306 echo "configure: failed program was:" >&5
3307 cat conftest.
$ac_ext >&5
3309 eval "ac_cv_header_$ac_safe=no"
3313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3314 echo "$ac_t""yes" 1>&6
3315 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3316 cat >> confdefs.h
<<EOF
3317 #define $ac_tr_hdr 1
3321 echo "$ac_t""no" 1>&6
3325 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3326 echo "configure:3327: checking whether stat file-mode macros are broken" >&5
3327 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 cat > conftest.
$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 #include <sys/types.h>
3334 #include <sys/stat.h>
3336 #if defined(S_ISBLK) && defined(S_IFDIR)
3337 # if S_ISBLK (S_IFDIR)
3342 #if defined(S_ISBLK) && defined(S_IFCHR)
3343 # if S_ISBLK (S_IFCHR)
3348 #if defined(S_ISLNK) && defined(S_IFREG)
3349 # if S_ISLNK (S_IFREG)
3354 #if defined(S_ISSOCK) && defined(S_IFREG)
3355 # if S_ISSOCK (S_IFREG)
3361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362 egrep "You lose" >/dev
/null
2>&1; then
3364 ac_cv_header_stat_broken
=yes
3367 ac_cv_header_stat_broken
=no
3373 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3374 if test $ac_cv_header_stat_broken = yes; then
3375 cat >> confdefs.h
<<\EOF
3376 #define STAT_MACROS_BROKEN 1
3382 echo $ac_n "checking for working const""... $ac_c" 1>&6
3383 echo "configure:3384: checking for working const" >&5
3384 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.
$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3393 /* Ultrix mips cc rejects this. */
3394 typedef int charset[2]; const charset x;
3395 /* SunOS 4.1.1 cc rejects this. */
3396 char const *const *ccp;
3398 /* NEC SVR4.0.2 mips cc rejects this. */
3399 struct point {int x, y;};
3400 static struct point const zero = {0,0};
3401 /* AIX XL C 1.02.0.0 rejects this.
3402 It does not let you subtract one const X* pointer from another in an arm
3403 of an if-expression whose if-part is not a constant expression */
3404 const char *g = "string";
3405 ccp = &g + (g ? g-g : 0);
3406 /* HPUX 7.0 cc rejects these. */
3409 ccp = (char const *const *) p;
3410 { /* SCO 3.2v4 cc rejects this. */
3412 char const *s = 0 ? (char *) 0 : (char const *) 0;
3416 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3418 const int *foo = &x[0];
3421 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3422 typedef const int *iptr;
3426 { /* AIX XL C 1.02.0.0 rejects this saying
3427 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3428 struct s { int j; const int *ap[3]; };
3429 struct s *b; b->j = 5;
3431 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3437 if { (eval echo configure
:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3441 echo "configure: failed program was:" >&5
3442 cat conftest.
$ac_ext >&5
3449 echo "$ac_t""$ac_cv_c_const" 1>&6
3450 if test $ac_cv_c_const = no
; then
3451 cat >> confdefs.h
<<\EOF
3458 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3461 echo "configure:3462: checking for $ac_func" >&5
3462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.
$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* System header to define __stub macros and hopefully few prototypes,
3469 which can conflict with char $ac_func(); below. */
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3478 /* The GNU C library defines this for functions which it implements
3479 to always fail with ENOSYS. Some functions are actually named
3480 something starting with __ and the normal name is an alias. */
3481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 if { (eval echo configure
:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3491 eval "ac_cv_func_$ac_func=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.
$ac_ext >&5
3496 eval "ac_cv_func_$ac_func=no"
3501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3504 cat >> confdefs.h
<<EOF
3505 #define $ac_tr_func 1
3509 echo "$ac_t""no" 1>&6
3513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3514 # for constant arguments. Useless!
3515 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3516 echo "configure:3517: checking for working alloca.h" >&5
3517 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.
$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3525 char *p = alloca(2 * sizeof(int));
3528 if { (eval echo configure
:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3530 ac_cv_header_alloca_h
=yes
3532 echo "configure: failed program was:" >&5
3533 cat conftest.
$ac_ext >&5
3535 ac_cv_header_alloca_h
=no
3540 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3541 if test $ac_cv_header_alloca_h = yes; then
3542 cat >> confdefs.h
<<\EOF
3543 #define HAVE_ALLOCA_H 1
3548 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3549 echo "configure:3550: checking for alloca" >&5
3550 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 cat > conftest.
$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3558 # define alloca __builtin_alloca
3561 # include <malloc.h>
3562 # define alloca _alloca
3565 # include <alloca.h>
3570 # ifndef alloca /* predefined by HP cc +Olibcalls */
3579 char *p = (char *) alloca(1);
3582 if { (eval echo configure
:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3584 ac_cv_func_alloca_works
=yes
3586 echo "configure: failed program was:" >&5
3587 cat conftest.
$ac_ext >&5
3589 ac_cv_func_alloca_works
=no
3594 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3595 if test $ac_cv_func_alloca_works = yes; then
3596 cat >> confdefs.h
<<\EOF
3597 #define HAVE_ALLOCA 1
3602 if test $ac_cv_func_alloca_works = no
; then
3603 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3604 # that cause trouble. Some versions do not even contain alloca or
3605 # contain a buggy version. If you still want to use their alloca,
3606 # use ar to extract alloca.o from them instead of compiling alloca.c.
3607 ALLOCA
=alloca.
${ac_objext}
3608 cat >> confdefs.h
<<\EOF
3613 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3614 echo "configure:3615: checking whether alloca needs Cray hooks" >&5
3615 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #if defined(CRAY) && ! defined(CRAY2)
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 egrep "webecray" >/dev
/null
2>&1; then
3640 echo "$ac_t""$ac_cv_os_cray" 1>&6
3641 if test $ac_cv_os_cray = yes; then
3642 for ac_func
in _getb67 GETB67 getb67
; do
3643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3644 echo "configure:3645: checking for $ac_func" >&5
3645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.
$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 /* System header to define __stub macros and hopefully few prototypes,
3652 which can conflict with char $ac_func(); below. */
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 /* We use char because int might match the return type of a gcc2
3656 builtin and then its argument prototype would still apply. */
3661 /* The GNU C library defines this for functions which it implements
3662 to always fail with ENOSYS. Some functions are actually named
3663 something starting with __ and the normal name is an alias. */
3664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3672 if { (eval echo configure
:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3674 eval "ac_cv_func_$ac_func=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 eval "ac_cv_func_$ac_func=no"
3684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3685 echo "$ac_t""yes" 1>&6
3686 cat >> confdefs.h
<<EOF
3687 #define CRAY_STACKSEG_END $ac_func
3692 echo "$ac_t""no" 1>&6
3698 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3699 echo "configure:3700: checking stack direction for C alloca" >&5
3700 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 if test "$cross_compiling" = yes; then
3704 ac_cv_c_stack_direction
=0
3706 cat > conftest.
$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 find_stack_direction ()
3711 static char *addr = 0;
3716 return find_stack_direction ();
3719 return (&dummy > addr) ? 1 : -1;
3723 exit (find_stack_direction() < 0);
3726 if { (eval echo configure
:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3728 ac_cv_c_stack_direction
=1
3730 echo "configure: failed program was:" >&5
3731 cat conftest.
$ac_ext >&5
3733 ac_cv_c_stack_direction
=-1
3740 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3741 cat >> confdefs.h
<<EOF
3742 #define STACK_DIRECTION $ac_cv_c_stack_direction
3748 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
3749 echo "configure:3750: checking for PTRACE_GETREGS" >&5
3750 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 cat > conftest.
$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <sys/ptrace.h>
3761 if { (eval echo configure
:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3763 gdb_cv_have_ptrace_getregs
=yes
3765 echo "configure: failed program was:" >&5
3766 cat conftest.
$ac_ext >&5
3768 gdb_cv_have_ptrace_getregs
=no
3773 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
3774 if test $gdb_cv_have_ptrace_getregs = yes; then
3775 cat >> confdefs.h
<<\EOF
3776 #define HAVE_PTRACE_GETREGS 1
3781 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3782 echo "configure:3783: checking for PTRACE_GETXFPREGS" >&5
3783 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3786 cat > conftest.
$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 #include <sys/ptrace.h>
3794 if { (eval echo configure
:3795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796 gdb_cv_have_ptrace_getxfpregs
=yes
3798 echo "configure: failed program was:" >&5
3799 cat conftest.
$ac_ext >&5
3801 gdb_cv_have_ptrace_getxfpregs
=no
3806 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3807 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3808 cat >> confdefs.h
<<\EOF
3809 #define HAVE_PTRACE_GETXFPREGS 1
3814 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3815 echo "configure:3816: checking for socketpair in -lsocket" >&5
3816 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 ac_save_LIBS
="$LIBS"
3821 LIBS
="-lsocket $LIBS"
3822 cat > conftest.
$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3834 if { (eval echo configure
:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.
$ac_ext >&5
3841 eval "ac_cv_lib_$ac_lib_var=no"
3844 LIBS
="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3849 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3851 cat >> confdefs.h
<<EOF
3852 #define $ac_tr_lib 1
3855 LIBS
="-lsocket $LIBS"
3858 echo "$ac_t""no" 1>&6
3861 for ac_func
in socketpair
3863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3864 echo "configure:3865: checking for $ac_func" >&5
3865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* System header to define __stub macros and hopefully few prototypes,
3872 which can conflict with char $ac_func(); below. */
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3881 /* The GNU C library defines this for functions which it implements
3882 to always fail with ENOSYS. Some functions are actually named
3883 something starting with __ and the normal name is an alias. */
3884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3892 if { (eval echo configure
:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3894 eval "ac_cv_func_$ac_func=yes"
3896 echo "configure: failed program was:" >&5
3897 cat conftest.
$ac_ext >&5
3899 eval "ac_cv_func_$ac_func=no"
3904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3905 echo "$ac_t""yes" 1>&6
3906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3907 cat >> confdefs.h
<<EOF
3908 #define $ac_tr_func 1
3912 echo "$ac_t""no" 1>&6
3918 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3919 echo "configure:3920: checking whether malloc must be declared" >&5
3920 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 cat > conftest.
$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3928 #ifdef HAVE_STRING_H
3931 #ifdef HAVE_STRINGS_H
3932 #include <strings.h>
3935 #ifdef HAVE_STDLIB_H
3938 #ifdef HAVE_UNISTD_H
3942 char *(*pfn) = (char *(*)) malloc
3945 if { (eval echo configure
:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3947 bfd_cv_decl_needed_malloc
=no
3949 echo "configure: failed program was:" >&5
3950 cat conftest.
$ac_ext >&5
3952 bfd_cv_decl_needed_malloc
=yes
3957 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3958 if test $bfd_cv_decl_needed_malloc = yes; then
3959 cat >> confdefs.h
<<\EOF
3960 #define NEED_DECLARATION_MALLOC 1
3965 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3966 echo "configure:3967: checking whether realloc must be declared" >&5
3967 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.
$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3975 #ifdef HAVE_STRING_H
3978 #ifdef HAVE_STRINGS_H
3979 #include <strings.h>
3982 #ifdef HAVE_STDLIB_H
3985 #ifdef HAVE_UNISTD_H
3989 char *(*pfn) = (char *(*)) realloc
3992 if { (eval echo configure
:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3994 bfd_cv_decl_needed_realloc
=no
3996 echo "configure: failed program was:" >&5
3997 cat conftest.
$ac_ext >&5
3999 bfd_cv_decl_needed_realloc
=yes
4004 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4005 if test $bfd_cv_decl_needed_realloc = yes; then
4006 cat >> confdefs.h
<<\EOF
4007 #define NEED_DECLARATION_REALLOC 1
4012 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4013 echo "configure:4014: checking whether free must be declared" >&5
4014 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4017 cat > conftest.
$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4022 #ifdef HAVE_STRING_H
4025 #ifdef HAVE_STRINGS_H
4026 #include <strings.h>
4029 #ifdef HAVE_STDLIB_H
4032 #ifdef HAVE_UNISTD_H
4036 char *(*pfn) = (char *(*)) free
4039 if { (eval echo configure
:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4041 bfd_cv_decl_needed_free
=no
4043 echo "configure: failed program was:" >&5
4044 cat conftest.
$ac_ext >&5
4046 bfd_cv_decl_needed_free
=yes
4051 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4052 if test $bfd_cv_decl_needed_free = yes; then
4053 cat >> confdefs.h
<<\EOF
4054 #define NEED_DECLARATION_FREE 1
4059 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4060 echo "configure:4061: checking whether strerror must be declared" >&5
4061 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.
$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4069 #ifdef HAVE_STRING_H
4072 #ifdef HAVE_STRINGS_H
4073 #include <strings.h>
4076 #ifdef HAVE_STDLIB_H
4079 #ifdef HAVE_UNISTD_H
4083 char *(*pfn) = (char *(*)) strerror
4086 if { (eval echo configure
:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4088 bfd_cv_decl_needed_strerror
=no
4090 echo "configure: failed program was:" >&5
4091 cat conftest.
$ac_ext >&5
4093 bfd_cv_decl_needed_strerror
=yes
4098 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4099 if test $bfd_cv_decl_needed_strerror = yes; then
4100 cat >> confdefs.h
<<\EOF
4101 #define NEED_DECLARATION_STRERROR 1
4106 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4107 echo "configure:4108: checking whether strdup must be declared" >&5
4108 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4116 #ifdef HAVE_STRING_H
4119 #ifdef HAVE_STRINGS_H
4120 #include <strings.h>
4123 #ifdef HAVE_STDLIB_H
4126 #ifdef HAVE_UNISTD_H
4130 char *(*pfn) = (char *(*)) strdup
4133 if { (eval echo configure
:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4135 bfd_cv_decl_needed_strdup
=no
4137 echo "configure: failed program was:" >&5
4138 cat conftest.
$ac_ext >&5
4140 bfd_cv_decl_needed_strdup
=yes
4145 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4146 if test $bfd_cv_decl_needed_strdup = yes; then
4147 cat >> confdefs.h
<<\EOF
4148 #define NEED_DECLARATION_STRDUP 1
4153 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4154 echo "configure:4155: checking whether strstr must be declared" >&5
4155 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.
$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4163 #ifdef HAVE_STRING_H
4166 #ifdef HAVE_STRINGS_H
4167 #include <strings.h>
4170 #ifdef HAVE_STDLIB_H
4173 #ifdef HAVE_UNISTD_H
4177 char *(*pfn) = (char *(*)) strstr
4180 if { (eval echo configure
:4181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4182 bfd_cv_decl_needed_strstr
=no
4184 echo "configure: failed program was:" >&5
4185 cat conftest.
$ac_ext >&5
4187 bfd_cv_decl_needed_strstr
=yes
4192 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4193 if test $bfd_cv_decl_needed_strstr = yes; then
4194 cat >> confdefs.h
<<\EOF
4195 #define NEED_DECLARATION_STRSTR 1
4202 # The following save_state_t checkery is only necessary for HPUX
4203 # versions earlier than 10.20. When those fade from memory, this
4204 # could be expunged. --jsm 1999-03-22
4206 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4207 echo "configure:4208: checking for HPUX save_state structure" >&5
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4211 #include <machine/save_state.h>
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 egrep "save_state_t" >/dev
/null
2>&1; then
4216 gdb_cv_hpux_savestate
=yes
4219 gdb_cv_hpux_savestate
=no
4223 cat > conftest.
$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 #include <machine/save_state.h>
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229 egrep "ss_wide" >/dev
/null
2>&1; then
4231 gdb_cv_hpux_sswide
=yes
4234 gdb_cv_hpux_sswide
=no
4238 if test $gdb_cv_hpux_savestate = yes
4240 cat >> confdefs.h
<<\EOF
4241 #define HAVE_STRUCT_SAVE_STATE_T 1
4245 if test $gdb_cv_hpux_sswide = yes
4247 cat >> confdefs.h
<<\EOF
4248 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4252 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4255 # If we are configured native on GNU/Linux, work around problems with
4257 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4259 if test "${target}" = "${host}"; then
4262 cat >> confdefs.h
<<\EOF
4263 #define START_INFERIOR_TRAPS_EXPECTED 2
4266 cat >> confdefs.h
<<\EOF
4267 #define sys_quotactl 1
4271 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4272 cat >> confdefs.h
<<\EOF
4273 #define NEW_PROC_API 1
4278 cat >> confdefs.h
<<\EOF
4279 #define NEW_PROC_API 1
4286 if test "$ac_cv_header_sys_procfs_h" = yes; then
4287 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4288 echo "configure:4289: checking for pstatus_t in sys/procfs.h" >&5
4289 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 cat > conftest.
$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 #include <sys/procfs.h>
4300 if { (eval echo configure
:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4302 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4304 echo "configure: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4307 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4313 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4314 cat >> confdefs.h
<<\EOF
4315 #define HAVE_PSTATUS_T 1
4319 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4321 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4322 echo "configure:4323: checking for prrun_t in sys/procfs.h" >&5
4323 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 #include <sys/procfs.h>
4334 if { (eval echo configure
:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4336 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 bfd_cv_have_sys_procfs_type_prrun_t
=no
4347 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4348 cat >> confdefs.h
<<\EOF
4349 #define HAVE_PRRUN_T 1
4353 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4355 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4356 echo "configure:4357: checking for gregset_t in sys/procfs.h" >&5
4357 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.
$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <sys/procfs.h>
4368 if { (eval echo configure
:4369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4370 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4372 echo "configure: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 bfd_cv_have_sys_procfs_type_gregset_t
=no
4381 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4382 cat >> confdefs.h
<<\EOF
4383 #define HAVE_GREGSET_T 1
4387 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4389 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4390 echo "configure:4391: checking for fpregset_t in sys/procfs.h" >&5
4391 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.
$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 #include <sys/procfs.h>
4402 if { (eval echo configure
:4403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4415 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4416 cat >> confdefs.h
<<\EOF
4417 #define HAVE_FPREGSET_T 1
4421 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4423 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4424 echo "configure:4425: checking for prgregset_t in sys/procfs.h" >&5
4425 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <sys/procfs.h>
4436 if { (eval echo configure
:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4438 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4440 echo "configure: failed program was:" >&5
4441 cat conftest.
$ac_ext >&5
4443 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4449 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4450 cat >> confdefs.h
<<\EOF
4451 #define HAVE_PRGREGSET_T 1
4455 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4457 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4458 echo "configure:4459: checking for prfpregset_t in sys/procfs.h" >&5
4459 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.
$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 #include <sys/procfs.h>
4470 if { (eval echo configure
:4471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4472 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4474 echo "configure: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4477 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4483 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4484 cat >> confdefs.h
<<\EOF
4485 #define HAVE_PRFPREGSET_T 1
4489 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4491 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4492 echo "configure:4493: checking for lwpid_t in sys/procfs.h" >&5
4493 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 cat > conftest.
$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 #include <sys/procfs.h>
4504 if { (eval echo configure
:4505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4506 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4508 echo "configure: failed program was:" >&5
4509 cat conftest.
$ac_ext >&5
4511 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4517 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4518 cat >> confdefs.h
<<\EOF
4519 #define HAVE_LWPID_T 1
4523 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4525 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4526 echo "configure:4527: checking for psaddr_t in sys/procfs.h" >&5
4527 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.
$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 #include <sys/procfs.h>
4538 if { (eval echo configure
:4539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4540 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4542 echo "configure: failed program was:" >&5
4543 cat conftest.
$ac_ext >&5
4545 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4551 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4552 cat >> confdefs.h
<<\EOF
4553 #define HAVE_PSADDR_T 1
4557 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4562 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4563 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
4564 echo "configure:4565: checking whether prfpregset_t type is broken" >&5
4565 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 if test "$cross_compiling" = yes; then
4569 gdb_cv_prfpregset_t_broken
=yes
4571 cat > conftest.
$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 #include <sys/procfs.h>
4577 if (sizeof (prfpregset_t) == sizeof (void *))
4582 if { (eval echo configure
:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4584 gdb_cv_prfpregset_t_broken
=no
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 gdb_cv_prfpregset_t_broken
=yes
4596 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
4597 if test $gdb_cv_prfpregset_t_broken = yes; then
4598 cat >> confdefs.h
<<\EOF
4599 #define PRFPREGSET_T_BROKEN 1
4606 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4607 echo "configure:4608: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4608 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.
$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4615 #include <sys/types.h>
4616 #include <sys/procfs.h>
4621 dummy = ioctl(0, PIOCSET, &dummy);
4625 if { (eval echo configure
:4626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4627 gdb_cv_have_procfs_piocset
=yes
4629 echo "configure: failed program was:" >&5
4630 cat conftest.
$ac_ext >&5
4632 gdb_cv_have_procfs_piocset
=no
4637 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4638 if test $gdb_cv_have_procfs_piocset = yes; then
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_PROCFS_PIOCSET 1
4646 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4647 echo "configure:4648: checking for main in -lm" >&5
4648 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 ac_save_LIBS
="$LIBS"
4654 cat > conftest.
$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4662 if { (eval echo configure
:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4664 eval "ac_cv_lib_$ac_lib_var=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4669 eval "ac_cv_lib_$ac_lib_var=no"
4672 LIBS
="$ac_save_LIBS"
4675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4678 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4679 cat >> confdefs.h
<<EOF
4680 #define $ac_tr_lib 1
4686 echo "$ac_t""no" 1>&6
4690 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4691 echo "configure:4692: checking for wctype in -lc" >&5
4692 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 ac_save_LIBS
="$LIBS"
4698 cat > conftest.
$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4710 if { (eval echo configure
:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4712 eval "ac_cv_lib_$ac_lib_var=yes"
4714 echo "configure: failed program was:" >&5
4715 cat conftest.
$ac_ext >&5
4717 eval "ac_cv_lib_$ac_lib_var=no"
4720 LIBS
="$ac_save_LIBS"
4723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4727 echo "$ac_t""no" 1>&6
4728 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4729 echo "configure:4730: checking for wctype in -lw" >&5
4730 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS
="$LIBS"
4736 cat > conftest.
$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4748 if { (eval echo configure
:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.
$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS
="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4765 cat >> confdefs.h
<<EOF
4766 #define $ac_tr_lib 1
4772 echo "$ac_t""no" 1>&6
4779 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4780 echo "configure:4781: checking for long long support in compiler" >&5
4781 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.
$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4790 extern long long foo;
4791 switch (foo & 2) { case 0: return 1; }
4795 if { (eval echo configure
:4796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4797 gdb_cv_c_long_long
=yes
4799 echo "configure: failed program was:" >&5
4800 cat conftest.
$ac_ext >&5
4802 gdb_cv_c_long_long
=no
4807 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4808 if test $gdb_cv_c_long_long = yes; then
4809 cat >> confdefs.h
<<\EOF
4810 #define CC_HAS_LONG_LONG 1
4816 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4817 echo "configure:4818: checking for long long support in printf" >&5
4818 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 if test "$cross_compiling" = yes; then
4822 gdb_cv_printf_has_long_long
=no
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4831 l = (l << 16) + 0x0123;
4832 l = (l << 16) + 0x4567;
4833 l = (l << 16) + 0x89ab;
4834 l = (l << 16) + 0xcdef;
4835 sprintf (buf, "0x%016llx", l);
4836 return (strcmp ("0x0123456789abcdef", buf));
4839 if { (eval echo configure
:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4841 gdb_cv_printf_has_long_long
=yes
4843 echo "configure: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4846 gdb_cv_printf_has_long_long
=no
4853 if test $gdb_cv_printf_has_long_long = yes; then
4854 cat >> confdefs.h
<<\EOF
4855 #define PRINTF_HAS_LONG_LONG 1
4859 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4862 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4863 echo "configure:4864: checking for long double support in compiler" >&5
4864 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.
$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4875 if { (eval echo configure
:4876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4877 ac_cv_c_long_double
=yes
4879 echo "configure: failed program was:" >&5
4880 cat conftest.
$ac_ext >&5
4882 ac_cv_c_long_double
=no
4887 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4888 if test $ac_cv_c_long_double = yes; then
4889 cat >> confdefs.h
<<\EOF
4890 #define HAVE_LONG_DOUBLE 1
4896 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4897 echo "configure:4898: checking for long double support in printf" >&5
4898 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 if test "$cross_compiling" = yes; then
4902 gdb_cv_printf_has_long_double
=no
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4910 long double f = 3.141592653;
4911 sprintf (buf, "%Lg", f);
4912 return (strncmp ("3.14159", buf, 7));
4915 if { (eval echo configure
:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4917 gdb_cv_printf_has_long_double
=yes
4919 echo "configure: failed program was:" >&5
4920 cat conftest.
$ac_ext >&5
4922 gdb_cv_printf_has_long_double
=no
4929 if test $gdb_cv_printf_has_long_double = yes; then
4930 cat >> confdefs.h
<<\EOF
4931 #define PRINTF_HAS_LONG_DOUBLE 1
4935 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4938 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4939 echo "configure:4940: checking for long double support in scanf" >&5
4940 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 if test "$cross_compiling" = yes; then
4944 gdb_cv_scanf_has_long_double
=no
4946 cat > conftest.
$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4951 char *buf = "3.141592653";
4953 sscanf (buf, "%Lg", &f);
4954 return !(f > 3.14159 && f < 3.14160);
4957 if { (eval echo configure
:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4959 gdb_cv_scanf_has_long_double
=yes
4961 echo "configure: failed program was:" >&5
4962 cat conftest.
$ac_ext >&5
4964 gdb_cv_scanf_has_long_double
=no
4971 if test $gdb_cv_scanf_has_long_double = yes; then
4972 cat >> confdefs.h
<<\EOF
4973 #define SCANF_HAS_LONG_DOUBLE 1
4977 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4979 for ac_hdr
in unistd.h
4981 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4983 echo "configure:4984: checking for $ac_hdr" >&5
4984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 cat > conftest.
$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4993 { (eval echo configure
:4994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4995 if test -z "$ac_err"; then
4997 eval "ac_cv_header_$ac_safe=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.
$ac_ext >&5
5003 eval "ac_cv_header_$ac_safe=no"
5007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5008 echo "$ac_t""yes" 1>&6
5009 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5010 cat >> confdefs.h
<<EOF
5011 #define $ac_tr_hdr 1
5015 echo "$ac_t""no" 1>&6
5019 for ac_func
in getpagesize
5021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5022 echo "configure:5023: checking for $ac_func" >&5
5023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5026 cat > conftest.
$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5029 /* System header to define __stub macros and hopefully few prototypes,
5030 which can conflict with char $ac_func(); below. */
5032 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5039 /* The GNU C library defines this for functions which it implements
5040 to always fail with ENOSYS. Some functions are actually named
5041 something starting with __ and the normal name is an alias. */
5042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5050 if { (eval echo configure
:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5052 eval "ac_cv_func_$ac_func=yes"
5054 echo "configure: failed program was:" >&5
5055 cat conftest.
$ac_ext >&5
5057 eval "ac_cv_func_$ac_func=no"
5062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5064 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5065 cat >> confdefs.h
<<EOF
5066 #define $ac_tr_func 1
5070 echo "$ac_t""no" 1>&6
5074 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5075 echo "configure:5076: checking for working mmap" >&5
5076 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 if test "$cross_compiling" = yes; then
5080 ac_cv_func_mmap_fixed_mapped
=no
5082 cat > conftest.
$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5086 /* Thanks to Mike Haertel and Jim Avera for this test.
5087 Here is a matrix of mmap possibilities:
5088 mmap private not fixed
5089 mmap private fixed at somewhere currently unmapped
5090 mmap private fixed at somewhere already mapped
5091 mmap shared not fixed
5092 mmap shared fixed at somewhere currently unmapped
5093 mmap shared fixed at somewhere already mapped
5094 For private mappings, we should verify that changes cannot be read()
5095 back from the file, nor mmap's back from the file at a different
5096 address. (There have been systems where private was not correctly
5097 implemented like the infamous i386 svr4.0, and systems where the
5098 VM page cache was not coherent with the filesystem buffer cache
5099 like early versions of FreeBSD and possibly contemporary NetBSD.)
5100 For shared mappings, we should conversely verify that changes get
5101 propogated back to all the places they're supposed to be.
5103 Grep wants private fixed already mapped.
5104 The main things grep needs to know about mmap are:
5105 * does it exist and is it safe to write into the mmap'd area
5106 * how to use it (BSD variants) */
5107 #include <sys/types.h>
5109 #include <sys/mman.h>
5111 /* This mess was copied from the GNU getpagesize.h. */
5112 #ifndef HAVE_GETPAGESIZE
5113 # ifdef HAVE_UNISTD_H
5114 # include <unistd.h>
5117 /* Assume that all systems that can run configure have sys/param.h. */
5118 # ifndef HAVE_SYS_PARAM_H
5119 # define HAVE_SYS_PARAM_H 1
5122 # ifdef _SC_PAGESIZE
5123 # define getpagesize() sysconf(_SC_PAGESIZE)
5124 # else /* no _SC_PAGESIZE */
5125 # ifdef HAVE_SYS_PARAM_H
5126 # include <sys/param.h>
5127 # ifdef EXEC_PAGESIZE
5128 # define getpagesize() EXEC_PAGESIZE
5129 # else /* no EXEC_PAGESIZE */
5131 # define getpagesize() NBPG * CLSIZE
5134 # endif /* no CLSIZE */
5135 # else /* no NBPG */
5137 # define getpagesize() NBPC
5138 # else /* no NBPC */
5140 # define getpagesize() PAGESIZE
5141 # endif /* PAGESIZE */
5142 # endif /* no NBPC */
5143 # endif /* no NBPG */
5144 # endif /* no EXEC_PAGESIZE */
5145 # else /* no HAVE_SYS_PARAM_H */
5146 # define getpagesize() 8192 /* punt totally */
5147 # endif /* no HAVE_SYS_PARAM_H */
5148 # endif /* no _SC_PAGESIZE */
5150 #endif /* no HAVE_GETPAGESIZE */
5153 extern "C" { void *malloc(unsigned); }
5161 char *data, *data2, *data3;
5165 pagesize = getpagesize();
5168 * First, make a file with some known garbage in it.
5170 data = malloc(pagesize);
5173 for (i = 0; i < pagesize; ++i)
5174 *(data + i) = rand();
5176 fd = creat("conftestmmap", 0600);
5179 if (write(fd, data, pagesize) != pagesize)
5184 * Next, try to mmap the file at a fixed address which
5185 * already has something else allocated at it. If we can,
5186 * also make sure that we see the same garbage.
5188 fd = open("conftestmmap", O_RDWR);
5191 data2 = malloc(2 * pagesize);
5194 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5195 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5198 for (i = 0; i < pagesize; ++i)
5199 if (*(data + i) != *(data2 + i))
5203 * Finally, make sure that changes to the mapped area
5204 * do not percolate back to the file as seen by read().
5205 * (This is a bug on some variants of i386 svr4.0.)
5207 for (i = 0; i < pagesize; ++i)
5208 *(data2 + i) = *(data2 + i) + 1;
5209 data3 = malloc(pagesize);
5212 if (read(fd, data3, pagesize) != pagesize)
5214 for (i = 0; i < pagesize; ++i)
5215 if (*(data + i) != *(data3 + i))
5218 unlink("conftestmmap");
5223 if { (eval echo configure
:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5225 ac_cv_func_mmap_fixed_mapped
=yes
5227 echo "configure: failed program was:" >&5
5228 cat conftest.
$ac_ext >&5
5230 ac_cv_func_mmap_fixed_mapped
=no
5237 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5239 cat >> confdefs.h
<<\EOF
5248 if test ${build} = ${host} -a ${host} = ${target} ; then
5251 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5252 echo "configure:5253: checking for HPUX/OSF thread support" >&5
5253 if test -f /usr
/include
/dce
/cma_config.h
; then
5254 if test "$GCC" = "yes" ; then
5255 echo "$ac_t""yes" 1>&6
5256 cat >> confdefs.h
<<\EOF
5257 #define HAVE_HPUX_THREAD_SUPPORT 1
5260 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
5261 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
5263 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5266 echo "$ac_t""no" 1>&6
5270 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5271 echo "configure:5272: checking for Solaris thread debugging library" >&5
5272 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5273 echo "$ac_t""yes" 1>&6
5274 cat >> confdefs.h
<<\EOF
5275 #define HAVE_THREAD_DB_LIB 1
5278 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
5279 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5280 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5281 echo "configure:5282: checking for dlopen in -ldl" >&5
5282 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 ac_save_LIBS
="$LIBS"
5288 cat > conftest.
$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5291 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5300 if { (eval echo configure
:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5302 eval "ac_cv_lib_$ac_lib_var=yes"
5304 echo "configure: failed program was:" >&5
5305 cat conftest.
$ac_ext >&5
5307 eval "ac_cv_lib_$ac_lib_var=no"
5310 LIBS
="$ac_save_LIBS"
5313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5314 echo "$ac_t""yes" 1>&6
5315 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5316 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5317 cat >> confdefs.h
<<EOF
5318 #define $ac_tr_lib 1
5324 echo "$ac_t""no" 1>&6
5327 if test "$GCC" = "yes" ; then
5328 # The GNU linker requires the -export-dynamic option to make
5329 # all symbols visible in the dynamic symbol table.
5330 hold_ldflags
=$LDFLAGS
5331 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5332 echo "configure:5333: checking for the ld -export-dynamic flag" >&5
5333 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5334 cat > conftest.
$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5342 if { (eval echo configure
:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5346 echo "configure: failed program was:" >&5
5347 cat conftest.
$ac_ext >&5
5352 LDFLAGS
=$hold_ldflags
5353 echo "$ac_t""$found" 1>&6
5354 if test $found = yes; then
5355 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5358 # Sun randomly tweaked the prototypes in <proc_service.h>
5360 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5361 echo "configure:5362: checking if <proc_service.h> is old" >&5
5362 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5366 cat > conftest.
$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5370 #include <proc_service.h>
5372 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5378 if { (eval echo configure
:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5380 gdb_cv_proc_service_is_old
=no
5382 echo "configure: failed program was:" >&5
5383 cat conftest.
$ac_ext >&5
5385 gdb_cv_proc_service_is_old
=yes
5391 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5392 if test $gdb_cv_proc_service_is_old = yes; then
5393 cat >> confdefs.h
<<\EOF
5394 #define PROC_SERVICE_IS_OLD 1
5399 echo "$ac_t""no" 1>&6
5407 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5408 if test "${enable_gdbmi+set}" = set; then
5409 enableval
="$enable_gdbmi"
5411 case "${enable_gdbmi}" in
5413 "") enable_gdbmi
=yes ;;
5415 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5421 case ${enable_gdbmi} in
5423 if test -d "${srcdir}/mi" ; then
5424 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5425 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5426 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5427 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5428 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5429 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
5430 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
5431 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5432 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5437 # Check whether --enable-tui or --disable-tui was given.
5438 if test "${enable_tui+set}" = set; then
5439 enableval
="$enable_tui"
5441 case "${enable_tui}" in
5443 "") enable_tui
=yes ;;
5445 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5451 case ${enable_tui} in
5453 cat >> confdefs.h
<<\EOF
5458 TUI_LIBRARY
=tui
/libtui.a
5468 # Check whether --enable-netrom or --disable-netrom was given.
5469 if test "${enable_netrom+set}" = set; then
5470 enableval
="$enable_netrom"
5471 case "${enableval}" in
5472 yes) enable_netrom
=yes ;;
5473 no
) enable_netrom
=no
;;
5474 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5479 if test "${enable_netrom}" = "yes"; then
5480 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5481 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5485 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5486 -Wformat -Wparentheses -Wpointer-arith"
5487 # Not yet: -Wall -Wpointer-arith -Wstrict-prototypes
5488 # -Wmissing-prototypes -Wmissing-declarations
5489 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5490 if test "${enable_build_warnings+set}" = set; then
5491 enableval
="$enable_build_warnings"
5492 case "${enableval}" in
5494 no
) build_warnings
="-w";;
5495 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5496 build_warnings
="${build_warnings} ${t}";;
5497 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5498 build_warnings
="${t} ${build_warnings}";;
5499 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5501 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5502 echo "Setting warning flags = $build_warnings" 6>&1
5507 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5509 # Separate out the -Werror flag as some files just cannot be
5510 # compiled with it enabled.
5511 for w
in ${build_warnings}; do
5513 -Werr*) WERROR_CFLAGS
=-Werror ;;
5514 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
5526 # Check whether --with-mmalloc or --without-mmalloc was given.
5527 if test "${with_mmalloc+set}" = set; then
5528 withval
="$with_mmalloc"
5529 case "${withval}" in
5530 yes) want_mmalloc
=true
;;
5531 no
) want_mmalloc
=false
;;
5532 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5538 if test x
$want_mmalloc = xtrue
; then
5539 cat >> confdefs.h
<<\EOF
5540 #define USE_MMALLOC 1
5543 cat >> confdefs.h
<<\EOF
5544 #define MMCHECK_FORCE 1
5547 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5548 MMALLOC
='../mmalloc/libmmalloc.a'
5551 # Check whether --with-included-regex or --without-included-regex was given.
5552 if test "${with_included_regex+set}" = set; then
5553 withval
="$with_included_regex"
5554 case "${withval}" in
5555 yes) want_included_regex
=true
;;
5556 no
) want_included_regex
=false
;;
5557 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
5560 want_included_regex
=true
5563 if test $want_included_regex = false
; then
5564 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
5565 echo "configure:5566: checking for GNU regex" >&5
5566 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5569 cat > conftest.
$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5572 #include <gnu-versions.h>
5573 #include <sys/types.h>
5576 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
5577 #error No valid GNU regex.
5582 if { (eval echo configure
:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5584 gdb_cv_have_gnu_regex
=yes
5586 echo "configure: failed program was:" >&5
5587 cat conftest.
$ac_ext >&5
5589 gdb_cv_have_gnu_regex
=no
5594 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
5595 if test $gdb_cv_have_gnu_regex = no
; then
5596 want_included_regex
=true
5600 if test x
${want_included_regex} = xtrue
; then
5602 cat >> confdefs.h
<<\EOF
5603 #define USE_INCLUDED_REGEX 1
5609 # In the Cygwin environment, we need some additional flags.
5610 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5611 echo "configure:5612: checking for cygwin" >&5
5612 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 cat > conftest.
$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5619 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624 egrep "lose" >/dev
/null
2>&1; then
5626 gdb_cv_os_cygwin
=yes
5635 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5637 DLLTOOL
=${DLLTOOL-dlltool}
5638 WINDRES
=${WINDRES-windres}
5642 if test x
$gdb_host = xgo32
; then
5645 if test x
$gdb_cv_os_cygwin = xyes
; then
5646 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5649 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5650 echo "configure:5651: checking for tgetent in -lncurses" >&5
5651 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 ac_save_LIBS
="$LIBS"
5656 LIBS
="-lncurses $LIBS"
5657 cat > conftest.
$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5669 if { (eval echo configure
:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5671 eval "ac_cv_lib_$ac_lib_var=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5676 eval "ac_cv_lib_$ac_lib_var=no"
5679 LIBS
="$ac_save_LIBS"
5682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5683 echo "$ac_t""yes" 1>&6
5686 echo "$ac_t""no" 1>&6
5687 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5688 echo "configure:5689: checking for tgetent in -lHcurses" >&5
5689 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 ac_save_LIBS
="$LIBS"
5694 LIBS
="-lHcurses $LIBS"
5695 cat > conftest.
$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 /* Override any gcc2 internal prototype to avoid an error. */
5699 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */
5707 if { (eval echo configure
:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5709 eval "ac_cv_lib_$ac_lib_var=yes"
5711 echo "configure: failed program was:" >&5
5712 cat conftest.
$ac_ext >&5
5714 eval "ac_cv_lib_$ac_lib_var=no"
5717 LIBS
="$ac_save_LIBS"
5720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5721 echo "$ac_t""yes" 1>&6
5724 echo "$ac_t""no" 1>&6
5725 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5726 echo "configure:5727: checking for tgetent in -ltermlib" >&5
5727 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 ac_save_LIBS
="$LIBS"
5732 LIBS
="-ltermlib $LIBS"
5733 cat > conftest.
$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5745 if { (eval echo configure
:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5747 eval "ac_cv_lib_$ac_lib_var=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5752 eval "ac_cv_lib_$ac_lib_var=no"
5755 LIBS
="$ac_save_LIBS"
5758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5762 echo "$ac_t""no" 1>&6
5763 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5764 echo "configure:5765: checking for tgetent in -ltermcap" >&5
5765 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 ac_save_LIBS
="$LIBS"
5770 LIBS
="-ltermcap $LIBS"
5771 cat > conftest.
$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5783 if { (eval echo configure
:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5785 eval "ac_cv_lib_$ac_lib_var=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.
$ac_ext >&5
5790 eval "ac_cv_lib_$ac_lib_var=no"
5793 LIBS
="$ac_save_LIBS"
5796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5800 echo "$ac_t""no" 1>&6
5801 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5802 echo "configure:5803: checking for tgetent in -lcurses" >&5
5803 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5807 ac_save_LIBS
="$LIBS"
5808 LIBS
="-lcurses $LIBS"
5809 cat > conftest.
$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 /* Override any gcc2 internal prototype to avoid an error. */
5813 /* We use char because int might match the return type of a gcc2
5814 builtin and then its argument prototype would still apply. */
5821 if { (eval echo configure
:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5823 eval "ac_cv_lib_$ac_lib_var=yes"
5825 echo "configure: failed program was:" >&5
5826 cat conftest.
$ac_ext >&5
5828 eval "ac_cv_lib_$ac_lib_var=no"
5831 LIBS
="$ac_save_LIBS"
5834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5835 echo "$ac_t""yes" 1>&6
5838 echo "$ac_t""no" 1>&6
5839 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5840 echo "configure:5841: checking for tgetent in -lterminfo" >&5
5841 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 ac_save_LIBS
="$LIBS"
5846 LIBS
="-lterminfo $LIBS"
5847 cat > conftest.
$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 /* Override any gcc2 internal prototype to avoid an error. */
5851 /* We use char because int might match the return type of a gcc2
5852 builtin and then its argument prototype would still apply. */
5859 if { (eval echo configure
:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5861 eval "ac_cv_lib_$ac_lib_var=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.
$ac_ext >&5
5866 eval "ac_cv_lib_$ac_lib_var=no"
5869 LIBS
="$ac_save_LIBS"
5872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5873 echo "$ac_t""yes" 1>&6
5876 echo "$ac_t""no" 1>&6
5890 if test "x$TERM_LIB" = x
5892 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5898 # libreadline needs libuser32.a in a cygwin environment
5900 if test x
$gdb_cv_os_cygwin = xyes
; then
5901 WIN32LIBS
="-luser32"
5903 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
5909 LIBGUI
="../libgui/src/libgui.a"
5910 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5914 # Check whether --with-cpu or --without-cpu was given.
5915 if test "${with_cpu+set}" = set; then
5918 powerpc-
* | powerpcle-
* )
5919 ## It would be nice to keep this table in sync with the one in
5921 case "${with_cpu}" in
5922 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
5924 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5926 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
5927 ## These are all RS6000 variants, as far as GDB is concerned.
5937 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5943 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5946 cat >> confdefs.h
<<EOF
5947 #define TARGET_CPU_DEFAULT "${with_cpu}"
5955 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5956 if test "${enable_gdbtk+set}" = set; then
5957 enableval
="$enable_gdbtk"
5958 case "${enableval}" in
5962 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5965 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5973 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5977 # Default is on for everything but go32 and Cygwin
5982 if test -d "${srcdir}/gdbtk" ; then
5998 if test "${enable_gdbtk}" = "yes"; then
6002 # Ok, lets find the tcl configuration
6003 # First, look for one uninstalled.
6004 # the alternative search directory is invoked by --with-tclconfig
6007 if test x
"${no_tcl}" = x
; then
6008 # we reset no_tcl in case something fails here
6010 # Check whether --with-tclconfig or --without-tclconfig was given.
6011 if test "${with_tclconfig+set}" = set; then
6012 withval
="$with_tclconfig"
6013 with_tclconfig
=${withval}
6016 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
6017 echo "configure:6018: checking for Tcl configuration" >&5
6018 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6023 # First check to see if --with-tclconfig was specified.
6024 if test x
"${with_tclconfig}" != x
; then
6025 if test -f "${with_tclconfig}/tclConfig.sh" ; then
6026 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
6028 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
6032 # then check for a private Tcl installation
6033 if test x
"${ac_cv_c_tclconfig}" = x
; then
6036 `ls -dr ../tcl[7-9]* 2>/dev/null` \
6038 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
6040 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
6041 if test -f "$i/${configdir}/tclConfig.sh" ; then
6042 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6047 # check in a few common install locations
6048 if test x
"${ac_cv_c_tclconfig}" = x
; then
6049 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6050 if test -f "$i/tclConfig.sh" ; then
6051 ac_cv_c_tclconfig
=`(cd $i; pwd)`
6056 # check in a few other private locations
6057 if test x
"${ac_cv_c_tclconfig}" = x
; then
6060 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
6061 if test -f "$i/${configdir}/tclConfig.sh" ; then
6062 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6070 if test x
"${ac_cv_c_tclconfig}" = x
; then
6071 TCLCONFIG
="# no Tcl configs found"
6072 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
6075 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
6076 echo "$ac_t""found $TCLCONFIG" 1>&6
6080 if test -z "${no_tcl}"; then
6110 # Ok, lets find the tk configuration
6111 # First, look for one uninstalled.
6112 # the alternative search directory is invoked by --with-tkconfig
6115 if test x
"${no_tk}" = x
; then
6116 # we reset no_tk in case something fails here
6118 # Check whether --with-tkconfig or --without-tkconfig was given.
6119 if test "${with_tkconfig+set}" = set; then
6120 withval
="$with_tkconfig"
6121 with_tkconfig
=${withval}
6124 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6125 echo "configure:6126: checking for Tk configuration" >&5
6126 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6131 # First check to see if --with-tkconfig was specified.
6132 if test x
"${with_tkconfig}" != x
; then
6133 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6134 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
6136 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
6140 # then check for a private Tk library
6141 if test x
"${ac_cv_c_tkconfig}" = x
; then
6144 `ls -dr ../tk[4-9]* 2>/dev/null` \
6146 `ls -dr ../../tk[4-9]* 2>/dev/null` \
6148 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
6149 if test -f "$i/${configdir}/tkConfig.sh" ; then
6150 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6155 # check in a few common install locations
6156 if test x
"${ac_cv_c_tkconfig}" = x
; then
6157 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6158 if test -f "$i/tkConfig.sh" ; then
6159 ac_cv_c_tkconfig
=`(cd $i; pwd)`
6164 # check in a few other private locations
6165 if test x
"${ac_cv_c_tkconfig}" = x
; then
6168 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
6169 if test -f "$i/${configdir}/tkConfig.sh" ; then
6170 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6178 if test x
"${ac_cv_c_tkconfig}" = x
; then
6179 TKCONFIG
="# no Tk configs found"
6180 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6183 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
6184 echo "$ac_t""found $TKCONFIG" 1>&6
6190 # If $no_tk is nonempty, then we can't do Tk, and there is no
6191 # point to doing Tcl.
6192 if test -z "${no_tk}"; then
6194 if test -f "$TKCONFIG" ; then
6212 # Ok, lets find the tcl source trees so we can use the headers
6213 # Warning: transition of version 9 to 10 will break this algorithm
6214 # because 10 sorts before 9. We also look for just tcl. We have to
6215 # be careful that we don't match stuff like tclX by accident.
6216 # the alternative search directory is involked by --with-tclinclude
6220 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6221 echo "configure:6222: checking for Tcl private headers. dir=${configdir}" >&5
6222 # Check whether --with-tclinclude or --without-tclinclude was given.
6223 if test "${with_tclinclude+set}" = set; then
6224 withval
="$with_tclinclude"
6225 with_tclinclude
=${withval}
6228 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6229 echo $ac_n "(cached) $ac_c" 1>&6
6232 # first check to see if --with-tclinclude was specified
6233 if test x
"${with_tclinclude}" != x
; then
6234 if test -f ${with_tclinclude}/tclInt.h
; then
6235 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
6236 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
6237 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
6239 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6243 # next check if it came with Tcl configuration file
6244 if test x
"${ac_cv_c_tclconfig}" = x
; then
6245 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
6246 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
6250 # next check in private source directory
6252 # since ls returns lowest version numbers first, reverse its output
6253 if test x
"${ac_cv_c_tclh}" = x
; then
6256 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6257 ${srcdir}/..
/..
/tcl \
6258 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6259 ${srcdir}/..
/..
/..
/tcl \
6260 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6261 if test -f $i/generic
/tclInt.h
; then
6262 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6267 # finally check in a few common install locations
6269 # since ls returns lowest version numbers first, reverse its output
6270 if test x
"${ac_cv_c_tclh}" = x
; then
6272 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6273 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6274 /usr
/local
/src
/tcl \
6275 /usr
/local
/lib
/tcl \
6276 ${prefix}/include
; do
6277 if test -f $i/generic
/tclInt.h
; then
6278 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6283 # see if one is installed
6284 if test x
"${ac_cv_c_tclh}" = x
; then
6285 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6286 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6287 echo "configure:6288: checking for tclInt.h" >&5
6288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6291 cat > conftest.
$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6296 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6297 { (eval echo configure
:6298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6298 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6299 if test -z "$ac_err"; then
6301 eval "ac_cv_header_$ac_safe=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.
$ac_ext >&5
6307 eval "ac_cv_header_$ac_safe=no"
6311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_cv_c_tclh
=installed
6315 echo "$ac_t""no" 1>&6
6323 if test x
"${ac_cv_c_tclh}" = x
; then
6324 TCLHDIR
="# no Tcl private headers found"
6325 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6327 if test x
"${ac_cv_c_tclh}" != x
; then
6329 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
6330 echo "$ac_t""is installed" 1>&6
6333 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6334 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6335 TCLHDIR
="-I${ac_cv_c_tclh}"
6343 # Ok, lets find the tk source trees so we can use the headers
6344 # If the directory (presumably symlink) named "tk" exists, use that one
6345 # in preference to any others. Same logic is used when choosing library
6346 # and again with Tcl. The search order is the best place to look first, then in
6347 # decreasing significance. The loop breaks if the trigger file is found.
6348 # Note the gross little conversion here of srcdir by cd'ing to the found
6349 # directory. This converts the path from a relative to an absolute, so
6350 # recursive cache variables for the path will work right. We check all
6351 # the possible paths in one loop rather than many seperate loops to speed
6353 # the alternative search directory is involked by --with-tkinclude
6356 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6357 echo "configure:6358: checking for Tk private headers" >&5
6358 # Check whether --with-tkinclude or --without-tkinclude was given.
6359 if test "${with_tkinclude+set}" = set; then
6360 withval
="$with_tkinclude"
6361 with_tkinclude
=${withval}
6364 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6
6368 # first check to see if --with-tkinclude was specified
6369 if test x
"${with_tkinclude}" != x
; then
6370 if test -f ${with_tkinclude}/tk.h
; then
6371 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6372 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6373 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6375 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6379 # next check if it came with Tk configuration file
6380 if test x
"${ac_cv_c_tkconfig}" = x
; then
6381 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6382 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6386 # next check in private source directory
6388 # since ls returns lowest version numbers first, reverse its output
6389 if test x
"${ac_cv_c_tkh}" = x
; then
6392 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6393 ${srcdir}/..
/..
/tk \
6394 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6395 ${srcdir}/..
/..
/..
/tk \
6396 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6397 if test -f $i/generic
/tk.h
; then
6398 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6403 # finally check in a few common install locations
6405 # since ls returns lowest version numbers first, reverse its output
6406 if test x
"${ac_cv_c_tkh}" = x
; then
6408 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6409 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6412 ${prefix}/include
; do
6413 if test -f $i/generic
/tk.h
; then
6414 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6419 # see if one is installed
6420 if test x
"${ac_cv_c_tkh}" = x
; then
6421 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6422 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6423 echo "configure:6424: checking for tk.h" >&5
6424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.
$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6433 { (eval echo configure
:6434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6434 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6435 if test -z "$ac_err"; then
6437 eval "ac_cv_header_$ac_safe=yes"
6440 echo "configure: failed program was:" >&5
6441 cat conftest.
$ac_ext >&5
6443 eval "ac_cv_header_$ac_safe=no"
6447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6448 echo "$ac_t""yes" 1>&6
6449 ac_cv_c_tkh
=installed
6451 echo "$ac_t""no" 1>&6
6459 if test x
"${ac_cv_c_tkh}" != x
; then
6461 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6462 echo "$ac_t""is installed" 1>&6
6465 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6466 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6467 TKHDIR
="-I${ac_cv_c_tkh}"
6470 TKHDIR
="# no Tk directory found"
6471 echo "configure: warning: Can't find Tk private headers" 1>&2
6478 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6479 echo "configure:6480: checking for Itcl private headers. srcdir=${srcdir}" >&5
6480 if test x
"${ac_cv_c_itclh}" = x
; then
6481 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6482 if test -f $i/generic
/itcl.h
; then
6483 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6488 if test x
"${ac_cv_c_itclh}" = x
; then
6489 ITCLHDIR
="# no Itcl private headers found"
6490 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6492 if test x
"${ac_cv_c_itclh}" != x
; then
6493 ITCLHDIR
="-I${ac_cv_c_itclh}"
6495 # should always be here
6496 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6501 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6502 echo "configure:6503: checking for Itk private headers. srcdir=${srcdir}" >&5
6503 if test x
"${ac_cv_c_itkh}" = x
; then
6504 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6505 if test -f $i/generic
/itk.h
; then
6506 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6511 if test x
"${ac_cv_c_itkh}" = x
; then
6512 ITKHDIR
="# no Itk private headers found"
6513 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6515 if test x
"${ac_cv_c_itkh}" != x
; then
6516 ITKHDIR
="-I${ac_cv_c_itkh}"
6518 # should always be here
6519 # ITKLIB="../itcl/itk/unix/libitk.a"
6524 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6525 echo "configure:6526: checking for Tix private headers. srcdir=${srcdir}" >&5
6526 if test x
"${ac_cv_c_tixh}" = x
; then
6527 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6528 if test -f $i/generic
/tix.h
; then
6529 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6534 if test x
"${ac_cv_c_tixh}" = x
; then
6535 TIXHDIR
="# no Tix private headers found"
6536 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6538 if test x
"${ac_cv_c_tixh}" != x
; then
6539 TIXHDIR
="-I${ac_cv_c_tixh}"
6544 # now look for Itcl library stuff
6548 # Ok, lets find the itcl configuration
6549 # First, look for one uninstalled.
6550 # the alternative search directory is invoked by --with-itclconfig
6553 if test x
"${no_itcl}" = x
; then
6554 # we reset no_itcl in case something fails here
6556 # Check whether --with-itclconfig or --without-itclconfig was given.
6557 if test "${with_itclconfig+set}" = set; then
6558 withval
="$with_itclconfig"
6559 with_itclconfig
=${withval}
6562 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6563 echo "configure:6564: checking for Itcl configuration" >&5
6564 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6569 # First check to see if --with-itclconfig was specified.
6570 if test x
"${with_itclconfig}" != x
; then
6571 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6572 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6574 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6578 # then check for a private Itcl library
6579 if test x
"${ac_cv_c_itclconfig}" = x
; then
6582 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6584 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6586 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6587 if test -f "$i/itclConfig.sh" ; then
6588 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6593 # check in a few common install locations
6594 if test x
"${ac_cv_c_itclconfig}" = x
; then
6595 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6596 if test -f "$i/itclConfig.sh" ; then
6597 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6602 # check in a few other private locations
6603 if test x
"${ac_cv_c_itclconfig}" = x
; then
6605 ${srcdir}/..
/itcl
/itcl \
6606 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6607 if test -f "$i/itclConfig.sh" ; then
6608 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6616 if test x
"${ac_cv_c_itclconfig}" = x
; then
6617 ITCLCONFIG
="# no Itcl configs found"
6618 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6621 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6622 echo "$ac_t""found $ITCLCONFIG" 1>&6
6626 if test -z "${no_itcl}"; then
6628 if test -f "$ITCLCONFIG" ; then
6644 itcldir
=..
/itcl
/itcl
/win
/
6647 itcldir
=..
/itcl
/itcl
/unix
/
6652 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
6653 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6657 # now look for Itk library stuff
6660 # Ok, lets find the itk configuration
6661 # First, look for one uninstalled.
6662 # the alternative search directory is invoked by --with-itkconfig
6665 if test x
"${no_itk}" = x
; then
6666 # we reset no_itk in case something fails here
6668 # Check whether --with-itkconfig or --without-itkconfig was given.
6669 if test "${with_itkconfig+set}" = set; then
6670 withval
="$with_itkconfig"
6671 with_itkconfig
=${withval}
6674 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6675 echo "configure:6676: checking for Itk configuration" >&5
6676 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6681 # First check to see if --with-itkconfig was specified.
6682 if test x
"${with_itkconfig}" != x
; then
6683 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6684 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
6686 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6690 # then check for a private Itk library
6691 if test x
"${ac_cv_c_itkconfig}" = x
; then
6694 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6696 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6698 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6699 if test -f "$i/itkConfig.sh" ; then
6700 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6705 # check in a few common install locations
6706 if test x
"${ac_cv_c_itkconfig}" = x
; then
6707 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6708 if test -f "$i/itkConfig.sh" ; then
6709 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6714 # check in a few other private locations
6715 if test x
"${ac_cv_c_itkconfig}" = x
; then
6717 ${srcdir}/..
/itcl
/itk \
6718 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6719 if test -f "$i/itkConfig.sh" ; then
6720 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6728 if test x
"${ac_cv_c_itkconfig}" = x
; then
6729 ITKCONFIG
="# no Itk configs found"
6730 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6733 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
6734 echo "$ac_t""found $ITKCONFIG" 1>&6
6739 if test -z "${no_itcl}"; then
6741 if test -f "$ITKCONFIG" ; then
6758 itkdir
=..
/itcl
/itk
/win
/
6761 itkdir
=..
/itcl
/itk
/unix
/
6765 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
6766 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
6769 # now look for Tix library stuff
6772 # Ok, lets find the tix configuration
6773 # First, look for one uninstalled.
6774 # the alternative search directory is invoked by --with-itkconfig
6777 if test x
"${no_tix}" = x
; then
6778 # we reset no_tix in case something fails here
6780 # Check whether --with-tixconfig or --without-tixconfig was given.
6781 if test "${with_tixconfig+set}" = set; then
6782 withval
="$with_tixconfig"
6783 with_tixconfig
=${withval}
6786 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6787 echo "configure:6788: checking for Tix configuration" >&5
6788 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6793 # First check to see if --with-tixconfig was specified.
6794 if test x
"${with_tixconfig}" != x
; then
6795 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6796 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
6798 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6802 # then check for a private Tix library
6803 if test x
"${ac_cv_c_tixconfig}" = x
; then
6806 `ls -dr ../tix 2>/dev/null` \
6808 `ls -dr ../../tix 2>/dev/null` \
6810 `ls -dr ../../../tix 2>/dev/null` ; do
6811 echo "**** Looking at $i - with ${configdir}"
6812 if test -f "$i/tixConfig.sh" ; then
6813 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6818 # check in a few common install locations
6819 if test x
"${ac_cv_c_tixconfig}" = x
; then
6820 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6821 echo "**** Looking at $i"
6822 if test -f "$i/tixConfig.sh" ; then
6823 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6828 # check in a few other private locations
6829 echo "**** Other private locations"
6830 if test x
"${ac_cv_c_tixconfig}" = x
; then
6833 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6834 echo "**** Looking at $i - with ${configdir}"
6835 if test -f "$i/${configdir}/tixConfig.sh" ; then
6836 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
6844 if test x
"${ac_cv_c_tixconfig}" = x
; then
6845 TIXCONFIG
="# no Tix configs found"
6846 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6849 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
6850 echo "$ac_t""found $TIXCONFIG" 1>&6
6855 if test -z "${no_tix}"; then
6857 if test -f "$TIXCONFIG" ; then
6868 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
6869 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6872 ENABLE_CFLAGS
="$ENABLE_CFLAGS -DGDBTK"
6873 # Tcl/Tk 8.1 require -fwritable strings. I don't
6874 # know whether 8.2 will or not, but I bet it will.
6875 # I don't have to worry about 7.x since we don't support it.
6877 if test "$GCC" = "yes"; then
6878 if test "$TCL_VERSION" != "8.0" ; then
6879 GDBTK_CFLAGS
="-fwritable-strings"
6883 # Include some libraries that Tcl and Tk want.
6884 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6885 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6886 # Yes, the ordering seems wrong here. But it isn't.
6887 # TK_LIBS is the list of libraries that need to be linked
6888 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6889 # were in LIBS then any link tests after this point would
6890 # try to include things like `$(LIBGUI)', which wouldn't work.
6891 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
6892 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"
6893 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
6894 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"
6895 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
6896 CONFIG_CLEAN
="${CONFIG_ALL} \$(SUBDIR_GDBTK_CLEAN)"
6897 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
6898 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
6900 if test x
$gdb_cv_os_cygwin = xyes
; then
6901 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6902 WIN32LDAPP
="-Wl,--subsystem,console"
6903 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
6921 # If we find X, set shell vars x_includes and x_libraries to the
6922 # paths, otherwise set no_x=yes.
6923 # Uses ac_ vars as temps to allow command line to override cache and checks.
6924 # --without-x overrides everything else, but does not touch the cache.
6925 echo $ac_n "checking for X""... $ac_c" 1>&6
6926 echo "configure:6927: checking for X" >&5
6928 # Check whether --with-x or --without-x was given.
6929 if test "${with_x+set}" = set; then
6934 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6935 if test "x$with_x" = xno
; then
6936 # The user explicitly disabled X.
6939 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6940 # Both variables are already set.
6943 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 # One or both of the vars are not set, and there is no cached value.
6947 ac_x_includes
=NO ac_x_libraries
=NO
6949 if mkdir conftestdir
; then
6951 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6952 cat > Imakefile
<<'EOF'
6954 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6956 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6958 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6959 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6960 for ac_extension
in a so sl
; do
6961 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6962 test -f $ac_im_libdir/libX11.
$ac_extension; then
6963 ac_im_usrlibdir
=$ac_im_libdir; break
6966 # Screen out bogus values from the imake configuration. They are
6967 # bogus both because they are the default anyway, and because
6968 # using them would break gcc on systems where it needs fixed includes.
6969 case "$ac_im_incroot" in
6971 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
6973 case "$ac_im_usrlibdir" in
6975 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
6982 if test "$ac_x_includes" = NO
; then
6983 # Guess where to find include files, by looking for this one X11 .h file.
6984 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
6986 # First, try using that file with no special directory specified.
6987 cat > conftest.
$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 #include <$x_direct_test_include>
6992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6993 { (eval echo configure
:6994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6995 if test -z "$ac_err"; then
6997 # We can compile using X headers with no special include directory.
7001 echo "configure: failed program was:" >&5
7002 cat conftest.
$ac_ext >&5
7004 # Look for the header file in a standard set of common directories.
7005 # Check X11 before X11Rn because it is often a symlink to the current release.
7008 /usr
/X11R
6/include \
7009 /usr
/X11R
5/include \
7010 /usr
/X11R
4/include \
7013 /usr
/include
/X11R6 \
7014 /usr
/include
/X11R5 \
7015 /usr
/include
/X11R4 \
7017 /usr
/local
/X11
/include \
7018 /usr
/local
/X11R
6/include \
7019 /usr
/local
/X11R
5/include \
7020 /usr
/local
/X11R
4/include \
7022 /usr
/local
/include
/X11 \
7023 /usr
/local
/include
/X11R6 \
7024 /usr
/local
/include
/X11R5 \
7025 /usr
/local
/include
/X11R4 \
7029 /usr
/XFree86
/include
/X11 \
7032 /usr
/local
/include \
7033 /usr
/unsupported
/include \
7034 /usr
/athena
/include \
7035 /usr
/local
/x11r
5/include \
7036 /usr
/lpp
/Xamples
/include \
7038 /usr
/openwin
/include \
7039 /usr
/openwin
/share
/include \
7042 if test -r "$ac_dir/$x_direct_test_include"; then
7043 ac_x_includes
=$ac_dir
7049 fi # $ac_x_includes = NO
7051 if test "$ac_x_libraries" = NO
; then
7052 # Check for the libraries.
7054 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
7055 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
7057 # See if we find them without any special options.
7058 # Don't add to $LIBS permanently.
7059 ac_save_LIBS
="$LIBS"
7060 LIBS
="-l$x_direct_test_library $LIBS"
7061 cat > conftest.
$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7066 ${x_direct_test_function}()
7069 if { (eval echo configure
:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7071 LIBS
="$ac_save_LIBS"
7072 # We can link X programs with no special library path.
7075 echo "configure: failed program was:" >&5
7076 cat conftest.
$ac_ext >&5
7078 LIBS
="$ac_save_LIBS"
7079 # First see if replacing the include by lib works.
7080 # Check X11 before X11Rn because it is often a symlink to the current release.
7081 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
7092 /usr
/local
/X11
/lib \
7093 /usr
/local
/X11R
6/lib \
7094 /usr
/local
/X11R
5/lib \
7095 /usr
/local
/X11R
4/lib \
7097 /usr
/local
/lib
/X11 \
7098 /usr
/local
/lib
/X11R6 \
7099 /usr
/local
/lib
/X11R5 \
7100 /usr
/local
/lib
/X11R4 \
7104 /usr
/XFree86
/lib
/X11 \
7108 /usr
/unsupported
/lib \
7110 /usr
/local
/x11r
5/lib \
7111 /usr
/lpp
/Xamples
/lib \
7115 /usr
/openwin
/share
/lib \
7118 for ac_extension
in a so sl
; do
7119 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
7120 ac_x_libraries
=$ac_dir
7127 fi # $ac_x_libraries = NO
7129 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
7130 # Didn't find X anywhere. Cache the known absence of X.
7131 ac_cv_have_x
="have_x=no"
7133 # Record where we found X for the cache.
7134 ac_cv_have_x
="have_x=yes \
7135 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7139 eval "$ac_cv_have_x"
7142 if test "$have_x" != yes; then
7143 echo "$ac_t""$have_x" 1>&6
7146 # If each of the values was on the command line, it overrides each guess.
7147 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7148 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7149 # Update the cache value to reflect the command line values.
7150 ac_cv_have_x
="have_x=yes \
7151 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7152 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7157 # Unlike the sim directory, whether a simulator is linked is controlled by
7158 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7159 # This code just checks for a few cases where we'd like to ignore those
7160 # definitions, even when they're present in the '.mt' file. These cases
7161 # are when --disable-sim is specified, or if the simulator directory is
7162 # not part of the soruce tree.
7164 # Check whether --enable-sim or --disable-sim was given.
7165 if test "${enable_sim+set}" = set; then
7166 enableval
="$enable_sim"
7167 echo "enable_sim = $enable_sim";
7168 echo "enableval = ${enableval}";
7169 case "${enableval}" in
7170 yes) ignore_sim
=false
;;
7171 no
) ignore_sim
=true
;;
7172 *) ignore_sim
=false
;;
7179 if test ! -d "${srcdir}/../sim"; then
7183 if test "${ignore_sim}" = "true"; then
7185 IGNORE_SIM_OBS
="SIM_OBS="
7189 cat >> confdefs.h
<<\EOF
7208 # Begin stuff to support --enable-shared
7209 # Check whether --enable-shared or --disable-shared was given.
7210 if test "${enable_shared+set}" = set; then
7211 enableval
="$enable_shared"
7212 case "${enableval}" in
7221 # If we have shared libraries, try to set rpath reasonably.
7222 if test "${shared}" = "true"; then
7225 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
7227 *-*-irix5* |
*-*-irix6*)
7228 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7232 *-*-linux* |
*-pc-linux-gnu*)
7233 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7236 HLDFLAGS
='-R $(libdir)'
7239 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;'
7244 # On SunOS, if the linker supports the -rpath option, use it to
7245 # prevent ../bfd and ../opcodes from being included in the run time
7249 echo 'main () { }' > conftest.c
7250 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
7251 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
7253 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
7255 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
7257 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
7259 elif test "${shared}" = "true"; then
7260 HLDFLAGS
='-Wl,-rpath=$(libdir)'
7262 HLDFLAGS
='-Wl,-rpath='
7264 rm -f conftest.t conftest.c conftest
7269 # End stuff to support --enable-shared
7271 # target_subdir is used by the testsuite to find the target libraries.
7273 if test "${host}" != "${target}"; then
7274 target_subdir
="${target_alias}/"
7279 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7280 if test ! -f ${host_makefile_frag}; then
7281 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
7283 frags
="$frags $host_makefile_frag"
7285 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7286 if test ! -f ${target_makefile_frag}; then
7287 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
7289 frags
="$frags $target_makefile_frag"
7296 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7297 ' ${host_makefile_frag}`
7299 targetfile
=`sed -n '
7300 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7301 ' ${target_makefile_frag}`
7303 # these really aren't orthogonal true/false values of the same condition,
7304 # but shells are slow enough that I like to reuse the test conditions
7306 if test "${target}" = "${host}"; then
7307 nativefile
=`sed -n '
7308 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7309 ' ${host_makefile_frag}`
7311 # GDBserver is only useful in a "native" enviroment
7312 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7316 SUBDIRS
="doc testsuite nlm"
7317 if test "${enable_multi_ice}" = "yes"; then
7318 SUBDIRS
="${SUBDIRS} multi-ice"
7323 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7324 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7325 # corresponding links. But we have to remove the xm.h files and tm.h
7326 # files anyway, e.g. when switching from "configure host" to
7332 if test "${hostfile}" != ""; then
7333 files
="${files} config/${gdb_host_cpu}/${hostfile}"
7334 links
="${links} xm.h"
7337 if test "${targetfile}" != ""; then
7338 files
="${files} config/${gdb_target_cpu}/${targetfile}"
7339 links
="${links} tm.h"
7342 if test "${nativefile}" != ""; then
7343 files
="${files} config/${gdb_host_cpu}/${nativefile}"
7344 links
="${links} nm.h"
7346 # A cross-only configuration.
7347 files
="${files} config/nm-empty.h"
7348 links
="${links} nm.h"
7350 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7351 echo "configure:7352: checking whether ln -s works" >&5
7352 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7356 if ln -s X conftestdata
2>/dev
/null
7359 ac_cv_prog_LN_S
="ln -s"
7364 LN_S
="$ac_cv_prog_LN_S"
7365 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7366 echo "$ac_t""yes" 1>&6
7368 echo "$ac_t""no" 1>&6
7374 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7375 echo "configure:7376: checking for Cygwin environment" >&5
7376 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7379 cat > conftest.
$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7386 #define __CYGWIN__ __CYGWIN32__
7391 if { (eval echo configure
:7392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7395 echo "configure: failed program was:" >&5
7396 cat conftest.
$ac_ext >&5
7404 echo "$ac_t""$ac_cv_cygwin" 1>&6
7406 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7407 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7408 echo "configure:7409: checking for mingw32 environment" >&5
7409 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7412 cat > conftest.
$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7420 if { (eval echo configure
:7421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7424 echo "configure: failed program was:" >&5
7425 cat conftest.
$ac_ext >&5
7433 echo "$ac_t""$ac_cv_mingw32" 1>&6
7435 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7438 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7439 echo "configure:7440: checking for executable suffix" >&5
7440 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6
7443 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7447 echo 'int main () { return 0; }' > conftest.
$ac_ext
7449 if { (eval echo configure
:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7450 for file in conftest.
*; do
7452 *.c |
*.o |
*.obj
) ;;
7453 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7457 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7460 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7465 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7466 echo "$ac_t""${ac_cv_exeext}" 1>&6
7470 subdirs
="$configdirs"
7473 cat > confcache
<<\EOF
7474 # This file is a shell script that caches the results of configure
7475 # tests run on this system so they can be shared between configure
7476 # scripts and configure runs. It is not useful on other systems.
7477 # If it contains results you don't want to keep, you may remove or edit it.
7479 # By default, configure uses ./config.cache as the cache file,
7480 # creating it if it does not exist already. You can give configure
7481 # the --cache-file=FILE option to use a different cache file; that is
7482 # what configure does when it calls configure scripts in
7483 # subdirectories, so they share the cache.
7484 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7485 # config.status only pays attention to the cache file if you give it the
7486 # --recheck option to rerun configure.
7489 # The following way of writing the cache mishandles newlines in values,
7490 # but we know of no workaround that is simple, portable, and efficient.
7491 # So, don't put newlines in cache variables' values.
7492 # Ultrix sh set writes to stderr and can't be redirected directly,
7493 # and sets the high bit in the cache file unless we assign to the vars.
7495 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7497 # `set' does not quote correctly, so add quotes (double-quote substitution
7498 # turns \\\\ into \\, and sed turns \\ into \).
7500 -e "s/'/'\\\\''/g" \
7501 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7504 # `set' quotes correctly as required by POSIX, so do not add quotes.
7505 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7508 if cmp -s $cache_file confcache
; then
7511 if test -w $cache_file; then
7512 echo "updating cache $cache_file"
7513 cat confcache
> $cache_file
7515 echo "not updating unwritable cache $cache_file"
7520 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7522 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7523 # Let make expand exec_prefix.
7524 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7526 # Any assignment to VPATH causes Sun make to only execute
7527 # the first set of double-colon rules, so remove it if not needed.
7528 # If there is a colon in the path, we need to keep it.
7529 if test "x$srcdir" = x.
; then
7530 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7533 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7535 DEFS
=-DHAVE_CONFIG_H
7537 # Without the "./", some shells look in PATH for config.status.
7538 : ${CONFIG_STATUS=./config.status}
7540 echo creating
$CONFIG_STATUS
7541 rm -f $CONFIG_STATUS
7542 cat > $CONFIG_STATUS <<EOF
7544 # Generated automatically by configure.
7545 # Run this file to recreate the current configuration.
7546 # This directory was configured as follows,
7547 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7549 # $0 $ac_configure_args
7551 # Compiler output produced by configure, useful for debugging
7552 # configure, is in ./config.log if it exists.
7554 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7557 case "\$ac_option" in
7558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7559 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7560 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7561 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7562 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7564 -help | --help | --hel | --he | --h)
7565 echo "\$ac_cs_usage"; exit 0 ;;
7566 *) echo "\$ac_cs_usage"; exit 1 ;;
7570 ac_given_srcdir=$srcdir
7571 ac_given_INSTALL="$INSTALL"
7573 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7575 cat >> $CONFIG_STATUS <<EOF
7577 # Protect against being on the right side of a sed subst in config.status.
7578 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7579 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7583 s%@CFLAGS@%$CFLAGS%g
7584 s%@CPPFLAGS@%$CPPFLAGS%g
7585 s%@CXXFLAGS@%$CXXFLAGS%g
7586 s%@FFLAGS@%$FFLAGS%g
7588 s%@LDFLAGS@%$LDFLAGS%g
7590 s%@exec_prefix@%$exec_prefix%g
7591 s%@prefix@%$prefix%g
7592 s%@program_transform_name@%$program_transform_name%g
7593 s%@bindir@%$bindir%g
7594 s%@sbindir@%$sbindir%g
7595 s%@libexecdir@%$libexecdir%g
7596 s%@datadir@%$datadir%g
7597 s%@sysconfdir@%$sysconfdir%g
7598 s%@sharedstatedir@%$sharedstatedir%g
7599 s%@localstatedir@%$localstatedir%g
7600 s%@libdir@%$libdir%g
7601 s%@includedir@%$includedir%g
7602 s%@oldincludedir@%$oldincludedir%g
7603 s%@infodir@%$infodir%g
7604 s%@mandir@%$mandir%g
7605 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7606 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7611 s%@host_alias@%$host_alias%g
7612 s%@host_cpu@%$host_cpu%g
7613 s%@host_vendor@%$host_vendor%g
7614 s%@host_os@%$host_os%g
7615 s%@target@%$target%g
7616 s%@target_alias@%$target_alias%g
7617 s%@target_cpu@%$target_cpu%g
7618 s%@target_vendor@%$target_vendor%g
7619 s%@target_os@%$target_os%g
7621 s%@build_alias@%$build_alias%g
7622 s%@build_cpu@%$build_cpu%g
7623 s%@build_vendor@%$build_vendor%g
7624 s%@build_os@%$build_os%g
7625 s%@SET_MAKE@%$SET_MAKE%g
7626 s%@RANLIB@%$RANLIB%g
7627 s%@ALLOCA@%$ALLOCA%g
7628 s%@USE_NLS@%$USE_NLS%g
7629 s%@MSGFMT@%$MSGFMT%g
7630 s%@GMSGFMT@%$GMSGFMT%g
7631 s%@XGETTEXT@%$XGETTEXT%g
7632 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7633 s%@CATALOGS@%$CATALOGS%g
7634 s%@CATOBJEXT@%$CATOBJEXT%g
7635 s%@DATADIRNAME@%$DATADIRNAME%g
7636 s%@GMOFILES@%$GMOFILES%g
7637 s%@INSTOBJEXT@%$INSTOBJEXT%g
7638 s%@INTLDEPS@%$INTLDEPS%g
7639 s%@INTLLIBS@%$INTLLIBS%g
7640 s%@INTLOBJS@%$INTLOBJS%g
7641 s%@POFILES@%$POFILES%g
7643 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7645 s%@GT_YES@%$GT_YES%g
7646 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7649 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7650 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7651 s%@INSTALL_DATA@%$INSTALL_DATA%g
7655 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7656 s%@BUILD_TUI@%$BUILD_TUI%g
7657 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7658 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7659 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7660 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7661 s%@MMALLOC@%$MMALLOC%g
7663 s%@DLLTOOL@%$DLLTOOL%g
7664 s%@WINDRES@%$WINDRES%g
7665 s%@TERM_LIB@%$TERM_LIB%g
7666 s%@WIN32LIBS@%$WIN32LIBS%g
7667 s%@LIBGUI@%$LIBGUI%g
7668 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7669 s%@WIN32LDAPP@%$WIN32LDAPP%g
7670 s%@TCL_VERSION@%$TCL_VERSION%g
7671 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7672 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7673 s%@TCL_CC@%$TCL_CC%g
7674 s%@TCL_DEFS@%$TCL_DEFS%g
7675 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7676 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7677 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7678 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7679 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7680 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7681 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7682 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7683 s%@TCL_RANLIB@%$TCL_RANLIB%g
7684 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7685 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7686 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7687 s%@TK_VERSION@%$TK_VERSION%g
7688 s%@TK_DEFS@%$TK_DEFS%g
7689 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7690 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7691 s%@TK_XLIBSW@%$TK_XLIBSW%g
7692 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7693 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7694 s%@TCLHDIR@%$TCLHDIR%g
7695 s%@TKHDIR@%$TKHDIR%g
7696 s%@ITCLHDIR@%$ITCLHDIR%g
7697 s%@ITKHDIR@%$ITKHDIR%g
7698 s%@TIXHDIR@%$TIXHDIR%g
7699 s%@ITCL_VERSION@%$ITCL_VERSION%g
7700 s%@ITCL_DEFS@%$ITCL_DEFS%g
7701 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7702 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7703 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7704 s%@ITK_VERSION@%$ITK_VERSION%g
7705 s%@ITK_DEFS@%$ITK_DEFS%g
7706 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7707 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7708 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7709 s%@TIX_VERSION@%$TIX_VERSION%g
7710 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7711 s%@X_CFLAGS@%$X_CFLAGS%g
7712 s%@X_LDFLAGS@%$X_LDFLAGS%g
7713 s%@X_LIBS@%$X_LIBS%g
7714 s%@ITCLLIB@%$ITCLLIB%g
7715 s%@ITCL_DEPS@%$ITCL_DEPS%g
7716 s%@ITKLIB@%$ITKLIB%g
7717 s%@ITK_DEPS@%$ITK_DEPS%g
7718 s%@TIXLIB@%$TIXLIB%g
7719 s%@TIX_DEPS@%$TIX_DEPS%g
7720 s%@GDBTKLIBS@%$GDBTKLIBS%g
7721 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7722 s%@IGNORE_SIM@%$IGNORE_SIM%g
7723 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7724 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7725 s%@CONFIG_OBS@%$CONFIG_OBS%g
7726 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7727 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7728 s%@CONFIG_INITS@%$CONFIG_INITS%g
7729 s%@CONFIG_ALL@%$CONFIG_ALL%g
7730 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
7731 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
7732 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
7733 s%@HLDFLAGS@%$HLDFLAGS%g
7734 s%@HLDENV@%$HLDENV%g
7735 s%@target_subdir@%$target_subdir%g
7736 /@host_makefile_frag@/r $host_makefile_frag
7737 s%@host_makefile_frag@%%g
7738 /@target_makefile_frag@/r $target_makefile_frag
7739 s%@target_makefile_frag@%%g
7741 s%@SUBDIRS@%$SUBDIRS%g
7743 s%@EXEEXT@%$EXEEXT%g
7744 s%@subdirs@%$subdirs%g
7749 cat >> $CONFIG_STATUS <<\EOF
7751 # Split the substitutions into bite-sized pieces for seds with
7752 # small command number limits, like on Digital OSF/1 and HP-UX.
7753 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7754 ac_file
=1 # Number of current file.
7755 ac_beg
=1 # First line for current file.
7756 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7759 while $ac_more_lines; do
7760 if test $ac_beg -gt 1; then
7761 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7763 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7765 if test ! -s conftest.s
$ac_file; then
7767 rm -f conftest.s
$ac_file
7769 if test -z "$ac_sed_cmds"; then
7770 ac_sed_cmds
="sed -f conftest.s$ac_file"
7772 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7774 ac_file
=`expr $ac_file + 1`
7776 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7779 if test -z "$ac_sed_cmds"; then
7784 cat >> $CONFIG_STATUS <<EOF
7786 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7788 cat >> $CONFIG_STATUS <<\EOF
7789 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7792 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7793 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7794 *) ac_file_in
="${ac_file}.in" ;;
7797 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7799 # Remove last slash and all that follows it. Not all systems have dirname.
7800 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7801 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7802 # The file is in a subdirectory.
7803 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7804 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7805 # A "../" for each directory in $ac_dir_suffix.
7806 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7808 ac_dir_suffix
= ac_dots
=
7811 case "$ac_given_srcdir" in
7813 if test -z "$ac_dots"; then top_srcdir
=.
7814 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7815 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7817 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7818 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7821 case "$ac_given_INSTALL" in
7822 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7823 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7826 echo creating
"$ac_file"
7828 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7830 *Makefile
*) ac_comsub
="1i\\
7831 # $configure_input" ;;
7835 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7837 s%@configure_input@%$configure_input%g
7838 s%@srcdir@%$srcdir%g
7839 s%@top_srcdir@%$top_srcdir%g
7840 s%@INSTALL@%$INSTALL%g
7841 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7848 # ac_d sets the value in "#define NAME VALUE" lines.
7849 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7850 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7853 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7854 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7855 ac_uB
='\([ ]\)%\1#\2define\3'
7858 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7859 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7860 ac_eB
='$%\1#\2define\3'
7864 if test "${CONFIG_HEADERS+set}" != set; then
7866 cat >> $CONFIG_STATUS <<EOF
7867 CONFIG_HEADERS="config.h:config.in"
7869 cat >> $CONFIG_STATUS <<\EOF
7871 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7874 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7875 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7876 *) ac_file_in
="${ac_file}.in" ;;
7879 echo creating
$ac_file
7881 rm -f conftest.frag conftest.
in conftest.out
7882 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7883 cat $ac_file_inputs > conftest.
in
7887 # Transform confdefs.h into a sed script conftest.vals that substitutes
7888 # the proper values into config.h.in to produce config.h. And first:
7889 # Protect against being on the right side of a sed subst in config.status.
7890 # Protect against being in an unquoted here document in config.status.
7892 cat > conftest.hdr
<<\EOF
7895 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7899 sed -n -f conftest.hdr confdefs.h > conftest.vals
7902 # This sed command replaces #undef with comments. This is necessary, for
7903 # example, in the case of _POSIX_SOURCE, which is predefined and required
7904 # on some systems where configure will not decide to define it.
7905 cat >> conftest.vals <<\EOF
7906 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7909 # Break up conftest.vals because some shells have a limit on
7910 # the size of here documents, and old seds have small limits too.
7915 ac_lines=`grep -c . conftest.vals
`
7916 # grep -c gives empty output for an empty file on some AIX systems.
7917 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7918 # Write a limited-size here document to conftest.frag.
7919 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7920 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7922 sed -f conftest.frag conftest.in > conftest.out
7924 mv conftest.out conftest.in
7926 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7928 mv conftest.tail conftest.vals
7932 cat >> $CONFIG_STATUS <<\EOF
7933 rm -f conftest.frag conftest.h
7934 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7935 cat conftest.in >> conftest.h
7937 if cmp -s $ac_file conftest.h 2>/dev/null; then
7938 echo "$ac_file is unchanged"
7941 # Remove last slash and all that follows it. Not all systems have dirname.
7942 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7943 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7944 # The file is in a subdirectory.
7945 test ! -d "$ac_dir" && mkdir "$ac_dir"
7948 mv conftest.h $ac_file
7954 cat >> $CONFIG_STATUS <<EOF
7959 cat >> $CONFIG_STATUS <<\EOF
7960 srcdir=$ac_given_srcdir
7961 while test -n "$ac_sources"; do
7962 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7963 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7965 echo "linking $srcdir/$ac_source to $ac_dest"
7967 if test ! -r $srcdir/$ac_source; then
7968 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7972 # Make relative symlinks.
7973 # Remove last slash and all that follows it. Not all systems have dirname.
7974 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7975 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7976 # The dest file is in a subdirectory.
7977 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7978 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7979 # A "../" for each directory in $ac_dest_dir_suffix.
7980 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7982 ac_dest_dir_suffix= ac_dots=
7986 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7987 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7990 # Make a symlink if possible; otherwise try a hard link.
7991 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7992 ln $srcdir/$ac_source $ac_dest; then :
7994 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7998 cat >> $CONFIG_STATUS <<EOF
8000 gdb_host_cpu=$gdb_host_cpu
8001 gdb_target_cpu=$gdb_target_cpu
8002 nativefile=$nativefile
8005 cat >> $CONFIG_STATUS <<\EOF
8007 if test "${nativefile}" = ""; then
8008 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
8009 < Makefile > Makefile.tem
8010 mv -f Makefile.tem Makefile
8013 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
8014 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
8015 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
8016 mv -f Makefile.tmp Makefile
8019 case x$CONFIG_HEADERS in
8020 xconfig.h:config.in)
8026 chmod +x $CONFIG_STATUS
8027 rm -fr confdefs* $ac_clean_files
8028 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8030 if test "$no_recursion" != yes; then
8032 # Remove --cache-file and --srcdir arguments so they do not pile up.
8033 ac_sub_configure_args=
8035 for ac_arg in $ac_configure_args; do
8036 if test -n "$ac_prev"; then
8041 -cache-file | --cache-file | --cache-fil | --cache-fi \
8042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8043 ac_prev=cache_file ;;
8044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8051 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8055 for ac_config_dir in $configdirs; do
8057 # Do not complain, so a configure script can configure whichever
8058 # parts of a large source tree are present.
8059 if test ! -d $srcdir/$ac_config_dir; then
8063 echo configuring in $ac_config_dir
8068 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8070 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8078 # A "../" for each directory in /$ac_config_dir.
8079 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8082 .) # No --srcdir option. We are building in place.
8083 ac_sub_srcdir=$srcdir ;;
8084 /*) # Absolute path.
8085 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8087 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8090 # Check for guested configure; otherwise get Cygnus style configure.
8091 if test -f $ac_sub_srcdir/configure; then
8092 ac_sub_configure=$ac_sub_srcdir/configure
8093 elif test -f $ac_sub_srcdir/configure.in; then
8094 ac_sub_configure=$ac_configure
8096 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8100 # The recursion is here.
8101 if test -n "$ac_sub_configure"; then
8103 # Make the cache file name correct relative to the subdirectory.
8104 case "$cache_file" in
8105 /*) ac_sub_cache_file=$cache_file ;;
8107 ac_sub_cache_file="$ac_dots$cache_file" ;;
8109 case "$ac_given_INSTALL" in
8110 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8111 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8114 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8115 # The eval makes quoting arguments work.
8116 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8119 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }