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-gdbmi Enable GDB-MI interface"
23 --enable-tui Enable full-screen terminal user interface"
25 --enable-netrom Enable NetROM support"
27 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
29 --with-mmalloc Use memory mapped malloc package"
31 --with-cpu=CPU Set the default CPU variant to debug"
33 --enable-gdbtk Enable GDBTK GUI front end"
35 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
37 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
39 --with-tclinclude=DIR Directory where tcl private headers are"
41 --with-tkinclude=DIR Directory where tk private headers are"
43 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
45 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
47 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
49 --with-x use the X Window System"
51 --enable-sim Link gdb with simulator"
53 --enable-shared Use shared libraries"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file=./config.cache
68 program_transform_name=s,x,x,
77 bindir='${exec_prefix}/bin'
78 sbindir='${exec_prefix}/sbin'
79 libexecdir='${exec_prefix}/libexec'
80 datadir='${prefix}/share'
81 sysconfdir='${prefix}/etc'
82 sharedstatedir='${prefix}/com'
83 localstatedir='${prefix}/var'
84 libdir='${exec_prefix}/lib'
85 includedir='${prefix}/include'
86 oldincludedir='/usr/include'
87 infodir='${prefix}/info'
88 mandir='${prefix}/man'
90 # Initialize some other variables.
93 SHELL=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir | --bindir | --bindi | --bind | --bin | --bi)
119 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120 bindir="$ac_optarg" ;;
122 -build | --build | --buil | --bui | --bu)
124 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125 build="$ac_optarg" ;;
127 -cache-file | --cache-file | --cache-fil | --cache-fi \
128 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
129 ac_prev=cache_file ;;
130 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
131 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
132 cache_file="$ac_optarg" ;;
134 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
136 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
138 datadir="$ac_optarg" ;;
140 -disable-* | --disable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* | --enable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
163 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164 | --exec | --exe | --ex)
165 ac_prev=exec_prefix ;;
166 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
167 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
168 | --exec=* | --exe=* | --ex=*)
169 exec_prefix="$ac_optarg" ;;
171 -gas | --gas | --ga | --g)
172 # Obsolete; use --with-gas.
175 -help | --help | --hel | --he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --site-file=FILE use FILE as the site file
187 --version print the version of autoconf that created configure
188 Directory and file names:
189 --prefix=PREFIX install architecture-independent files in PREFIX
191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
193 --bindir=DIR user executables in DIR [EPREFIX/bin]
194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
196 --datadir=DIR read-only architecture-independent data in DIR
198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
199 --sharedstatedir=DIR modifiable architecture-independent data in DIR
201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
202 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
203 --includedir=DIR C header files in DIR [PREFIX/include]
204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
205 --infodir=DIR info documentation in DIR [PREFIX/info]
206 --mandir=DIR man documentation in DIR [PREFIX/man]
207 --srcdir=DIR find the sources in DIR [configure dir or ..]
208 --program-prefix=PREFIX prepend PREFIX to installed program names
209 --program-suffix=SUFFIX append SUFFIX to installed program names
210 --program-transform-name=PROGRAM
211 run sed PROGRAM on installed program names
215 --build=BUILD configure for building on BUILD [BUILD=HOST]
216 --host=HOST configure for HOST [guessed]
217 --target=TARGET configure for TARGET [TARGET=HOST]
218 Features and packages:
219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
223 --x-includes=DIR X include files are in DIR
224 --x-libraries=DIR X library files are in DIR
226 if test -n "$ac_help"; then
227 echo "--enable and --with options recognized:$ac_help"
231 -host | --host | --hos | --ho)
233 -host=* | --host=* | --hos=* | --ho=*)
236 -includedir | --includedir | --includedi | --included | --include \
237 | --includ | --inclu | --incl | --inc)
238 ac_prev=includedir ;;
239 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
240 | --includ=* | --inclu=* | --incl=* | --inc=*)
241 includedir="$ac_optarg" ;;
243 -infodir | --infodir | --infodi | --infod | --info | --inf)
245 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
246 infodir="$ac_optarg" ;;
248 -libdir | --libdir | --libdi | --libd)
250 -libdir=* | --libdir=* | --libdi=* | --libd=*)
251 libdir="$ac_optarg" ;;
253 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
254 | --libexe | --libex | --libe)
255 ac_prev=libexecdir ;;
256 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
257 | --libexe=* | --libex=* | --libe=*)
258 libexecdir="$ac_optarg" ;;
260 -localstatedir | --localstatedir | --localstatedi | --localstated \
261 | --localstate | --localstat | --localsta | --localst \
262 | --locals | --local | --loca | --loc | --lo)
263 ac_prev=localstatedir ;;
264 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
265 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
266 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
267 localstatedir="$ac_optarg" ;;
269 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
271 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
272 mandir="$ac_optarg" ;;
275 # Obsolete; use --without-fp.
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
282 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
283 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
286 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
287 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
288 | --oldin | --oldi | --old | --ol | --o)
289 ac_prev=oldincludedir ;;
290 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
291 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
292 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
293 oldincludedir="$ac_optarg" ;;
295 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
297 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
298 prefix="$ac_optarg" ;;
300 -program-prefix | --program-prefix | --program-prefi | --program-pref \
301 | --program-pre | --program-pr | --program-p)
302 ac_prev=program_prefix ;;
303 -program-prefix=* | --program-prefix=* | --program-prefi=* \
304 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
305 program_prefix="$ac_optarg" ;;
307 -program-suffix | --program-suffix | --program-suffi | --program-suff \
308 | --program-suf | --program-su | --program-s)
309 ac_prev=program_suffix ;;
310 -program-suffix=* | --program-suffix=* | --program-suffi=* \
311 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
312 program_suffix="$ac_optarg" ;;
314 -program-transform-name | --program-transform-name \
315 | --program-transform-nam | --program-transform-na \
316 | --program-transform-n | --program-transform- \
317 | --program-transform | --program-transfor \
318 | --program-transfo | --program-transf \
319 | --program-trans | --program-tran \
320 | --progr-tra | --program-tr | --program-t)
321 ac_prev=program_transform_name ;;
322 -program-transform-name=* | --program-transform-name=* \
323 | --program-transform-nam=* | --program-transform-na=* \
324 | --program-transform-n=* | --program-transform-=* \
325 | --program-transform=* | --program-transfor=* \
326 | --program-transfo=* | --program-transf=* \
327 | --program-trans=* | --program-tran=* \
328 | --progr-tra=* | --program-tr=* | --program-t=*)
329 program_transform_name="$ac_optarg" ;;
331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
332 | -silent | --silent | --silen | --sile | --sil)
335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
339 sbindir="$ac_optarg" ;;
341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
343 | --sharedst | --shareds | --shared | --share | --shar \
345 ac_prev=sharedstatedir ;;
346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
350 sharedstatedir="$ac_optarg" ;;
352 -site | --site | --sit)
354 -site=* | --site=* | --sit=*)
357 -site-file | --site-file | --site-fil | --site-fi | --site-f)
359 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
360 sitefile="$ac_optarg" ;;
362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365 srcdir="$ac_optarg" ;;
367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368 | --syscon | --sysco | --sysc | --sys | --sy)
369 ac_prev=sysconfdir ;;
370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372 sysconfdir="$ac_optarg" ;;
374 -target | --target | --targe | --targ | --tar | --ta | --t)
376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377 target="$ac_optarg" ;;
379 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 -version | --version | --versio | --versi | --vers)
383 echo "configure generated by autoconf version 2.13"
387 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* | --without-*)
400 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
409 # Obsolete; use --with-x.
412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413 | --x-incl | --x-inc | --x-in | --x-i)
414 ac_prev=x_includes ;;
415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417 x_includes="$ac_optarg" ;;
419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421 ac_prev=x_libraries ;;
422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424 x_libraries="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c) ;;
476 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file=main.c
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted=yes
506 # Try the directory containing this script, then its parent.
508 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 if test ! -r $srcdir/$ac_unique_file; then
515 ac_srcdir_defaulted=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$sitefile"; then
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE; then
530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 CONFIG_SITE="$sitefile"
538 for ac_site_file in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='\c' ac_t=
577 # Extract the first word of "gcc", so it can be a program name with args.
578 set dummy gcc; ac_word=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 echo "configure:581: checking for $ac_word" >&5
581 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 if test -n "$CC"; then
585 ac_cv_prog_CC="$CC" # Let the user override the test.
587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
589 for ac_dir in $ac_dummy; do
590 test -z "$ac_dir" && ac_dir=.
591 if test -f $ac_dir/$ac_word; then
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
607 # Extract the first word of "cc", so it can be a program name with args.
608 set dummy cc; ac_word=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC="$CC" # Let the user override the test.
617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
620 for ac_dir in $ac_dummy; do
621 test -z "$ac_dir" && ac_dir=.
622 if test -f $ac_dir/$ac_word; then
623 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
632 if test $ac_prog_rejected = yes; then
633 # We found a bogon in the path, so make sure we never use it.
634 set dummy $ac_cv_prog_CC
636 if test $# -gt 0; then
637 # We chose a different compiler from the bogus one.
638 # However, it has the same basename, so the bogon will be chosen
639 # first if we set CC to just the basename; use the full file name.
641 set dummy "$ac_dir/$ac_word" "$@"
649 if test -n "$CC"; then
650 echo "$ac_t""$CC" 1>&6
652 echo "$ac_t""no" 1>&6
655 if test -z "$CC"; then
658 # Extract the first word of "cl", so it can be a program name with args.
659 set dummy cl; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 if test -n "$CC"; then
666 ac_cv_prog_CC="$CC" # Let the user override the test.
668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 for ac_dir in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir=.
672 if test -f $ac_dir/$ac_word; then
681 if test -n "$CC"; then
682 echo "$ac_t""$CC" 1>&6
684 echo "$ac_t""no" 1>&6
689 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
693 echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp='$CPP $CPPFLAGS'
698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling=$ac_cv_prog_cc_cross
702 cat > conftest.$ac_ext << EOF
704 #line 705 "configure"
705 #include "confdefs.h"
709 if { (eval echo configure:710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
710 ac_cv_prog_cc_works=yes
711 # If we can't run a trivial program, we are probably using a cross compiler.
712 if (./conftest; exit) 2>/dev/null; then
713 ac_cv_prog_cc_cross=no
715 ac_cv_prog_cc_cross=yes
718 echo "configure: failed program was:" >&5
719 cat conftest.$ac_ext >&5
720 ac_cv_prog_cc_works=no
724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
725 ac_cpp='$CPP $CPPFLAGS'
726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
728 cross_compiling=$ac_cv_prog_cc_cross
730 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
731 if test $ac_cv_prog_cc_works = no; then
732 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
734 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
735 echo "configure:736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
736 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
737 cross_compiling=$ac_cv_prog_cc_cross
739 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
740 echo "configure:741: checking whether we are using GNU C" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 cat > conftest.c <<EOF
749 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
756 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
758 if test $ac_cv_prog_gcc = yes; then
764 ac_test_CFLAGS="${CFLAGS+set}"
765 ac_save_CFLAGS="$CFLAGS"
767 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
768 echo "configure:769: checking whether ${CC-cc} accepts -g" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 echo 'void f(){}' > conftest.c
773 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
782 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
783 if test "$ac_test_CFLAGS" = set; then
784 CFLAGS="$ac_save_CFLAGS"
785 elif test $ac_cv_prog_cc_g = yes; then
786 if test "$GCC" = yes; then
792 if test "$GCC" = yes; then
799 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
800 echo "configure:801: checking how to run the C preprocessor" >&5
801 # On Suns, sometimes $CPP names a directory.
802 if test -n "$CPP" && test -d "$CPP"; then
805 if test -z "$CPP"; then
806 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 # This must be in double quotes, not single quotes, because CPP may get
810 # substituted into the Makefile and "${CC-cc}" will confuse make.
812 # On the NeXT, cc -E runs the code through the compiler's parser,
813 # not just through cpp.
814 cat > conftest.$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
821 { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
823 if test -z "$ac_err"; then
827 echo "configure: failed program was:" >&5
828 cat conftest.$ac_ext >&5
830 CPP="${CC-cc} -E -traditional-cpp"
831 cat > conftest.$ac_ext <<EOF
832 #line 833 "configure"
833 #include "confdefs.h"
837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
838 { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
840 if test -z "$ac_err"; then
844 echo "configure: failed program was:" >&5
845 cat conftest.$ac_ext >&5
847 CPP="${CC-cc} -nologo -E"
848 cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.$ac_ext >&5
871 ac_cv_prog_CPP="$CPP"
873 CPP="$ac_cv_prog_CPP"
875 ac_cv_prog_CPP="$CPP"
877 echo "$ac_t""$CPP" 1>&6
879 echo $ac_n "checking for AIX""... $ac_c" 1>&6
880 echo "configure:881: checking for AIX" >&5
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
890 egrep "yes" >/dev/null 2>&1; then
892 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
893 #define _ALL_SOURCE 1
898 echo "$ac_t""no" 1>&6
903 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
904 echo "configure:905: checking for POSIXized ISC" >&5
905 if test -d /etc/conf/kconfig.d &&
906 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
908 echo "$ac_t""yes" 1>&6
909 ISC=yes # If later tests want to check for ISC.
910 cat >> confdefs.h <<\EOF
911 #define _POSIX_SOURCE 1
914 if test "$GCC" = yes; then
920 echo "$ac_t""no" 1>&6
927 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
928 echo "configure:929: checking for ${CC-cc} option to accept ANSI C" >&5
929 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 am_cv_prog_cc_stdc=no
934 # Don't try gcc -ansi; that turns off useful extensions and
935 # breaks some systems' header files.
937 # Ultrix and OSF/1 -std1
938 # HP-UX -Aa -D_HPUX_SOURCE
939 # SVR4 -Xc -D__EXTENSIONS__
940 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
942 CC="$ac_save_CC $ac_arg"
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
948 #include <sys/types.h>
949 #include <sys/stat.h>
950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
951 struct buf { int x; };
952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
953 static char *e (p, i)
959 static char *f (char * (*g) (char **, int), char **p, ...)
964 s = g (p, va_arg (v,int));
968 int test (int i, double x);
969 struct s1 {int (*f) (int a);};
970 struct s2 {int (*f) (double a);};
971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
981 if { (eval echo configure:982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
983 am_cv_prog_cc_stdc="$ac_arg"; break
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
994 if test -z "$am_cv_prog_cc_stdc"; then
995 echo "$ac_t""none needed" 1>&6
997 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
999 case "x$am_cv_prog_cc_stdc" in
1001 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1006 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1007 if test -f $ac_dir/install-sh; then
1009 ac_install_sh="$ac_aux_dir/install-sh -c"
1011 elif test -f $ac_dir/install.sh; then
1013 ac_install_sh="$ac_aux_dir/install.sh -c"
1017 if test -z "$ac_aux_dir"; then
1018 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1020 ac_config_guess=$ac_aux_dir/config.guess
1021 ac_config_sub=$ac_aux_dir/config.sub
1022 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1025 # Do some error checking and defaulting for the host and target type.
1027 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1030 # 1. You are not allowed to specify --host, --target, and nonopt at the
1032 # 2. Host defaults to nonopt.
1033 # 3. If nonopt is not specified, then host defaults to the current host,
1034 # as determined by config.guess.
1035 # 4. Target and build default to nonopt.
1036 # 5. If nonopt is not specified, then target and build default to host.
1038 # The aliases save the names the user supplied, while $host etc.
1039 # will get canonicalized.
1040 case $host---$target---$nonopt in
1041 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1042 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1046 # Make sure we can run config.sub.
1047 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1048 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1051 echo $ac_n "checking host system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking host system type" >&5
1055 case "$host_alias" in
1059 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1060 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1062 *) host_alias=$nonopt ;;
1066 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1067 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1068 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1069 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1070 echo "$ac_t""$host" 1>&6
1072 echo $ac_n "checking target system type""... $ac_c" 1>&6
1073 echo "configure:1074: checking target system type" >&5
1075 target_alias=$target
1076 case "$target_alias" in
1079 NONE) target_alias=$host_alias ;;
1080 *) target_alias=$nonopt ;;
1084 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1085 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1086 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1087 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1088 echo "$ac_t""$target" 1>&6
1090 echo $ac_n "checking build system type""... $ac_c" 1>&6
1091 echo "configure:1092: checking build system type" >&5
1094 case "$build_alias" in
1097 NONE) build_alias=$host_alias ;;
1098 *) build_alias=$nonopt ;;
1102 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1103 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1104 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1105 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1106 echo "$ac_t""$build" 1>&6
1108 test "$host_alias" != "$target_alias" &&
1109 test "$program_prefix$program_suffix$program_transform_name" = \
1111 program_prefix=${target_alias}-
1115 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether ${MAKE-make} sets \${MAKE}" >&5
1117 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1118 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 cat > conftestmake <<\EOF
1123 @echo 'ac_maketemp="${MAKE}"'
1125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1126 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1127 if test -n "$ac_maketemp"; then
1128 eval ac_cv_prog_make_${ac_make}_set=yes
1130 eval ac_cv_prog_make_${ac_make}_set=no
1134 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1135 echo "$ac_t""yes" 1>&6
1138 echo "$ac_t""no" 1>&6
1139 SET_MAKE="MAKE=${MAKE-make}"
1142 # Extract the first word of "ranlib", so it can be a program name with args.
1143 set dummy ranlib; ac_word=$2
1144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1145 echo "configure:1146: checking for $ac_word" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 if test -n "$RANLIB"; then
1150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1154 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 if test -f $ac_dir/$ac_word; then
1157 ac_cv_prog_RANLIB="ranlib"
1162 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1165 RANLIB="$ac_cv_prog_RANLIB"
1166 if test -n "$RANLIB"; then
1167 echo "$ac_t""$RANLIB" 1>&6
1169 echo "$ac_t""no" 1>&6
1172 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1173 echo "configure:1174: checking for ANSI C header files" >&5
1174 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftest.$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1186 { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1188 if test -z "$ac_err"; then
1190 ac_cv_header_stdc=yes
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1196 ac_cv_header_stdc=no
1200 if test $ac_cv_header_stdc = yes; then
1201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1202 cat > conftest.$ac_ext <<EOF
1203 #line 1204 "configure"
1204 #include "confdefs.h"
1207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1208 egrep "memchr" >/dev/null 2>&1; then
1212 ac_cv_header_stdc=no
1218 if test $ac_cv_header_stdc = yes; then
1219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1226 egrep "free" >/dev/null 2>&1; then
1230 ac_cv_header_stdc=no
1236 if test $ac_cv_header_stdc = yes; then
1237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1238 if test "$cross_compiling" = yes; then
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1245 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1246 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1248 int main () { int i; for (i = 0; i < 256; i++)
1249 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1253 if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1260 ac_cv_header_stdc=no
1268 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1269 if test $ac_cv_header_stdc = yes; then
1270 cat >> confdefs.h <<\EOF
1271 #define STDC_HEADERS 1
1276 echo $ac_n "checking for working const""... $ac_c" 1>&6
1277 echo "configure:1278: checking for working const" >&5
1278 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1287 /* Ultrix mips cc rejects this. */
1288 typedef int charset[2]; const charset x;
1289 /* SunOS 4.1.1 cc rejects this. */
1290 char const *const *ccp;
1292 /* NEC SVR4.0.2 mips cc rejects this. */
1293 struct point {int x, y;};
1294 static struct point const zero = {0,0};
1295 /* AIX XL C 1.02.0.0 rejects this.
1296 It does not let you subtract one const X* pointer from another in an arm
1297 of an if-expression whose if-part is not a constant expression */
1298 const char *g = "string";
1299 ccp = &g + (g ? g-g : 0);
1300 /* HPUX 7.0 cc rejects these. */
1303 ccp = (char const *const *) p;
1304 { /* SCO 3.2v4 cc rejects this. */
1306 char const *s = 0 ? (char *) 0 : (char const *) 0;
1310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1312 const int *foo = &x[0];
1315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1316 typedef const int *iptr;
1320 { /* AIX XL C 1.02.0.0 rejects this saying
1321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1322 struct s { int j; const int *ap[3]; };
1323 struct s *b; b->j = 5;
1325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1331 if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1343 echo "$ac_t""$ac_cv_c_const" 1>&6
1344 if test $ac_cv_c_const = no; then
1345 cat >> confdefs.h <<\EOF
1351 echo $ac_n "checking for inline""... $ac_c" 1>&6
1352 echo "configure:1353: checking for inline" >&5
1353 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1357 for ac_kw in inline __inline__ __inline; do
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1366 if { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1368 ac_cv_c_inline=$ac_kw; break
1370 echo "configure: failed program was:" >&5
1371 cat conftest.$ac_ext >&5
1378 echo "$ac_t""$ac_cv_c_inline" 1>&6
1379 case "$ac_cv_c_inline" in
1381 no) cat >> confdefs.h <<\EOF
1385 *) cat >> confdefs.h <<EOF
1386 #define inline $ac_cv_c_inline
1391 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1392 echo "configure:1393: checking for off_t" >&5
1393 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 #include <sys/types.h>
1405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1406 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1408 ac_cv_type_off_t=yes
1416 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1417 if test $ac_cv_type_off_t = no; then
1418 cat >> confdefs.h <<\EOF
1424 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1425 echo "configure:1426: checking for size_t" >&5
1426 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 #include <sys/types.h>
1438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1439 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1441 ac_cv_type_size_t=yes
1444 ac_cv_type_size_t=no
1449 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1450 if test $ac_cv_type_size_t = no; then
1451 cat >> confdefs.h <<\EOF
1452 #define size_t unsigned
1457 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1458 # for constant arguments. Useless!
1459 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1460 echo "configure:1461: checking for working alloca.h" >&5
1461 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1469 char *p = alloca(2 * sizeof(int));
1472 if { (eval echo configure:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1474 ac_cv_header_alloca_h=yes
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1479 ac_cv_header_alloca_h=no
1484 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1485 if test $ac_cv_header_alloca_h = yes; then
1486 cat >> confdefs.h <<\EOF
1487 #define HAVE_ALLOCA_H 1
1492 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1493 echo "configure:1494: checking for alloca" >&5
1494 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1502 # define alloca __builtin_alloca
1505 # include <malloc.h>
1506 # define alloca _alloca
1509 # include <alloca.h>
1514 # ifndef alloca /* predefined by HP cc +Olibcalls */
1523 char *p = (char *) alloca(1);
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1528 ac_cv_func_alloca_works=yes
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1533 ac_cv_func_alloca_works=no
1538 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1539 if test $ac_cv_func_alloca_works = yes; then
1540 cat >> confdefs.h <<\EOF
1541 #define HAVE_ALLOCA 1
1546 if test $ac_cv_func_alloca_works = no; then
1547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1548 # that cause trouble. Some versions do not even contain alloca or
1549 # contain a buggy version. If you still want to use their alloca,
1550 # use ar to extract alloca.o from them instead of compiling alloca.c.
1551 ALLOCA=alloca.${ac_objext}
1552 cat >> confdefs.h <<\EOF
1557 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1558 echo "configure:1559: checking whether alloca needs Cray hooks" >&5
1559 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 #if defined(CRAY) && ! defined(CRAY2)
1572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1573 egrep "webecray" >/dev/null 2>&1; then
1584 echo "$ac_t""$ac_cv_os_cray" 1>&6
1585 if test $ac_cv_os_cray = yes; then
1586 for ac_func in _getb67 GETB67 getb67; do
1587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_func" >&5
1589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* System header to define __stub macros and hopefully few prototypes,
1596 which can conflict with char $ac_func(); below. */
1598 /* Override any gcc2 internal prototype to avoid an error. */
1599 /* We use char because int might match the return type of a gcc2
1600 builtin and then its argument prototype would still apply. */
1605 /* The GNU C library defines this for functions which it implements
1606 to always fail with ENOSYS. Some functions are actually named
1607 something starting with __ and the normal name is an alias. */
1608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1618 eval "ac_cv_func_$ac_func=yes"
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1623 eval "ac_cv_func_$ac_func=no"
1628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 cat >> confdefs.h <<EOF
1631 #define CRAY_STACKSEG_END $ac_func
1636 echo "$ac_t""no" 1>&6
1642 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1643 echo "configure:1644: checking stack direction for C alloca" >&5
1644 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 if test "$cross_compiling" = yes; then
1648 ac_cv_c_stack_direction=0
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 find_stack_direction ()
1655 static char *addr = 0;
1660 return find_stack_direction ();
1663 return (&dummy > addr) ? 1 : -1;
1667 exit (find_stack_direction() < 0);
1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1672 ac_cv_c_stack_direction=1
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1677 ac_cv_c_stack_direction=-1
1684 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1685 cat >> confdefs.h <<EOF
1686 #define STACK_DIRECTION $ac_cv_c_stack_direction
1691 for ac_hdr in unistd.h
1693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_hdr" >&5
1696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 cat > conftest.$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1709 eval "ac_cv_header_$ac_safe=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1715 eval "ac_cv_header_$ac_safe=no"
1719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1722 cat >> confdefs.h <<EOF
1723 #define $ac_tr_hdr 1
1727 echo "$ac_t""no" 1>&6
1731 for ac_func in getpagesize
1733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_func" >&5
1735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $ac_func(); below. */
1744 /* Override any gcc2 internal prototype to avoid an error. */
1745 /* We use char because int might match the return type of a gcc2
1746 builtin and then its argument prototype would still apply. */
1751 /* The GNU C library defines this for functions which it implements
1752 to always fail with ENOSYS. Some functions are actually named
1753 something starting with __ and the normal name is an alias. */
1754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1764 eval "ac_cv_func_$ac_func=yes"
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 eval "ac_cv_func_$ac_func=no"
1774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1777 cat >> confdefs.h <<EOF
1778 #define $ac_tr_func 1
1782 echo "$ac_t""no" 1>&6
1786 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1787 echo "configure:1788: checking for working mmap" >&5
1788 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test "$cross_compiling" = yes; then
1792 ac_cv_func_mmap_fixed_mapped=no
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1798 /* Thanks to Mike Haertel and Jim Avera for this test.
1799 Here is a matrix of mmap possibilities:
1800 mmap private not fixed
1801 mmap private fixed at somewhere currently unmapped
1802 mmap private fixed at somewhere already mapped
1803 mmap shared not fixed
1804 mmap shared fixed at somewhere currently unmapped
1805 mmap shared fixed at somewhere already mapped
1806 For private mappings, we should verify that changes cannot be read()
1807 back from the file, nor mmap's back from the file at a different
1808 address. (There have been systems where private was not correctly
1809 implemented like the infamous i386 svr4.0, and systems where the
1810 VM page cache was not coherent with the filesystem buffer cache
1811 like early versions of FreeBSD and possibly contemporary NetBSD.)
1812 For shared mappings, we should conversely verify that changes get
1813 propogated back to all the places they're supposed to be.
1815 Grep wants private fixed already mapped.
1816 The main things grep needs to know about mmap are:
1817 * does it exist and is it safe to write into the mmap'd area
1818 * how to use it (BSD variants) */
1819 #include <sys/types.h>
1821 #include <sys/mman.h>
1823 /* This mess was copied from the GNU getpagesize.h. */
1824 #ifndef HAVE_GETPAGESIZE
1825 # ifdef HAVE_UNISTD_H
1826 # include <unistd.h>
1829 /* Assume that all systems that can run configure have sys/param.h. */
1830 # ifndef HAVE_SYS_PARAM_H
1831 # define HAVE_SYS_PARAM_H 1
1834 # ifdef _SC_PAGESIZE
1835 # define getpagesize() sysconf(_SC_PAGESIZE)
1836 # else /* no _SC_PAGESIZE */
1837 # ifdef HAVE_SYS_PARAM_H
1838 # include <sys/param.h>
1839 # ifdef EXEC_PAGESIZE
1840 # define getpagesize() EXEC_PAGESIZE
1841 # else /* no EXEC_PAGESIZE */
1843 # define getpagesize() NBPG * CLSIZE
1846 # endif /* no CLSIZE */
1847 # else /* no NBPG */
1849 # define getpagesize() NBPC
1850 # else /* no NBPC */
1852 # define getpagesize() PAGESIZE
1853 # endif /* PAGESIZE */
1854 # endif /* no NBPC */
1855 # endif /* no NBPG */
1856 # endif /* no EXEC_PAGESIZE */
1857 # else /* no HAVE_SYS_PARAM_H */
1858 # define getpagesize() 8192 /* punt totally */
1859 # endif /* no HAVE_SYS_PARAM_H */
1860 # endif /* no _SC_PAGESIZE */
1862 #endif /* no HAVE_GETPAGESIZE */
1865 extern "C" { void *malloc(unsigned); }
1873 char *data, *data2, *data3;
1877 pagesize = getpagesize();
1880 * First, make a file with some known garbage in it.
1882 data = malloc(pagesize);
1885 for (i = 0; i < pagesize; ++i)
1886 *(data + i) = rand();
1888 fd = creat("conftestmmap", 0600);
1891 if (write(fd, data, pagesize) != pagesize)
1896 * Next, try to mmap the file at a fixed address which
1897 * already has something else allocated at it. If we can,
1898 * also make sure that we see the same garbage.
1900 fd = open("conftestmmap", O_RDWR);
1903 data2 = malloc(2 * pagesize);
1906 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1907 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1908 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1910 for (i = 0; i < pagesize; ++i)
1911 if (*(data + i) != *(data2 + i))
1915 * Finally, make sure that changes to the mapped area
1916 * do not percolate back to the file as seen by read().
1917 * (This is a bug on some variants of i386 svr4.0.)
1919 for (i = 0; i < pagesize; ++i)
1920 *(data2 + i) = *(data2 + i) + 1;
1921 data3 = malloc(pagesize);
1924 if (read(fd, data3, pagesize) != pagesize)
1926 for (i = 0; i < pagesize; ++i)
1927 if (*(data + i) != *(data3 + i))
1930 unlink("conftestmmap");
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1937 ac_cv_func_mmap_fixed_mapped=yes
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 ac_cv_func_mmap_fixed_mapped=no
1949 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1950 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1951 cat >> confdefs.h <<\EOF
1958 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1959 unistd.h values.h sys/param.h
1961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_hdr" >&5
1964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1973 { (eval echo configure:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1975 if test -z "$ac_err"; then
1977 eval "ac_cv_header_$ac_safe=yes"
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1983 eval "ac_cv_header_$ac_safe=no"
1987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1990 cat >> confdefs.h <<EOF
1991 #define $ac_tr_hdr 1
1995 echo "$ac_t""no" 1>&6
1999 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2000 __argz_count __argz_stringify __argz_next
2002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_func" >&5
2004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 /* System header to define __stub macros and hopefully few prototypes,
2011 which can conflict with char $ac_func(); below. */
2013 /* Override any gcc2 internal prototype to avoid an error. */
2014 /* We use char because int might match the return type of a gcc2
2015 builtin and then its argument prototype would still apply. */
2020 /* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2031 if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2033 eval "ac_cv_func_$ac_func=yes"
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2038 eval "ac_cv_func_$ac_func=no"
2043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2046 cat >> confdefs.h <<EOF
2047 #define $ac_tr_func 1
2051 echo "$ac_t""no" 1>&6
2056 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2057 for ac_func in stpcpy
2059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_func" >&5
2061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2064 cat > conftest.$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2067 /* System header to define __stub macros and hopefully few prototypes,
2068 which can conflict with char $ac_func(); below. */
2070 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2077 /* The GNU C library defines this for functions which it implements
2078 to always fail with ENOSYS. Some functions are actually named
2079 something starting with __ and the normal name is an alias. */
2080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2088 if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2090 eval "ac_cv_func_$ac_func=yes"
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 eval "ac_cv_func_$ac_func=no"
2100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2103 cat >> confdefs.h <<EOF
2104 #define $ac_tr_func 1
2108 echo "$ac_t""no" 1>&6
2113 if test "${ac_cv_func_stpcpy}" = "yes"; then
2114 cat >> confdefs.h <<\EOF
2115 #define HAVE_STPCPY 1
2120 if test $ac_cv_header_locale_h = yes; then
2121 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2122 echo "configure:2123: checking for LC_MESSAGES" >&5
2123 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2134 if { (eval echo configure:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2136 am_cv_val_LC_MESSAGES=yes
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2141 am_cv_val_LC_MESSAGES=no
2146 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2147 if test $am_cv_val_LC_MESSAGES = yes; then
2148 cat >> confdefs.h <<\EOF
2149 #define HAVE_LC_MESSAGES 1
2154 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether NLS is requested" >&5
2156 # Check whether --enable-nls or --disable-nls was given.
2157 if test "${enable_nls+set}" = set; then
2158 enableval="$enable_nls"
2164 echo "$ac_t""$USE_NLS" 1>&6
2167 USE_INCLUDED_LIBINTL=no
2169 if test "$USE_NLS" = "yes"; then
2170 cat >> confdefs.h <<\EOF
2171 #define ENABLE_NLS 1
2174 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether included gettext is requested" >&5
2176 # Check whether --with-included-gettext or --without-included-gettext was given.
2177 if test "${with_included_gettext+set}" = set; then
2178 withval="$with_included_gettext"
2179 nls_cv_force_use_gnu_gettext=$withval
2181 nls_cv_force_use_gnu_gettext=no
2184 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2186 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2187 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2189 nls_cv_header_libgt=
2192 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2193 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2194 echo "configure:2195: checking for libintl.h" >&5
2195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 cat > conftest.$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2201 #include <libintl.h>
2203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2204 { (eval echo configure:2205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2206 if test -z "$ac_err"; then
2208 eval "ac_cv_header_$ac_safe=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2214 eval "ac_cv_header_$ac_safe=no"
2218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2221 echo "configure:2222: checking for gettext in libc" >&5
2222 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 #include <libintl.h>
2230 return (int) gettext ("")
2233 if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2235 gt_cv_func_gettext_libc=yes
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2240 gt_cv_func_gettext_libc=no
2245 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2247 if test "$gt_cv_func_gettext_libc" != "yes"; then
2248 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2249 echo "configure:2250: checking for bindtextdomain in -lintl" >&5
2250 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 ac_save_LIBS="$LIBS"
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 /* Override any gcc2 internal prototype to avoid an error. */
2260 /* We use char because int might match the return type of a gcc2
2261 builtin and then its argument prototype would still apply. */
2262 char bindtextdomain();
2268 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 eval "ac_cv_lib_$ac_lib_var=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 eval "ac_cv_lib_$ac_lib_var=no"
2278 LIBS="$ac_save_LIBS"
2281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2284 echo "configure:2285: checking for gettext in libintl" >&5
2285 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2293 return (int) gettext ("")
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 gt_cv_func_gettext_libintl=yes
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 gt_cv_func_gettext_libintl=no
2308 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2310 echo "$ac_t""no" 1>&6
2315 if test "$gt_cv_func_gettext_libc" = "yes" \
2316 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2317 cat >> confdefs.h <<\EOF
2318 #define HAVE_GETTEXT 1
2321 # Extract the first word of "msgfmt", so it can be a program name with args.
2322 set dummy msgfmt; ac_word=$2
2323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_word" >&5
2325 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2330 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2334 for ac_dir in $PATH; do
2335 test -z "$ac_dir" && ac_dir=.
2336 if test -f $ac_dir/$ac_word; then
2337 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2338 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2344 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2348 MSGFMT="$ac_cv_path_MSGFMT"
2349 if test -n "$MSGFMT"; then
2350 echo "$ac_t""$MSGFMT" 1>&6
2352 echo "$ac_t""no" 1>&6
2354 if test "$MSGFMT" != "no"; then
2355 for ac_func in dcgettext
2357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_func" >&5
2359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 /* System header to define __stub macros and hopefully few prototypes,
2366 which can conflict with char $ac_func(); below. */
2368 /* Override any gcc2 internal prototype to avoid an error. */
2369 /* We use char because int might match the return type of a gcc2
2370 builtin and then its argument prototype would still apply. */
2375 /* The GNU C library defines this for functions which it implements
2376 to always fail with ENOSYS. Some functions are actually named
2377 something starting with __ and the normal name is an alias. */
2378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2386 if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2388 eval "ac_cv_func_$ac_func=yes"
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2393 eval "ac_cv_func_$ac_func=no"
2398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2399 echo "$ac_t""yes" 1>&6
2400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2401 cat >> confdefs.h <<EOF
2402 #define $ac_tr_func 1
2406 echo "$ac_t""no" 1>&6
2410 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2411 set dummy gmsgfmt; ac_word=$2
2412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_word" >&5
2414 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2419 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2422 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2427 for ac_dir in $ac_dummy; do
2428 test -z "$ac_dir" && ac_dir=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2435 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2439 GMSGFMT="$ac_cv_path_GMSGFMT"
2440 if test -n "$GMSGFMT"; then
2441 echo "$ac_t""$GMSGFMT" 1>&6
2443 echo "$ac_t""no" 1>&6
2446 # Extract the first word of "xgettext", so it can be a program name with args.
2447 set dummy xgettext; ac_word=$2
2448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_word" >&5
2450 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2455 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2459 for ac_dir in $PATH; do
2460 test -z "$ac_dir" && ac_dir=.
2461 if test -f $ac_dir/$ac_word; then
2462 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2463 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2469 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2473 XGETTEXT="$ac_cv_path_XGETTEXT"
2474 if test -n "$XGETTEXT"; then
2475 echo "$ac_t""$XGETTEXT" 1>&6
2477 echo "$ac_t""no" 1>&6
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2485 extern int _nl_msg_cat_cntr;
2486 return _nl_msg_cat_cntr
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2506 echo "$ac_t""no" 1>&6
2511 if test "$CATOBJEXT" = "NONE"; then
2512 nls_cv_use_gnu_gettext=yes
2516 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2517 INTLOBJS="\$(GETTOBJS)"
2518 # Extract the first word of "msgfmt", so it can be a program name with args.
2519 set dummy msgfmt; ac_word=$2
2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_word" >&5
2522 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2527 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2531 for ac_dir in $PATH; do
2532 test -z "$ac_dir" && ac_dir=.
2533 if test -f $ac_dir/$ac_word; then
2534 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2535 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2541 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2545 MSGFMT="$ac_cv_path_MSGFMT"
2546 if test -n "$MSGFMT"; then
2547 echo "$ac_t""$MSGFMT" 1>&6
2549 echo "$ac_t""no" 1>&6
2552 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2553 set dummy gmsgfmt; ac_word=$2
2554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_word" >&5
2556 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2564 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2569 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 if test -f $ac_dir/$ac_word; then
2572 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2577 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2581 GMSGFMT="$ac_cv_path_GMSGFMT"
2582 if test -n "$GMSGFMT"; then
2583 echo "$ac_t""$GMSGFMT" 1>&6
2585 echo "$ac_t""no" 1>&6
2588 # Extract the first word of "xgettext", so it can be a program name with args.
2589 set dummy xgettext; ac_word=$2
2590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2591 echo "configure:2592: checking for $ac_word" >&5
2592 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2597 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2601 for ac_dir in $PATH; do
2602 test -z "$ac_dir" && ac_dir=.
2603 if test -f $ac_dir/$ac_word; then
2604 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2605 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2611 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2615 XGETTEXT="$ac_cv_path_XGETTEXT"
2616 if test -n "$XGETTEXT"; then
2617 echo "$ac_t""$XGETTEXT" 1>&6
2619 echo "$ac_t""no" 1>&6
2623 USE_INCLUDED_LIBINTL=yes
2627 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2629 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2630 nls_cv_header_intl=libintl.h
2631 nls_cv_header_libgt=libgettext.h
2634 if test "$XGETTEXT" != ":"; then
2635 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2638 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2643 # We need to process the po/ directory.
2647 nls_cv_header_intl=libintl.h
2648 nls_cv_header_libgt=libgettext.h
2651 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2652 # because some of the sources are only built for this goal.
2653 if test "$PACKAGE" = gettext; then
2655 USE_INCLUDED_LIBINTL=yes
2658 for lang in $ALL_LINGUAS; do
2659 GMOFILES="$GMOFILES $lang.gmo"
2660 POFILES="$POFILES $lang.po"
2676 if test "x$CATOBJEXT" != "x"; then
2677 if test "x$ALL_LINGUAS" = "x"; then
2680 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2681 echo "configure:2682: checking for catalogs to be installed" >&5
2683 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2684 case "$ALL_LINGUAS" in
2685 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2688 LINGUAS=$NEW_LINGUAS
2689 echo "$ac_t""$LINGUAS" 1>&6
2692 if test -n "$LINGUAS"; then
2693 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2697 if test $ac_cv_header_locale_h = yes; then
2698 INCLUDE_LOCALE_H="#include <locale.h>"
2701 /* The system does not provide the header <locale.h>. Take care yourself. */"
2705 if test -f $srcdir/po2tbl.sed.in; then
2706 if test "$CATOBJEXT" = ".cat"; then
2707 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2708 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2709 echo "configure:2710: checking for linux/version.h" >&5
2710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <linux/version.h>
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 eval "ac_cv_header_$ac_safe=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 eval "ac_cv_header_$ac_safe=no"
2733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2737 echo "$ac_t""no" 1>&6
2742 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2744 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2745 $srcdir/po2tbl.sed.in > po2tbl.sed
2748 if test "$PACKAGE" = "gettext"; then
2758 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2764 if test -d $srcdir/po; then
2765 test -d po || mkdir po
2766 if test "x$srcdir" != "x."; then
2767 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2768 posrcprefix="$srcdir/"
2770 posrcprefix="../$srcdir/"
2776 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2777 < $srcdir/po/POTFILES.in > po/POTFILES
2792 configdirs="doc testsuite"
2794 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2795 if test "${enable_multi_ice+set}" = set; then
2796 enableval="$enable_multi_ice"
2797 case "${enableval}" in
2798 yes ) enable_multi_ice="yes" ;;
2799 no) enable_multi_ice="no" ;;
2800 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2806 if test "${enable_multi_ice}" = "yes"; then
2807 configdirs="${configdirs} multi-ice"
2811 . ${srcdir}/configure.host
2813 . ${srcdir}/configure.tgt
2816 for ac_prog in mawk gawk nawk awk
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_word" >&5
2822 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2830 for ac_dir in $ac_dummy; do
2831 test -z "$ac_dir" && ac_dir=.
2832 if test -f $ac_dir/$ac_word; then
2833 ac_cv_prog_AWK="$ac_prog"
2840 AWK="$ac_cv_prog_AWK"
2841 if test -n "$AWK"; then
2842 echo "$ac_t""$AWK" 1>&6
2844 echo "$ac_t""no" 1>&6
2847 test -n "$AWK" && break
2850 # Find a good install program. We prefer a C program (faster),
2851 # so one script is as good as another. But avoid the broken or
2852 # incompatible versions:
2853 # SysV /etc/install, /usr/sbin/install
2854 # SunOS /usr/etc/install
2855 # IRIX /sbin/install
2857 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2858 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2859 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2860 # ./install, which can be erroneously created by make from ./install.sh.
2861 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2862 echo "configure:2863: checking for a BSD compatible install" >&5
2863 if test -z "$INSTALL"; then
2864 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2868 for ac_dir in $PATH; do
2869 # Account for people who put trailing slashes in PATH elements.
2871 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2873 # OSF1 and SCO ODT 3.0 have their own names for install.
2874 # Don't use installbsd from OSF since it installs stuff as root
2876 for ac_prog in ginstall scoinst install; do
2877 if test -f $ac_dir/$ac_prog; then
2878 if test $ac_prog = install &&
2879 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2880 # AIX install. It has an incompatible calling convention.
2883 ac_cv_path_install="$ac_dir/$ac_prog -c"
2894 if test "${ac_cv_path_install+set}" = set; then
2895 INSTALL="$ac_cv_path_install"
2897 # As a last resort, use the slow shell script. We don't cache a
2898 # path for INSTALL within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the path is relative.
2901 INSTALL="$ac_install_sh"
2904 echo "$ac_t""$INSTALL" 1>&6
2906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2907 # It thinks the first close brace ends the variable substitution.
2908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2914 if test $host != $build; then
2915 ac_tool_prefix=${host_alias}-
2920 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}ar; ac_word=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 if test -n "$AR"; then
2928 ac_cv_prog_AR="$AR" # Let the user override the test.
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2932 for ac_dir in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_prog_AR="${ac_tool_prefix}ar"
2940 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2944 if test -n "$AR"; then
2945 echo "$ac_t""$AR" 1>&6
2947 echo "$ac_t""no" 1>&6
2952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2955 echo "configure:2956: checking for $ac_word" >&5
2956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 if test -n "$RANLIB"; then
2960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2964 for ac_dir in $ac_dummy; do
2965 test -z "$ac_dir" && ac_dir=.
2966 if test -f $ac_dir/$ac_word; then
2967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2974 RANLIB="$ac_cv_prog_RANLIB"
2975 if test -n "$RANLIB"; then
2976 echo "$ac_t""$RANLIB" 1>&6
2978 echo "$ac_t""no" 1>&6
2982 if test -z "$ac_cv_prog_RANLIB"; then
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "ranlib", so it can be a program name with args.
2985 set dummy ranlib; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$RANLIB"; then
2992 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_RANLIB="ranlib"
3004 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3007 RANLIB="$ac_cv_prog_RANLIB"
3008 if test -n "$RANLIB"; then
3009 echo "$ac_t""$RANLIB" 1>&6
3011 echo "$ac_t""no" 1>&6
3019 for ac_prog in 'bison -y' byacc
3021 # Extract the first word of "$ac_prog", so it can be a program name with args.
3022 set dummy $ac_prog; ac_word=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 if test -n "$YACC"; then
3029 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_prog_YACC="$ac_prog"
3043 YACC="$ac_cv_prog_YACC"
3044 if test -n "$YACC"; then
3045 echo "$ac_t""$YACC" 1>&6
3047 echo "$ac_t""no" 1>&6
3050 test -n "$YACC" && break
3052 test -n "$YACC" || YACC="yacc"
3055 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}mig; ac_word=$2
3057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_word" >&5
3059 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 if test -n "$MIG"; then
3063 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3067 for ac_dir in $ac_dummy; do
3068 test -z "$ac_dir" && ac_dir=.
3069 if test -f $ac_dir/$ac_word; then
3070 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3075 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
3078 MIG="$ac_cv_prog_MIG"
3079 if test -n "$MIG"; then
3080 echo "$ac_t""$MIG" 1>&6
3082 echo "$ac_t""no" 1>&6
3088 if test "$program_transform_name" = s,x,x,; then
3089 program_transform_name=
3091 # Double any \ or $. echo might interpret backslashes.
3092 cat <<\EOF_SED > conftestsed
3093 s,\\,\\\\,g; s,\$,$$,g
3095 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3098 test "$program_prefix" != NONE &&
3099 program_transform_name="s,^,${program_prefix},; $program_transform_name"
3100 # Use a double $ so make ignores it.
3101 test "$program_suffix" != NONE &&
3102 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3104 # sed with no file args requires a program.
3105 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3108 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3109 echo "configure:3110: checking return type of signal handlers" >&5
3110 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #include <sys/types.h>
3122 extern "C" void (*signal (int, void (*)(int)))(int);
3124 void (*signal ()) ();
3131 if { (eval echo configure:3132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3133 ac_cv_type_signal=void
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 ac_cv_type_signal=int
3143 echo "$ac_t""$ac_cv_type_signal" 1>&6
3144 cat >> confdefs.h <<EOF
3145 #define RETSIGTYPE $ac_cv_type_signal
3150 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3151 echo "configure:3152: checking for ANSI C header files" >&5
3152 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3164 { (eval echo configure:3165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3166 if test -z "$ac_err"; then
3168 ac_cv_header_stdc=yes
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3174 ac_cv_header_stdc=no
3178 if test $ac_cv_header_stdc = yes; then
3179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186 egrep "memchr" >/dev/null 2>&1; then
3190 ac_cv_header_stdc=no
3196 if test $ac_cv_header_stdc = yes; then
3197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3204 egrep "free" >/dev/null 2>&1; then
3208 ac_cv_header_stdc=no
3214 if test $ac_cv_header_stdc = yes; then
3215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3216 if test "$cross_compiling" = yes; then
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3223 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3224 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3226 int main () { int i; for (i = 0; i < 256; i++)
3227 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 ac_cv_header_stdc=no
3246 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3247 if test $ac_cv_header_stdc = yes; then
3248 cat >> confdefs.h <<\EOF
3249 #define STDC_HEADERS 1
3255 for ac_hdr in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3256 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3257 string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
3258 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3259 wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
3262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3264 echo "configure:3265: checking for $ac_hdr" >&5
3265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3274 { (eval echo configure:3275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3276 if test -z "$ac_err"; then
3278 eval "ac_cv_header_$ac_safe=yes"
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 eval "ac_cv_header_$ac_safe=no"
3288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3289 echo "$ac_t""yes" 1>&6
3290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3291 cat >> confdefs.h <<EOF
3292 #define $ac_tr_hdr 1
3296 echo "$ac_t""no" 1>&6
3300 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3301 echo "configure:3302: checking whether stat file-mode macros are broken" >&5
3302 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 #include <sys/types.h>
3309 #include <sys/stat.h>
3311 #if defined(S_ISBLK) && defined(S_IFDIR)
3312 # if S_ISBLK (S_IFDIR)
3317 #if defined(S_ISBLK) && defined(S_IFCHR)
3318 # if S_ISBLK (S_IFCHR)
3323 #if defined(S_ISLNK) && defined(S_IFREG)
3324 # if S_ISLNK (S_IFREG)
3329 #if defined(S_ISSOCK) && defined(S_IFREG)
3330 # if S_ISSOCK (S_IFREG)
3336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3337 egrep "You lose" >/dev/null 2>&1; then
3339 ac_cv_header_stat_broken=yes
3342 ac_cv_header_stat_broken=no
3348 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3349 if test $ac_cv_header_stat_broken = yes; then
3350 cat >> confdefs.h <<\EOF
3351 #define STAT_MACROS_BROKEN 1
3357 echo $ac_n "checking for working const""... $ac_c" 1>&6
3358 echo "configure:3359: checking for working const" >&5
3359 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3368 /* Ultrix mips cc rejects this. */
3369 typedef int charset[2]; const charset x;
3370 /* SunOS 4.1.1 cc rejects this. */
3371 char const *const *ccp;
3373 /* NEC SVR4.0.2 mips cc rejects this. */
3374 struct point {int x, y;};
3375 static struct point const zero = {0,0};
3376 /* AIX XL C 1.02.0.0 rejects this.
3377 It does not let you subtract one const X* pointer from another in an arm
3378 of an if-expression whose if-part is not a constant expression */
3379 const char *g = "string";
3380 ccp = &g + (g ? g-g : 0);
3381 /* HPUX 7.0 cc rejects these. */
3384 ccp = (char const *const *) p;
3385 { /* SCO 3.2v4 cc rejects this. */
3387 char const *s = 0 ? (char *) 0 : (char const *) 0;
3391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3393 const int *foo = &x[0];
3396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3397 typedef const int *iptr;
3401 { /* AIX XL C 1.02.0.0 rejects this saying
3402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3403 struct s { int j; const int *ap[3]; };
3404 struct s *b; b->j = 5;
3406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3424 echo "$ac_t""$ac_cv_c_const" 1>&6
3425 if test $ac_cv_c_const = no; then
3426 cat >> confdefs.h <<\EOF
3433 for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_func" >&5
3437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 /* System header to define __stub macros and hopefully few prototypes,
3444 which can conflict with char $ac_func(); below. */
3446 /* Override any gcc2 internal prototype to avoid an error. */
3447 /* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
3453 /* The GNU C library defines this for functions which it implements
3454 to always fail with ENOSYS. Some functions are actually named
3455 something starting with __ and the normal name is an alias. */
3456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3464 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3466 eval "ac_cv_func_$ac_func=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3471 eval "ac_cv_func_$ac_func=no"
3476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3479 cat >> confdefs.h <<EOF
3480 #define $ac_tr_func 1
3484 echo "$ac_t""no" 1>&6
3488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3489 # for constant arguments. Useless!
3490 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3491 echo "configure:3492: checking for working alloca.h" >&5
3492 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3500 char *p = alloca(2 * sizeof(int));
3503 if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3505 ac_cv_header_alloca_h=yes
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 ac_cv_header_alloca_h=no
3515 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3516 if test $ac_cv_header_alloca_h = yes; then
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_ALLOCA_H 1
3523 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3524 echo "configure:3525: checking for alloca" >&5
3525 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3533 # define alloca __builtin_alloca
3536 # include <malloc.h>
3537 # define alloca _alloca
3540 # include <alloca.h>
3545 # ifndef alloca /* predefined by HP cc +Olibcalls */
3554 char *p = (char *) alloca(1);
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3559 ac_cv_func_alloca_works=yes
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 ac_cv_func_alloca_works=no
3569 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3570 if test $ac_cv_func_alloca_works = yes; then
3571 cat >> confdefs.h <<\EOF
3572 #define HAVE_ALLOCA 1
3577 if test $ac_cv_func_alloca_works = no; then
3578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3579 # that cause trouble. Some versions do not even contain alloca or
3580 # contain a buggy version. If you still want to use their alloca,
3581 # use ar to extract alloca.o from them instead of compiling alloca.c.
3582 ALLOCA=alloca.${ac_objext}
3583 cat >> confdefs.h <<\EOF
3588 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3589 echo "configure:3590: checking whether alloca needs Cray hooks" >&5
3590 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #if defined(CRAY) && ! defined(CRAY2)
3603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3604 egrep "webecray" >/dev/null 2>&1; then
3615 echo "$ac_t""$ac_cv_os_cray" 1>&6
3616 if test $ac_cv_os_cray = yes; then
3617 for ac_func in _getb67 GETB67 getb67; do
3618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3619 echo "configure:3620: checking for $ac_func" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func(); below. */
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3649 eval "ac_cv_func_$ac_func=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3654 eval "ac_cv_func_$ac_func=no"
3659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 cat >> confdefs.h <<EOF
3662 #define CRAY_STACKSEG_END $ac_func
3667 echo "$ac_t""no" 1>&6
3673 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3674 echo "configure:3675: checking stack direction for C alloca" >&5
3675 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 if test "$cross_compiling" = yes; then
3679 ac_cv_c_stack_direction=0
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 find_stack_direction ()
3686 static char *addr = 0;
3691 return find_stack_direction ();
3694 return (&dummy > addr) ? 1 : -1;
3698 exit (find_stack_direction() < 0);
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3703 ac_cv_c_stack_direction=1
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 ac_cv_c_stack_direction=-1
3715 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3716 cat >> confdefs.h <<EOF
3717 #define STACK_DIRECTION $ac_cv_c_stack_direction
3723 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
3724 echo "configure:3725: checking for PTRACE_GETREGS" >&5
3725 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 #include <sys/ptrace.h>
3736 if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3738 gdb_cv_have_ptrace_getregs=yes
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 gdb_cv_have_ptrace_getregs=no
3748 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
3749 if test $gdb_cv_have_ptrace_getregs = yes; then
3750 cat >> confdefs.h <<\EOF
3751 #define HAVE_PTRACE_GETREGS 1
3756 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3757 echo "configure:3758: checking for PTRACE_GETXFPREGS" >&5
3758 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #include <sys/ptrace.h>
3769 if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3771 gdb_cv_have_ptrace_getxfpregs=yes
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3776 gdb_cv_have_ptrace_getxfpregs=no
3781 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3782 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3783 cat >> confdefs.h <<\EOF
3784 #define HAVE_PTRACE_GETXFPREGS 1
3789 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3790 echo "configure:3791: checking for socketpair in -lsocket" >&5
3791 ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 ac_save_LIBS="$LIBS"
3796 LIBS="-lsocket $LIBS"
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* Override any gcc2 internal prototype to avoid an error. */
3801 /* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3811 eval "ac_cv_lib_$ac_lib_var=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3816 eval "ac_cv_lib_$ac_lib_var=no"
3819 LIBS="$ac_save_LIBS"
3822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3825 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3826 cat >> confdefs.h <<EOF
3827 #define $ac_tr_lib 1
3830 LIBS="-lsocket $LIBS"
3833 echo "$ac_t""no" 1>&6
3836 for ac_func in socketpair
3838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3839 echo "configure:3840: checking for $ac_func" >&5
3840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 /* System header to define __stub macros and hopefully few prototypes,
3847 which can conflict with char $ac_func(); below. */
3849 /* Override any gcc2 internal prototype to avoid an error. */
3850 /* We use char because int might match the return type of a gcc2
3851 builtin and then its argument prototype would still apply. */
3856 /* The GNU C library defines this for functions which it implements
3857 to always fail with ENOSYS. Some functions are actually named
3858 something starting with __ and the normal name is an alias. */
3859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3867 if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3869 eval "ac_cv_func_$ac_func=yes"
3871 echo "configure: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3874 eval "ac_cv_func_$ac_func=no"
3879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3880 echo "$ac_t""yes" 1>&6
3881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3882 cat >> confdefs.h <<EOF
3883 #define $ac_tr_func 1
3887 echo "$ac_t""no" 1>&6
3893 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3894 echo "configure:3895: checking whether malloc must be declared" >&5
3895 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3903 #ifdef HAVE_STRING_H
3906 #ifdef HAVE_STRINGS_H
3907 #include <strings.h>
3910 #ifdef HAVE_STDLIB_H
3913 #ifdef HAVE_UNISTD_H
3917 char *(*pfn) = (char *(*)) malloc
3920 if { (eval echo configure:3921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3922 bfd_cv_decl_needed_malloc=no
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3927 bfd_cv_decl_needed_malloc=yes
3932 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3933 if test $bfd_cv_decl_needed_malloc = yes; then
3934 cat >> confdefs.h <<\EOF
3935 #define NEED_DECLARATION_MALLOC 1
3940 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3941 echo "configure:3942: checking whether realloc must be declared" >&5
3942 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3950 #ifdef HAVE_STRING_H
3953 #ifdef HAVE_STRINGS_H
3954 #include <strings.h>
3957 #ifdef HAVE_STDLIB_H
3960 #ifdef HAVE_UNISTD_H
3964 char *(*pfn) = (char *(*)) realloc
3967 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969 bfd_cv_decl_needed_realloc=no
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 bfd_cv_decl_needed_realloc=yes
3979 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3980 if test $bfd_cv_decl_needed_realloc = yes; then
3981 cat >> confdefs.h <<\EOF
3982 #define NEED_DECLARATION_REALLOC 1
3987 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3988 echo "configure:3989: checking whether free must be declared" >&5
3989 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3997 #ifdef HAVE_STRING_H
4000 #ifdef HAVE_STRINGS_H
4001 #include <strings.h>
4004 #ifdef HAVE_STDLIB_H
4007 #ifdef HAVE_UNISTD_H
4011 char *(*pfn) = (char *(*)) free
4014 if { (eval echo configure:4015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 bfd_cv_decl_needed_free=no
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4021 bfd_cv_decl_needed_free=yes
4026 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4027 if test $bfd_cv_decl_needed_free = yes; then
4028 cat >> confdefs.h <<\EOF
4029 #define NEED_DECLARATION_FREE 1
4034 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4035 echo "configure:4036: checking whether strerror must be declared" >&5
4036 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4044 #ifdef HAVE_STRING_H
4047 #ifdef HAVE_STRINGS_H
4048 #include <strings.h>
4051 #ifdef HAVE_STDLIB_H
4054 #ifdef HAVE_UNISTD_H
4058 char *(*pfn) = (char *(*)) strerror
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 bfd_cv_decl_needed_strerror=no
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4068 bfd_cv_decl_needed_strerror=yes
4073 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4074 if test $bfd_cv_decl_needed_strerror = yes; then
4075 cat >> confdefs.h <<\EOF
4076 #define NEED_DECLARATION_STRERROR 1
4081 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4082 echo "configure:4083: checking whether strdup must be declared" >&5
4083 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4091 #ifdef HAVE_STRING_H
4094 #ifdef HAVE_STRINGS_H
4095 #include <strings.h>
4098 #ifdef HAVE_STDLIB_H
4101 #ifdef HAVE_UNISTD_H
4105 char *(*pfn) = (char *(*)) strdup
4108 if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4110 bfd_cv_decl_needed_strdup=no
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 bfd_cv_decl_needed_strdup=yes
4120 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4121 if test $bfd_cv_decl_needed_strdup = yes; then
4122 cat >> confdefs.h <<\EOF
4123 #define NEED_DECLARATION_STRDUP 1
4128 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4129 echo "configure:4130: checking whether strstr must be declared" >&5
4130 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4138 #ifdef HAVE_STRING_H
4141 #ifdef HAVE_STRINGS_H
4142 #include <strings.h>
4145 #ifdef HAVE_STDLIB_H
4148 #ifdef HAVE_UNISTD_H
4152 char *(*pfn) = (char *(*)) strstr
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 bfd_cv_decl_needed_strstr=no
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 bfd_cv_decl_needed_strstr=yes
4167 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4168 if test $bfd_cv_decl_needed_strstr = yes; then
4169 cat >> confdefs.h <<\EOF
4170 #define NEED_DECLARATION_STRSTR 1
4177 # The following save_state_t checkery is only necessary for HPUX
4178 # versions earlier than 10.20. When those fade from memory, this
4179 # could be expunged. --jsm 1999-03-22
4181 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4182 echo "configure:4183: checking for HPUX save_state structure" >&5
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 #include <machine/save_state.h>
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 egrep "save_state_t" >/dev/null 2>&1; then
4191 gdb_cv_hpux_savestate=yes
4194 gdb_cv_hpux_savestate=no
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 #include <machine/save_state.h>
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 egrep "ss_wide" >/dev/null 2>&1; then
4206 gdb_cv_hpux_sswide=yes
4209 gdb_cv_hpux_sswide=no
4213 if test $gdb_cv_hpux_savestate = yes
4215 cat >> confdefs.h <<\EOF
4216 #define HAVE_STRUCT_SAVE_STATE_T 1
4220 if test $gdb_cv_hpux_sswide = yes
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4227 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4230 # If we are configured native on GNU/Linux, work around problems with
4232 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4234 if test "${target}" = "${host}"; then
4237 cat >> confdefs.h <<\EOF
4238 #define START_INFERIOR_TRAPS_EXPECTED 2
4241 cat >> confdefs.h <<\EOF
4242 #define sys_quotactl 1
4246 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
4247 cat >> confdefs.h <<\EOF
4248 #define NEW_PROC_API 1
4252 # FIXME: we would like to define NEW_PROC_API for all versions of
4253 # Solaris from 2.6 on... but it isn't quite working yet. Seems
4254 # to work on sparc 2.6, so let's try it out there.
4255 sparc-sun-solaris2.6)
4256 cat >> confdefs.h <<\EOF
4257 #define NEW_PROC_API 1
4264 if test "$ac_cv_header_sys_procfs_h" = yes; then
4265 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4266 echo "configure:4267: checking for pstatus_t in sys/procfs.h" >&5
4267 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 #include <sys/procfs.h>
4278 if { (eval echo configure:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4280 bfd_cv_have_sys_procfs_type_pstatus_t=yes
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4285 bfd_cv_have_sys_procfs_type_pstatus_t=no
4291 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4292 cat >> confdefs.h <<\EOF
4293 #define HAVE_PSTATUS_T 1
4297 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4299 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4300 echo "configure:4301: checking for prrun_t in sys/procfs.h" >&5
4301 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 #include <sys/procfs.h>
4312 if { (eval echo configure:4313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4314 bfd_cv_have_sys_procfs_type_prrun_t=yes
4316 echo "configure: failed program was:" >&5
4317 cat conftest.$ac_ext >&5
4319 bfd_cv_have_sys_procfs_type_prrun_t=no
4325 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4326 cat >> confdefs.h <<\EOF
4327 #define HAVE_PRRUN_T 1
4331 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4333 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4334 echo "configure:4335: checking for gregset_t in sys/procfs.h" >&5
4335 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <sys/procfs.h>
4346 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 bfd_cv_have_sys_procfs_type_gregset_t=yes
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 bfd_cv_have_sys_procfs_type_gregset_t=no
4359 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4360 cat >> confdefs.h <<\EOF
4361 #define HAVE_GREGSET_T 1
4365 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4367 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4368 echo "configure:4369: checking for fpregset_t in sys/procfs.h" >&5
4369 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 #include <sys/procfs.h>
4380 if { (eval echo configure:4381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4382 bfd_cv_have_sys_procfs_type_fpregset_t=yes
4384 echo "configure: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4387 bfd_cv_have_sys_procfs_type_fpregset_t=no
4393 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4394 cat >> confdefs.h <<\EOF
4395 #define HAVE_FPREGSET_T 1
4399 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4401 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4402 echo "configure:4403: checking for prgregset_t in sys/procfs.h" >&5
4403 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 #include <sys/procfs.h>
4414 if { (eval echo configure:4415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4416 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4421 bfd_cv_have_sys_procfs_type_prgregset_t=no
4427 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4428 cat >> confdefs.h <<\EOF
4429 #define HAVE_PRGREGSET_T 1
4433 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4435 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4436 echo "configure:4437: checking for prfpregset_t in sys/procfs.h" >&5
4437 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 #include <sys/procfs.h>
4448 if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4450 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 bfd_cv_have_sys_procfs_type_prfpregset_t=no
4461 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4462 cat >> confdefs.h <<\EOF
4463 #define HAVE_PRFPREGSET_T 1
4467 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4469 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4470 echo "configure:4471: checking for lwpid_t in sys/procfs.h" >&5
4471 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 #include <sys/procfs.h>
4482 if { (eval echo configure:4483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4484 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4489 bfd_cv_have_sys_procfs_type_lwpid_t=no
4495 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4496 cat >> confdefs.h <<\EOF
4497 #define HAVE_LWPID_T 1
4501 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4503 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4504 echo "configure:4505: checking for psaddr_t in sys/procfs.h" >&5
4505 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 #include <sys/procfs.h>
4516 if { (eval echo configure:4517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4518 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 bfd_cv_have_sys_procfs_type_psaddr_t=no
4529 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4530 cat >> confdefs.h <<\EOF
4531 #define HAVE_PSADDR_T 1
4535 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4539 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4540 echo "configure:4541: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4541 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4548 #include <sys/types.h>
4549 #include <sys/procfs.h>
4554 dummy = ioctl(0, PIOCSET, &dummy);
4558 if { (eval echo configure:4559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4560 gdb_cv_have_procfs_piocset=yes
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4565 gdb_cv_have_procfs_piocset=no
4570 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4571 if test $gdb_cv_have_procfs_piocset = yes; then
4572 cat >> confdefs.h <<\EOF
4573 #define HAVE_PROCFS_PIOCSET 1
4579 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4580 echo "configure:4581: checking for main in -lm" >&5
4581 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4585 ac_save_LIBS="$LIBS"
4587 cat > conftest.$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_lib_$ac_lib_var=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_lib_$ac_lib_var=no"
4605 LIBS="$ac_save_LIBS"
4608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4611 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4612 cat >> confdefs.h <<EOF
4613 #define $ac_tr_lib 1
4619 echo "$ac_t""no" 1>&6
4623 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4624 echo "configure:4625: checking for wctype in -lc" >&5
4625 ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 ac_save_LIBS="$LIBS"
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4645 eval "ac_cv_lib_$ac_lib_var=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 eval "ac_cv_lib_$ac_lib_var=no"
4653 LIBS="$ac_save_LIBS"
4656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4660 echo "$ac_t""no" 1>&6
4661 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4662 echo "configure:4663: checking for wctype in -lw" >&5
4663 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 ac_save_LIBS="$LIBS"
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_lib_$ac_lib_var=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_lib_$ac_lib_var=no"
4691 LIBS="$ac_save_LIBS"
4694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4698 cat >> confdefs.h <<EOF
4699 #define $ac_tr_lib 1
4705 echo "$ac_t""no" 1>&6
4712 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4713 echo "configure:4714: checking for long long support in compiler" >&5
4714 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4723 extern long long foo;
4724 switch (foo & 2) { case 0: return 1; }
4728 if { (eval echo configure:4729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4730 gdb_cv_c_long_long=yes
4732 echo "configure: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4735 gdb_cv_c_long_long=no
4740 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4741 if test $gdb_cv_c_long_long = yes; then
4742 cat >> confdefs.h <<\EOF
4743 #define CC_HAS_LONG_LONG 1
4749 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4750 echo "configure:4751: checking for long long support in printf" >&5
4751 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 if test "$cross_compiling" = yes; then
4755 gdb_cv_printf_has_long_long=no
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4764 l = (l << 16) + 0x0123;
4765 l = (l << 16) + 0x4567;
4766 l = (l << 16) + 0x89ab;
4767 l = (l << 16) + 0xcdef;
4768 sprintf (buf, "0x%016llx", l);
4769 return (strcmp ("0x0123456789abcdef", buf));
4772 if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4774 gdb_cv_printf_has_long_long=yes
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4779 gdb_cv_printf_has_long_long=no
4786 if test $gdb_cv_printf_has_long_long = yes; then
4787 cat >> confdefs.h <<\EOF
4788 #define PRINTF_HAS_LONG_LONG 1
4792 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4795 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4796 echo "configure:4797: checking for long double support in compiler" >&5
4797 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4808 if { (eval echo configure:4809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4810 ac_cv_c_long_double=yes
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4815 ac_cv_c_long_double=no
4820 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4821 if test $ac_cv_c_long_double = yes; then
4822 cat >> confdefs.h <<\EOF
4823 #define HAVE_LONG_DOUBLE 1
4829 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4830 echo "configure:4831: checking for long double support in printf" >&5
4831 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 if test "$cross_compiling" = yes; then
4835 gdb_cv_printf_has_long_double=no
4837 cat > conftest.$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4843 long double f = 3.141592653;
4844 sprintf (buf, "%Lg", f);
4845 return (strncmp ("3.14159", buf, 7));
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4850 gdb_cv_printf_has_long_double=yes
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 gdb_cv_printf_has_long_double=no
4862 if test $gdb_cv_printf_has_long_double = yes; then
4863 cat >> confdefs.h <<\EOF
4864 #define PRINTF_HAS_LONG_DOUBLE 1
4868 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4871 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4872 echo "configure:4873: checking for long double support in scanf" >&5
4873 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 if test "$cross_compiling" = yes; then
4877 gdb_cv_scanf_has_long_double=no
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4884 char *buf = "3.141592653";
4886 sscanf (buf, "%Lg", &f);
4887 return !(f > 3.14159 && f < 3.14160);
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4892 gdb_cv_scanf_has_long_double=yes
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4897 gdb_cv_scanf_has_long_double=no
4904 if test $gdb_cv_scanf_has_long_double = yes; then
4905 cat >> confdefs.h <<\EOF
4906 #define SCANF_HAS_LONG_DOUBLE 1
4910 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4912 for ac_hdr in unistd.h
4914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_hdr" >&5
4917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4926 { (eval echo configure:4927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4928 if test -z "$ac_err"; then
4930 eval "ac_cv_header_$ac_safe=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 eval "ac_cv_header_$ac_safe=no"
4940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4941 echo "$ac_t""yes" 1>&6
4942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4943 cat >> confdefs.h <<EOF
4944 #define $ac_tr_hdr 1
4948 echo "$ac_t""no" 1>&6
4952 for ac_func in getpagesize
4954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4955 echo "configure:4956: checking for $ac_func" >&5
4956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char $ac_func(); below. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4972 /* The GNU C library defines this for functions which it implements
4973 to always fail with ENOSYS. Some functions are actually named
4974 something starting with __ and the normal name is an alias. */
4975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985 eval "ac_cv_func_$ac_func=yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 eval "ac_cv_func_$ac_func=no"
4995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4998 cat >> confdefs.h <<EOF
4999 #define $ac_tr_func 1
5003 echo "$ac_t""no" 1>&6
5007 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5008 echo "configure:5009: checking for working mmap" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 if test "$cross_compiling" = yes; then
5013 ac_cv_func_mmap_fixed_mapped=no
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5019 /* Thanks to Mike Haertel and Jim Avera for this test.
5020 Here is a matrix of mmap possibilities:
5021 mmap private not fixed
5022 mmap private fixed at somewhere currently unmapped
5023 mmap private fixed at somewhere already mapped
5024 mmap shared not fixed
5025 mmap shared fixed at somewhere currently unmapped
5026 mmap shared fixed at somewhere already mapped
5027 For private mappings, we should verify that changes cannot be read()
5028 back from the file, nor mmap's back from the file at a different
5029 address. (There have been systems where private was not correctly
5030 implemented like the infamous i386 svr4.0, and systems where the
5031 VM page cache was not coherent with the filesystem buffer cache
5032 like early versions of FreeBSD and possibly contemporary NetBSD.)
5033 For shared mappings, we should conversely verify that changes get
5034 propogated back to all the places they're supposed to be.
5036 Grep wants private fixed already mapped.
5037 The main things grep needs to know about mmap are:
5038 * does it exist and is it safe to write into the mmap'd area
5039 * how to use it (BSD variants) */
5040 #include <sys/types.h>
5042 #include <sys/mman.h>
5044 /* This mess was copied from the GNU getpagesize.h. */
5045 #ifndef HAVE_GETPAGESIZE
5046 # ifdef HAVE_UNISTD_H
5047 # include <unistd.h>
5050 /* Assume that all systems that can run configure have sys/param.h. */
5051 # ifndef HAVE_SYS_PARAM_H
5052 # define HAVE_SYS_PARAM_H 1
5055 # ifdef _SC_PAGESIZE
5056 # define getpagesize() sysconf(_SC_PAGESIZE)
5057 # else /* no _SC_PAGESIZE */
5058 # ifdef HAVE_SYS_PARAM_H
5059 # include <sys/param.h>
5060 # ifdef EXEC_PAGESIZE
5061 # define getpagesize() EXEC_PAGESIZE
5062 # else /* no EXEC_PAGESIZE */
5064 # define getpagesize() NBPG * CLSIZE
5067 # endif /* no CLSIZE */
5068 # else /* no NBPG */
5070 # define getpagesize() NBPC
5071 # else /* no NBPC */
5073 # define getpagesize() PAGESIZE
5074 # endif /* PAGESIZE */
5075 # endif /* no NBPC */
5076 # endif /* no NBPG */
5077 # endif /* no EXEC_PAGESIZE */
5078 # else /* no HAVE_SYS_PARAM_H */
5079 # define getpagesize() 8192 /* punt totally */
5080 # endif /* no HAVE_SYS_PARAM_H */
5081 # endif /* no _SC_PAGESIZE */
5083 #endif /* no HAVE_GETPAGESIZE */
5086 extern "C" { void *malloc(unsigned); }
5094 char *data, *data2, *data3;
5098 pagesize = getpagesize();
5101 * First, make a file with some known garbage in it.
5103 data = malloc(pagesize);
5106 for (i = 0; i < pagesize; ++i)
5107 *(data + i) = rand();
5109 fd = creat("conftestmmap", 0600);
5112 if (write(fd, data, pagesize) != pagesize)
5117 * Next, try to mmap the file at a fixed address which
5118 * already has something else allocated at it. If we can,
5119 * also make sure that we see the same garbage.
5121 fd = open("conftestmmap", O_RDWR);
5124 data2 = malloc(2 * pagesize);
5127 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5128 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5129 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5131 for (i = 0; i < pagesize; ++i)
5132 if (*(data + i) != *(data2 + i))
5136 * Finally, make sure that changes to the mapped area
5137 * do not percolate back to the file as seen by read().
5138 * (This is a bug on some variants of i386 svr4.0.)
5140 for (i = 0; i < pagesize; ++i)
5141 *(data2 + i) = *(data2 + i) + 1;
5142 data3 = malloc(pagesize);
5145 if (read(fd, data3, pagesize) != pagesize)
5147 for (i = 0; i < pagesize; ++i)
5148 if (*(data + i) != *(data3 + i))
5151 unlink("conftestmmap");
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5158 ac_cv_func_mmap_fixed_mapped=yes
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5163 ac_cv_func_mmap_fixed_mapped=no
5170 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5171 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5172 cat >> confdefs.h <<\EOF
5181 if test ${build} = ${host} -a ${host} = ${target} ; then
5184 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5185 echo "configure:5186: checking for HPUX/OSF thread support" >&5
5186 if test -f /usr/include/dce/cma_config.h ; then
5187 if test "$GCC" = "yes" ; then
5188 echo "$ac_t""yes" 1>&6
5189 cat >> confdefs.h <<\EOF
5190 #define HAVE_HPUX_THREAD_SUPPORT 1
5193 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
5194 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
5196 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5199 echo "$ac_t""no" 1>&6
5203 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5204 echo "configure:5205: checking for Solaris thread debugging library" >&5
5205 if test -f /usr/lib/libthread_db.so.1 ; then
5206 echo "$ac_t""yes" 1>&6
5207 cat >> confdefs.h <<\EOF
5208 #define HAVE_THREAD_DB_LIB 1
5211 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
5212 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
5213 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5214 echo "configure:5215: checking for dlopen in -ldl" >&5
5215 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5219 ac_save_LIBS="$LIBS"
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5235 eval "ac_cv_lib_$ac_lib_var=yes"
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5240 eval "ac_cv_lib_$ac_lib_var=no"
5243 LIBS="$ac_save_LIBS"
5246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5247 echo "$ac_t""yes" 1>&6
5248 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5250 cat >> confdefs.h <<EOF
5251 #define $ac_tr_lib 1
5257 echo "$ac_t""no" 1>&6
5260 if test "$GCC" = "yes" ; then
5261 # The GNU linker requires the -export-dynamic option to make
5262 # all symbols visible in the dynamic symbol table.
5263 hold_ldflags=$LDFLAGS
5264 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5265 echo "configure:5266: checking for the ld -export-dynamic flag" >&5
5266 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5285 LDFLAGS=$hold_ldflags
5286 echo "$ac_t""$found" 1>&6
5287 if test $found = yes; then
5288 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5291 # Sun randomly tweaked the prototypes in <proc_service.h>
5293 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5294 echo "configure:5295: checking if <proc_service.h> is old" >&5
5295 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5303 #include <proc_service.h>
5305 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5311 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313 gdb_cv_proc_service_is_old=no
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 gdb_cv_proc_service_is_old=yes
5324 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5325 if test $gdb_cv_proc_service_is_old = yes; then
5326 cat >> confdefs.h <<\EOF
5327 #define PROC_SERVICE_IS_OLD 1
5332 echo "$ac_t""no" 1>&6
5340 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5341 if test "${enable_gdbmi+set}" = set; then
5342 enableval="$enable_gdbmi"
5344 case "${enable_gdbmi}" in
5346 "") enable_gdbmi=yes ;;
5348 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5354 case ${enable_gdbmi} in
5356 if test -d "${srcdir}/mi" ; then
5357 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5358 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5359 CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5360 CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5361 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5362 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
5363 CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
5364 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5365 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5370 # Check whether --enable-tui or --disable-tui was given.
5371 if test "${enable_tui+set}" = set; then
5372 enableval="$enable_tui"
5374 case "${enable_tui}" in
5376 "") enable_tui=yes ;;
5378 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5384 case ${enable_tui} in
5386 cat >> confdefs.h <<\EOF
5391 TUI_LIBRARY=tui/libtui.a
5401 # Check whether --enable-netrom or --disable-netrom was given.
5402 if test "${enable_netrom+set}" = set; then
5403 enableval="$enable_netrom"
5404 case "${enableval}" in
5405 yes) enable_netrom=yes ;;
5406 no) enable_netrom=no ;;
5407 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5412 if test "${enable_netrom}" = "yes"; then
5413 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
5414 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
5417 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5418 if test "${enable_build_warnings+set}" = set; then
5419 enableval="$enable_build_warnings"
5421 # not yet: -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
5422 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith"
5423 case "${enableval}" in
5425 no) build_warnings="-w";;
5426 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5427 build_warnings="${build_warnings} ${t}";;
5428 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5429 build_warnings="${t} ${build_warnings}";;
5430 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5432 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5433 echo "Setting warning flags = $build_warnings" 6>&1
5437 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5439 # Separate out the -Werror flag as some files just cannot be
5440 # compiled with it enabled.
5441 for w in ${build_warnings}; do
5443 -Werr*) WERROR_CFLAGS=-Werror ;;
5444 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
5460 # Check whether --with-mmalloc or --without-mmalloc was given.
5461 if test "${with_mmalloc+set}" = set; then
5462 withval="$with_mmalloc"
5463 case "${withval}" in
5464 yes) want_mmalloc=true ;;
5465 no) want_mmalloc=false;;
5466 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5472 if test x$want_mmalloc = xtrue; then
5473 cat >> confdefs.h <<\EOF
5474 #define USE_MMALLOC 1
5477 cat >> confdefs.h <<\EOF
5478 #define MMCHECK_FORCE 1
5481 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
5482 MMALLOC='../mmalloc/libmmalloc.a'
5486 # In the Cygwin environment, we need some additional flags.
5487 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5488 echo "configure:5489: checking for cygwin" >&5
5489 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5496 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 egrep "lose" >/dev/null 2>&1; then
5503 gdb_cv_os_cygwin=yes
5512 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5514 DLLTOOL=${DLLTOOL-dlltool}
5515 WINDRES=${WINDRES-windres}
5519 if test x$gdb_host = xgo32; then
5522 if test x$gdb_cv_os_cygwin = xyes; then
5523 TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5526 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5527 echo "configure:5528: checking for tgetent in -lncurses" >&5
5528 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5532 ac_save_LIBS="$LIBS"
5533 LIBS="-lncurses $LIBS"
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5537 /* Override any gcc2 internal prototype to avoid an error. */
5538 /* We use char because int might match the return type of a gcc2
5539 builtin and then its argument prototype would still apply. */
5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5548 eval "ac_cv_lib_$ac_lib_var=yes"
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 eval "ac_cv_lib_$ac_lib_var=no"
5556 LIBS="$ac_save_LIBS"
5559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5563 echo "$ac_t""no" 1>&6
5564 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5565 echo "configure:5566: checking for tgetent in -lHcurses" >&5
5566 ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 ac_save_LIBS="$LIBS"
5571 LIBS="-lHcurses $LIBS"
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5575 /* Override any gcc2 internal prototype to avoid an error. */
5576 /* We use char because int might match the return type of a gcc2
5577 builtin and then its argument prototype would still apply. */
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 eval "ac_cv_lib_$ac_lib_var=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_lib_$ac_lib_var=no"
5594 LIBS="$ac_save_LIBS"
5597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5601 echo "$ac_t""no" 1>&6
5602 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5603 echo "configure:5604: checking for tgetent in -ltermlib" >&5
5604 ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 ac_save_LIBS="$LIBS"
5609 LIBS="-ltermlib $LIBS"
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 eval "ac_cv_lib_$ac_lib_var=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_lib_$ac_lib_var=no"
5632 LIBS="$ac_save_LIBS"
5635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5639 echo "$ac_t""no" 1>&6
5640 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5641 echo "configure:5642: checking for tgetent in -ltermcap" >&5
5642 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5646 ac_save_LIBS="$LIBS"
5647 LIBS="-ltermcap $LIBS"
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5662 eval "ac_cv_lib_$ac_lib_var=yes"
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5667 eval "ac_cv_lib_$ac_lib_var=no"
5670 LIBS="$ac_save_LIBS"
5673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5674 echo "$ac_t""yes" 1>&6
5677 echo "$ac_t""no" 1>&6
5678 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5679 echo "configure:5680: checking for tgetent in -lcurses" >&5
5680 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 ac_save_LIBS="$LIBS"
5685 LIBS="-lcurses $LIBS"
5686 cat > conftest.$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5689 /* Override any gcc2 internal prototype to avoid an error. */
5690 /* We use char because int might match the return type of a gcc2
5691 builtin and then its argument prototype would still apply. */
5698 if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5700 eval "ac_cv_lib_$ac_lib_var=yes"
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5705 eval "ac_cv_lib_$ac_lib_var=no"
5708 LIBS="$ac_save_LIBS"
5711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5715 echo "$ac_t""no" 1>&6
5716 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5717 echo "configure:5718: checking for tgetent in -lterminfo" >&5
5718 ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 ac_save_LIBS="$LIBS"
5723 LIBS="-lterminfo $LIBS"
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 /* Override any gcc2 internal prototype to avoid an error. */
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5736 if { (eval echo configure:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5738 eval "ac_cv_lib_$ac_lib_var=yes"
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5743 eval "ac_cv_lib_$ac_lib_var=no"
5746 LIBS="$ac_save_LIBS"
5749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5750 echo "$ac_t""yes" 1>&6
5753 echo "$ac_t""no" 1>&6
5767 if test "x$TERM_LIB" = x
5769 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5775 # libreadline needs libuser32.a in a cygwin environment
5777 if test x$gdb_cv_os_cygwin = xyes; then
5778 WIN32LIBS="-luser32"
5780 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
5786 LIBGUI="../libgui/src/libgui.a"
5787 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
5791 # Check whether --with-cpu or --without-cpu was given.
5792 if test "${with_cpu+set}" = set; then
5795 powerpc-* | powerpcle-* )
5796 ## It would be nice to keep this table in sync with the one in
5798 case "${with_cpu}" in
5799 ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
5801 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5803 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
5804 ## These are all RS6000 variants, as far as GDB is concerned.
5814 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5820 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5823 cat >> confdefs.h <<EOF
5824 #define TARGET_CPU_DEFAULT "${with_cpu}"
5832 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5833 if test "${enable_gdbtk+set}" = set; then
5834 enableval="$enable_gdbtk"
5835 case "${enableval}" in
5839 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5842 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5850 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5854 # Default is on for everything but go32 and Cygwin
5859 if test -d "${srcdir}/gdbtk" ; then
5875 if test "${enable_gdbtk}" = "yes"; then
5879 # Ok, lets find the tcl configuration
5880 # First, look for one uninstalled.
5881 # the alternative search directory is invoked by --with-tclconfig
5884 if test x"${no_tcl}" = x ; then
5885 # we reset no_tcl in case something fails here
5887 # Check whether --with-tclconfig or --without-tclconfig was given.
5888 if test "${with_tclconfig+set}" = set; then
5889 withval="$with_tclconfig"
5890 with_tclconfig=${withval}
5893 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5894 echo "configure:5895: checking for Tcl configuration" >&5
5895 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5896 echo $ac_n "(cached) $ac_c" 1>&6
5900 # First check to see if --with-tclconfig was specified.
5901 if test x"${with_tclconfig}" != x ; then
5902 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5903 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
5905 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5909 # then check for a private Tcl installation
5910 if test x"${ac_cv_c_tclconfig}" = x ; then
5913 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5915 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5917 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5918 if test -f "$i/${configdir}/tclConfig.sh" ; then
5919 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
5924 # check in a few common install locations
5925 if test x"${ac_cv_c_tclconfig}" = x ; then
5926 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5927 if test -f "$i/tclConfig.sh" ; then
5928 ac_cv_c_tclconfig=`(cd $i; pwd)`
5933 # check in a few other private locations
5934 if test x"${ac_cv_c_tclconfig}" = x ; then
5937 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5938 if test -f "$i/${configdir}/tclConfig.sh" ; then
5939 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
5947 if test x"${ac_cv_c_tclconfig}" = x ; then
5948 TCLCONFIG="# no Tcl configs found"
5949 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5952 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
5953 echo "$ac_t""found $TCLCONFIG" 1>&6
5957 if test -z "${no_tcl}"; then
5987 # Ok, lets find the tk configuration
5988 # First, look for one uninstalled.
5989 # the alternative search directory is invoked by --with-tkconfig
5992 if test x"${no_tk}" = x ; then
5993 # we reset no_tk in case something fails here
5995 # Check whether --with-tkconfig or --without-tkconfig was given.
5996 if test "${with_tkconfig+set}" = set; then
5997 withval="$with_tkconfig"
5998 with_tkconfig=${withval}
6001 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6002 echo "configure:6003: checking for Tk configuration" >&5
6003 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6008 # First check to see if --with-tkconfig was specified.
6009 if test x"${with_tkconfig}" != x ; then
6010 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6011 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
6013 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
6017 # then check for a private Tk library
6018 if test x"${ac_cv_c_tkconfig}" = x ; then
6021 `ls -dr ../tk[4-9]* 2>/dev/null` \
6023 `ls -dr ../../tk[4-9]* 2>/dev/null` \
6025 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
6026 if test -f "$i/${configdir}/tkConfig.sh" ; then
6027 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
6032 # check in a few common install locations
6033 if test x"${ac_cv_c_tkconfig}" = x ; then
6034 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6035 if test -f "$i/tkConfig.sh" ; then
6036 ac_cv_c_tkconfig=`(cd $i; pwd)`
6041 # check in a few other private locations
6042 if test x"${ac_cv_c_tkconfig}" = x ; then
6045 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
6046 if test -f "$i/${configdir}/tkConfig.sh" ; then
6047 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
6055 if test x"${ac_cv_c_tkconfig}" = x ; then
6056 TKCONFIG="# no Tk configs found"
6057 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6060 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
6061 echo "$ac_t""found $TKCONFIG" 1>&6
6067 # If $no_tk is nonempty, then we can't do Tk, and there is no
6068 # point to doing Tcl.
6069 if test -z "${no_tk}"; then
6071 if test -f "$TKCONFIG" ; then
6089 # Ok, lets find the tcl source trees so we can use the headers
6090 # Warning: transition of version 9 to 10 will break this algorithm
6091 # because 10 sorts before 9. We also look for just tcl. We have to
6092 # be careful that we don't match stuff like tclX by accident.
6093 # the alternative search directory is involked by --with-tclinclude
6097 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6098 echo "configure:6099: checking for Tcl private headers. dir=${configdir}" >&5
6099 # Check whether --with-tclinclude or --without-tclinclude was given.
6100 if test "${with_tclinclude+set}" = set; then
6101 withval="$with_tclinclude"
6102 with_tclinclude=${withval}
6105 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6109 # first check to see if --with-tclinclude was specified
6110 if test x"${with_tclinclude}" != x ; then
6111 if test -f ${with_tclinclude}/tclInt.h ; then
6112 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
6113 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
6114 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
6116 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6120 # next check if it came with Tcl configuration file
6121 if test x"${ac_cv_c_tclconfig}" = x ; then
6122 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
6123 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
6127 # next check in private source directory
6129 # since ls returns lowest version numbers first, reverse its output
6130 if test x"${ac_cv_c_tclh}" = x ; then
6133 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6134 ${srcdir}/../../tcl \
6135 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6136 ${srcdir}/../../../tcl \
6137 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6138 if test -f $i/generic/tclInt.h ; then
6139 ac_cv_c_tclh=`(cd $i/generic; pwd)`
6144 # finally check in a few common install locations
6146 # since ls returns lowest version numbers first, reverse its output
6147 if test x"${ac_cv_c_tclh}" = x ; then
6149 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6150 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6151 /usr/local/src/tcl \
6152 /usr/local/lib/tcl \
6153 ${prefix}/include ; do
6154 if test -f $i/generic/tclInt.h ; then
6155 ac_cv_c_tclh=`(cd $i/generic; pwd)`
6160 # see if one is installed
6161 if test x"${ac_cv_c_tclh}" = x ; then
6162 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6163 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6164 echo "configure:6165: checking for tclInt.h" >&5
6165 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6174 { (eval echo configure:6175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6176 if test -z "$ac_err"; then
6178 eval "ac_cv_header_$ac_safe=yes"
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6184 eval "ac_cv_header_$ac_safe=no"
6188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 ac_cv_c_tclh=installed
6192 echo "$ac_t""no" 1>&6
6200 if test x"${ac_cv_c_tclh}" = x ; then
6201 TCLHDIR="# no Tcl private headers found"
6202 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6204 if test x"${ac_cv_c_tclh}" != x ; then
6206 if test x"${ac_cv_c_tclh}" = x"installed" ; then
6207 echo "$ac_t""is installed" 1>&6
6210 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6211 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6212 TCLHDIR="-I${ac_cv_c_tclh}"
6220 # Ok, lets find the tk source trees so we can use the headers
6221 # If the directory (presumably symlink) named "tk" exists, use that one
6222 # in preference to any others. Same logic is used when choosing library
6223 # and again with Tcl. The search order is the best place to look first, then in
6224 # decreasing significance. The loop breaks if the trigger file is found.
6225 # Note the gross little conversion here of srcdir by cd'ing to the found
6226 # directory. This converts the path from a relative to an absolute, so
6227 # recursive cache variables for the path will work right. We check all
6228 # the possible paths in one loop rather than many seperate loops to speed
6230 # the alternative search directory is involked by --with-tkinclude
6233 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6234 echo "configure:6235: checking for Tk private headers" >&5
6235 # Check whether --with-tkinclude or --without-tkinclude was given.
6236 if test "${with_tkinclude+set}" = set; then
6237 withval="$with_tkinclude"
6238 with_tkinclude=${withval}
6241 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6245 # first check to see if --with-tkinclude was specified
6246 if test x"${with_tkinclude}" != x ; then
6247 if test -f ${with_tkinclude}/tk.h ; then
6248 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
6249 elif test -f ${with_tkinclude}/generic/tk.h ; then
6250 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
6252 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6256 # next check if it came with Tk configuration file
6257 if test x"${ac_cv_c_tkconfig}" = x ; then
6258 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
6259 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
6263 # next check in private source directory
6265 # since ls returns lowest version numbers first, reverse its output
6266 if test x"${ac_cv_c_tkh}" = x ; then
6269 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6270 ${srcdir}/../../tk \
6271 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6272 ${srcdir}/../../../tk \
6273 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6274 if test -f $i/generic/tk.h ; then
6275 ac_cv_c_tkh=`(cd $i/generic; pwd)`
6280 # finally check in a few common install locations
6282 # since ls returns lowest version numbers first, reverse its output
6283 if test x"${ac_cv_c_tkh}" = x ; then
6285 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6286 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6289 ${prefix}/include ; do
6290 if test -f $i/generic/tk.h ; then
6291 ac_cv_c_tkh=`(cd $i/generic; pwd)`
6296 # see if one is installed
6297 if test x"${ac_cv_c_tkh}" = x ; then
6298 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
6299 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6300 echo "configure:6301: checking for tk.h" >&5
6301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6310 { (eval echo configure:6311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6312 if test -z "$ac_err"; then
6314 eval "ac_cv_header_$ac_safe=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_header_$ac_safe=no"
6324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6325 echo "$ac_t""yes" 1>&6
6326 ac_cv_c_tkh=installed
6328 echo "$ac_t""no" 1>&6
6336 if test x"${ac_cv_c_tkh}" != x ; then
6338 if test x"${ac_cv_c_tkh}" = x"installed" ; then
6339 echo "$ac_t""is installed" 1>&6
6342 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6343 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6344 TKHDIR="-I${ac_cv_c_tkh}"
6347 TKHDIR="# no Tk directory found"
6348 echo "configure: warning: Can't find Tk private headers" 1>&2
6355 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6356 echo "configure:6357: checking for Itcl private headers. srcdir=${srcdir}" >&5
6357 if test x"${ac_cv_c_itclh}" = x ; then
6358 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
6359 if test -f $i/generic/itcl.h ; then
6360 ac_cv_c_itclh=`(cd $i/generic; pwd)`
6365 if test x"${ac_cv_c_itclh}" = x ; then
6366 ITCLHDIR="# no Itcl private headers found"
6367 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6369 if test x"${ac_cv_c_itclh}" != x ; then
6370 ITCLHDIR="-I${ac_cv_c_itclh}"
6372 # should always be here
6373 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6378 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6379 echo "configure:6380: checking for Itk private headers. srcdir=${srcdir}" >&5
6380 if test x"${ac_cv_c_itkh}" = x ; then
6381 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
6382 if test -f $i/generic/itk.h ; then
6383 ac_cv_c_itkh=`(cd $i/generic; pwd)`
6388 if test x"${ac_cv_c_itkh}" = x ; then
6389 ITKHDIR="# no Itk private headers found"
6390 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6392 if test x"${ac_cv_c_itkh}" != x ; then
6393 ITKHDIR="-I${ac_cv_c_itkh}"
6395 # should always be here
6396 # ITKLIB="../itcl/itk/unix/libitk.a"
6401 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6402 echo "configure:6403: checking for Tix private headers. srcdir=${srcdir}" >&5
6403 if test x"${ac_cv_c_tixh}" = x ; then
6404 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
6405 if test -f $i/generic/tix.h ; then
6406 ac_cv_c_tixh=`(cd $i/generic; pwd)`
6411 if test x"${ac_cv_c_tixh}" = x ; then
6412 TIXHDIR="# no Tix private headers found"
6413 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6415 if test x"${ac_cv_c_tixh}" != x ; then
6416 TIXHDIR="-I${ac_cv_c_tixh}"
6421 # now look for Itcl library stuff
6425 # Ok, lets find the itcl configuration
6426 # First, look for one uninstalled.
6427 # the alternative search directory is invoked by --with-itclconfig
6430 if test x"${no_itcl}" = x ; then
6431 # we reset no_itcl in case something fails here
6433 # Check whether --with-itclconfig or --without-itclconfig was given.
6434 if test "${with_itclconfig+set}" = set; then
6435 withval="$with_itclconfig"
6436 with_itclconfig=${withval}
6439 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6440 echo "configure:6441: checking for Itcl configuration" >&5
6441 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6446 # First check to see if --with-itclconfig was specified.
6447 if test x"${with_itclconfig}" != x ; then
6448 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6449 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
6451 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6455 # then check for a private Itcl library
6456 if test x"${ac_cv_c_itclconfig}" = x ; then
6459 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6461 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6463 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6464 if test -f "$i/itclConfig.sh" ; then
6465 ac_cv_c_itclconfig=`(cd $i; pwd)`
6470 # check in a few common install locations
6471 if test x"${ac_cv_c_itclconfig}" = x ; then
6472 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6473 if test -f "$i/itclConfig.sh" ; then
6474 ac_cv_c_itclconfig=`(cd $i; pwd)`
6479 # check in a few other private locations
6480 if test x"${ac_cv_c_itclconfig}" = x ; then
6482 ${srcdir}/../itcl/itcl \
6483 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6484 if test -f "$i/itclConfig.sh" ; then
6485 ac_cv_c_itclconfig=`(cd $i; pwd)`
6493 if test x"${ac_cv_c_itclconfig}" = x ; then
6494 ITCLCONFIG="# no Itcl configs found"
6495 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6498 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
6499 echo "$ac_t""found $ITCLCONFIG" 1>&6
6503 if test -z "${no_itcl}"; then
6505 if test -f "$ITCLCONFIG" ; then
6521 itcldir=../itcl/itcl/win/
6524 itcldir=../itcl/itcl/unix/
6529 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
6530 ITCL_DEPS="${itcldir}${ITCL_LIB_FILE}"
6534 # now look for Itk library stuff
6537 # Ok, lets find the itk configuration
6538 # First, look for one uninstalled.
6539 # the alternative search directory is invoked by --with-itkconfig
6542 if test x"${no_itk}" = x ; then
6543 # we reset no_itk in case something fails here
6545 # Check whether --with-itkconfig or --without-itkconfig was given.
6546 if test "${with_itkconfig+set}" = set; then
6547 withval="$with_itkconfig"
6548 with_itkconfig=${withval}
6551 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6552 echo "configure:6553: checking for Itk configuration" >&5
6553 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6558 # First check to see if --with-itkconfig was specified.
6559 if test x"${with_itkconfig}" != x ; then
6560 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6561 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
6563 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6567 # then check for a private Itk library
6568 if test x"${ac_cv_c_itkconfig}" = x ; then
6571 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6573 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6575 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6576 if test -f "$i/itkConfig.sh" ; then
6577 ac_cv_c_itkconfig=`(cd $i; pwd)`
6582 # check in a few common install locations
6583 if test x"${ac_cv_c_itkconfig}" = x ; then
6584 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6585 if test -f "$i/itkConfig.sh" ; then
6586 ac_cv_c_itkconfig=`(cd $i; pwd)`
6591 # check in a few other private locations
6592 if test x"${ac_cv_c_itkconfig}" = x ; then
6594 ${srcdir}/../itcl/itk \
6595 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6596 if test -f "$i/itkConfig.sh" ; then
6597 ac_cv_c_itkconfig=`(cd $i; pwd)`
6605 if test x"${ac_cv_c_itkconfig}" = x ; then
6606 ITKCONFIG="# no Itk configs found"
6607 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6610 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
6611 echo "$ac_t""found $ITKCONFIG" 1>&6
6616 if test -z "${no_itcl}"; then
6618 if test -f "$ITKCONFIG" ; then
6635 itkdir=../itcl/itk/win/
6638 itkdir=../itcl/itk/unix/
6642 ITKLIB="${ITK_BUILD_LIB_SPEC}"
6643 ITK_DEPS="${itkdir}${ITK_LIB_FILE}"
6646 # now look for Tix library stuff
6649 # Ok, lets find the tix configuration
6650 # First, look for one uninstalled.
6651 # the alternative search directory is invoked by --with-itkconfig
6654 if test x"${no_tix}" = x ; then
6655 # we reset no_tix in case something fails here
6657 # Check whether --with-tixconfig or --without-tixconfig was given.
6658 if test "${with_tixconfig+set}" = set; then
6659 withval="$with_tixconfig"
6660 with_tixconfig=${withval}
6663 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6664 echo "configure:6665: checking for Tix configuration" >&5
6665 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6670 # First check to see if --with-tixconfig was specified.
6671 if test x"${with_tixconfig}" != x ; then
6672 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6673 ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
6675 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6679 # then check for a private Tix library
6680 if test x"${ac_cv_c_tixconfig}" = x ; then
6683 `ls -dr ../tix 2>/dev/null` \
6685 `ls -dr ../../tix 2>/dev/null` \
6687 `ls -dr ../../../tix 2>/dev/null` ; do
6688 echo "**** Looking at $i - with ${configdir}"
6689 if test -f "$i/tixConfig.sh" ; then
6690 ac_cv_c_tixconfig=`(cd $i; pwd)`
6695 # check in a few common install locations
6696 if test x"${ac_cv_c_tixconfig}" = x ; then
6697 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6698 echo "**** Looking at $i"
6699 if test -f "$i/tixConfig.sh" ; then
6700 ac_cv_c_tixconfig=`(cd $i; pwd)`
6705 # check in a few other private locations
6706 echo "**** Other private locations"
6707 if test x"${ac_cv_c_tixconfig}" = x ; then
6710 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6711 echo "**** Looking at $i - with ${configdir}"
6712 if test -f "$i/${configdir}/tixConfig.sh" ; then
6713 ac_cv_c_tixconfig=`(cd $i/${configdir}; pwd)`
6721 if test x"${ac_cv_c_tixconfig}" = x ; then
6722 TIXCONFIG="# no Tix configs found"
6723 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6726 TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
6727 echo "$ac_t""found $TIXCONFIG" 1>&6
6732 if test -z "${no_tix}"; then
6734 if test -f "$TIXCONFIG" ; then
6745 TIXLIB="${TIX_BUILD_LIB_SPEC}"
6746 TIX_DEPS="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6749 ENABLE_CFLAGS="$ENABLE_CFLAGS -DGDBTK"
6750 # Tcl/Tk 8.1 require -fwritable strings. I don't
6751 # know whether 8.2 will or not, but I bet it will.
6752 # I don't have to worry about 7.x since we don't support it.
6754 if test "$GCC" = "yes"; then
6755 if test "$TCL_VERSION" != "8.0" ; then
6756 GDBTK_CFLAGS="-fwritable-strings"
6760 # Include some libraries that Tcl and Tk want.
6761 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6762 CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6763 # Yes, the ordering seems wrong here. But it isn't.
6764 # TK_LIBS is the list of libraries that need to be linked
6765 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6766 # were in LIBS then any link tests after this point would
6767 # try to include things like `$(LIBGUI)', which wouldn't work.
6768 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
6769 CONFIG_SRCS="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6770 CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
6771 CONFIG_INITS="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6772 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
6773 CONFIG_CLEAN="${CONFIG_ALL} \$(SUBDIR_GDBTK_CLEAN)"
6774 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
6775 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
6777 if test x$gdb_cv_os_cygwin = xyes; then
6778 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6779 WIN32LDAPP="-Wl,--subsystem,console"
6780 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
6798 # If we find X, set shell vars x_includes and x_libraries to the
6799 # paths, otherwise set no_x=yes.
6800 # Uses ac_ vars as temps to allow command line to override cache and checks.
6801 # --without-x overrides everything else, but does not touch the cache.
6802 echo $ac_n "checking for X""... $ac_c" 1>&6
6803 echo "configure:6804: checking for X" >&5
6805 # Check whether --with-x or --without-x was given.
6806 if test "${with_x+set}" = set; then
6811 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6812 if test "x$with_x" = xno; then
6813 # The user explicitly disabled X.
6816 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6817 # Both variables are already set.
6820 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6823 # One or both of the vars are not set, and there is no cached value.
6824 ac_x_includes=NO ac_x_libraries=NO
6826 if mkdir conftestdir; then
6828 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6829 cat > Imakefile <<'EOF'
6831 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6833 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6834 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6835 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6836 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6837 for ac_extension in a so sl; do
6838 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6839 test -f $ac_im_libdir/libX11.$ac_extension; then
6840 ac_im_usrlibdir=$ac_im_libdir; break
6843 # Screen out bogus values from the imake configuration. They are
6844 # bogus both because they are the default anyway, and because
6845 # using them would break gcc on systems where it needs fixed includes.
6846 case "$ac_im_incroot" in
6848 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6850 case "$ac_im_usrlibdir" in
6852 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6859 if test "$ac_x_includes" = NO; then
6860 # Guess where to find include files, by looking for this one X11 .h file.
6861 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6863 # First, try using that file with no special directory specified.
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 #include <$x_direct_test_include>
6869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6870 { (eval echo configure:6871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6872 if test -z "$ac_err"; then
6874 # We can compile using X headers with no special include directory.
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 # Look for the header file in a standard set of common directories.
6882 # Check X11 before X11Rn because it is often a symlink to the current release.
6885 /usr/X11R6/include \
6886 /usr/X11R5/include \
6887 /usr/X11R4/include \
6890 /usr/include/X11R6 \
6891 /usr/include/X11R5 \
6892 /usr/include/X11R4 \
6894 /usr/local/X11/include \
6895 /usr/local/X11R6/include \
6896 /usr/local/X11R5/include \
6897 /usr/local/X11R4/include \
6899 /usr/local/include/X11 \
6900 /usr/local/include/X11R6 \
6901 /usr/local/include/X11R5 \
6902 /usr/local/include/X11R4 \
6906 /usr/XFree86/include/X11 \
6909 /usr/local/include \
6910 /usr/unsupported/include \
6911 /usr/athena/include \
6912 /usr/local/x11r5/include \
6913 /usr/lpp/Xamples/include \
6915 /usr/openwin/include \
6916 /usr/openwin/share/include \
6919 if test -r "$ac_dir/$x_direct_test_include"; then
6920 ac_x_includes=$ac_dir
6926 fi # $ac_x_includes = NO
6928 if test "$ac_x_libraries" = NO; then
6929 # Check for the libraries.
6931 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6932 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6934 # See if we find them without any special options.
6935 # Don't add to $LIBS permanently.
6936 ac_save_LIBS="$LIBS"
6937 LIBS="-l$x_direct_test_library $LIBS"
6938 cat > conftest.$ac_ext <<EOF
6939 #line 6940 "configure"
6940 #include "confdefs.h"
6943 ${x_direct_test_function}()
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6948 LIBS="$ac_save_LIBS"
6949 # We can link X programs with no special library path.
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6955 LIBS="$ac_save_LIBS"
6956 # First see if replacing the include by lib works.
6957 # Check X11 before X11Rn because it is often a symlink to the current release.
6958 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6969 /usr/local/X11/lib \
6970 /usr/local/X11R6/lib \
6971 /usr/local/X11R5/lib \
6972 /usr/local/X11R4/lib \
6974 /usr/local/lib/X11 \
6975 /usr/local/lib/X11R6 \
6976 /usr/local/lib/X11R5 \
6977 /usr/local/lib/X11R4 \
6981 /usr/XFree86/lib/X11 \
6985 /usr/unsupported/lib \
6987 /usr/local/x11r5/lib \
6988 /usr/lpp/Xamples/lib \
6992 /usr/openwin/share/lib \
6995 for ac_extension in a so sl; do
6996 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6997 ac_x_libraries=$ac_dir
7004 fi # $ac_x_libraries = NO
7006 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7007 # Didn't find X anywhere. Cache the known absence of X.
7008 ac_cv_have_x="have_x=no"
7010 # Record where we found X for the cache.
7011 ac_cv_have_x="have_x=yes \
7012 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7016 eval "$ac_cv_have_x"
7019 if test "$have_x" != yes; then
7020 echo "$ac_t""$have_x" 1>&6
7023 # If each of the values was on the command line, it overrides each guess.
7024 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7025 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7026 # Update the cache value to reflect the command line values.
7027 ac_cv_have_x="have_x=yes \
7028 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7029 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7034 # Unlike the sim directory, whether a simulator is linked is controlled by
7035 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7036 # This code just checks for a few cases where we'd like to ignore those
7037 # definitions, even when they're present in the '.mt' file. These cases
7038 # are when --disable-sim is specified, or if the simulator directory is
7039 # not part of the soruce tree.
7041 # Check whether --enable-sim or --disable-sim was given.
7042 if test "${enable_sim+set}" = set; then
7043 enableval="$enable_sim"
7044 echo "enable_sim = $enable_sim";
7045 echo "enableval = ${enableval}";
7046 case "${enableval}" in
7047 yes) ignore_sim=false ;;
7048 no) ignore_sim=true ;;
7049 *) ignore_sim=false ;;
7056 if test ! -d "${srcdir}/../sim"; then
7060 if test "${ignore_sim}" = "true"; then
7062 IGNORE_SIM_OBS="SIM_OBS="
7066 cat >> confdefs.h <<\EOF
7085 # Begin stuff to support --enable-shared
7086 # Check whether --enable-shared or --disable-shared was given.
7087 if test "${enable_shared+set}" = set; then
7088 enableval="$enable_shared"
7089 case "${enableval}" in
7098 # If we have shared libraries, try to set rpath reasonably.
7099 if test "${shared}" = "true"; then
7102 HLDFLAGS='-Wl,+s,+b,$(libdir)'
7104 *-*-irix5* | *-*-irix6*)
7105 HLDFLAGS='-Wl,-rpath,$(libdir)'
7109 *-*-linux* | *-pc-linux-gnu)
7110 HLDFLAGS='-Wl,-rpath,$(libdir)'
7113 HLDFLAGS='-R $(libdir)'
7116 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;'
7121 # On SunOS, if the linker supports the -rpath option, use it to
7122 # prevent ../bfd and ../opcodes from being included in the run time
7126 echo 'main () { }' > conftest.c
7127 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
7128 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
7130 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
7132 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
7134 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
7136 elif test "${shared}" = "true"; then
7137 HLDFLAGS='-Wl,-rpath=$(libdir)'
7139 HLDFLAGS='-Wl,-rpath='
7141 rm -f conftest.t conftest.c conftest
7146 # End stuff to support --enable-shared
7148 # target_subdir is used by the testsuite to find the target libraries.
7150 if test "${host}" != "${target}"; then
7151 target_subdir="${target_alias}/"
7156 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7157 if test ! -f ${host_makefile_frag}; then
7158 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
7160 frags="$frags $host_makefile_frag"
7162 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7163 if test ! -f ${target_makefile_frag}; then
7164 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
7166 frags="$frags $target_makefile_frag"
7173 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7174 ' ${host_makefile_frag}`
7176 targetfile=`sed -n '
7177 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7178 ' ${target_makefile_frag}`
7180 # these really aren't orthogonal true/false values of the same condition,
7181 # but shells are slow enough that I like to reuse the test conditions
7183 if test "${target}" = "${host}"; then
7184 nativefile=`sed -n '
7185 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7186 ' ${host_makefile_frag}`
7188 # GDBserver is only useful in a "native" enviroment
7189 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7193 SUBDIRS="doc testsuite nlm"
7194 if test "${enable_multi_ice}" = "yes"; then
7195 SUBDIRS="${SUBDIRS} multi-ice"
7200 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7201 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7202 # corresponding links. But we have to remove the xm.h files and tm.h
7203 # files anyway, e.g. when switching from "configure host" to
7209 if test "${hostfile}" != ""; then
7210 files="${files} config/${gdb_host_cpu}/${hostfile}"
7211 links="${links} xm.h"
7214 if test "${targetfile}" != ""; then
7215 files="${files} config/${gdb_target_cpu}/${targetfile}"
7216 links="${links} tm.h"
7219 if test "${nativefile}" != ""; then
7220 files="${files} config/${gdb_host_cpu}/${nativefile}"
7221 links="${links} nm.h"
7223 # A cross-only configuration.
7224 files="${files} config/nm-empty.h"
7225 links="${links} nm.h"
7227 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7228 echo "configure:7229: checking whether ln -s works" >&5
7229 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7233 if ln -s X conftestdata 2>/dev/null
7236 ac_cv_prog_LN_S="ln -s"
7241 LN_S="$ac_cv_prog_LN_S"
7242 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7243 echo "$ac_t""yes" 1>&6
7245 echo "$ac_t""no" 1>&6
7251 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7252 echo "configure:7253: checking for Cygwin environment" >&5
7253 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7254 echo $ac_n "(cached) $ac_c" 1>&6
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7263 #define __CYGWIN__ __CYGWIN32__
7268 if { (eval echo configure:7269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7272 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7281 echo "$ac_t""$ac_cv_cygwin" 1>&6
7283 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7284 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7285 echo "configure:7286: checking for mingw32 environment" >&5
7286 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7297 if { (eval echo configure:7298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7310 echo "$ac_t""$ac_cv_mingw32" 1>&6
7312 test "$ac_cv_mingw32" = yes && MINGW32=yes
7315 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7316 echo "configure:7317: checking for executable suffix" >&5
7317 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7318 echo $ac_n "(cached) $ac_c" 1>&6
7320 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
7324 echo 'int main () { return 0; }' > conftest.$ac_ext
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7327 for file in conftest.*; do
7329 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7330 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7334 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7337 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7342 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7343 echo "$ac_t""${ac_cv_exeext}" 1>&6
7347 subdirs="$configdirs"
7350 cat > confcache <<\EOF
7351 # This file is a shell script that caches the results of configure
7352 # tests run on this system so they can be shared between configure
7353 # scripts and configure runs. It is not useful on other systems.
7354 # If it contains results you don't want to keep, you may remove or edit it.
7356 # By default, configure uses ./config.cache as the cache file,
7357 # creating it if it does not exist already. You can give configure
7358 # the --cache-file=FILE option to use a different cache file; that is
7359 # what configure does when it calls configure scripts in
7360 # subdirectories, so they share the cache.
7361 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7362 # config.status only pays attention to the cache file if you give it the
7363 # --recheck option to rerun configure.
7366 # The following way of writing the cache mishandles newlines in values,
7367 # but we know of no workaround that is simple, portable, and efficient.
7368 # So, don't put newlines in cache variables' values.
7369 # Ultrix sh set writes to stderr and can't be redirected directly,
7370 # and sets the high bit in the cache file unless we assign to the vars.
7372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7374 # `set' does not quote correctly, so add quotes (double-quote substitution
7375 # turns \\\\ into \\, and sed turns \\ into \).
7377 -e "s/'/'\\\\''/g" \
7378 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7381 # `set' quotes correctly as required by POSIX, so do not add quotes.
7382 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7385 if cmp -s $cache_file confcache; then
7388 if test -w $cache_file; then
7389 echo "updating cache $cache_file"
7390 cat confcache > $cache_file
7392 echo "not updating unwritable cache $cache_file"
7397 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7400 # Let make expand exec_prefix.
7401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7403 # Any assignment to VPATH causes Sun make to only execute
7404 # the first set of double-colon rules, so remove it if not needed.
7405 # If there is a colon in the path, we need to keep it.
7406 if test "x$srcdir" = x.; then
7407 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7410 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7412 DEFS=-DHAVE_CONFIG_H
7414 # Without the "./", some shells look in PATH for config.status.
7415 : ${CONFIG_STATUS=./config.status}
7417 echo creating $CONFIG_STATUS
7418 rm -f $CONFIG_STATUS
7419 cat > $CONFIG_STATUS <<EOF
7421 # Generated automatically by configure.
7422 # Run this file to recreate the current configuration.
7423 # This directory was configured as follows,
7424 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7426 # $0 $ac_configure_args
7428 # Compiler output produced by configure, useful for debugging
7429 # configure, is in ./config.log if it exists.
7431 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7434 case "\$ac_option" in
7435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7436 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7437 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7438 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7439 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7441 -help | --help | --hel | --he | --h)
7442 echo "\$ac_cs_usage"; exit 0 ;;
7443 *) echo "\$ac_cs_usage"; exit 1 ;;
7447 ac_given_srcdir=$srcdir
7448 ac_given_INSTALL="$INSTALL"
7450 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7452 cat >> $CONFIG_STATUS <<EOF
7454 # Protect against being on the right side of a sed subst in config.status.
7455 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7456 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7460 s%@CFLAGS@%$CFLAGS%g
7461 s%@CPPFLAGS@%$CPPFLAGS%g
7462 s%@CXXFLAGS@%$CXXFLAGS%g
7463 s%@FFLAGS@%$FFLAGS%g
7465 s%@LDFLAGS@%$LDFLAGS%g
7467 s%@exec_prefix@%$exec_prefix%g
7468 s%@prefix@%$prefix%g
7469 s%@program_transform_name@%$program_transform_name%g
7470 s%@bindir@%$bindir%g
7471 s%@sbindir@%$sbindir%g
7472 s%@libexecdir@%$libexecdir%g
7473 s%@datadir@%$datadir%g
7474 s%@sysconfdir@%$sysconfdir%g
7475 s%@sharedstatedir@%$sharedstatedir%g
7476 s%@localstatedir@%$localstatedir%g
7477 s%@libdir@%$libdir%g
7478 s%@includedir@%$includedir%g
7479 s%@oldincludedir@%$oldincludedir%g
7480 s%@infodir@%$infodir%g
7481 s%@mandir@%$mandir%g
7485 s%@host_alias@%$host_alias%g
7486 s%@host_cpu@%$host_cpu%g
7487 s%@host_vendor@%$host_vendor%g
7488 s%@host_os@%$host_os%g
7489 s%@target@%$target%g
7490 s%@target_alias@%$target_alias%g
7491 s%@target_cpu@%$target_cpu%g
7492 s%@target_vendor@%$target_vendor%g
7493 s%@target_os@%$target_os%g
7495 s%@build_alias@%$build_alias%g
7496 s%@build_cpu@%$build_cpu%g
7497 s%@build_vendor@%$build_vendor%g
7498 s%@build_os@%$build_os%g
7499 s%@SET_MAKE@%$SET_MAKE%g
7500 s%@RANLIB@%$RANLIB%g
7501 s%@ALLOCA@%$ALLOCA%g
7502 s%@USE_NLS@%$USE_NLS%g
7503 s%@MSGFMT@%$MSGFMT%g
7504 s%@GMSGFMT@%$GMSGFMT%g
7505 s%@XGETTEXT@%$XGETTEXT%g
7506 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7507 s%@CATALOGS@%$CATALOGS%g
7508 s%@CATOBJEXT@%$CATOBJEXT%g
7509 s%@DATADIRNAME@%$DATADIRNAME%g
7510 s%@GMOFILES@%$GMOFILES%g
7511 s%@INSTOBJEXT@%$INSTOBJEXT%g
7512 s%@INTLDEPS@%$INTLDEPS%g
7513 s%@INTLLIBS@%$INTLLIBS%g
7514 s%@INTLOBJS@%$INTLOBJS%g
7515 s%@POFILES@%$POFILES%g
7517 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7519 s%@GT_YES@%$GT_YES%g
7520 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7523 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7524 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7525 s%@INSTALL_DATA@%$INSTALL_DATA%g
7529 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7530 s%@BUILD_TUI@%$BUILD_TUI%g
7531 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7532 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7533 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7534 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7535 s%@MMALLOC@%$MMALLOC%g
7536 s%@DLLTOOL@%$DLLTOOL%g
7537 s%@WINDRES@%$WINDRES%g
7538 s%@TERM_LIB@%$TERM_LIB%g
7539 s%@WIN32LIBS@%$WIN32LIBS%g
7540 s%@LIBGUI@%$LIBGUI%g
7541 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7542 s%@WIN32LDAPP@%$WIN32LDAPP%g
7543 s%@TCL_VERSION@%$TCL_VERSION%g
7544 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7545 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7546 s%@TCL_CC@%$TCL_CC%g
7547 s%@TCL_DEFS@%$TCL_DEFS%g
7548 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7549 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7550 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7551 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7552 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7553 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7554 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7555 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7556 s%@TCL_RANLIB@%$TCL_RANLIB%g
7557 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7558 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7559 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7560 s%@TK_VERSION@%$TK_VERSION%g
7561 s%@TK_DEFS@%$TK_DEFS%g
7562 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7563 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7564 s%@TK_XLIBSW@%$TK_XLIBSW%g
7565 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7566 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7567 s%@TCLHDIR@%$TCLHDIR%g
7568 s%@TKHDIR@%$TKHDIR%g
7569 s%@ITCLHDIR@%$ITCLHDIR%g
7570 s%@ITKHDIR@%$ITKHDIR%g
7571 s%@TIXHDIR@%$TIXHDIR%g
7572 s%@ITCL_VERSION@%$ITCL_VERSION%g
7573 s%@ITCL_DEFS@%$ITCL_DEFS%g
7574 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7575 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7576 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7577 s%@ITK_VERSION@%$ITK_VERSION%g
7578 s%@ITK_DEFS@%$ITK_DEFS%g
7579 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7580 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7581 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7582 s%@TIX_VERSION@%$TIX_VERSION%g
7583 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7584 s%@X_CFLAGS@%$X_CFLAGS%g
7585 s%@X_LDFLAGS@%$X_LDFLAGS%g
7586 s%@X_LIBS@%$X_LIBS%g
7587 s%@ITCLLIB@%$ITCLLIB%g
7588 s%@ITCL_DEPS@%$ITCL_DEPS%g
7589 s%@ITKLIB@%$ITKLIB%g
7590 s%@ITK_DEPS@%$ITK_DEPS%g
7591 s%@TIXLIB@%$TIXLIB%g
7592 s%@TIX_DEPS@%$TIX_DEPS%g
7593 s%@GDBTKLIBS@%$GDBTKLIBS%g
7594 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7595 s%@IGNORE_SIM@%$IGNORE_SIM%g
7596 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7597 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7598 s%@CONFIG_OBS@%$CONFIG_OBS%g
7599 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7600 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7601 s%@CONFIG_INITS@%$CONFIG_INITS%g
7602 s%@CONFIG_ALL@%$CONFIG_ALL%g
7603 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
7604 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
7605 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
7606 s%@HLDFLAGS@%$HLDFLAGS%g
7607 s%@HLDENV@%$HLDENV%g
7608 s%@target_subdir@%$target_subdir%g
7609 /@host_makefile_frag@/r $host_makefile_frag
7610 s%@host_makefile_frag@%%g
7611 /@target_makefile_frag@/r $target_makefile_frag
7612 s%@target_makefile_frag@%%g
7614 s%@SUBDIRS@%$SUBDIRS%g
7616 s%@EXEEXT@%$EXEEXT%g
7617 s%@subdirs@%$subdirs%g
7622 cat >> $CONFIG_STATUS <<\EOF
7624 # Split the substitutions into bite-sized pieces for seds with
7625 # small command number limits, like on Digital OSF/1 and HP-UX.
7626 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7627 ac_file=1 # Number of current file.
7628 ac_beg=1 # First line for current file.
7629 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7632 while $ac_more_lines; do
7633 if test $ac_beg -gt 1; then
7634 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7636 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7638 if test ! -s conftest.s$ac_file; then
7640 rm -f conftest.s$ac_file
7642 if test -z "$ac_sed_cmds"; then
7643 ac_sed_cmds="sed -f conftest.s$ac_file"
7645 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7647 ac_file=`expr $ac_file + 1`
7649 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7652 if test -z "$ac_sed_cmds"; then
7657 cat >> $CONFIG_STATUS <<EOF
7659 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7661 cat >> $CONFIG_STATUS <<\EOF
7662 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7667 *) ac_file_in="${ac_file}.in" ;;
7670 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7672 # Remove last slash and all that follows it. Not all systems have dirname.
7673 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7675 # The file is in a subdirectory.
7676 test ! -d "$ac_dir" && mkdir "$ac_dir"
7677 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7678 # A "../" for each directory in $ac_dir_suffix.
7679 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7681 ac_dir_suffix= ac_dots=
7684 case "$ac_given_srcdir" in
7686 if test -z "$ac_dots"; then top_srcdir=.
7687 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7688 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7690 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7691 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7694 case "$ac_given_INSTALL" in
7695 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7696 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7699 echo creating "$ac_file"
7701 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7703 *Makefile*) ac_comsub="1i\\
7704 # $configure_input" ;;
7708 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7710 s%@configure_input@%$configure_input%g
7711 s%@srcdir@%$srcdir%g
7712 s%@top_srcdir@%$top_srcdir%g
7713 s%@INSTALL@%$INSTALL%g
7714 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7718 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7719 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7721 # ac_d sets the value in "#define NAME VALUE" lines.
7722 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7723 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7726 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7727 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7728 ac_uB='\([ ]\)%\1#\2define\3'
7731 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7732 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7733 ac_eB='$%\1#\2define\3'
7737 if test "${CONFIG_HEADERS+set}" != set; then
7739 cat >> $CONFIG_STATUS <<EOF
7740 CONFIG_HEADERS="config.h:config.in"
7742 cat >> $CONFIG_STATUS <<\EOF
7744 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7747 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7748 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7749 *) ac_file_in="${ac_file}.in" ;;
7752 echo creating $ac_file
7754 rm -f conftest.frag conftest.in conftest.out
7755 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7756 cat $ac_file_inputs > conftest.in
7760 # Transform confdefs.h into a sed script conftest.vals that substitutes
7761 # the proper values into config.h.in to produce config.h. And first:
7762 # Protect against being on the right side of a sed subst in config.status.
7763 # Protect against being in an unquoted here document in config.status.
7765 cat > conftest.hdr <<\EOF
7768 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7772 sed -n -f conftest.hdr confdefs.h > conftest.vals
7775 # This sed command replaces #undef with comments. This is necessary, for
7776 # example, in the case of _POSIX_SOURCE, which is predefined and required
7777 # on some systems where configure will not decide to define it.
7778 cat >> conftest.vals <<\EOF
7779 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7782 # Break up conftest.vals because some shells have a limit on
7783 # the size of here documents, and old seds have small limits too.
7788 ac_lines=`grep -c . conftest.vals`
7789 # grep -c gives empty output for an empty file on some AIX systems.
7790 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7791 # Write a limited-size here document to conftest.frag.
7792 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7793 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7795 sed -f conftest.frag conftest.in > conftest.out
7797 mv conftest.out conftest.in
7799 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7801 mv conftest.tail conftest.vals
7805 cat >> $CONFIG_STATUS <<\EOF
7806 rm -f conftest.frag conftest.h
7807 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7808 cat conftest.in >> conftest.h
7810 if cmp -s $ac_file conftest.h 2>/dev/null; then
7811 echo "$ac_file is unchanged"
7814 # Remove last slash and all that follows it. Not all systems have dirname.
7815 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7816 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7817 # The file is in a subdirectory.
7818 test ! -d "$ac_dir" && mkdir "$ac_dir"
7821 mv conftest.h $ac_file
7827 cat >> $CONFIG_STATUS <<EOF
7832 cat >> $CONFIG_STATUS <<\EOF
7833 srcdir=$ac_given_srcdir
7834 while test -n "$ac_sources"; do
7835 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7836 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7838 echo "linking $srcdir/$ac_source to $ac_dest"
7840 if test ! -r $srcdir/$ac_source; then
7841 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7845 # Make relative symlinks.
7846 # Remove last slash and all that follows it. Not all systems have dirname.
7847 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7848 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7849 # The dest file is in a subdirectory.
7850 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7851 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7852 # A "../" for each directory in $ac_dest_dir_suffix.
7853 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7855 ac_dest_dir_suffix= ac_dots=
7859 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7860 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7863 # Make a symlink if possible; otherwise try a hard link.
7864 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7865 ln $srcdir/$ac_source $ac_dest; then :
7867 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7871 cat >> $CONFIG_STATUS <<EOF
7873 gdb_host_cpu=$gdb_host_cpu
7874 gdb_target_cpu=$gdb_target_cpu
7875 nativefile=$nativefile
7878 cat >> $CONFIG_STATUS <<\EOF
7880 if test "${nativefile}" = ""; then
7881 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7882 < Makefile > Makefile.tem
7883 mv -f Makefile.tem Makefile
7886 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7887 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7888 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7889 mv -f Makefile.tmp Makefile
7892 case x$CONFIG_HEADERS in
7893 xconfig.h:config.in)
7899 chmod +x $CONFIG_STATUS
7900 rm -fr confdefs* $ac_clean_files
7901 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7903 if test "$no_recursion" != yes; then
7905 # Remove --cache-file and --srcdir arguments so they do not pile up.
7906 ac_sub_configure_args=
7908 for ac_arg in $ac_configure_args; do
7909 if test -n "$ac_prev"; then
7914 -cache-file | --cache-file | --cache-fil | --cache-fi \
7915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7916 ac_prev=cache_file ;;
7917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7920 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7922 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7924 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7928 for ac_config_dir in $configdirs; do
7930 # Do not complain, so a configure script can configure whichever
7931 # parts of a large source tree are present.
7932 if test ! -d $srcdir/$ac_config_dir; then
7936 echo configuring in $ac_config_dir
7941 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7943 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7951 # A "../" for each directory in /$ac_config_dir.
7952 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7955 .) # No --srcdir option. We are building in place.
7956 ac_sub_srcdir=$srcdir ;;
7957 /*) # Absolute path.
7958 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7960 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7963 # Check for guested configure; otherwise get Cygnus style configure.
7964 if test -f $ac_sub_srcdir/configure; then
7965 ac_sub_configure=$ac_sub_srcdir/configure
7966 elif test -f $ac_sub_srcdir/configure.in; then
7967 ac_sub_configure=$ac_configure
7969 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7973 # The recursion is here.
7974 if test -n "$ac_sub_configure"; then
7976 # Make the cache file name correct relative to the subdirectory.
7977 case "$cache_file" in
7978 /*) ac_sub_cache_file=$cache_file ;;
7980 ac_sub_cache_file="$ac_dots$cache_file" ;;
7982 case "$ac_given_INSTALL" in
7983 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7984 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7987 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7988 # The eval makes quoting arguments work.
7989 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7992 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }