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 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --enable-multi-ice Build the multi-ice-gdb-server"
21 --enable-tui Enable full-screen terminal user interface"
23 --enable-netrom Enable NetROM support"
25 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
27 --with-mmalloc Use memory mapped malloc package"
29 --enable-carp Configure alternative readaptive paradigm "
31 --enable-targets Alternative target configurations"
33 --with-cpu=CPU Set the default CPU variant to debug"
35 --enable-gdbtk Enable GDBTK GUI front end"
37 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
39 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
41 --with-tclinclude=DIR Directory where tcl private headers are"
43 --with-tkinclude=DIR Directory where tk private headers are"
45 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
47 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
49 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
51 --with-x use the X Window System"
53 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
55 --with-sim-funit=DIR Use target FP lib under given DIR"
57 --enable-sim Link gdb with simulator"
59 --enable-shared Use shared libraries"
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file
=.
/config.cache
74 program_transform_name
=s
,x
,x
,
83 bindir
='${exec_prefix}/bin'
84 sbindir
='${exec_prefix}/sbin'
85 libexecdir
='${exec_prefix}/libexec'
86 datadir
='${prefix}/share'
87 sysconfdir
='${prefix}/etc'
88 sharedstatedir
='${prefix}/com'
89 localstatedir
='${prefix}/var'
90 libdir
='${exec_prefix}/lib'
91 includedir
='${prefix}/include'
92 oldincludedir
='/usr/include'
93 infodir
='${prefix}/info'
94 mandir
='${prefix}/man'
96 # Initialize some other variables.
99 SHELL
=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
115 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 # Accept the important Cygnus configure options, so we can diagnose typos.
123 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
125 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
126 bindir
="$ac_optarg" ;;
128 -build |
--build |
--buil |
--bui |
--bu)
130 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
131 build
="$ac_optarg" ;;
133 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
134 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
135 ac_prev
=cache_file
;;
136 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
137 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
138 cache_file
="$ac_optarg" ;;
140 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
142 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
144 datadir
="$ac_optarg" ;;
146 -disable-* |
--disable-*)
147 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* |
--enable-*)
156 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
169 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
170 |
--exec |
--exe |
--ex)
171 ac_prev
=exec_prefix
;;
172 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
173 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
174 |
--exec=* |
--exe=* |
--ex=*)
175 exec_prefix
="$ac_optarg" ;;
177 -gas |
--gas |
--ga |
--g)
178 # Obsolete; use --with-gas.
181 -help |
--help |
--hel |
--he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --site-file=FILE use FILE as the site file
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host |
--host |
--hos |
--ho)
239 -host=* |
--host=* |
--hos=* |
--ho=*)
242 -includedir |
--includedir |
--includedi |
--included |
--include \
243 |
--includ |
--inclu |
--incl |
--inc)
244 ac_prev
=includedir
;;
245 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
246 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
247 includedir
="$ac_optarg" ;;
249 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
251 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
252 infodir
="$ac_optarg" ;;
254 -libdir |
--libdir |
--libdi |
--libd)
256 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
257 libdir
="$ac_optarg" ;;
259 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
260 |
--libexe |
--libex |
--libe)
261 ac_prev
=libexecdir
;;
262 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
263 |
--libexe=* |
--libex=* |
--libe=*)
264 libexecdir
="$ac_optarg" ;;
266 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
267 |
--localstate |
--localstat |
--localsta |
--localst \
268 |
--locals |
--local |
--loca |
--loc |
--lo)
269 ac_prev
=localstatedir
;;
270 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
271 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
272 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
273 localstatedir
="$ac_optarg" ;;
275 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
277 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
278 mandir
="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
288 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
289 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
292 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
293 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
294 |
--oldin |
--oldi |
--old |
--ol |
--o)
295 ac_prev
=oldincludedir
;;
296 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
297 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
298 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
299 oldincludedir
="$ac_optarg" ;;
301 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
303 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
304 prefix
="$ac_optarg" ;;
306 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
307 |
--program-pre |
--program-pr |
--program-p)
308 ac_prev
=program_prefix
;;
309 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
310 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
311 program_prefix
="$ac_optarg" ;;
313 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
314 |
--program-suf |
--program-su |
--program-s)
315 ac_prev
=program_suffix
;;
316 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
317 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
318 program_suffix
="$ac_optarg" ;;
320 -program-transform-name |
--program-transform-name \
321 |
--program-transform-nam |
--program-transform-na \
322 |
--program-transform-n |
--program-transform- \
323 |
--program-transform |
--program-transfor \
324 |
--program-transfo |
--program-transf \
325 |
--program-trans |
--program-tran \
326 |
--progr-tra |
--program-tr |
--program-t)
327 ac_prev
=program_transform_name
;;
328 -program-transform-name=* |
--program-transform-name=* \
329 |
--program-transform-nam=* |
--program-transform-na=* \
330 |
--program-transform-n=* |
--program-transform-=* \
331 |
--program-transform=* |
--program-transfor=* \
332 |
--program-transfo=* |
--program-transf=* \
333 |
--program-trans=* |
--program-tran=* \
334 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
335 program_transform_name
="$ac_optarg" ;;
337 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
338 |
-silent |
--silent |
--silen |
--sile |
--sil)
341 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
343 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
345 sbindir
="$ac_optarg" ;;
347 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
348 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
349 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
351 ac_prev
=sharedstatedir
;;
352 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
353 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
354 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
356 sharedstatedir
="$ac_optarg" ;;
358 -site |
--site |
--sit)
360 -site=* |
--site=* |
--sit=*)
363 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
365 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
366 sitefile
="$ac_optarg" ;;
368 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
370 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
371 srcdir
="$ac_optarg" ;;
373 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
374 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
375 ac_prev
=sysconfdir
;;
376 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
377 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
378 sysconfdir
="$ac_optarg" ;;
380 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
382 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
383 target
="$ac_optarg" ;;
385 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
388 -version |
--version |
--versio |
--versi |
--vers)
389 echo "configure generated by autoconf version 2.13"
393 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package
=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}='$ac_optarg'" ;;
405 -without-* |
--without-*)
406 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package
=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}=no" ;;
415 # Obsolete; use --with-x.
418 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
419 |
--x-incl |
--x-inc |
--x-in |
--x-i)
420 ac_prev
=x_includes
;;
421 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
422 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
423 x_includes
="$ac_optarg" ;;
425 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
426 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
427 ac_prev
=x_libraries
;;
428 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
429 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
430 x_libraries
="$ac_optarg" ;;
432 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 if test "x$nonopt" != xNONE
; then
440 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 if test -n "$ac_prev"; then
449 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454 # File descriptor usage:
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
480 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
481 |
--no-cr |
--no-c) ;;
482 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
483 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
484 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
486 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
491 # Only set these to C if already set. These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
496 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
498 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest
* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file
=main.c
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511 ac_srcdir_defaulted
=yes
512 # Try the directory containing this script, then its parent.
514 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
517 if test ! -r $srcdir/$ac_unique_file; then
521 ac_srcdir_defaulted
=no
523 if test ! -r $srcdir/$ac_unique_file; then
524 if test "$ac_srcdir_defaulted" = yes; then
525 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
530 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$sitefile"; then
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE
; then
536 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542 CONFIG_SITE
="$sitefile"
544 for ac_site_file
in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp
='$CPP $CPPFLAGS'
562 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling
=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
577 ac_n
= ac_c
='\c' ac_t
=
583 # Extract the first word of "gcc", so it can be a program name with args.
584 set dummy gcc
; ac_word
=$2
585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
586 echo "configure:587: checking for $ac_word" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 if test -n "$CC"; then
591 ac_cv_prog_CC
="$CC" # Let the user override the test.
593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
595 for ac_dir
in $ac_dummy; do
596 test -z "$ac_dir" && ac_dir
=.
597 if test -f $ac_dir/$ac_word; then
606 if test -n "$CC"; then
607 echo "$ac_t""$CC" 1>&6
609 echo "$ac_t""no" 1>&6
612 if test -z "$CC"; then
613 # Extract the first word of "cc", so it can be a program name with args.
614 set dummy cc
; ac_word
=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC
="$CC" # Let the user override the test.
623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
626 for ac_dir
in $ac_dummy; do
627 test -z "$ac_dir" && ac_dir
=.
628 if test -f $ac_dir/$ac_word; then
629 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
638 if test $ac_prog_rejected = yes; then
639 # We found a bogon in the path, so make sure we never use it.
640 set dummy
$ac_cv_prog_CC
642 if test $# -gt 0; then
643 # We chose a different compiler from the bogus one.
644 # However, it has the same basename, so the bogon will be chosen
645 # first if we set CC to just the basename; use the full file name.
647 set dummy
"$ac_dir/$ac_word" "$@"
655 if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
658 echo "$ac_t""no" 1>&6
661 if test -z "$CC"; then
664 # Extract the first word of "cl", so it can be a program name with args.
665 set dummy cl
; ac_word
=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 if test -n "$CC"; then
672 ac_cv_prog_CC
="$CC" # Let the user override the test.
674 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
676 for ac_dir
in $ac_dummy; do
677 test -z "$ac_dir" && ac_dir
=.
678 if test -f $ac_dir/$ac_word; then
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
690 echo "$ac_t""no" 1>&6
695 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
698 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
699 echo "configure:700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
703 ac_cpp
='$CPP $CPPFLAGS'
704 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
705 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
706 cross_compiling
=$ac_cv_prog_cc_cross
708 cat > conftest.
$ac_ext << EOF
710 #line 711 "configure"
711 #include "confdefs.h"
715 if { (eval echo configure
:716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
716 ac_cv_prog_cc_works
=yes
717 # If we can't run a trivial program, we are probably using a cross compiler.
718 if (.
/conftest
; exit) 2>/dev
/null
; then
719 ac_cv_prog_cc_cross
=no
721 ac_cv_prog_cc_cross
=yes
724 echo "configure: failed program was:" >&5
725 cat conftest.
$ac_ext >&5
726 ac_cv_prog_cc_works
=no
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp
='$CPP $CPPFLAGS'
732 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling
=$ac_cv_prog_cc_cross
736 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
737 if test $ac_cv_prog_cc_works = no
; then
738 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
742 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
743 cross_compiling
=$ac_cv_prog_cc_cross
745 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
746 echo "configure:747: checking whether we are using GNU C" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 cat > conftest.c
<<EOF
755 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
762 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
764 if test $ac_cv_prog_gcc = yes; then
770 ac_test_CFLAGS
="${CFLAGS+set}"
771 ac_save_CFLAGS
="$CFLAGS"
773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${CC-cc} accepts -g" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 echo 'void f(){}' > conftest.c
779 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
788 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
789 if test "$ac_test_CFLAGS" = set; then
790 CFLAGS
="$ac_save_CFLAGS"
791 elif test $ac_cv_prog_cc_g = yes; then
792 if test "$GCC" = yes; then
798 if test "$GCC" = yes; then
805 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
806 echo "configure:807: checking how to run the C preprocessor" >&5
807 # On Suns, sometimes $CPP names a directory.
808 if test -n "$CPP" && test -d "$CPP"; then
811 if test -z "$CPP"; then
812 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 # This must be in double quotes, not single quotes, because CPP may get
816 # substituted into the Makefile and "${CC-cc}" will confuse make.
818 # On the NeXT, cc -E runs the code through the compiler's parser,
819 # not just through cpp.
820 cat > conftest.
$ac_ext <<EOF
821 #line 822 "configure"
822 #include "confdefs.h"
826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
827 { (eval echo configure
:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
829 if test -z "$ac_err"; then
833 echo "configure: failed program was:" >&5
834 cat conftest.
$ac_ext >&5
836 CPP
="${CC-cc} -E -traditional-cpp"
837 cat > conftest.
$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure
:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
853 CPP
="${CC-cc} -nologo -E"
854 cat > conftest.
$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
860 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure
:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 if test -z "$ac_err"; then
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
877 ac_cv_prog_CPP
="$CPP"
879 CPP
="$ac_cv_prog_CPP"
881 ac_cv_prog_CPP
="$CPP"
883 echo "$ac_t""$CPP" 1>&6
885 echo $ac_n "checking for AIX""... $ac_c" 1>&6
886 echo "configure:887: checking for AIX" >&5
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
896 egrep "yes" >/dev
/null
2>&1; then
898 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
899 #define _ALL_SOURCE 1
904 echo "$ac_t""no" 1>&6
909 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
910 echo "configure:911: checking for POSIXized ISC" >&5
911 if test -d /etc
/conf
/kconfig.d
&&
912 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
914 echo "$ac_t""yes" 1>&6
915 ISC
=yes # If later tests want to check for ISC.
916 cat >> confdefs.h
<<\EOF
917 #define _POSIX_SOURCE 1
920 if test "$GCC" = yes; then
926 echo "$ac_t""no" 1>&6
933 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
934 echo "configure:935: checking for ${CC-cc} option to accept ANSI C" >&5
935 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 am_cv_prog_cc_stdc
=no
940 # Don't try gcc -ansi; that turns off useful extensions and
941 # breaks some systems' header files.
943 # Ultrix and OSF/1 -std1
944 # HP-UX -Aa -D_HPUX_SOURCE
945 # SVR4 -Xc -D__EXTENSIONS__
946 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
948 CC
="$ac_save_CC $ac_arg"
949 cat > conftest.
$ac_ext <<EOF
950 #line 951 "configure"
951 #include "confdefs.h"
954 #include <sys/types.h>
955 #include <sys/stat.h>
956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
957 struct buf { int x; };
958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
959 static char *e (p, i)
965 static char *f (char * (*g) (char **, int), char **p, ...)
970 s = g (p, va_arg (v,int));
974 int test (int i, double x);
975 struct s1 {int (*f) (int a);};
976 struct s2 {int (*f) (double a);};
977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
987 if { (eval echo configure
:988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
989 am_cv_prog_cc_stdc
="$ac_arg"; break
991 echo "configure: failed program was:" >&5
992 cat conftest.
$ac_ext >&5
1000 if test -z "$am_cv_prog_cc_stdc"; then
1001 echo "$ac_t""none needed" 1>&6
1003 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1005 case "x$am_cv_prog_cc_stdc" in
1007 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1012 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1013 if test -f $ac_dir/install-sh
; then
1015 ac_install_sh
="$ac_aux_dir/install-sh -c"
1017 elif test -f $ac_dir/install.sh
; then
1019 ac_install_sh
="$ac_aux_dir/install.sh -c"
1023 if test -z "$ac_aux_dir"; then
1024 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1026 ac_config_guess
=$ac_aux_dir/config.guess
1027 ac_config_sub
=$ac_aux_dir/config.sub
1028 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1031 # Do some error checking and defaulting for the host and target type.
1033 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1036 # 1. You are not allowed to specify --host, --target, and nonopt at the
1038 # 2. Host defaults to nonopt.
1039 # 3. If nonopt is not specified, then host defaults to the current host,
1040 # as determined by config.guess.
1041 # 4. Target and build default to nonopt.
1042 # 5. If nonopt is not specified, then target and build default to host.
1044 # The aliases save the names the user supplied, while $host etc.
1045 # will get canonicalized.
1046 case $host---$target---$nonopt in
1047 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1048 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1052 # Make sure we can run config.sub.
1053 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1054 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1057 echo $ac_n "checking host system type""... $ac_c" 1>&6
1058 echo "configure:1059: checking host system type" >&5
1061 case "$host_alias" in
1065 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1066 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1068 *) host_alias
=$nonopt ;;
1072 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1073 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076 echo "$ac_t""$host" 1>&6
1078 echo $ac_n "checking target system type""... $ac_c" 1>&6
1079 echo "configure:1080: checking target system type" >&5
1081 target_alias
=$target
1082 case "$target_alias" in
1085 NONE
) target_alias
=$host_alias ;;
1086 *) target_alias
=$nonopt ;;
1090 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1091 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1092 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1093 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1094 echo "$ac_t""$target" 1>&6
1096 echo $ac_n "checking build system type""... $ac_c" 1>&6
1097 echo "configure:1098: checking build system type" >&5
1100 case "$build_alias" in
1103 NONE
) build_alias
=$host_alias ;;
1104 *) build_alias
=$nonopt ;;
1108 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1109 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1110 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1111 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1112 echo "$ac_t""$build" 1>&6
1114 test "$host_alias" != "$target_alias" &&
1115 test "$program_prefix$program_suffix$program_transform_name" = \
1117 program_prefix
=${target_alias}-
1121 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether ${MAKE-make} sets \${MAKE}" >&5
1123 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1124 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 cat > conftestmake
<<\EOF
1129 @
echo 'ac_maketemp="${MAKE}"'
1131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1132 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1133 if test -n "$ac_maketemp"; then
1134 eval ac_cv_prog_make_
${ac_make}_set
=yes
1136 eval ac_cv_prog_make_
${ac_make}_set
=no
1140 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1144 echo "$ac_t""no" 1>&6
1145 SET_MAKE
="MAKE=${MAKE-make}"
1148 # Extract the first word of "ranlib", so it can be a program name with args.
1149 set dummy ranlib
; ac_word
=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 if test -n "$RANLIB"; then
1156 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1158 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1160 for ac_dir
in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir
=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_prog_RANLIB
="ranlib"
1168 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1171 RANLIB
="$ac_cv_prog_RANLIB"
1172 if test -n "$RANLIB"; then
1173 echo "$ac_t""$RANLIB" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1179 echo "configure:1180: checking for ANSI C header files" >&5
1180 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.
$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1191 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1192 { (eval echo configure
:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1193 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1194 if test -z "$ac_err"; then
1196 ac_cv_header_stdc
=yes
1199 echo "configure: failed program was:" >&5
1200 cat conftest.
$ac_ext >&5
1202 ac_cv_header_stdc
=no
1206 if test $ac_cv_header_stdc = yes; then
1207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1208 cat > conftest.
$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1214 egrep "memchr" >/dev
/null
2>&1; then
1218 ac_cv_header_stdc
=no
1224 if test $ac_cv_header_stdc = yes; then
1225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1232 egrep "free" >/dev
/null
2>&1; then
1236 ac_cv_header_stdc
=no
1242 if test $ac_cv_header_stdc = yes; then
1243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1244 if test "$cross_compiling" = yes; then
1247 cat > conftest.
$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1251 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1252 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1254 int main () { int i; for (i = 0; i < 256; i++)
1255 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1259 if { (eval echo configure
:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1263 echo "configure: failed program was:" >&5
1264 cat conftest.
$ac_ext >&5
1266 ac_cv_header_stdc
=no
1274 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1275 if test $ac_cv_header_stdc = yes; then
1276 cat >> confdefs.h
<<\EOF
1277 #define STDC_HEADERS 1
1282 echo $ac_n "checking for working const""... $ac_c" 1>&6
1283 echo "configure:1284: checking for working const" >&5
1284 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 cat > conftest.
$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1293 /* Ultrix mips cc rejects this. */
1294 typedef int charset[2]; const charset x;
1295 /* SunOS 4.1.1 cc rejects this. */
1296 char const *const *ccp;
1298 /* NEC SVR4.0.2 mips cc rejects this. */
1299 struct point {int x, y;};
1300 static struct point const zero = {0,0};
1301 /* AIX XL C 1.02.0.0 rejects this.
1302 It does not let you subtract one const X* pointer from another in an arm
1303 of an if-expression whose if-part is not a constant expression */
1304 const char *g = "string";
1305 ccp = &g + (g ? g-g : 0);
1306 /* HPUX 7.0 cc rejects these. */
1309 ccp = (char const *const *) p;
1310 { /* SCO 3.2v4 cc rejects this. */
1312 char const *s = 0 ? (char *) 0 : (char const *) 0;
1316 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1318 const int *foo = &x[0];
1321 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1322 typedef const int *iptr;
1326 { /* AIX XL C 1.02.0.0 rejects this saying
1327 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1328 struct s { int j; const int *ap[3]; };
1329 struct s *b; b->j = 5;
1331 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1337 if { (eval echo configure
:1338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1341 echo "configure: failed program was:" >&5
1342 cat conftest.
$ac_ext >&5
1349 echo "$ac_t""$ac_cv_c_const" 1>&6
1350 if test $ac_cv_c_const = no
; then
1351 cat >> confdefs.h
<<\EOF
1357 echo $ac_n "checking for inline""... $ac_c" 1>&6
1358 echo "configure:1359: checking for inline" >&5
1359 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1363 for ac_kw
in inline __inline__ __inline
; do
1364 cat > conftest.
$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1372 if { (eval echo configure
:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 ac_cv_c_inline
=$ac_kw; break
1376 echo "configure: failed program was:" >&5
1377 cat conftest.
$ac_ext >&5
1384 echo "$ac_t""$ac_cv_c_inline" 1>&6
1385 case "$ac_cv_c_inline" in
1387 no
) cat >> confdefs.h
<<\EOF
1391 *) cat >> confdefs.h
<<EOF
1392 #define inline $ac_cv_c_inline
1397 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1398 echo "configure:1399: checking for off_t" >&5
1399 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 #include <sys/types.h>
1411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1412 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1414 ac_cv_type_off_t
=yes
1422 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1423 if test $ac_cv_type_off_t = no
; then
1424 cat >> confdefs.h
<<\EOF
1430 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1431 echo "configure:1432: checking for size_t" >&5
1432 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 #include <sys/types.h>
1444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1445 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1447 ac_cv_type_size_t
=yes
1450 ac_cv_type_size_t
=no
1455 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1456 if test $ac_cv_type_size_t = no
; then
1457 cat >> confdefs.h
<<\EOF
1458 #define size_t unsigned
1463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1464 # for constant arguments. Useless!
1465 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1466 echo "configure:1467: checking for working alloca.h" >&5
1467 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.
$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1475 char *p = alloca(2 * sizeof(int));
1478 if { (eval echo configure
:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1480 ac_cv_header_alloca_h
=yes
1482 echo "configure: failed program was:" >&5
1483 cat conftest.
$ac_ext >&5
1485 ac_cv_header_alloca_h
=no
1490 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1491 if test $ac_cv_header_alloca_h = yes; then
1492 cat >> confdefs.h
<<\EOF
1493 #define HAVE_ALLOCA_H 1
1498 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1499 echo "configure:1500: checking for alloca" >&5
1500 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.
$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1508 # define alloca __builtin_alloca
1511 # include <malloc.h>
1512 # define alloca _alloca
1515 # include <alloca.h>
1520 # ifndef alloca /* predefined by HP cc +Olibcalls */
1529 char *p = (char *) alloca(1);
1532 if { (eval echo configure
:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1534 ac_cv_func_alloca_works
=yes
1536 echo "configure: failed program was:" >&5
1537 cat conftest.
$ac_ext >&5
1539 ac_cv_func_alloca_works
=no
1544 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1545 if test $ac_cv_func_alloca_works = yes; then
1546 cat >> confdefs.h
<<\EOF
1547 #define HAVE_ALLOCA 1
1552 if test $ac_cv_func_alloca_works = no
; then
1553 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1554 # that cause trouble. Some versions do not even contain alloca or
1555 # contain a buggy version. If you still want to use their alloca,
1556 # use ar to extract alloca.o from them instead of compiling alloca.c.
1557 ALLOCA
=alloca.
${ac_objext}
1558 cat >> confdefs.h
<<\EOF
1563 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1564 echo "configure:1565: checking whether alloca needs Cray hooks" >&5
1565 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 cat > conftest.
$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 #if defined(CRAY) && ! defined(CRAY2)
1578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1579 egrep "webecray" >/dev
/null
2>&1; then
1590 echo "$ac_t""$ac_cv_os_cray" 1>&6
1591 if test $ac_cv_os_cray = yes; then
1592 for ac_func
in _getb67 GETB67 getb67
; do
1593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_func" >&5
1595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 cat > conftest.
$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601 /* System header to define __stub macros and hopefully few prototypes,
1602 which can conflict with char $ac_func(); below. */
1604 /* Override any gcc2 internal prototype to avoid an error. */
1605 /* We use char because int might match the return type of a gcc2
1606 builtin and then its argument prototype would still apply. */
1611 /* The GNU C library defines this for functions which it implements
1612 to always fail with ENOSYS. Some functions are actually named
1613 something starting with __ and the normal name is an alias. */
1614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1622 if { (eval echo configure
:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1624 eval "ac_cv_func_$ac_func=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 eval "ac_cv_func_$ac_func=no"
1634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1635 echo "$ac_t""yes" 1>&6
1636 cat >> confdefs.h
<<EOF
1637 #define CRAY_STACKSEG_END $ac_func
1642 echo "$ac_t""no" 1>&6
1648 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1649 echo "configure:1650: checking stack direction for C alloca" >&5
1650 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 if test "$cross_compiling" = yes; then
1654 ac_cv_c_stack_direction
=0
1656 cat > conftest.
$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 find_stack_direction ()
1661 static char *addr = 0;
1666 return find_stack_direction ();
1669 return (&dummy > addr) ? 1 : -1;
1673 exit (find_stack_direction() < 0);
1676 if { (eval echo configure
:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1678 ac_cv_c_stack_direction
=1
1680 echo "configure: failed program was:" >&5
1681 cat conftest.
$ac_ext >&5
1683 ac_cv_c_stack_direction
=-1
1690 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1691 cat >> confdefs.h
<<EOF
1692 #define STACK_DIRECTION $ac_cv_c_stack_direction
1697 for ac_hdr
in unistd.h
1699 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1701 echo "configure:1702: checking for $ac_hdr" >&5
1702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.
$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1710 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure
:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1713 if test -z "$ac_err"; then
1715 eval "ac_cv_header_$ac_safe=yes"
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1721 eval "ac_cv_header_$ac_safe=no"
1725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1726 echo "$ac_t""yes" 1>&6
1727 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1728 cat >> confdefs.h
<<EOF
1729 #define $ac_tr_hdr 1
1733 echo "$ac_t""no" 1>&6
1737 for ac_func
in getpagesize
1739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_func" >&5
1741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.
$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $ac_func(); below. */
1750 /* Override any gcc2 internal prototype to avoid an error. */
1751 /* We use char because int might match the return type of a gcc2
1752 builtin and then its argument prototype would still apply. */
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1768 if { (eval echo configure
:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1770 eval "ac_cv_func_$ac_func=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.
$ac_ext >&5
1775 eval "ac_cv_func_$ac_func=no"
1780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1783 cat >> confdefs.h
<<EOF
1784 #define $ac_tr_func 1
1788 echo "$ac_t""no" 1>&6
1792 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1793 echo "configure:1794: checking for working mmap" >&5
1794 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 if test "$cross_compiling" = yes; then
1798 ac_cv_func_mmap_fixed_mapped
=no
1800 cat > conftest.
$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1804 /* Thanks to Mike Haertel and Jim Avera for this test.
1805 Here is a matrix of mmap possibilities:
1806 mmap private not fixed
1807 mmap private fixed at somewhere currently unmapped
1808 mmap private fixed at somewhere already mapped
1809 mmap shared not fixed
1810 mmap shared fixed at somewhere currently unmapped
1811 mmap shared fixed at somewhere already mapped
1812 For private mappings, we should verify that changes cannot be read()
1813 back from the file, nor mmap's back from the file at a different
1814 address. (There have been systems where private was not correctly
1815 implemented like the infamous i386 svr4.0, and systems where the
1816 VM page cache was not coherent with the filesystem buffer cache
1817 like early versions of FreeBSD and possibly contemporary NetBSD.)
1818 For shared mappings, we should conversely verify that changes get
1819 propogated back to all the places they're supposed to be.
1821 Grep wants private fixed already mapped.
1822 The main things grep needs to know about mmap are:
1823 * does it exist and is it safe to write into the mmap'd area
1824 * how to use it (BSD variants) */
1825 #include <sys/types.h>
1827 #include <sys/mman.h>
1829 /* This mess was copied from the GNU getpagesize.h. */
1830 #ifndef HAVE_GETPAGESIZE
1831 # ifdef HAVE_UNISTD_H
1832 # include <unistd.h>
1835 /* Assume that all systems that can run configure have sys/param.h. */
1836 # ifndef HAVE_SYS_PARAM_H
1837 # define HAVE_SYS_PARAM_H 1
1840 # ifdef _SC_PAGESIZE
1841 # define getpagesize() sysconf(_SC_PAGESIZE)
1842 # else /* no _SC_PAGESIZE */
1843 # ifdef HAVE_SYS_PARAM_H
1844 # include <sys/param.h>
1845 # ifdef EXEC_PAGESIZE
1846 # define getpagesize() EXEC_PAGESIZE
1847 # else /* no EXEC_PAGESIZE */
1849 # define getpagesize() NBPG * CLSIZE
1852 # endif /* no CLSIZE */
1853 # else /* no NBPG */
1855 # define getpagesize() NBPC
1856 # else /* no NBPC */
1858 # define getpagesize() PAGESIZE
1859 # endif /* PAGESIZE */
1860 # endif /* no NBPC */
1861 # endif /* no NBPG */
1862 # endif /* no EXEC_PAGESIZE */
1863 # else /* no HAVE_SYS_PARAM_H */
1864 # define getpagesize() 8192 /* punt totally */
1865 # endif /* no HAVE_SYS_PARAM_H */
1866 # endif /* no _SC_PAGESIZE */
1868 #endif /* no HAVE_GETPAGESIZE */
1871 extern "C" { void *malloc(unsigned); }
1879 char *data, *data2, *data3;
1883 pagesize = getpagesize();
1886 * First, make a file with some known garbage in it.
1888 data = malloc(pagesize);
1891 for (i = 0; i < pagesize; ++i)
1892 *(data + i) = rand();
1894 fd = creat("conftestmmap", 0600);
1897 if (write(fd, data, pagesize) != pagesize)
1902 * Next, try to mmap the file at a fixed address which
1903 * already has something else allocated at it. If we can,
1904 * also make sure that we see the same garbage.
1906 fd = open("conftestmmap", O_RDWR);
1909 data2 = malloc(2 * pagesize);
1912 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1913 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1914 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1916 for (i = 0; i < pagesize; ++i)
1917 if (*(data + i) != *(data2 + i))
1921 * Finally, make sure that changes to the mapped area
1922 * do not percolate back to the file as seen by read().
1923 * (This is a bug on some variants of i386 svr4.0.)
1925 for (i = 0; i < pagesize; ++i)
1926 *(data2 + i) = *(data2 + i) + 1;
1927 data3 = malloc(pagesize);
1930 if (read(fd, data3, pagesize) != pagesize)
1932 for (i = 0; i < pagesize; ++i)
1933 if (*(data + i) != *(data3 + i))
1936 unlink("conftestmmap");
1941 if { (eval echo configure
:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1943 ac_cv_func_mmap_fixed_mapped
=yes
1945 echo "configure: failed program was:" >&5
1946 cat conftest.
$ac_ext >&5
1948 ac_cv_func_mmap_fixed_mapped
=no
1955 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1956 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1957 cat >> confdefs.h
<<\EOF
1964 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1965 unistd.h values.h sys
/param.h
1967 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_hdr" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.
$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1978 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure
:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981 if test -z "$ac_err"; then
1983 eval "ac_cv_header_$ac_safe=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 eval "ac_cv_header_$ac_safe=no"
1993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1996 cat >> confdefs.h
<<EOF
1997 #define $ac_tr_hdr 1
2001 echo "$ac_t""no" 1>&6
2005 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2006 __argz_count __argz_stringify __argz_next
2008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_func" >&5
2010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.
$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 /* System header to define __stub macros and hopefully few prototypes,
2017 which can conflict with char $ac_func(); below. */
2019 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2026 /* The GNU C library defines this for functions which it implements
2027 to always fail with ENOSYS. Some functions are actually named
2028 something starting with __ and the normal name is an alias. */
2029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2037 if { (eval echo configure
:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2039 eval "ac_cv_func_$ac_func=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2044 eval "ac_cv_func_$ac_func=no"
2049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2052 cat >> confdefs.h
<<EOF
2053 #define $ac_tr_func 1
2057 echo "$ac_t""no" 1>&6
2062 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2063 for ac_func
in stpcpy
2065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2066 echo "configure:2067: checking for $ac_func" >&5
2067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 cat > conftest.
$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $ac_func(); below. */
2076 /* Override any gcc2 internal prototype to avoid an error. */
2077 /* We use char because int might match the return type of a gcc2
2078 builtin and then its argument prototype would still apply. */
2083 /* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2094 if { (eval echo configure
:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2096 eval "ac_cv_func_$ac_func=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.
$ac_ext >&5
2101 eval "ac_cv_func_$ac_func=no"
2106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2109 cat >> confdefs.h
<<EOF
2110 #define $ac_tr_func 1
2114 echo "$ac_t""no" 1>&6
2119 if test "${ac_cv_func_stpcpy}" = "yes"; then
2120 cat >> confdefs.h
<<\EOF
2121 #define HAVE_STPCPY 1
2126 if test $ac_cv_header_locale_h = yes; then
2127 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2128 echo "configure:2129: checking for LC_MESSAGES" >&5
2129 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.
$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2140 if { (eval echo configure
:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2142 am_cv_val_LC_MESSAGES
=yes
2144 echo "configure: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2147 am_cv_val_LC_MESSAGES
=no
2152 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2153 if test $am_cv_val_LC_MESSAGES = yes; then
2154 cat >> confdefs.h
<<\EOF
2155 #define HAVE_LC_MESSAGES 1
2160 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2161 echo "configure:2162: checking whether NLS is requested" >&5
2162 # Check whether --enable-nls or --disable-nls was given.
2163 if test "${enable_nls+set}" = set; then
2164 enableval
="$enable_nls"
2170 echo "$ac_t""$USE_NLS" 1>&6
2173 USE_INCLUDED_LIBINTL
=no
2175 if test "$USE_NLS" = "yes"; then
2176 cat >> confdefs.h
<<\EOF
2177 #define ENABLE_NLS 1
2180 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether included gettext is requested" >&5
2182 # Check whether --with-included-gettext or --without-included-gettext was given.
2183 if test "${with_included_gettext+set}" = set; then
2184 withval
="$with_included_gettext"
2185 nls_cv_force_use_gnu_gettext
=$withval
2187 nls_cv_force_use_gnu_gettext
=no
2190 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2192 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2193 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2195 nls_cv_header_libgt
=
2198 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2199 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2200 echo "configure:2201: checking for libintl.h" >&5
2201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.
$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #include <libintl.h>
2209 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure
:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2212 if test -z "$ac_err"; then
2214 eval "ac_cv_header_$ac_safe=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.
$ac_ext >&5
2220 eval "ac_cv_header_$ac_safe=no"
2224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2227 echo "configure:2228: checking for gettext in libc" >&5
2228 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.
$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 #include <libintl.h>
2236 return (int) gettext ("")
2239 if { (eval echo configure
:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2241 gt_cv_func_gettext_libc
=yes
2243 echo "configure: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2246 gt_cv_func_gettext_libc
=no
2251 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2253 if test "$gt_cv_func_gettext_libc" != "yes"; then
2254 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2255 echo "configure:2256: checking for bindtextdomain in -lintl" >&5
2256 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 ac_save_LIBS
="$LIBS"
2262 cat > conftest.
$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2268 char bindtextdomain();
2274 if { (eval echo configure
:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2276 eval "ac_cv_lib_$ac_lib_var=yes"
2278 echo "configure: failed program was:" >&5
2279 cat conftest.
$ac_ext >&5
2281 eval "ac_cv_lib_$ac_lib_var=no"
2284 LIBS
="$ac_save_LIBS"
2287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2290 echo "configure:2291: checking for gettext in libintl" >&5
2291 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.
$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2299 return (int) gettext ("")
2302 if { (eval echo configure
:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2304 gt_cv_func_gettext_libintl
=yes
2306 echo "configure: failed program was:" >&5
2307 cat conftest.
$ac_ext >&5
2309 gt_cv_func_gettext_libintl
=no
2314 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2316 echo "$ac_t""no" 1>&6
2321 if test "$gt_cv_func_gettext_libc" = "yes" \
2322 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2323 cat >> confdefs.h
<<\EOF
2324 #define HAVE_GETTEXT 1
2327 # Extract the first word of "msgfmt", so it can be a program name with args.
2328 set dummy msgfmt
; ac_word
=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2336 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2339 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2340 for ac_dir
in $PATH; do
2341 test -z "$ac_dir" && ac_dir
=.
2342 if test -f $ac_dir/$ac_word; then
2343 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2344 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2350 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2354 MSGFMT
="$ac_cv_path_MSGFMT"
2355 if test -n "$MSGFMT"; then
2356 echo "$ac_t""$MSGFMT" 1>&6
2358 echo "$ac_t""no" 1>&6
2360 if test "$MSGFMT" != "no"; then
2361 for ac_func
in dcgettext
2363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_func" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.
$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char $ac_func(); below. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2381 /* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2392 if { (eval echo configure
:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2394 eval "ac_cv_func_$ac_func=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.
$ac_ext >&5
2399 eval "ac_cv_func_$ac_func=no"
2404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2406 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2407 cat >> confdefs.h
<<EOF
2408 #define $ac_tr_func 1
2412 echo "$ac_t""no" 1>&6
2416 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2417 set dummy gmsgfmt
; ac_word
=$2
2418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_word" >&5
2420 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2425 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2428 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2431 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2433 for ac_dir
in $ac_dummy; do
2434 test -z "$ac_dir" && ac_dir
=.
2435 if test -f $ac_dir/$ac_word; then
2436 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2441 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2445 GMSGFMT
="$ac_cv_path_GMSGFMT"
2446 if test -n "$GMSGFMT"; then
2447 echo "$ac_t""$GMSGFMT" 1>&6
2449 echo "$ac_t""no" 1>&6
2452 # Extract the first word of "xgettext", so it can be a program name with args.
2453 set dummy xgettext
; ac_word
=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2461 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2464 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2465 for ac_dir
in $PATH; do
2466 test -z "$ac_dir" && ac_dir
=.
2467 if test -f $ac_dir/$ac_word; then
2468 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2469 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2475 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2479 XGETTEXT
="$ac_cv_path_XGETTEXT"
2480 if test -n "$XGETTEXT"; then
2481 echo "$ac_t""$XGETTEXT" 1>&6
2483 echo "$ac_t""no" 1>&6
2486 cat > conftest.
$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2491 extern int _nl_msg_cat_cntr;
2492 return _nl_msg_cat_cntr
2495 if { (eval echo configure
:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2500 echo "configure: failed program was:" >&5
2501 cat conftest.
$ac_ext >&5
2512 echo "$ac_t""no" 1>&6
2517 if test "$CATOBJEXT" = "NONE"; then
2518 nls_cv_use_gnu_gettext
=yes
2522 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2523 INTLOBJS
="\$(GETTOBJS)"
2524 # Extract the first word of "msgfmt", so it can be a program name with args.
2525 set dummy msgfmt
; ac_word
=$2
2526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2527 echo "configure:2528: checking for $ac_word" >&5
2528 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2533 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2536 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2537 for ac_dir
in $PATH; do
2538 test -z "$ac_dir" && ac_dir
=.
2539 if test -f $ac_dir/$ac_word; then
2540 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2541 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2547 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2551 MSGFMT
="$ac_cv_path_MSGFMT"
2552 if test -n "$MSGFMT"; then
2553 echo "$ac_t""$MSGFMT" 1>&6
2555 echo "$ac_t""no" 1>&6
2558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2559 set dummy gmsgfmt
; ac_word
=$2
2560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_word" >&5
2562 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2567 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2570 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2573 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2575 for ac_dir
in $ac_dummy; do
2576 test -z "$ac_dir" && ac_dir
=.
2577 if test -f $ac_dir/$ac_word; then
2578 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2583 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2587 GMSGFMT
="$ac_cv_path_GMSGFMT"
2588 if test -n "$GMSGFMT"; then
2589 echo "$ac_t""$GMSGFMT" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 # Extract the first word of "xgettext", so it can be a program name with args.
2595 set dummy xgettext
; ac_word
=$2
2596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_word" >&5
2598 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2603 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2606 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2607 for ac_dir
in $PATH; do
2608 test -z "$ac_dir" && ac_dir
=.
2609 if test -f $ac_dir/$ac_word; then
2610 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2611 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2617 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2621 XGETTEXT
="$ac_cv_path_XGETTEXT"
2622 if test -n "$XGETTEXT"; then
2623 echo "$ac_t""$XGETTEXT" 1>&6
2625 echo "$ac_t""no" 1>&6
2629 USE_INCLUDED_LIBINTL
=yes
2633 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2635 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2636 nls_cv_header_intl
=libintl.h
2637 nls_cv_header_libgt
=libgettext.h
2640 if test "$XGETTEXT" != ":"; then
2641 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2644 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2649 # We need to process the po/ directory.
2653 nls_cv_header_intl
=libintl.h
2654 nls_cv_header_libgt
=libgettext.h
2657 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2658 # because some of the sources are only built for this goal.
2659 if test "$PACKAGE" = gettext; then
2661 USE_INCLUDED_LIBINTL
=yes
2664 for lang
in $ALL_LINGUAS; do
2665 GMOFILES
="$GMOFILES $lang.gmo"
2666 POFILES
="$POFILES $lang.po"
2682 if test "x$CATOBJEXT" != "x"; then
2683 if test "x$ALL_LINGUAS" = "x"; then
2686 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2687 echo "configure:2688: checking for catalogs to be installed" >&5
2689 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2690 case "$ALL_LINGUAS" in
2691 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2694 LINGUAS
=$NEW_LINGUAS
2695 echo "$ac_t""$LINGUAS" 1>&6
2698 if test -n "$LINGUAS"; then
2699 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2703 if test $ac_cv_header_locale_h = yes; then
2704 INCLUDE_LOCALE_H
="#include <locale.h>"
2707 /* The system does not provide the header <locale.h>. Take care yourself. */"
2711 if test -f $srcdir/po2tbl.
sed.
in; then
2712 if test "$CATOBJEXT" = ".cat"; then
2713 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2714 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2715 echo "configure:2716: checking for linux/version.h" >&5
2716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.
$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <linux/version.h>
2724 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure
:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727 if test -z "$ac_err"; then
2729 eval "ac_cv_header_$ac_safe=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.
$ac_ext >&5
2735 eval "ac_cv_header_$ac_safe=no"
2739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2740 echo "$ac_t""yes" 1>&6
2743 echo "$ac_t""no" 1>&6
2748 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2750 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2751 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2754 if test "$PACKAGE" = "gettext"; then
2764 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2770 if test -d $srcdir/po
; then
2771 test -d po || mkdir po
2772 if test "x$srcdir" != "x."; then
2773 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2774 posrcprefix
="$srcdir/"
2776 posrcprefix
="../$srcdir/"
2782 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2783 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2793 configdirs
="doc testsuite"
2795 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2796 if test "${enable_multi_ice+set}" = set; then
2797 enableval
="$enable_multi_ice"
2798 case "${enableval}" in
2799 yes ) enable_multi_ice
="yes" ;;
2800 no
) enable_multi_ice
="no" ;;
2801 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2807 if test "${enable_multi_ice}" = "yes"; then
2808 configdirs
="${configdirs} multi-ice"
2812 .
${srcdir}/configure.
host
2814 .
${srcdir}/configure.tgt
2817 for ac_prog
in mawk gawk nawk
awk
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy
$ac_prog; ac_word
=$2
2821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2822 echo "configure:2823: checking for $ac_word" >&5
2823 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 if test -n "$AWK"; then
2827 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2829 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2831 for ac_dir
in $ac_dummy; do
2832 test -z "$ac_dir" && ac_dir
=.
2833 if test -f $ac_dir/$ac_word; then
2834 ac_cv_prog_AWK
="$ac_prog"
2841 AWK
="$ac_cv_prog_AWK"
2842 if test -n "$AWK"; then
2843 echo "$ac_t""$AWK" 1>&6
2845 echo "$ac_t""no" 1>&6
2848 test -n "$AWK" && break
2851 # Find a good install program. We prefer a C program (faster),
2852 # so one script is as good as another. But avoid the broken or
2853 # incompatible versions:
2854 # SysV /etc/install, /usr/sbin/install
2855 # SunOS /usr/etc/install
2856 # IRIX /sbin/install
2858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2861 # ./install, which can be erroneously created by make from ./install.sh.
2862 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2863 echo "configure:2864: checking for a BSD compatible install" >&5
2864 if test -z "$INSTALL"; then
2865 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2869 for ac_dir
in $PATH; do
2870 # Account for people who put trailing slashes in PATH elements.
2872 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2874 # OSF1 and SCO ODT 3.0 have their own names for install.
2875 # Don't use installbsd from OSF since it installs stuff as root
2877 for ac_prog
in ginstall scoinst
install; do
2878 if test -f $ac_dir/$ac_prog; then
2879 if test $ac_prog = install &&
2880 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2881 # AIX install. It has an incompatible calling convention.
2884 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2895 if test "${ac_cv_path_install+set}" = set; then
2896 INSTALL
="$ac_cv_path_install"
2898 # As a last resort, use the slow shell script. We don't cache a
2899 # path for INSTALL within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the path is relative.
2902 INSTALL
="$ac_install_sh"
2905 echo "$ac_t""$INSTALL" 1>&6
2907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2908 # It thinks the first close brace ends the variable substitution.
2909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2913 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2915 if test $host != $build; then
2916 ac_tool_prefix
=${host_alias}-
2921 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2922 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2924 echo "configure:2925: checking for $ac_word" >&5
2925 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 if test -n "$AR"; then
2929 ac_cv_prog_AR
="$AR" # Let the user override the test.
2931 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2933 for ac_dir
in $ac_dummy; do
2934 test -z "$ac_dir" && ac_dir
=.
2935 if test -f $ac_dir/$ac_word; then
2936 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2941 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2945 if test -n "$AR"; then
2946 echo "$ac_t""$AR" 1>&6
2948 echo "$ac_t""no" 1>&6
2953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2954 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_word" >&5
2957 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 if test -n "$RANLIB"; then
2961 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2963 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2965 for ac_dir
in $ac_dummy; do
2966 test -z "$ac_dir" && ac_dir
=.
2967 if test -f $ac_dir/$ac_word; then
2968 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2975 RANLIB
="$ac_cv_prog_RANLIB"
2976 if test -n "$RANLIB"; then
2977 echo "$ac_t""$RANLIB" 1>&6
2979 echo "$ac_t""no" 1>&6
2983 if test -z "$ac_cv_prog_RANLIB"; then
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "ranlib", so it can be a program name with args.
2986 set dummy ranlib
; ac_word
=$2
2987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2988 echo "configure:2989: checking for $ac_word" >&5
2989 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 if test -n "$RANLIB"; then
2993 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2995 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2997 for ac_dir
in $ac_dummy; do
2998 test -z "$ac_dir" && ac_dir
=.
2999 if test -f $ac_dir/$ac_word; then
3000 ac_cv_prog_RANLIB
="ranlib"
3005 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3008 RANLIB
="$ac_cv_prog_RANLIB"
3009 if test -n "$RANLIB"; then
3010 echo "$ac_t""$RANLIB" 1>&6
3012 echo "$ac_t""no" 1>&6
3020 for ac_prog
in 'bison -y' byacc
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy
$ac_prog; ac_word
=$2
3024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3025 echo "configure:3026: checking for $ac_word" >&5
3026 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 if test -n "$YACC"; then
3030 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3032 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3034 for ac_dir
in $ac_dummy; do
3035 test -z "$ac_dir" && ac_dir
=.
3036 if test -f $ac_dir/$ac_word; then
3037 ac_cv_prog_YACC
="$ac_prog"
3044 YACC
="$ac_cv_prog_YACC"
3045 if test -n "$YACC"; then
3046 echo "$ac_t""$YACC" 1>&6
3048 echo "$ac_t""no" 1>&6
3051 test -n "$YACC" && break
3053 test -n "$YACC" || YACC
="yacc"
3056 if test "$program_transform_name" = s
,x
,x
,; then
3057 program_transform_name
=
3059 # Double any \ or $. echo might interpret backslashes.
3060 cat <<\EOF_SED
> conftestsed
3061 s
,\\,\\\\,g
; s
,\$
,$$
,g
3063 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3066 test "$program_prefix" != NONE
&&
3067 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3068 # Use a double $ so make ignores it.
3069 test "$program_suffix" != NONE
&&
3070 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3072 # sed with no file args requires a program.
3073 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3076 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3077 echo "configure:3078: checking return type of signal handlers" >&5
3078 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 cat > conftest.
$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 #include <sys/types.h>
3090 extern "C" void (*signal (int, void (*)(int)))(int);
3092 void (*signal ()) ();
3099 if { (eval echo configure
:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3101 ac_cv_type_signal
=void
3103 echo "configure: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3106 ac_cv_type_signal
=int
3111 echo "$ac_t""$ac_cv_type_signal" 1>&6
3112 cat >> confdefs.h
<<EOF
3113 #define RETSIGTYPE $ac_cv_type_signal
3118 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3119 echo "configure:3120: checking for ANSI C header files" >&5
3120 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3131 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure
:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3136 ac_cv_header_stdc
=yes
3139 echo "configure: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3142 ac_cv_header_stdc
=no
3146 if test $ac_cv_header_stdc = yes; then
3147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "memchr" >/dev
/null
2>&1; then
3158 ac_cv_header_stdc
=no
3164 if test $ac_cv_header_stdc = yes; then
3165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3166 cat > conftest.
$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 egrep "free" >/dev
/null
2>&1; then
3176 ac_cv_header_stdc
=no
3182 if test $ac_cv_header_stdc = yes; then
3183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3184 if test "$cross_compiling" = yes; then
3187 cat > conftest.
$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3191 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3192 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3194 int main () { int i; for (i = 0; i < 256; i++)
3195 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3199 if { (eval echo configure
:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 ac_cv_header_stdc
=no
3214 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3215 if test $ac_cv_header_stdc = yes; then
3216 cat >> confdefs.h
<<\EOF
3217 #define STDC_HEADERS 1
3223 for ac_hdr
in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3224 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3225 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3226 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3227 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3230 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_hdr" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure
:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244 if test -z "$ac_err"; then
3246 eval "ac_cv_header_$ac_safe=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 eval "ac_cv_header_$ac_safe=no"
3256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3259 cat >> confdefs.h
<<EOF
3260 #define $ac_tr_hdr 1
3264 echo "$ac_t""no" 1>&6
3268 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3269 echo "configure:3270: checking whether stat file-mode macros are broken" >&5
3270 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 cat > conftest.
$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 #include <sys/types.h>
3277 #include <sys/stat.h>
3279 #if defined(S_ISBLK) && defined(S_IFDIR)
3280 # if S_ISBLK (S_IFDIR)
3285 #if defined(S_ISBLK) && defined(S_IFCHR)
3286 # if S_ISBLK (S_IFCHR)
3291 #if defined(S_ISLNK) && defined(S_IFREG)
3292 # if S_ISLNK (S_IFREG)
3297 #if defined(S_ISSOCK) && defined(S_IFREG)
3298 # if S_ISSOCK (S_IFREG)
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 egrep "You lose" >/dev
/null
2>&1; then
3307 ac_cv_header_stat_broken
=yes
3310 ac_cv_header_stat_broken
=no
3316 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3317 if test $ac_cv_header_stat_broken = yes; then
3318 cat >> confdefs.h
<<\EOF
3319 #define STAT_MACROS_BROKEN 1
3325 echo $ac_n "checking for working const""... $ac_c" 1>&6
3326 echo "configure:3327: checking for working const" >&5
3327 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
3336 /* Ultrix mips cc rejects this. */
3337 typedef int charset[2]; const charset x;
3338 /* SunOS 4.1.1 cc rejects this. */
3339 char const *const *ccp;
3341 /* NEC SVR4.0.2 mips cc rejects this. */
3342 struct point {int x, y;};
3343 static struct point const zero = {0,0};
3344 /* AIX XL C 1.02.0.0 rejects this.
3345 It does not let you subtract one const X* pointer from another in an arm
3346 of an if-expression whose if-part is not a constant expression */
3347 const char *g = "string";
3348 ccp = &g + (g ? g-g : 0);
3349 /* HPUX 7.0 cc rejects these. */
3352 ccp = (char const *const *) p;
3353 { /* SCO 3.2v4 cc rejects this. */
3355 char const *s = 0 ? (char *) 0 : (char const *) 0;
3359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3361 const int *foo = &x[0];
3364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3365 typedef const int *iptr;
3369 { /* AIX XL C 1.02.0.0 rejects this saying
3370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3371 struct s { int j; const int *ap[3]; };
3372 struct s *b; b->j = 5;
3374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3380 if { (eval echo configure
:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3392 echo "$ac_t""$ac_cv_c_const" 1>&6
3393 if test $ac_cv_c_const = no
; then
3394 cat >> confdefs.h
<<\EOF
3401 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3404 echo "configure:3405: checking for $ac_func" >&5
3405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 cat > conftest.
$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 /* System header to define __stub macros and hopefully few prototypes,
3412 which can conflict with char $ac_func(); below. */
3414 /* Override any gcc2 internal prototype to avoid an error. */
3415 /* We use char because int might match the return type of a gcc2
3416 builtin and then its argument prototype would still apply. */
3421 /* The GNU C library defines this for functions which it implements
3422 to always fail with ENOSYS. Some functions are actually named
3423 something starting with __ and the normal name is an alias. */
3424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3432 if { (eval echo configure
:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3434 eval "ac_cv_func_$ac_func=yes"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3439 eval "ac_cv_func_$ac_func=no"
3444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3445 echo "$ac_t""yes" 1>&6
3446 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3447 cat >> confdefs.h
<<EOF
3448 #define $ac_tr_func 1
3452 echo "$ac_t""no" 1>&6
3456 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3457 # for constant arguments. Useless!
3458 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3459 echo "configure:3460: checking for working alloca.h" >&5
3460 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.
$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3468 char *p = alloca(2 * sizeof(int));
3471 if { (eval echo configure
:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3473 ac_cv_header_alloca_h
=yes
3475 echo "configure: failed program was:" >&5
3476 cat conftest.
$ac_ext >&5
3478 ac_cv_header_alloca_h
=no
3483 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3484 if test $ac_cv_header_alloca_h = yes; then
3485 cat >> confdefs.h
<<\EOF
3486 #define HAVE_ALLOCA_H 1
3491 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3492 echo "configure:3493: checking for alloca" >&5
3493 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.
$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3501 # define alloca __builtin_alloca
3504 # include <malloc.h>
3505 # define alloca _alloca
3508 # include <alloca.h>
3513 # ifndef alloca /* predefined by HP cc +Olibcalls */
3522 char *p = (char *) alloca(1);
3525 if { (eval echo configure
:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3527 ac_cv_func_alloca_works
=yes
3529 echo "configure: failed program was:" >&5
3530 cat conftest.
$ac_ext >&5
3532 ac_cv_func_alloca_works
=no
3537 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3538 if test $ac_cv_func_alloca_works = yes; then
3539 cat >> confdefs.h
<<\EOF
3540 #define HAVE_ALLOCA 1
3545 if test $ac_cv_func_alloca_works = no
; then
3546 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3547 # that cause trouble. Some versions do not even contain alloca or
3548 # contain a buggy version. If you still want to use their alloca,
3549 # use ar to extract alloca.o from them instead of compiling alloca.c.
3550 ALLOCA
=alloca.
${ac_objext}
3551 cat >> confdefs.h
<<\EOF
3556 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3557 echo "configure:3558: checking whether alloca needs Cray hooks" >&5
3558 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 cat > conftest.
$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #if defined(CRAY) && ! defined(CRAY2)
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 egrep "webecray" >/dev
/null
2>&1; then
3583 echo "$ac_t""$ac_cv_os_cray" 1>&6
3584 if test $ac_cv_os_cray = yes; then
3585 for ac_func
in _getb67 GETB67 getb67
; do
3586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3587 echo "configure:3588: checking for $ac_func" >&5
3588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.
$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* System header to define __stub macros and hopefully few prototypes,
3595 which can conflict with char $ac_func(); below. */
3597 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3604 /* The GNU C library defines this for functions which it implements
3605 to always fail with ENOSYS. Some functions are actually named
3606 something starting with __ and the normal name is an alias. */
3607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3615 if { (eval echo configure
:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3617 eval "ac_cv_func_$ac_func=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.
$ac_ext >&5
3622 eval "ac_cv_func_$ac_func=no"
3627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 cat >> confdefs.h
<<EOF
3630 #define CRAY_STACKSEG_END $ac_func
3635 echo "$ac_t""no" 1>&6
3641 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3642 echo "configure:3643: checking stack direction for C alloca" >&5
3643 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 if test "$cross_compiling" = yes; then
3647 ac_cv_c_stack_direction
=0
3649 cat > conftest.
$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 find_stack_direction ()
3654 static char *addr = 0;
3659 return find_stack_direction ();
3662 return (&dummy > addr) ? 1 : -1;
3666 exit (find_stack_direction() < 0);
3669 if { (eval echo configure
:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3671 ac_cv_c_stack_direction
=1
3673 echo "configure: failed program was:" >&5
3674 cat conftest.
$ac_ext >&5
3676 ac_cv_c_stack_direction
=-1
3683 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3684 cat >> confdefs.h
<<EOF
3685 #define STACK_DIRECTION $ac_cv_c_stack_direction
3691 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3692 echo "configure:3693: checking for PTRACE_GETXFPREGS" >&5
3693 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 cat > conftest.
$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <sys/ptrace.h>
3704 if { (eval echo configure
:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706 gdb_cv_have_ptrace_getxfpregs
=yes
3708 echo "configure: failed program was:" >&5
3709 cat conftest.
$ac_ext >&5
3711 gdb_cv_have_ptrace_getxfpregs
=no
3716 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3717 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3718 cat >> confdefs.h
<<\EOF
3719 #define HAVE_PTRACE_GETXFPREGS 1
3724 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3725 echo "configure:3726: checking for socketpair in -lsocket" >&5
3726 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 ac_save_LIBS
="$LIBS"
3731 LIBS
="-lsocket $LIBS"
3732 cat > conftest.
$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* Override any gcc2 internal prototype to avoid an error. */
3736 /* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3744 if { (eval echo configure
:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3746 eval "ac_cv_lib_$ac_lib_var=yes"
3748 echo "configure: failed program was:" >&5
3749 cat conftest.
$ac_ext >&5
3751 eval "ac_cv_lib_$ac_lib_var=no"
3754 LIBS
="$ac_save_LIBS"
3757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3761 cat >> confdefs.h
<<EOF
3762 #define $ac_tr_lib 1
3765 LIBS
="-lsocket $LIBS"
3768 echo "$ac_t""no" 1>&6
3771 for ac_func
in socketpair
3773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_func" >&5
3775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 cat > conftest.
$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 /* System header to define __stub macros and hopefully few prototypes,
3782 which can conflict with char $ac_func(); below. */
3784 /* Override any gcc2 internal prototype to avoid an error. */
3785 /* We use char because int might match the return type of a gcc2
3786 builtin and then its argument prototype would still apply. */
3791 /* The GNU C library defines this for functions which it implements
3792 to always fail with ENOSYS. Some functions are actually named
3793 something starting with __ and the normal name is an alias. */
3794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3802 if { (eval echo configure
:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3804 eval "ac_cv_func_$ac_func=yes"
3806 echo "configure: failed program was:" >&5
3807 cat conftest.
$ac_ext >&5
3809 eval "ac_cv_func_$ac_func=no"
3814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3817 cat >> confdefs.h
<<EOF
3818 #define $ac_tr_func 1
3822 echo "$ac_t""no" 1>&6
3828 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3829 echo "configure:3830: checking whether malloc must be declared" >&5
3830 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.
$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3838 #ifdef HAVE_STRING_H
3841 #ifdef HAVE_STRINGS_H
3842 #include <strings.h>
3845 #ifdef HAVE_STDLIB_H
3848 #ifdef HAVE_UNISTD_H
3852 char *(*pfn) = (char *(*)) malloc
3855 if { (eval echo configure
:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 bfd_cv_decl_needed_malloc
=no
3859 echo "configure: failed program was:" >&5
3860 cat conftest.
$ac_ext >&5
3862 bfd_cv_decl_needed_malloc
=yes
3867 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3868 if test $bfd_cv_decl_needed_malloc = yes; then
3869 cat >> confdefs.h
<<\EOF
3870 #define NEED_DECLARATION_MALLOC 1
3875 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3876 echo "configure:3877: checking whether realloc must be declared" >&5
3877 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 cat > conftest.
$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3885 #ifdef HAVE_STRING_H
3888 #ifdef HAVE_STRINGS_H
3889 #include <strings.h>
3892 #ifdef HAVE_STDLIB_H
3895 #ifdef HAVE_UNISTD_H
3899 char *(*pfn) = (char *(*)) realloc
3902 if { (eval echo configure
:3903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3904 bfd_cv_decl_needed_realloc
=no
3906 echo "configure: failed program was:" >&5
3907 cat conftest.
$ac_ext >&5
3909 bfd_cv_decl_needed_realloc
=yes
3914 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3915 if test $bfd_cv_decl_needed_realloc = yes; then
3916 cat >> confdefs.h
<<\EOF
3917 #define NEED_DECLARATION_REALLOC 1
3922 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3923 echo "configure:3924: checking whether free must be declared" >&5
3924 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3927 cat > conftest.
$ac_ext <<EOF
3928 #line 3929 "configure"
3929 #include "confdefs.h"
3932 #ifdef HAVE_STRING_H
3935 #ifdef HAVE_STRINGS_H
3936 #include <strings.h>
3939 #ifdef HAVE_STDLIB_H
3942 #ifdef HAVE_UNISTD_H
3946 char *(*pfn) = (char *(*)) free
3949 if { (eval echo configure
:3950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 bfd_cv_decl_needed_free
=no
3953 echo "configure: failed program was:" >&5
3954 cat conftest.
$ac_ext >&5
3956 bfd_cv_decl_needed_free
=yes
3961 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3962 if test $bfd_cv_decl_needed_free = yes; then
3963 cat >> confdefs.h
<<\EOF
3964 #define NEED_DECLARATION_FREE 1
3969 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3970 echo "configure:3971: checking whether strerror must be declared" >&5
3971 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3979 #ifdef HAVE_STRING_H
3982 #ifdef HAVE_STRINGS_H
3983 #include <strings.h>
3986 #ifdef HAVE_STDLIB_H
3989 #ifdef HAVE_UNISTD_H
3993 char *(*pfn) = (char *(*)) strerror
3996 if { (eval echo configure
:3997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3998 bfd_cv_decl_needed_strerror
=no
4000 echo "configure: failed program was:" >&5
4001 cat conftest.
$ac_ext >&5
4003 bfd_cv_decl_needed_strerror
=yes
4008 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4009 if test $bfd_cv_decl_needed_strerror = yes; then
4010 cat >> confdefs.h
<<\EOF
4011 #define NEED_DECLARATION_STRERROR 1
4016 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4017 echo "configure:4018: checking whether strdup must be declared" >&5
4018 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 cat > conftest.
$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4026 #ifdef HAVE_STRING_H
4029 #ifdef HAVE_STRINGS_H
4030 #include <strings.h>
4033 #ifdef HAVE_STDLIB_H
4036 #ifdef HAVE_UNISTD_H
4040 char *(*pfn) = (char *(*)) strdup
4043 if { (eval echo configure
:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 bfd_cv_decl_needed_strdup
=no
4047 echo "configure: failed program was:" >&5
4048 cat conftest.
$ac_ext >&5
4050 bfd_cv_decl_needed_strdup
=yes
4055 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4056 if test $bfd_cv_decl_needed_strdup = yes; then
4057 cat >> confdefs.h
<<\EOF
4058 #define NEED_DECLARATION_STRDUP 1
4063 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4064 echo "configure:4065: checking whether strstr must be declared" >&5
4065 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.
$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4073 #ifdef HAVE_STRING_H
4076 #ifdef HAVE_STRINGS_H
4077 #include <strings.h>
4080 #ifdef HAVE_STDLIB_H
4083 #ifdef HAVE_UNISTD_H
4087 char *(*pfn) = (char *(*)) strstr
4090 if { (eval echo configure
:4091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4092 bfd_cv_decl_needed_strstr
=no
4094 echo "configure: failed program was:" >&5
4095 cat conftest.
$ac_ext >&5
4097 bfd_cv_decl_needed_strstr
=yes
4102 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4103 if test $bfd_cv_decl_needed_strstr = yes; then
4104 cat >> confdefs.h
<<\EOF
4105 #define NEED_DECLARATION_STRSTR 1
4112 # The following save_state_t checkery is only necessary for HPUX
4113 # versions earlier than 10.20. When those fade from memory, this
4114 # could be expunged. --jsm 1999-03-22
4116 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4117 echo "configure:4118: checking for HPUX save_state structure" >&5
4118 cat > conftest.
$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 #include <machine/save_state.h>
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 egrep "save_state_t" >/dev
/null
2>&1; then
4126 gdb_cv_hpux_savestate
=yes
4129 gdb_cv_hpux_savestate
=no
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 #include <machine/save_state.h>
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 egrep "ss_wide" >/dev
/null
2>&1; then
4141 gdb_cv_hpux_sswide
=yes
4144 gdb_cv_hpux_sswide
=no
4148 if test $gdb_cv_hpux_savestate = yes
4150 cat >> confdefs.h
<<\EOF
4151 #define HAVE_STRUCT_SAVE_STATE_T 1
4155 if test $gdb_cv_hpux_sswide = yes
4157 cat >> confdefs.h
<<\EOF
4158 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4162 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4165 # If we are configured native on GNU/Linux, work around problems with
4167 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4169 if test "${target}" = "${host}"; then
4172 cat >> confdefs.h
<<\EOF
4173 #define START_INFERIOR_TRAPS_EXPECTED 2
4176 cat >> confdefs.h
<<\EOF
4177 #define sys_quotactl 1
4181 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4182 cat >> confdefs.h
<<\EOF
4183 #define NEW_PROC_API 1
4187 # FIXME: we would like to define NEW_PROC_API for all versions of
4188 # Solaris from 2.6 on... but it isn't quite working yet. Seems
4189 # to work on sparc 2.6, so let's try it out there.
4190 sparc-sun-solaris2.6
)
4191 cat >> confdefs.h
<<\EOF
4192 #define NEW_PROC_API 1
4199 if test "$ac_cv_header_sys_procfs_h" = yes; then
4200 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4201 echo "configure:4202: checking for pstatus_t in sys/procfs.h" >&5
4202 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 cat > conftest.
$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 #include <sys/procfs.h>
4213 if { (eval echo configure
:4214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4215 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4217 echo "configure: failed program was:" >&5
4218 cat conftest.
$ac_ext >&5
4220 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4226 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4227 cat >> confdefs.h
<<\EOF
4228 #define HAVE_PSTATUS_T 1
4232 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4234 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4235 echo "configure:4236: checking for prrun_t in sys/procfs.h" >&5
4236 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 cat > conftest.
$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #include <sys/procfs.h>
4247 if { (eval echo configure
:4248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4249 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4251 echo "configure: failed program was:" >&5
4252 cat conftest.
$ac_ext >&5
4254 bfd_cv_have_sys_procfs_type_prrun_t
=no
4260 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4261 cat >> confdefs.h
<<\EOF
4262 #define HAVE_PRRUN_T 1
4266 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4268 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4269 echo "configure:4270: checking for gregset_t in sys/procfs.h" >&5
4270 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4273 cat > conftest.
$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 #include <sys/procfs.h>
4281 if { (eval echo configure
:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4283 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4285 echo "configure: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 bfd_cv_have_sys_procfs_type_gregset_t
=no
4294 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4295 cat >> confdefs.h
<<\EOF
4296 #define HAVE_GREGSET_T 1
4300 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4302 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4303 echo "configure:4304: checking for fpregset_t in sys/procfs.h" >&5
4304 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 cat > conftest.
$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #include <sys/procfs.h>
4315 if { (eval echo configure
:4316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4317 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4319 echo "configure: failed program was:" >&5
4320 cat conftest.
$ac_ext >&5
4322 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4328 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4329 cat >> confdefs.h
<<\EOF
4330 #define HAVE_FPREGSET_T 1
4334 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4338 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4339 echo "configure:4340: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4340 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 cat > conftest.
$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4347 #include <sys/types.h>
4348 #include <sys/procfs.h>
4353 dummy = ioctl(0, PIOCSET, &dummy);
4357 if { (eval echo configure
:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4359 gdb_cv_have_procfs_piocset
=yes
4361 echo "configure: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4364 gdb_cv_have_procfs_piocset
=no
4369 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4370 if test $gdb_cv_have_procfs_piocset = yes; then
4371 cat >> confdefs.h
<<\EOF
4372 #define HAVE_PROCFS_PIOCSET 1
4378 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4379 echo "configure:4380: checking for main in -lm" >&5
4380 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS
="$LIBS"
4386 cat > conftest.
$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4394 if { (eval echo configure
:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4396 eval "ac_cv_lib_$ac_lib_var=yes"
4398 echo "configure: failed program was:" >&5
4399 cat conftest.
$ac_ext >&5
4401 eval "ac_cv_lib_$ac_lib_var=no"
4404 LIBS
="$ac_save_LIBS"
4407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4409 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4410 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4411 cat >> confdefs.h
<<EOF
4412 #define $ac_tr_lib 1
4418 echo "$ac_t""no" 1>&6
4422 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4423 echo "configure:4424: checking for wctype in -lc" >&5
4424 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 ac_save_LIBS
="$LIBS"
4430 cat > conftest.
$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4442 if { (eval echo configure
:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4444 eval "ac_cv_lib_$ac_lib_var=yes"
4446 echo "configure: failed program was:" >&5
4447 cat conftest.
$ac_ext >&5
4449 eval "ac_cv_lib_$ac_lib_var=no"
4452 LIBS
="$ac_save_LIBS"
4455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4459 echo "$ac_t""no" 1>&6
4460 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4461 echo "configure:4462: checking for wctype in -lw" >&5
4462 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 ac_save_LIBS
="$LIBS"
4468 cat > conftest.
$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4480 if { (eval echo configure
:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4482 eval "ac_cv_lib_$ac_lib_var=yes"
4484 echo "configure: failed program was:" >&5
4485 cat conftest.
$ac_ext >&5
4487 eval "ac_cv_lib_$ac_lib_var=no"
4490 LIBS
="$ac_save_LIBS"
4493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4497 cat >> confdefs.h
<<EOF
4498 #define $ac_tr_lib 1
4504 echo "$ac_t""no" 1>&6
4511 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4512 echo "configure:4513: checking for long long support in compiler" >&5
4513 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.
$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4522 extern long long foo;
4523 switch (foo & 2) { case 0: return 1; }
4527 if { (eval echo configure
:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4529 gdb_cv_c_long_long
=yes
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 gdb_cv_c_long_long
=no
4539 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4540 if test $gdb_cv_c_long_long = yes; then
4541 cat >> confdefs.h
<<\EOF
4542 #define CC_HAS_LONG_LONG 1
4548 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4549 echo "configure:4550: checking for long long support in printf" >&5
4550 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 if test "$cross_compiling" = yes; then
4554 gdb_cv_printf_has_long_long
=no
4556 cat > conftest.
$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4563 l = (l << 16) + 0x0123;
4564 l = (l << 16) + 0x4567;
4565 l = (l << 16) + 0x89ab;
4566 l = (l << 16) + 0xcdef;
4567 sprintf (buf, "0x%016llx", l);
4568 return (strcmp ("0x0123456789abcdef", buf));
4571 if { (eval echo configure
:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4573 gdb_cv_printf_has_long_long
=yes
4575 echo "configure: failed program was:" >&5
4576 cat conftest.
$ac_ext >&5
4578 gdb_cv_printf_has_long_long
=no
4585 if test $gdb_cv_printf_has_long_long = yes; then
4586 cat >> confdefs.h
<<\EOF
4587 #define PRINTF_HAS_LONG_LONG 1
4591 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4594 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4595 echo "configure:4596: checking for long double support in compiler" >&5
4596 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4607 if { (eval echo configure
:4608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4609 ac_cv_c_long_double
=yes
4611 echo "configure: failed program was:" >&5
4612 cat conftest.
$ac_ext >&5
4614 ac_cv_c_long_double
=no
4619 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4620 if test $ac_cv_c_long_double = yes; then
4621 cat >> confdefs.h
<<\EOF
4622 #define HAVE_LONG_DOUBLE 1
4628 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4629 echo "configure:4630: checking for long double support in printf" >&5
4630 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 if test "$cross_compiling" = yes; then
4634 gdb_cv_printf_has_long_double
=no
4636 cat > conftest.
$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4642 long double f = 3.141592653;
4643 sprintf (buf, "%Lg", f);
4644 return (strncmp ("3.14159", buf, 7));
4647 if { (eval echo configure
:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4649 gdb_cv_printf_has_long_double
=yes
4651 echo "configure: failed program was:" >&5
4652 cat conftest.
$ac_ext >&5
4654 gdb_cv_printf_has_long_double
=no
4661 if test $gdb_cv_printf_has_long_double = yes; then
4662 cat >> confdefs.h
<<\EOF
4663 #define PRINTF_HAS_LONG_DOUBLE 1
4667 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4670 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4671 echo "configure:4672: checking for long double support in scanf" >&5
4672 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4675 if test "$cross_compiling" = yes; then
4676 gdb_cv_scanf_has_long_double
=no
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4683 char *buf = "3.141592653";
4685 sscanf (buf, "%Lg", &f);
4686 return !(f > 3.14159 && f < 3.14160);
4689 if { (eval echo configure
:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4691 gdb_cv_scanf_has_long_double
=yes
4693 echo "configure: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4696 gdb_cv_scanf_has_long_double
=no
4703 if test $gdb_cv_scanf_has_long_double = yes; then
4704 cat >> confdefs.h
<<\EOF
4705 #define SCANF_HAS_LONG_DOUBLE 1
4709 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4711 for ac_hdr
in unistd.h
4713 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_hdr" >&5
4716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.
$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4724 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4725 { (eval echo configure
:4726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4726 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4727 if test -z "$ac_err"; then
4729 eval "ac_cv_header_$ac_safe=yes"
4732 echo "configure: failed program was:" >&5
4733 cat conftest.
$ac_ext >&5
4735 eval "ac_cv_header_$ac_safe=no"
4739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4742 cat >> confdefs.h
<<EOF
4743 #define $ac_tr_hdr 1
4747 echo "$ac_t""no" 1>&6
4751 for ac_func
in getpagesize
4753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_func" >&5
4755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 cat > conftest.
$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func(); below. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4771 /* The GNU C library defines this for functions which it implements
4772 to always fail with ENOSYS. Some functions are actually named
4773 something starting with __ and the normal name is an alias. */
4774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4782 if { (eval echo configure
:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4784 eval "ac_cv_func_$ac_func=yes"
4786 echo "configure: failed program was:" >&5
4787 cat conftest.
$ac_ext >&5
4789 eval "ac_cv_func_$ac_func=no"
4794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4797 cat >> confdefs.h
<<EOF
4798 #define $ac_tr_func 1
4802 echo "$ac_t""no" 1>&6
4806 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4807 echo "configure:4808: checking for working mmap" >&5
4808 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 if test "$cross_compiling" = yes; then
4812 ac_cv_func_mmap_fixed_mapped
=no
4814 cat > conftest.
$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4818 /* Thanks to Mike Haertel and Jim Avera for this test.
4819 Here is a matrix of mmap possibilities:
4820 mmap private not fixed
4821 mmap private fixed at somewhere currently unmapped
4822 mmap private fixed at somewhere already mapped
4823 mmap shared not fixed
4824 mmap shared fixed at somewhere currently unmapped
4825 mmap shared fixed at somewhere already mapped
4826 For private mappings, we should verify that changes cannot be read()
4827 back from the file, nor mmap's back from the file at a different
4828 address. (There have been systems where private was not correctly
4829 implemented like the infamous i386 svr4.0, and systems where the
4830 VM page cache was not coherent with the filesystem buffer cache
4831 like early versions of FreeBSD and possibly contemporary NetBSD.)
4832 For shared mappings, we should conversely verify that changes get
4833 propogated back to all the places they're supposed to be.
4835 Grep wants private fixed already mapped.
4836 The main things grep needs to know about mmap are:
4837 * does it exist and is it safe to write into the mmap'd area
4838 * how to use it (BSD variants) */
4839 #include <sys/types.h>
4841 #include <sys/mman.h>
4843 /* This mess was copied from the GNU getpagesize.h. */
4844 #ifndef HAVE_GETPAGESIZE
4845 # ifdef HAVE_UNISTD_H
4846 # include <unistd.h>
4849 /* Assume that all systems that can run configure have sys/param.h. */
4850 # ifndef HAVE_SYS_PARAM_H
4851 # define HAVE_SYS_PARAM_H 1
4854 # ifdef _SC_PAGESIZE
4855 # define getpagesize() sysconf(_SC_PAGESIZE)
4856 # else /* no _SC_PAGESIZE */
4857 # ifdef HAVE_SYS_PARAM_H
4858 # include <sys/param.h>
4859 # ifdef EXEC_PAGESIZE
4860 # define getpagesize() EXEC_PAGESIZE
4861 # else /* no EXEC_PAGESIZE */
4863 # define getpagesize() NBPG * CLSIZE
4866 # endif /* no CLSIZE */
4867 # else /* no NBPG */
4869 # define getpagesize() NBPC
4870 # else /* no NBPC */
4872 # define getpagesize() PAGESIZE
4873 # endif /* PAGESIZE */
4874 # endif /* no NBPC */
4875 # endif /* no NBPG */
4876 # endif /* no EXEC_PAGESIZE */
4877 # else /* no HAVE_SYS_PARAM_H */
4878 # define getpagesize() 8192 /* punt totally */
4879 # endif /* no HAVE_SYS_PARAM_H */
4880 # endif /* no _SC_PAGESIZE */
4882 #endif /* no HAVE_GETPAGESIZE */
4885 extern "C" { void *malloc(unsigned); }
4893 char *data, *data2, *data3;
4897 pagesize = getpagesize();
4900 * First, make a file with some known garbage in it.
4902 data = malloc(pagesize);
4905 for (i = 0; i < pagesize; ++i)
4906 *(data + i) = rand();
4908 fd = creat("conftestmmap", 0600);
4911 if (write(fd, data, pagesize) != pagesize)
4916 * Next, try to mmap the file at a fixed address which
4917 * already has something else allocated at it. If we can,
4918 * also make sure that we see the same garbage.
4920 fd = open("conftestmmap", O_RDWR);
4923 data2 = malloc(2 * pagesize);
4926 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4927 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4930 for (i = 0; i < pagesize; ++i)
4931 if (*(data + i) != *(data2 + i))
4935 * Finally, make sure that changes to the mapped area
4936 * do not percolate back to the file as seen by read().
4937 * (This is a bug on some variants of i386 svr4.0.)
4939 for (i = 0; i < pagesize; ++i)
4940 *(data2 + i) = *(data2 + i) + 1;
4941 data3 = malloc(pagesize);
4944 if (read(fd, data3, pagesize) != pagesize)
4946 for (i = 0; i < pagesize; ++i)
4947 if (*(data + i) != *(data3 + i))
4950 unlink("conftestmmap");
4955 if { (eval echo configure
:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4957 ac_cv_func_mmap_fixed_mapped
=yes
4959 echo "configure: failed program was:" >&5
4960 cat conftest.
$ac_ext >&5
4962 ac_cv_func_mmap_fixed_mapped
=no
4969 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4970 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4971 cat >> confdefs.h
<<\EOF
4980 if test ${build} = ${host} -a ${host} = ${target} ; then
4983 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4984 echo "configure:4985: checking for HPUX/OSF thread support" >&5
4985 if test -f /usr
/include
/dce
/cma_config.h
; then
4986 if test "$GCC" = "yes" ; then
4987 echo "$ac_t""yes" 1>&6
4988 cat >> confdefs.h
<<\EOF
4989 #define HAVE_HPUX_THREAD_SUPPORT 1
4992 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4993 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4994 CONFIG_INITS
="${CONFIG_INITS} hpux-thread.c"
4996 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4999 echo "$ac_t""no" 1>&6
5003 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5004 echo "configure:5005: checking for Solaris thread debugging library" >&5
5005 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5006 echo "$ac_t""yes" 1>&6
5007 cat >> confdefs.h
<<\EOF
5008 #define HAVE_THREAD_DB_LIB 1
5011 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
5012 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5013 CONFIG_INITS
="${CONFIG_INITS} sol-thread.c"
5014 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5015 echo "configure:5016: checking for dlopen in -ldl" >&5
5016 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 ac_save_LIBS
="$LIBS"
5022 cat > conftest.
$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* Override any gcc2 internal prototype to avoid an error. */
5026 /* We use char because int might match the return type of a gcc2
5027 builtin and then its argument prototype would still apply. */
5034 if { (eval echo configure
:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5036 eval "ac_cv_lib_$ac_lib_var=yes"
5038 echo "configure: failed program was:" >&5
5039 cat conftest.
$ac_ext >&5
5041 eval "ac_cv_lib_$ac_lib_var=no"
5044 LIBS
="$ac_save_LIBS"
5047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5048 echo "$ac_t""yes" 1>&6
5049 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5051 cat >> confdefs.h
<<EOF
5052 #define $ac_tr_lib 1
5058 echo "$ac_t""no" 1>&6
5061 if test "$GCC" = "yes" ; then
5062 # The GNU linker requires the -export-dynamic option to make
5063 # all symbols visible in the dynamic symbol table.
5064 hold_ldflags
=$LDFLAGS
5065 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5066 echo "configure:5067: checking for the ld -export-dynamic flag" >&5
5067 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5068 cat > conftest.
$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5076 if { (eval echo configure
:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5080 echo "configure: failed program was:" >&5
5081 cat conftest.
$ac_ext >&5
5086 LDFLAGS
=$hold_ldflags
5087 echo "$ac_t""$found" 1>&6
5088 if test $found = yes; then
5089 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5092 # Sun randomly tweaked the prototypes in <proc_service.h>
5094 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5095 echo "configure:5096: checking if <proc_service.h> is old" >&5
5096 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.
$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5104 #include <proc_service.h>
5106 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5112 if { (eval echo configure
:5113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5114 gdb_cv_proc_service_is_old
=no
5116 echo "configure: failed program was:" >&5
5117 cat conftest.
$ac_ext >&5
5119 gdb_cv_proc_service_is_old
=yes
5125 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5126 if test $gdb_cv_proc_service_is_old = yes; then
5127 cat >> confdefs.h
<<\EOF
5128 #define PROC_SERVICE_IS_OLD 1
5133 echo "$ac_t""no" 1>&6
5142 # Check whether --enable-tui or --disable-tui was given.
5143 if test "${enable_tui+set}" = set; then
5144 enableval
="$enable_tui"
5146 case "${enable_tui}" in
5148 "") enable_tui
=yes ;;
5150 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5156 case ${enable_tui} in
5158 cat >> confdefs.h
<<\EOF
5163 TUI_LIBRARY
=tui
/libtui.a
5173 # Check whether --enable-netrom or --disable-netrom was given.
5174 if test "${enable_netrom+set}" = set; then
5175 enableval
="$enable_netrom"
5176 case "${enableval}" in
5177 yes) enable_netrom
=yes ;;
5178 no
) enable_netrom
=no
;;
5179 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5184 if test "${enable_netrom}" = "yes"; then
5185 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5186 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5187 CONFIG_INITS
="${CONFIG_INITS} remote-nrom.c"
5190 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5191 if test "${enable_build_warnings+set}" = set; then
5192 enableval
="$enable_build_warnings"
5193 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
5194 case "${enableval}" in
5196 no
) build_warnings
="-w";;
5197 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5198 build_warnings
="${build_warnings} ${t}";;
5199 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5200 build_warnings
="${t} ${build_warnings}";;
5201 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5203 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5204 echo "Setting warning flags = $build_warnings" 6>&1
5208 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5210 # Separate out the -Werror flag as some files just cannot be
5211 # compiled with it enabled.
5212 for w
in ${build_warnings}; do
5214 -Werr*) WERROR_CFLAGS
=-Werror ;;
5215 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
5231 # Check whether --with-mmalloc or --without-mmalloc was given.
5232 if test "${with_mmalloc+set}" = set; then
5233 withval
="$with_mmalloc"
5234 case "${withval}" in
5235 yes) want_mmalloc
=true
;;
5236 no
) want_mmalloc
=false
;;
5237 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5243 if test x
$want_mmalloc = xtrue
; then
5244 cat >> confdefs.h
<<\EOF
5245 #define USE_MMALLOC 1
5248 cat >> confdefs.h
<<\EOF
5249 #define MMCHECK_FORCE 1
5252 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5253 MMALLOC
='../mmalloc/libmmalloc.a'
5257 # In the Cygwin environment, we need some additional flags.
5258 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5259 echo "configure:5383: checking for cygwin" >&5
5260 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 cat > conftest.
$ac_ext <<EOF
5264 #line 5388 "configure"
5265 #include "confdefs.h"
5267 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 egrep "lose" >/dev
/null
2>&1; then
5274 gdb_cv_os_cygwin
=yes
5283 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5285 DLLTOOL
=${DLLTOOL-dlltool}
5286 WINDRES
=${WINDRES-windres}
5290 if test x
$gdb_host = xgo32
; then
5293 if test x
$gdb_cv_os_cygwin = xyes
; then
5294 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5297 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5298 echo "configure:5422: checking for tgetent in -lncurses" >&5
5299 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5303 ac_save_LIBS
="$LIBS"
5304 LIBS
="-lncurses $LIBS"
5305 cat > conftest.
$ac_ext <<EOF
5306 #line 5430 "configure"
5307 #include "confdefs.h"
5308 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5317 if { (eval echo configure
:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5319 eval "ac_cv_lib_$ac_lib_var=yes"
5321 echo "configure: failed program was:" >&5
5322 cat conftest.
$ac_ext >&5
5324 eval "ac_cv_lib_$ac_lib_var=no"
5327 LIBS
="$ac_save_LIBS"
5330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5334 echo "$ac_t""no" 1>&6
5335 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5336 echo "configure:5460: checking for tgetent in -lHcurses" >&5
5337 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5341 ac_save_LIBS
="$LIBS"
5342 LIBS
="-lHcurses $LIBS"
5343 cat > conftest.
$ac_ext <<EOF
5344 #line 5468 "configure"
5345 #include "confdefs.h"
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5355 if { (eval echo configure
:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5357 eval "ac_cv_lib_$ac_lib_var=yes"
5359 echo "configure: failed program was:" >&5
5360 cat conftest.
$ac_ext >&5
5362 eval "ac_cv_lib_$ac_lib_var=no"
5365 LIBS
="$ac_save_LIBS"
5368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5369 echo "$ac_t""yes" 1>&6
5372 echo "$ac_t""no" 1>&6
5373 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5374 echo "configure:5498: checking for tgetent in -ltermlib" >&5
5375 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 ac_save_LIBS
="$LIBS"
5380 LIBS
="-ltermlib $LIBS"
5381 cat > conftest.
$ac_ext <<EOF
5382 #line 5506 "configure"
5383 #include "confdefs.h"
5384 /* Override any gcc2 internal prototype to avoid an error. */
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5393 if { (eval echo configure
:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5395 eval "ac_cv_lib_$ac_lib_var=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.
$ac_ext >&5
5400 eval "ac_cv_lib_$ac_lib_var=no"
5403 LIBS
="$ac_save_LIBS"
5406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5407 echo "$ac_t""yes" 1>&6
5410 echo "$ac_t""no" 1>&6
5411 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5412 echo "configure:5536: checking for tgetent in -ltermcap" >&5
5413 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 ac_save_LIBS
="$LIBS"
5418 LIBS
="-ltermcap $LIBS"
5419 cat > conftest.
$ac_ext <<EOF
5420 #line 5544 "configure"
5421 #include "confdefs.h"
5422 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */
5431 if { (eval echo configure
:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5433 eval "ac_cv_lib_$ac_lib_var=yes"
5435 echo "configure: failed program was:" >&5
5436 cat conftest.
$ac_ext >&5
5438 eval "ac_cv_lib_$ac_lib_var=no"
5441 LIBS
="$ac_save_LIBS"
5444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5445 echo "$ac_t""yes" 1>&6
5448 echo "$ac_t""no" 1>&6
5449 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5450 echo "configure:5574: checking for tgetent in -lcurses" >&5
5451 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5455 ac_save_LIBS
="$LIBS"
5456 LIBS
="-lcurses $LIBS"
5457 cat > conftest.
$ac_ext <<EOF
5458 #line 5582 "configure"
5459 #include "confdefs.h"
5460 /* Override any gcc2 internal prototype to avoid an error. */
5461 /* We use char because int might match the return type of a gcc2
5462 builtin and then its argument prototype would still apply. */
5469 if { (eval echo configure
:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5471 eval "ac_cv_lib_$ac_lib_var=yes"
5473 echo "configure: failed program was:" >&5
5474 cat conftest.
$ac_ext >&5
5476 eval "ac_cv_lib_$ac_lib_var=no"
5479 LIBS
="$ac_save_LIBS"
5482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5486 echo "$ac_t""no" 1>&6
5487 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5488 echo "configure:5612: checking for tgetent in -lterminfo" >&5
5489 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 ac_save_LIBS
="$LIBS"
5494 LIBS
="-lterminfo $LIBS"
5495 cat > conftest.
$ac_ext <<EOF
5496 #line 5620 "configure"
5497 #include "confdefs.h"
5498 /* Override any gcc2 internal prototype to avoid an error. */
5499 /* We use char because int might match the return type of a gcc2
5500 builtin and then its argument prototype would still apply. */
5507 if { (eval echo configure
:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5509 eval "ac_cv_lib_$ac_lib_var=yes"
5511 echo "configure: failed program was:" >&5
5512 cat conftest.
$ac_ext >&5
5514 eval "ac_cv_lib_$ac_lib_var=no"
5517 LIBS
="$ac_save_LIBS"
5520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5521 echo "$ac_t""yes" 1>&6
5524 echo "$ac_t""no" 1>&6
5538 if test "x$TERM_LIB" = x
5540 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5546 # libreadline needs libuser32.a in a cygwin environment
5548 if test x
$gdb_cv_os_cygwin = xyes
; then
5549 WIN32LIBS
="-luser32"
5551 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
5557 LIBGUI
="../libgui/src/libgui.a"
5558 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5562 # Check whether --with-cpu or --without-cpu was given.
5563 if test "${with_cpu+set}" = set; then
5566 powerpc-
* | powerpcle-
* )
5567 ## It would be nice to keep this table in sync with the one in
5569 case "${with_cpu}" in
5570 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
5572 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5574 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
5575 ## These are all RS6000 variants, as far as GDB is concerned.
5585 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5591 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5594 cat >> confdefs.h
<<EOF
5595 #define TARGET_CPU_DEFAULT "${with_cpu}"
5605 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5606 if test "${enable_gdbtk+set}" = set; then
5607 enableval
="$enable_gdbtk"
5608 case "${enableval}" in
5612 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5615 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5623 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5627 # Default is on for everything but go32 and Cygwin
5645 if test "${enable_gdbtk}" = "yes"; then
5649 # Ok, lets find the tcl configuration
5650 # First, look for one uninstalled.
5651 # the alternative search directory is invoked by --with-tclconfig
5654 if test x
"${no_tcl}" = x
; then
5655 # we reset no_tcl in case something fails here
5657 # Check whether --with-tclconfig or --without-tclconfig was given.
5658 if test "${with_tclconfig+set}" = set; then
5659 withval
="$with_tclconfig"
5660 with_tclconfig
=${withval}
5663 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5664 echo "configure:5791: checking for Tcl configuration" >&5
5665 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5666 echo $ac_n "(cached) $ac_c" 1>&6
5670 # First check to see if --with-tclconfig was specified.
5671 if test x
"${with_tclconfig}" != x
; then
5672 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5673 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5675 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5679 # then check for a private Tcl installation
5680 if test x
"${ac_cv_c_tclconfig}" = x
; then
5683 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5685 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5687 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5688 if test -f "$i/${configdir}/tclConfig.sh" ; then
5689 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5694 # check in a few common install locations
5695 if test x
"${ac_cv_c_tclconfig}" = x
; then
5696 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5697 if test -f "$i/tclConfig.sh" ; then
5698 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5703 # check in a few other private locations
5704 if test x
"${ac_cv_c_tclconfig}" = x
; then
5707 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5708 if test -f "$i/${configdir}/tclConfig.sh" ; then
5709 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5717 if test x
"${ac_cv_c_tclconfig}" = x
; then
5718 TCLCONFIG
="# no Tcl configs found"
5719 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5722 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
5723 echo "$ac_t""found $TCLCONFIG" 1>&6
5727 if test -z "${no_tcl}"; then
5757 # Ok, lets find the tk configuration
5758 # First, look for one uninstalled.
5759 # the alternative search directory is invoked by --with-tkconfig
5762 if test x
"${no_tk}" = x
; then
5763 # we reset no_tk in case something fails here
5765 # Check whether --with-tkconfig or --without-tkconfig was given.
5766 if test "${with_tkconfig+set}" = set; then
5767 withval
="$with_tkconfig"
5768 with_tkconfig
=${withval}
5771 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5772 echo "configure:5899: checking for Tk configuration" >&5
5773 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5778 # First check to see if --with-tkconfig was specified.
5779 if test x
"${with_tkconfig}" != x
; then
5780 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5781 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
5783 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5787 # then check for a private Tk library
5788 if test x
"${ac_cv_c_tkconfig}" = x
; then
5791 `ls -dr ../tk[4-9]* 2>/dev/null` \
5793 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5795 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5796 if test -f "$i/${configdir}/tkConfig.sh" ; then
5797 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5802 # check in a few common install locations
5803 if test x
"${ac_cv_c_tkconfig}" = x
; then
5804 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5805 if test -f "$i/tkConfig.sh" ; then
5806 ac_cv_c_tkconfig
=`(cd $i; pwd)`
5811 # check in a few other private locations
5812 if test x
"${ac_cv_c_tkconfig}" = x
; then
5815 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5816 if test -f "$i/${configdir}/tkConfig.sh" ; then
5817 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5825 if test x
"${ac_cv_c_tkconfig}" = x
; then
5826 TKCONFIG
="# no Tk configs found"
5827 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
5830 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
5831 echo "$ac_t""found $TKCONFIG" 1>&6
5837 # If $no_tk is nonempty, then we can't do Tk, and there is no
5838 # point to doing Tcl.
5839 if test -z "${no_tk}"; then
5841 if test -f "$TKCONFIG" ; then
5859 # Ok, lets find the tcl source trees so we can use the headers
5860 # Warning: transition of version 9 to 10 will break this algorithm
5861 # because 10 sorts before 9. We also look for just tcl. We have to
5862 # be careful that we don't match stuff like tclX by accident.
5863 # the alternative search directory is involked by --with-tclinclude
5867 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
5868 echo "configure:5995: checking for Tcl private headers. dir=${configdir}" >&5
5869 # Check whether --with-tclinclude or --without-tclinclude was given.
5870 if test "${with_tclinclude+set}" = set; then
5871 withval
="$with_tclinclude"
5872 with_tclinclude
=${withval}
5875 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5879 # first check to see if --with-tclinclude was specified
5880 if test x
"${with_tclinclude}" != x
; then
5881 if test -f ${with_tclinclude}/tclInt.h
; then
5882 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
5883 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
5884 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
5886 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5890 # next check if it came with Tcl configuration file
5891 if test x
"${ac_cv_c_tclconfig}" = x
; then
5892 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
5893 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
5897 # next check in private source directory
5899 # since ls returns lowest version numbers first, reverse its output
5900 if test x
"${ac_cv_c_tclh}" = x
; then
5903 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
5904 ${srcdir}/..
/..
/tcl \
5905 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
5906 ${srcdir}/..
/..
/..
/tcl \
5907 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
5908 if test -f $i/generic
/tclInt.h
; then
5909 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5914 # finally check in a few common install locations
5916 # since ls returns lowest version numbers first, reverse its output
5917 if test x
"${ac_cv_c_tclh}" = x
; then
5919 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
5920 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
5921 /usr
/local
/src
/tcl \
5922 /usr
/local
/lib
/tcl \
5923 ${prefix}/include
; do
5924 if test -f $i/generic
/tclInt.h
; then
5925 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5930 # see if one is installed
5931 if test x
"${ac_cv_c_tclh}" = x
; then
5932 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
5933 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
5934 echo "configure:6061: checking for tclInt.h" >&5
5935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.
$ac_ext <<EOF
5939 #line 6066 "configure"
5940 #include "confdefs.h"
5943 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5944 { (eval echo configure
:6071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5945 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5946 if test -z "$ac_err"; then
5948 eval "ac_cv_header_$ac_safe=yes"
5951 echo "configure: failed program was:" >&5
5952 cat conftest.
$ac_ext >&5
5954 eval "ac_cv_header_$ac_safe=no"
5958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_cv_c_tclh
=installed
5962 echo "$ac_t""no" 1>&6
5970 if test x
"${ac_cv_c_tclh}" = x
; then
5971 TCLHDIR
="# no Tcl private headers found"
5972 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5974 if test x
"${ac_cv_c_tclh}" != x
; then
5976 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
5977 echo "$ac_t""is installed" 1>&6
5980 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5981 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5982 TCLHDIR
="-I${ac_cv_c_tclh}"
5990 # Ok, lets find the tk source trees so we can use the headers
5991 # If the directory (presumably symlink) named "tk" exists, use that one
5992 # in preference to any others. Same logic is used when choosing library
5993 # and again with Tcl. The search order is the best place to look first, then in
5994 # decreasing significance. The loop breaks if the trigger file is found.
5995 # Note the gross little conversion here of srcdir by cd'ing to the found
5996 # directory. This converts the path from a relative to an absolute, so
5997 # recursive cache variables for the path will work right. We check all
5998 # the possible paths in one loop rather than many seperate loops to speed
6000 # the alternative search directory is involked by --with-tkinclude
6003 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6004 echo "configure:6131: checking for Tk private headers" >&5
6005 # Check whether --with-tkinclude or --without-tkinclude was given.
6006 if test "${with_tkinclude+set}" = set; then
6007 withval
="$with_tkinclude"
6008 with_tkinclude
=${withval}
6011 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6015 # first check to see if --with-tkinclude was specified
6016 if test x
"${with_tkinclude}" != x
; then
6017 if test -f ${with_tkinclude}/tk.h
; then
6018 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6019 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6020 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6022 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6026 # next check if it came with Tk configuration file
6027 if test x
"${ac_cv_c_tkconfig}" = x
; then
6028 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6029 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6033 # next check in private source directory
6035 # since ls returns lowest version numbers first, reverse its output
6036 if test x
"${ac_cv_c_tkh}" = x
; then
6039 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6040 ${srcdir}/..
/..
/tk \
6041 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6042 ${srcdir}/..
/..
/..
/tk \
6043 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6044 if test -f $i/generic
/tk.h
; then
6045 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6050 # finally check in a few common install locations
6052 # since ls returns lowest version numbers first, reverse its output
6053 if test x
"${ac_cv_c_tkh}" = x
; then
6055 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6056 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6059 ${prefix}/include
; do
6060 if test -f $i/generic
/tk.h
; then
6061 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6066 # see if one is installed
6067 if test x
"${ac_cv_c_tkh}" = x
; then
6068 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6069 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6070 echo "configure:6197: checking for tk.h" >&5
6071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6074 cat > conftest.
$ac_ext <<EOF
6075 #line 6202 "configure"
6076 #include "confdefs.h"
6079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6080 { (eval echo configure
:6207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6081 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6082 if test -z "$ac_err"; then
6084 eval "ac_cv_header_$ac_safe=yes"
6087 echo "configure: failed program was:" >&5
6088 cat conftest.
$ac_ext >&5
6090 eval "ac_cv_header_$ac_safe=no"
6094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6096 ac_cv_c_tkh
=installed
6098 echo "$ac_t""no" 1>&6
6106 if test x
"${ac_cv_c_tkh}" != x
; then
6108 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6109 echo "$ac_t""is installed" 1>&6
6112 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6113 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6114 TKHDIR
="-I${ac_cv_c_tkh}"
6117 TKHDIR
="# no Tk directory found"
6118 echo "configure: warning: Can't find Tk private headers" 1>&2
6125 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6126 echo "configure:6253: checking for Itcl private headers. srcdir=${srcdir}" >&5
6127 if test x
"${ac_cv_c_itclh}" = x
; then
6128 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6129 if test -f $i/generic
/itcl.h
; then
6130 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6135 if test x
"${ac_cv_c_itclh}" = x
; then
6136 ITCLHDIR
="# no Itcl private headers found"
6137 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6139 if test x
"${ac_cv_c_itclh}" != x
; then
6140 ITCLHDIR
="-I${ac_cv_c_itclh}"
6142 # should always be here
6143 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6148 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6149 echo "configure:6276: checking for Itk private headers. srcdir=${srcdir}" >&5
6150 if test x
"${ac_cv_c_itkh}" = x
; then
6151 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6152 if test -f $i/generic
/itk.h
; then
6153 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6158 if test x
"${ac_cv_c_itkh}" = x
; then
6159 ITKHDIR
="# no Itk private headers found"
6160 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6162 if test x
"${ac_cv_c_itkh}" != x
; then
6163 ITKHDIR
="-I${ac_cv_c_itkh}"
6165 # should always be here
6166 # ITKLIB="../itcl/itk/unix/libitk.a"
6171 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6172 echo "configure:6299: checking for Tix private headers. srcdir=${srcdir}" >&5
6173 if test x
"${ac_cv_c_tixh}" = x
; then
6174 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6175 if test -f $i/generic
/tix.h
; then
6176 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6181 if test x
"${ac_cv_c_tixh}" = x
; then
6182 TIXHDIR
="# no Tix private headers found"
6183 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6185 if test x
"${ac_cv_c_tixh}" != x
; then
6186 TIXHDIR
="-I${ac_cv_c_tixh}"
6191 # now look for Itcl library stuff
6195 # Ok, lets find the itcl configuration
6196 # First, look for one uninstalled.
6197 # the alternative search directory is invoked by --with-itclconfig
6200 if test x
"${no_itcl}" = x
; then
6201 # we reset no_itcl in case something fails here
6203 # Check whether --with-itclconfig or --without-itclconfig was given.
6204 if test "${with_itclconfig+set}" = set; then
6205 withval
="$with_itclconfig"
6206 with_itclconfig
=${withval}
6209 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6210 echo "configure:6337: checking for Itcl configuration" >&5
6211 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6216 # First check to see if --with-itclconfig was specified.
6217 if test x
"${with_itclconfig}" != x
; then
6218 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6219 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6221 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6225 # then check for a private Itcl library
6226 if test x
"${ac_cv_c_itclconfig}" = x
; then
6229 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6231 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6233 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6234 if test -f "$i/itclConfig.sh" ; then
6235 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6240 # check in a few common install locations
6241 if test x
"${ac_cv_c_itclconfig}" = x
; then
6242 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6243 if test -f "$i/itclConfig.sh" ; then
6244 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6249 # check in a few other private locations
6250 if test x
"${ac_cv_c_itclconfig}" = x
; then
6252 ${srcdir}/..
/itcl
/itcl \
6253 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6254 if test -f "$i/itclConfig.sh" ; then
6255 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6263 if test x
"${ac_cv_c_itclconfig}" = x
; then
6264 ITCLCONFIG
="# no Itcl configs found"
6265 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6268 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6269 echo "$ac_t""found $ITCLCONFIG" 1>&6
6273 if test -z "${no_itcl}"; then
6275 if test -f "$ITCLCONFIG" ; then
6291 itcldir
=..
/itcl
/itcl
/win
/
6294 itcldir
=..
/itcl
/itcl
/unix
/
6299 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
6300 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6304 # now look for Itk library stuff
6307 # Ok, lets find the itk configuration
6308 # First, look for one uninstalled.
6309 # the alternative search directory is invoked by --with-itkconfig
6312 if test x
"${no_itk}" = x
; then
6313 # we reset no_itk in case something fails here
6315 # Check whether --with-itkconfig or --without-itkconfig was given.
6316 if test "${with_itkconfig+set}" = set; then
6317 withval
="$with_itkconfig"
6318 with_itkconfig
=${withval}
6321 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6322 echo "configure:6449: checking for Itk configuration" >&5
6323 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6328 # First check to see if --with-itkconfig was specified.
6329 if test x
"${with_itkconfig}" != x
; then
6330 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6331 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
6333 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6337 # then check for a private Itk library
6338 if test x
"${ac_cv_c_itkconfig}" = x
; then
6341 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6343 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6345 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6346 if test -f "$i/itkConfig.sh" ; then
6347 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6352 # check in a few common install locations
6353 if test x
"${ac_cv_c_itkconfig}" = x
; then
6354 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6355 if test -f "$i/itkConfig.sh" ; then
6356 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6361 # check in a few other private locations
6362 if test x
"${ac_cv_c_itkconfig}" = x
; then
6364 ${srcdir}/..
/itcl
/itk \
6365 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6366 if test -f "$i/itkConfig.sh" ; then
6367 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6375 if test x
"${ac_cv_c_itkconfig}" = x
; then
6376 ITKCONFIG
="# no Itk configs found"
6377 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6380 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
6381 echo "$ac_t""found $ITKCONFIG" 1>&6
6386 if test -z "${no_itcl}"; then
6388 if test -f "$ITKCONFIG" ; then
6405 itkdir
=..
/itcl
/itk
/win
/
6408 itkdir
=..
/itcl
/itk
/unix
/
6412 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
6413 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
6416 # now look for Tix library stuff
6419 # Ok, lets find the tix configuration
6420 # First, look for one uninstalled.
6421 # the alternative search directory is invoked by --with-itkconfig
6424 if test x
"${no_tix}" = x
; then
6425 # we reset no_tix in case something fails here
6427 # Check whether --with-tixconfig or --without-tixconfig was given.
6428 if test "${with_tixconfig+set}" = set; then
6429 withval
="$with_tixconfig"
6430 with_tixconfig
=${withval}
6433 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6434 echo "configure:6561: checking for Tix configuration" >&5
6435 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6440 # First check to see if --with-tixconfig was specified.
6441 if test x
"${with_tixconfig}" != x
; then
6442 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6443 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
6445 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6449 # then check for a private Tix library
6450 if test x
"${ac_cv_c_tixconfig}" = x
; then
6453 `ls -dr ../tix 2>/dev/null` \
6455 `ls -dr ../../tix 2>/dev/null` \
6457 `ls -dr ../../../tix 2>/dev/null` ; do
6458 echo "**** Looking at $i - with ${configdir}"
6459 if test -f "$i/tixConfig.sh" ; then
6460 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6465 # check in a few common install locations
6466 if test x
"${ac_cv_c_tixconfig}" = x
; then
6467 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6468 echo "**** Looking at $i"
6469 if test -f "$i/tixConfig.sh" ; then
6470 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6475 # check in a few other private locations
6476 echo "**** Other private locations"
6477 if test x
"${ac_cv_c_tixconfig}" = x
; then
6480 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6481 echo "**** Looking at $i - with ${configdir}"
6482 if test -f "$i/${configdir}/tixConfig.sh" ; then
6483 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
6491 if test x
"${ac_cv_c_tixconfig}" = x
; then
6492 TIXCONFIG
="# no Tix configs found"
6493 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6496 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
6497 echo "$ac_t""found $TIXCONFIG" 1>&6
6502 if test -z "${no_tix}"; then
6504 if test -f "$TIXCONFIG" ; then
6515 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
6516 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6520 ENABLE_CFLAGS
="$ENABLE_CFLAGS -DGDBTK"
6521 # Tcl/Tk 8.1 require -fwritable strings. I don't
6522 # know whether 8.2 will or not, but I bet it will.
6523 # I don't have to worry about 7.x since we don't support it.
6525 if test "$GCC" = "yes"; then
6526 if test "$TCL_VERSION" != "8.0" ; then
6527 GDBTK_CFLAGS
="-fwritable-strings"
6531 # Include some libraries that Tcl and Tk want.
6532 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6533 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6534 # Yes, the ordering seems wrong here. But it isn't.
6535 # TK_LIBS is the list of libraries that need to be linked
6536 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6537 # were in LIBS then any link tests after this point would
6538 # try to include things like `$(LIBGUI)', which wouldn't work.
6539 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
6540 CONFIG_SRCS
="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-variable.c gdbtk/generic/gdbtk-wrapper.c"
6541 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-variable.o gdbtk-wrapper.o"
6542 CONFIG_INITS
="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-variable.c gdbtk/generic/gdbtk-wrapper.c"
6544 if test x
$gdb_cv_os_cygwin = xyes
; then
6545 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6546 WIN32LDAPP
="-Wl,--subsystem,console"
6547 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
6566 # If we find X, set shell vars x_includes and x_libraries to the
6567 # paths, otherwise set no_x=yes.
6568 # Uses ac_ vars as temps to allow command line to override cache and checks.
6569 # --without-x overrides everything else, but does not touch the cache.
6570 echo $ac_n "checking for X""... $ac_c" 1>&6
6571 echo "configure:6699: checking for X" >&5
6573 # Check whether --with-x or --without-x was given.
6574 if test "${with_x+set}" = set; then
6579 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6580 if test "x$with_x" = xno
; then
6581 # The user explicitly disabled X.
6584 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6585 # Both variables are already set.
6588 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6591 # One or both of the vars are not set, and there is no cached value.
6592 ac_x_includes
=NO ac_x_libraries
=NO
6594 if mkdir conftestdir
; then
6596 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6597 cat > Imakefile
<<'EOF'
6599 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6601 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6603 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6604 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6605 for ac_extension
in a so sl
; do
6606 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6607 test -f $ac_im_libdir/libX11.
$ac_extension; then
6608 ac_im_usrlibdir
=$ac_im_libdir; break
6611 # Screen out bogus values from the imake configuration. They are
6612 # bogus both because they are the default anyway, and because
6613 # using them would break gcc on systems where it needs fixed includes.
6614 case "$ac_im_incroot" in
6616 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
6618 case "$ac_im_usrlibdir" in
6620 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
6627 if test "$ac_x_includes" = NO
; then
6628 # Guess where to find include files, by looking for this one X11 .h file.
6629 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
6631 # First, try using that file with no special directory specified.
6632 cat > conftest.
$ac_ext <<EOF
6633 #line 6761 "configure"
6634 #include "confdefs.h"
6635 #include <$x_direct_test_include>
6637 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6638 { (eval echo configure
:6766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6639 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6640 if test -z "$ac_err"; then
6642 # We can compile using X headers with no special include directory.
6646 echo "configure: failed program was:" >&5
6647 cat conftest.
$ac_ext >&5
6649 # Look for the header file in a standard set of common directories.
6650 # Check X11 before X11Rn because it is often a symlink to the current release.
6653 /usr
/X11R
6/include \
6654 /usr
/X11R
5/include \
6655 /usr
/X11R
4/include \
6658 /usr
/include
/X11R6 \
6659 /usr
/include
/X11R5 \
6660 /usr
/include
/X11R4 \
6662 /usr
/local
/X11
/include \
6663 /usr
/local
/X11R
6/include \
6664 /usr
/local
/X11R
5/include \
6665 /usr
/local
/X11R
4/include \
6667 /usr
/local
/include
/X11 \
6668 /usr
/local
/include
/X11R6 \
6669 /usr
/local
/include
/X11R5 \
6670 /usr
/local
/include
/X11R4 \
6674 /usr
/XFree86
/include
/X11 \
6677 /usr
/local
/include \
6678 /usr
/unsupported
/include \
6679 /usr
/athena
/include \
6680 /usr
/local
/x11r
5/include \
6681 /usr
/lpp
/Xamples
/include \
6683 /usr
/openwin
/include \
6684 /usr
/openwin
/share
/include \
6687 if test -r "$ac_dir/$x_direct_test_include"; then
6688 ac_x_includes
=$ac_dir
6694 fi # $ac_x_includes = NO
6696 if test "$ac_x_libraries" = NO
; then
6697 # Check for the libraries.
6699 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
6700 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
6702 # See if we find them without any special options.
6703 # Don't add to $LIBS permanently.
6704 ac_save_LIBS
="$LIBS"
6705 LIBS
="-l$x_direct_test_library $LIBS"
6706 cat > conftest.
$ac_ext <<EOF
6707 #line 6835 "configure"
6708 #include "confdefs.h"
6711 ${x_direct_test_function}()
6714 if { (eval echo configure
:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6716 LIBS
="$ac_save_LIBS"
6717 # We can link X programs with no special library path.
6720 echo "configure: failed program was:" >&5
6721 cat conftest.
$ac_ext >&5
6723 LIBS
="$ac_save_LIBS"
6724 # First see if replacing the include by lib works.
6725 # Check X11 before X11Rn because it is often a symlink to the current release.
6726 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6737 /usr
/local
/X11
/lib \
6738 /usr
/local
/X11R
6/lib \
6739 /usr
/local
/X11R
5/lib \
6740 /usr
/local
/X11R
4/lib \
6742 /usr
/local
/lib
/X11 \
6743 /usr
/local
/lib
/X11R6 \
6744 /usr
/local
/lib
/X11R5 \
6745 /usr
/local
/lib
/X11R4 \
6749 /usr
/XFree86
/lib
/X11 \
6753 /usr
/unsupported
/lib \
6755 /usr
/local
/x11r
5/lib \
6756 /usr
/lpp
/Xamples
/lib \
6760 /usr
/openwin
/share
/lib \
6763 for ac_extension
in a so sl
; do
6764 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6765 ac_x_libraries
=$ac_dir
6772 fi # $ac_x_libraries = NO
6774 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6775 # Didn't find X anywhere. Cache the known absence of X.
6776 ac_cv_have_x
="have_x=no"
6778 # Record where we found X for the cache.
6779 ac_cv_have_x
="have_x=yes \
6780 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6784 eval "$ac_cv_have_x"
6787 if test "$have_x" != yes; then
6788 echo "$ac_t""$have_x" 1>&6
6791 # If each of the values was on the command line, it overrides each guess.
6792 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6793 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6794 # Update the cache value to reflect the command line values.
6795 ac_cv_have_x
="have_x=yes \
6796 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6797 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6802 # Unlike the sim directory, whether a simulator is linked is controlled by
6803 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
6804 # This code just checks for a few cases where we'd like to ignore those
6805 # definitions, even when they're present in the '.mt' file. These cases
6806 # are when --disable-sim is specified, or if the simulator directory is
6807 # not part of the soruce tree.
6809 # Check whether --enable-sim or --disable-sim was given.
6810 if test "${enable_sim+set}" = set; then
6811 enableval
="$enable_sim"
6812 echo "enable_sim = $enable_sim";
6813 echo "enableval = ${enableval}";
6814 case "${enableval}" in
6815 yes) ignore_sim
=false
;;
6816 no
) ignore_sim
=true
;;
6817 *) ignore_sim
=false
;;
6824 if test ! -d "${srcdir}/../sim"; then
6828 if test "${ignore_sim}" = "true"; then
6830 IGNORE_SIM_OBS
="SIM_OBS="
6834 cat >> confdefs.h
<<\EOF
6849 # Begin stuff to support --enable-shared
6850 # Check whether --enable-shared or --disable-shared was given.
6851 if test "${enable_shared+set}" = set; then
6852 enableval
="$enable_shared"
6853 case "${enableval}" in
6862 # If we have shared libraries, try to set rpath reasonably.
6863 if test "${shared}" = "true"; then
6866 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
6868 *-*-irix5* |
*-*-irix6*)
6869 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6873 *-*-linux* |
*-pc-linux-gnu)
6874 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6877 HLDFLAGS
='-R $(libdir)'
6880 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;'
6885 # On SunOS, if the linker supports the -rpath option, use it to
6886 # prevent ../bfd and ../opcodes from being included in the run time
6890 echo 'main () { }' > conftest.c
6891 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
6892 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
6894 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
6896 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
6898 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
6900 elif test "${shared}" = "true"; then
6901 HLDFLAGS
='-Wl,-rpath=$(libdir)'
6903 HLDFLAGS
='-Wl,-rpath='
6905 rm -f conftest.t conftest.c conftest
6910 # End stuff to support --enable-shared
6912 # target_subdir is used by the testsuite to find the target libraries.
6914 if test "${host}" != "${target}"; then
6915 target_subdir
="${target_alias}/"
6920 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
6921 if test ! -f ${host_makefile_frag}; then
6922 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
6924 frags
="$frags $host_makefile_frag"
6926 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
6927 if test ! -f ${target_makefile_frag}; then
6928 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
6930 frags
="$frags $target_makefile_frag"
6937 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6938 ' ${host_makefile_frag}`
6940 targetfile
=`sed -n '
6941 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6942 ' ${target_makefile_frag}`
6944 # these really aren't orthogonal true/false values of the same condition,
6945 # but shells are slow enough that I like to reuse the test conditions
6947 if test "${target}" = "${host}"; then
6948 nativefile
=`sed -n '
6949 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6950 ' ${host_makefile_frag}`
6952 # GDBserver is only useful in a "native" enviroment
6953 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
6957 SUBDIRS
="doc testsuite nlm"
6958 if test "${enable_multi_ice}" = "yes"; then
6959 SUBDIRS
="${SUBDIRS} multi-ice"
6964 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6965 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
6966 # corresponding links. But we have to remove the xm.h files and tm.h
6967 # files anyway, e.g. when switching from "configure host" to
6973 if test "${hostfile}" != ""; then
6974 files
="${files} config/${gdb_host_cpu}/${hostfile}"
6975 links
="${links} xm.h"
6978 if test "${targetfile}" != ""; then
6979 files
="${files} config/${gdb_target_cpu}/${targetfile}"
6980 links
="${links} tm.h"
6983 if test "${nativefile}" != ""; then
6984 files
="${files} config/${gdb_host_cpu}/${nativefile}"
6985 links
="${links} nm.h"
6987 # A cross-only configuration.
6988 files
="${files} config/nm-empty.h"
6989 links
="${links} nm.h"
6991 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6992 echo "configure:7159: checking whether ln -s works" >&5
6993 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
6997 if ln -s X conftestdata
2>/dev
/null
7000 ac_cv_prog_LN_S
="ln -s"
7005 LN_S
="$ac_cv_prog_LN_S"
7006 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7007 echo "$ac_t""yes" 1>&6
7009 echo "$ac_t""no" 1>&6
7012 # Make it possible to use the GUI without doing a full install
7013 if test "${enable_gdbtk}" = "yes" ; then
7014 if test "$LN_S" = "ln -s" -a ! -f gdbtcl
; then
7015 echo linking
$srcdir/gdbtk
/library to gdbtcl
7016 $LN_S $srcdir/gdbtk
/library gdbtcl
7018 echo Warning
: Unable to link
$srcdir/gdbtk
/library to gdbtcl. You will need to
do a
7019 echo " " make install before you are able to run the GUI.
7025 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7026 echo "configure:7194: checking for Cygwin environment" >&5
7027 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 cat > conftest.
$ac_ext <<EOF
7031 #line 7199 "configure"
7032 #include "confdefs.h"
7037 #define __CYGWIN__ __CYGWIN32__
7042 if { (eval echo configure
:7210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7046 echo "configure: failed program was:" >&5
7047 cat conftest.
$ac_ext >&5
7055 echo "$ac_t""$ac_cv_cygwin" 1>&6
7057 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7058 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7059 echo "configure:7227: checking for mingw32 environment" >&5
7060 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7061 echo $ac_n "(cached) $ac_c" 1>&6
7063 cat > conftest.
$ac_ext <<EOF
7064 #line 7232 "configure"
7065 #include "confdefs.h"
7071 if { (eval echo configure
:7239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7075 echo "configure: failed program was:" >&5
7076 cat conftest.
$ac_ext >&5
7084 echo "$ac_t""$ac_cv_mingw32" 1>&6
7086 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7089 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7090 echo "configure:7258: checking for executable suffix" >&5
7091 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7092 echo $ac_n "(cached) $ac_c" 1>&6
7094 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7098 echo 'int main () { return 0; }' > conftest.
$ac_ext
7100 if { (eval echo configure
:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7101 for file in conftest.
*; do
7103 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
7104 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7108 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7111 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7116 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7117 echo "$ac_t""${ac_cv_exeext}" 1>&6
7121 subdirs
="$configdirs"
7124 cat > confcache
<<\EOF
7125 # This file is a shell script that caches the results of configure
7126 # tests run on this system so they can be shared between configure
7127 # scripts and configure runs. It is not useful on other systems.
7128 # If it contains results you don't want to keep, you may remove or edit it.
7130 # By default, configure uses ./config.cache as the cache file,
7131 # creating it if it does not exist already. You can give configure
7132 # the --cache-file=FILE option to use a different cache file; that is
7133 # what configure does when it calls configure scripts in
7134 # subdirectories, so they share the cache.
7135 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7136 # config.status only pays attention to the cache file if you give it the
7137 # --recheck option to rerun configure.
7140 # The following way of writing the cache mishandles newlines in values,
7141 # but we know of no workaround that is simple, portable, and efficient.
7142 # So, don't put newlines in cache variables' values.
7143 # Ultrix sh set writes to stderr and can't be redirected directly,
7144 # and sets the high bit in the cache file unless we assign to the vars.
7146 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7148 # `set' does not quote correctly, so add quotes (double-quote substitution
7149 # turns \\\\ into \\, and sed turns \\ into \).
7151 -e "s/'/'\\\\''/g" \
7152 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7155 # `set' quotes correctly as required by POSIX, so do not add quotes.
7156 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7159 if cmp -s $cache_file confcache
; then
7162 if test -w $cache_file; then
7163 echo "updating cache $cache_file"
7164 cat confcache
> $cache_file
7166 echo "not updating unwritable cache $cache_file"
7171 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7173 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7174 # Let make expand exec_prefix.
7175 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7177 # Any assignment to VPATH causes Sun make to only execute
7178 # the first set of double-colon rules, so remove it if not needed.
7179 # If there is a colon in the path, we need to keep it.
7180 if test "x$srcdir" = x.
; then
7181 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7184 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7186 DEFS
=-DHAVE_CONFIG_H
7188 # Without the "./", some shells look in PATH for config.status.
7189 : ${CONFIG_STATUS=./config.status}
7191 echo creating
$CONFIG_STATUS
7192 rm -f $CONFIG_STATUS
7193 cat > $CONFIG_STATUS <<EOF
7195 # Generated automatically by configure.
7196 # Run this file to recreate the current configuration.
7197 # This directory was configured as follows,
7198 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7200 # $0 $ac_configure_args
7202 # Compiler output produced by configure, useful for debugging
7203 # configure, is in ./config.log if it exists.
7205 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7208 case "\$ac_option" in
7209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7210 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7211 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7212 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7213 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7215 -help | --help | --hel | --he | --h)
7216 echo "\$ac_cs_usage"; exit 0 ;;
7217 *) echo "\$ac_cs_usage"; exit 1 ;;
7221 ac_given_srcdir=$srcdir
7222 ac_given_INSTALL="$INSTALL"
7224 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7226 cat >> $CONFIG_STATUS <<EOF
7228 # Protect against being on the right side of a sed subst in config.status.
7229 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7230 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7234 s%@CFLAGS@%$CFLAGS%g
7235 s%@CPPFLAGS@%$CPPFLAGS%g
7236 s%@CXXFLAGS@%$CXXFLAGS%g
7237 s%@FFLAGS@%$FFLAGS%g
7239 s%@LDFLAGS@%$LDFLAGS%g
7241 s%@exec_prefix@%$exec_prefix%g
7242 s%@prefix@%$prefix%g
7243 s%@program_transform_name@%$program_transform_name%g
7244 s%@bindir@%$bindir%g
7245 s%@sbindir@%$sbindir%g
7246 s%@libexecdir@%$libexecdir%g
7247 s%@datadir@%$datadir%g
7248 s%@sysconfdir@%$sysconfdir%g
7249 s%@sharedstatedir@%$sharedstatedir%g
7250 s%@localstatedir@%$localstatedir%g
7251 s%@libdir@%$libdir%g
7252 s%@includedir@%$includedir%g
7253 s%@oldincludedir@%$oldincludedir%g
7254 s%@infodir@%$infodir%g
7255 s%@mandir@%$mandir%g
7259 s%@host_alias@%$host_alias%g
7260 s%@host_cpu@%$host_cpu%g
7261 s%@host_vendor@%$host_vendor%g
7262 s%@host_os@%$host_os%g
7263 s%@target@%$target%g
7264 s%@target_alias@%$target_alias%g
7265 s%@target_cpu@%$target_cpu%g
7266 s%@target_vendor@%$target_vendor%g
7267 s%@target_os@%$target_os%g
7269 s%@build_alias@%$build_alias%g
7270 s%@build_cpu@%$build_cpu%g
7271 s%@build_vendor@%$build_vendor%g
7272 s%@build_os@%$build_os%g
7273 s%@SET_MAKE@%$SET_MAKE%g
7274 s%@RANLIB@%$RANLIB%g
7275 s%@ALLOCA@%$ALLOCA%g
7276 s%@USE_NLS@%$USE_NLS%g
7277 s%@MSGFMT@%$MSGFMT%g
7278 s%@GMSGFMT@%$GMSGFMT%g
7279 s%@XGETTEXT@%$XGETTEXT%g
7280 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7281 s%@CATALOGS@%$CATALOGS%g
7282 s%@CATOBJEXT@%$CATOBJEXT%g
7283 s%@DATADIRNAME@%$DATADIRNAME%g
7284 s%@GMOFILES@%$GMOFILES%g
7285 s%@INSTOBJEXT@%$INSTOBJEXT%g
7286 s%@INTLDEPS@%$INTLDEPS%g
7287 s%@INTLLIBS@%$INTLLIBS%g
7288 s%@INTLOBJS@%$INTLOBJS%g
7289 s%@POFILES@%$POFILES%g
7291 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7293 s%@GT_YES@%$GT_YES%g
7294 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7297 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7298 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7299 s%@INSTALL_DATA@%$INSTALL_DATA%g
7302 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7303 s%@BUILD_TUI@%$BUILD_TUI%g
7304 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7305 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7306 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7307 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7308 s%@MMALLOC@%$MMALLOC%g
7309 s%@MACHINE_OBS@%$MACHINE_OBS%g
7310 s%@DLLTOOL@%$DLLTOOL%g
7311 s%@WINDRES@%$WINDRES%g
7312 s%@TERM_LIB@%$TERM_LIB%g
7313 s%@WIN32LIBS@%$WIN32LIBS%g
7314 s%@LIBGUI@%$LIBGUI%g
7315 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7316 s%@WIN32LDAPP@%$WIN32LDAPP%g
7317 s%@TCL_VERSION@%$TCL_VERSION%g
7318 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7319 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7320 s%@TCL_CC@%$TCL_CC%g
7321 s%@TCL_DEFS@%$TCL_DEFS%g
7322 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7323 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7324 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7325 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7326 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7327 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7328 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7329 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7330 s%@TCL_RANLIB@%$TCL_RANLIB%g
7331 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7332 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7333 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7334 s%@TK_VERSION@%$TK_VERSION%g
7335 s%@TK_DEFS@%$TK_DEFS%g
7336 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7337 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7338 s%@TK_XLIBSW@%$TK_XLIBSW%g
7339 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7340 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7341 s%@TCLHDIR@%$TCLHDIR%g
7342 s%@TKHDIR@%$TKHDIR%g
7343 s%@ITCLHDIR@%$ITCLHDIR%g
7344 s%@ITKHDIR@%$ITKHDIR%g
7345 s%@TIXHDIR@%$TIXHDIR%g
7346 s%@ITCL_VERSION@%$ITCL_VERSION%g
7347 s%@ITCL_DEFS@%$ITCL_DEFS%g
7348 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7349 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7350 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7351 s%@ITK_VERSION@%$ITK_VERSION%g
7352 s%@ITK_DEFS@%$ITK_DEFS%g
7353 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7354 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7355 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7356 s%@TIX_VERSION@%$TIX_VERSION%g
7357 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7358 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
7359 s%@X_CFLAGS@%$X_CFLAGS%g
7360 s%@X_LDFLAGS@%$X_LDFLAGS%g
7361 s%@X_LIBS@%$X_LIBS%g
7362 s%@ITCLLIB@%$ITCLLIB%g
7363 s%@ITCL_DEPS@%$ITCL_DEPS%g
7364 s%@ITKLIB@%$ITKLIB%g
7365 s%@ITK_DEPS@%$ITK_DEPS%g
7366 s%@TIXLIB@%$TIXLIB%g
7367 s%@TIX_DEPS@%$TIX_DEPS%g
7368 s%@GDBTKLIBS@%$GDBTKLIBS%g
7369 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7370 s%@IGNORE_SIM@%$IGNORE_SIM%g
7371 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7372 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7373 s%@CONFIG_OBS@%$CONFIG_OBS%g
7374 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7375 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7376 s%@CONFIG_INITS@%$CONFIG_INITS%g
7377 s%@HLDFLAGS@%$HLDFLAGS%g
7378 s%@HLDENV@%$HLDENV%g
7379 s%@target_subdir@%$target_subdir%g
7380 /@host_makefile_frag@/r $host_makefile_frag
7381 s%@host_makefile_frag@%%g
7382 /@target_makefile_frag@/r $target_makefile_frag
7383 s%@target_makefile_frag@%%g
7385 s%@SUBDIRS@%$SUBDIRS%g
7387 s%@EXEEXT@%$EXEEXT%g
7388 s%@subdirs@%$subdirs%g
7393 cat >> $CONFIG_STATUS <<\EOF
7395 # Split the substitutions into bite-sized pieces for seds with
7396 # small command number limits, like on Digital OSF/1 and HP-UX.
7397 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7398 ac_file
=1 # Number of current file.
7399 ac_beg
=1 # First line for current file.
7400 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7403 while $ac_more_lines; do
7404 if test $ac_beg -gt 1; then
7405 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7407 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7409 if test ! -s conftest.s
$ac_file; then
7411 rm -f conftest.s
$ac_file
7413 if test -z "$ac_sed_cmds"; then
7414 ac_sed_cmds
="sed -f conftest.s$ac_file"
7416 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7418 ac_file
=`expr $ac_file + 1`
7420 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7423 if test -z "$ac_sed_cmds"; then
7428 cat >> $CONFIG_STATUS <<EOF
7430 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7432 cat >> $CONFIG_STATUS <<\EOF
7433 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7436 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7437 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7438 *) ac_file_in
="${ac_file}.in" ;;
7441 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7443 # Remove last slash and all that follows it. Not all systems have dirname.
7444 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7446 # The file is in a subdirectory.
7447 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7448 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7449 # A "../" for each directory in $ac_dir_suffix.
7450 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7452 ac_dir_suffix
= ac_dots
=
7455 case "$ac_given_srcdir" in
7457 if test -z "$ac_dots"; then top_srcdir
=.
7458 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7459 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7461 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7462 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7465 case "$ac_given_INSTALL" in
7466 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7467 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7470 echo creating
"$ac_file"
7472 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7474 *Makefile
*) ac_comsub
="1i\\
7475 # $configure_input" ;;
7479 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7481 s%@configure_input@%$configure_input%g
7482 s%@srcdir@%$srcdir%g
7483 s%@top_srcdir@%$top_srcdir%g
7484 s%@INSTALL@%$INSTALL%g
7485 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7489 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7490 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7492 # ac_d sets the value in "#define NAME VALUE" lines.
7493 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7494 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7497 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7498 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7499 ac_uB
='\([ ]\)%\1#\2define\3'
7502 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7503 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7504 ac_eB
='$%\1#\2define\3'
7508 if test "${CONFIG_HEADERS+set}" != set; then
7510 cat >> $CONFIG_STATUS <<EOF
7511 CONFIG_HEADERS="config.h:config.in"
7513 cat >> $CONFIG_STATUS <<\EOF
7515 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7518 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7519 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7520 *) ac_file_in
="${ac_file}.in" ;;
7523 echo creating
$ac_file
7525 rm -f conftest.frag conftest.
in conftest.out
7526 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7527 cat $ac_file_inputs > conftest.
in
7531 # Transform confdefs.h into a sed script conftest.vals that substitutes
7532 # the proper values into config.h.in to produce config.h. And first:
7533 # Protect against being on the right side of a sed subst in config.status.
7534 # Protect against being in an unquoted here document in config.status.
7536 cat > conftest.hdr
<<\EOF
7539 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7543 sed -n -f conftest.hdr confdefs.h > conftest.vals
7546 # This sed command replaces #undef with comments. This is necessary, for
7547 # example, in the case of _POSIX_SOURCE, which is predefined and required
7548 # on some systems where configure will not decide to define it.
7549 cat >> conftest.vals <<\EOF
7550 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7553 # Break up conftest.vals because some shells have a limit on
7554 # the size of here documents, and old seds have small limits too.
7559 ac_lines=`grep -c . conftest.vals
`
7560 # grep -c gives empty output for an empty file on some AIX systems.
7561 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7562 # Write a limited-size here document to conftest.frag.
7563 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7564 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7566 sed -f conftest.frag conftest.in > conftest.out
7568 mv conftest.out conftest.in
7570 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7572 mv conftest.tail conftest.vals
7576 cat >> $CONFIG_STATUS <<\EOF
7577 rm -f conftest.frag conftest.h
7578 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7579 cat conftest.in >> conftest.h
7581 if cmp -s $ac_file conftest.h 2>/dev/null; then
7582 echo "$ac_file is unchanged"
7585 # Remove last slash and all that follows it. Not all systems have dirname.
7586 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7587 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7588 # The file is in a subdirectory.
7589 test ! -d "$ac_dir" && mkdir "$ac_dir"
7592 mv conftest.h $ac_file
7598 cat >> $CONFIG_STATUS <<EOF
7603 cat >> $CONFIG_STATUS <<\EOF
7604 srcdir=$ac_given_srcdir
7605 while test -n "$ac_sources"; do
7606 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7607 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7609 echo "linking $srcdir/$ac_source to $ac_dest"
7611 if test ! -r $srcdir/$ac_source; then
7612 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7616 # Make relative symlinks.
7617 # Remove last slash and all that follows it. Not all systems have dirname.
7618 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7619 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7620 # The dest file is in a subdirectory.
7621 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7622 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7623 # A "../" for each directory in $ac_dest_dir_suffix.
7624 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7626 ac_dest_dir_suffix= ac_dots=
7630 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7631 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7634 # Make a symlink if possible; otherwise try a hard link.
7635 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7636 ln $srcdir/$ac_source $ac_dest; then :
7638 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7642 cat >> $CONFIG_STATUS <<EOF
7644 gdb_host_cpu=$gdb_host_cpu
7645 gdb_target_cpu=$gdb_target_cpu
7646 nativefile=$nativefile
7649 cat >> $CONFIG_STATUS <<\EOF
7651 if test "${nativefile}" = ""; then
7652 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7653 < Makefile > Makefile.tem
7654 mv -f Makefile.tem Makefile
7657 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7658 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7659 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7660 mv -f Makefile.tmp Makefile
7663 case x$CONFIG_HEADERS in
7664 xconfig.h:config.in)
7670 chmod +x $CONFIG_STATUS
7671 rm -fr confdefs* $ac_clean_files
7672 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7674 if test "$no_recursion" != yes; then
7676 # Remove --cache-file and --srcdir arguments so they do not pile up.
7677 ac_sub_configure_args=
7679 for ac_arg in $ac_configure_args; do
7680 if test -n "$ac_prev"; then
7685 -cache-file | --cache-file | --cache-fil | --cache-fi \
7686 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7687 ac_prev=cache_file ;;
7688 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7689 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7691 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7693 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7695 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7699 for ac_config_dir in $configdirs; do
7701 # Do not complain, so a configure script can configure whichever
7702 # parts of a large source tree are present.
7703 if test ! -d $srcdir/$ac_config_dir; then
7707 echo configuring in $ac_config_dir
7712 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7714 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7722 # A "../" for each directory in /$ac_config_dir.
7723 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7726 .) # No --srcdir option. We are building in place.
7727 ac_sub_srcdir=$srcdir ;;
7728 /*) # Absolute path.
7729 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7731 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7734 # Check for guested configure; otherwise get Cygnus style configure.
7735 if test -f $ac_sub_srcdir/configure; then
7736 ac_sub_configure=$ac_sub_srcdir/configure
7737 elif test -f $ac_sub_srcdir/configure.in; then
7738 ac_sub_configure=$ac_configure
7740 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7744 # The recursion is here.
7745 if test -n "$ac_sub_configure"; then
7747 # Make the cache file name correct relative to the subdirectory.
7748 case "$cache_file" in
7749 /*) ac_sub_cache_file=$cache_file ;;
7751 ac_sub_cache_file="$ac_dots$cache_file" ;;
7753 case "$ac_given_INSTALL" in
7754 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7755 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7758 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7759 # The eval makes quoting arguments work.
7760 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7763 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }