3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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"
21 --enable-build-warnings Enable compiler warnings if gcc is used"
23 --with-mmalloc Use memory mapped malloc package"
25 --enable-carp Configure alternative readaptive paradigm "
27 --enable-targets alternative target configurations"
29 --enable-ide Enable IDE support"
31 --with-foundry-libs=DIR Use the Foundry SDK in DIR"
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-x use the X Window System"
45 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
47 --with-sim-funit=DIR Use target FP lib under given DIR"
49 --enable-shared Use shared libraries"
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
55 cache_file=./config.cache
64 program_transform_name=s,x,x,
72 bindir='${exec_prefix}/bin'
73 sbindir='${exec_prefix}/sbin'
74 libexecdir='${exec_prefix}/libexec'
75 datadir='${prefix}/share'
76 sysconfdir='${prefix}/etc'
77 sharedstatedir='${prefix}/com'
78 localstatedir='${prefix}/var'
79 libdir='${exec_prefix}/lib'
80 includedir='${prefix}/include'
81 oldincludedir='/usr/include'
82 infodir='${prefix}/info'
83 mandir='${prefix}/man'
85 # Initialize some other variables.
88 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108 # Accept the important Cygnus configure options, so we can diagnose typos.
112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
117 -build | --build | --buil | --bui | --bu)
119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120 build="$ac_optarg" ;;
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124 ac_prev=cache_file ;;
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127 cache_file="$ac_optarg" ;;
129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 datadir="$ac_optarg" ;;
135 -disable-* | --disable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}=no" ;;
144 -enable-* | --enable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159 | --exec | --exe | --ex)
160 ac_prev=exec_prefix ;;
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163 | --exec=* | --exe=* | --ex=*)
164 exec_prefix="$ac_optarg" ;;
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
170 -help | --help | --hel | --he)
171 # Omit some internal or obsolete options to make the list less imposing.
172 # This message is too long to be a string in the A/UX 3.1 sh.
174 Usage: configure [options] [host]
175 Options: [defaults in brackets after descriptions]
177 --cache-file=FILE cache test results in FILE
178 --help print this message
179 --no-create do not create output files
180 --quiet, --silent do not print \`checking...' messages
181 --version print the version of autoconf that created configure
182 Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212 Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
225 -host | --host | --hos | --ho)
227 -host=* | --host=* | --hos=* | --ho=*)
230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
242 -libdir | --libdir | --libdi | --libd)
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
269 # Obsolete; use --without-fp.
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333 sbindir="$ac_optarg" ;;
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344 sharedstatedir="$ac_optarg" ;;
346 -site | --site | --sit)
348 -site=* | --site=* | --sit=*)
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.12.2"
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=main.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='\c' ac_t=
562 # Extract the first word of "gcc", so it can be a program name with args.
563 set dummy gcc; ac_word=$2
564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
565 echo "configure:566: checking for $ac_word" >&5
566 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
569 if test -n "$CC"; then
570 ac_cv_prog_CC="$CC" # Let the user override the test.
572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
573 for ac_dir in $PATH; do
574 test -z "$ac_dir" && ac_dir=.
575 if test -f $ac_dir/$ac_word; then
584 if test -n "$CC"; then
585 echo "$ac_t""$CC" 1>&6
587 echo "$ac_t""no" 1>&6
590 if test -z "$CC"; then
591 # Extract the first word of "cc", so it can be a program name with args.
592 set dummy cc; ac_word=$2
593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
594 echo "configure:595: checking for $ac_word" >&5
595 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
596 echo $ac_n "(cached) $ac_c" 1>&6
598 if test -n "$CC"; then
599 ac_cv_prog_CC="$CC" # Let the user override the test.
601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
603 for ac_dir in $PATH; do
604 test -z "$ac_dir" && ac_dir=.
605 if test -f $ac_dir/$ac_word; then
606 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
615 if test $ac_prog_rejected = yes; then
616 # We found a bogon in the path, so make sure we never use it.
617 set dummy $ac_cv_prog_CC
619 if test $# -gt 0; then
620 # We chose a different compiler from the bogus one.
621 # However, it has the same basename, so the bogon will be chosen
622 # first if we set CC to just the basename; use the full file name.
624 set dummy "$ac_dir/$ac_word" "$@"
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
635 echo "$ac_t""no" 1>&6
638 if test -z "$CC"; then
641 # Extract the first word of "cl", so it can be a program name with args.
642 set dummy cl; ac_word=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC="$CC" # Let the user override the test.
651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
652 for ac_dir in $PATH; do
653 test -z "$ac_dir" && ac_dir=.
654 if test -f $ac_dir/$ac_word; then
663 if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
666 echo "$ac_t""no" 1>&6
671 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
674 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
675 echo "configure:676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
684 cat > conftest.$ac_ext <<EOF
685 #line 686 "configure"
686 #include "confdefs.h"
689 if { (eval echo configure:690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
690 ac_cv_prog_cc_works=yes
691 # If we can't run a trivial program, we are probably using a cross compiler.
692 if (./conftest; exit) 2>/dev/null; then
693 ac_cv_prog_cc_cross=no
695 ac_cv_prog_cc_cross=yes
698 echo "configure: failed program was:" >&5
699 cat conftest.$ac_ext >&5
700 ac_cv_prog_cc_works=no
704 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
705 if test $ac_cv_prog_cc_works = no; then
706 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
708 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
709 echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
710 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
711 cross_compiling=$ac_cv_prog_cc_cross
713 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
714 echo "configure:715: checking whether we are using GNU C" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
718 cat > conftest.c <<EOF
723 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
730 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
732 if test $ac_cv_prog_gcc = yes; then
738 ac_test_CFLAGS="${CFLAGS+set}"
739 ac_save_CFLAGS="$CFLAGS"
741 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
742 echo "configure:743: checking whether ${CC-cc} accepts -g" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 echo 'void f(){}' > conftest.c
747 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
756 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
757 if test "$ac_test_CFLAGS" = set; then
758 CFLAGS="$ac_save_CFLAGS"
759 elif test $ac_cv_prog_cc_g = yes; then
760 if test "$GCC" = yes; then
766 if test "$GCC" = yes; then
773 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
774 echo "configure:775: checking how to run the C preprocessor" >&5
775 # On Suns, sometimes $CPP names a directory.
776 if test -n "$CPP" && test -d "$CPP"; then
779 if test -z "$CPP"; then
780 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 # This must be in double quotes, not single quotes, because CPP may get
784 # substituted into the Makefile and "${CC-cc}" will confuse make.
786 # On the NeXT, cc -E runs the code through the compiler's parser,
787 # not just through cpp.
788 cat > conftest.$ac_ext <<EOF
789 #line 790 "configure"
790 #include "confdefs.h"
794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
795 { (eval echo configure:796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
797 if test -z "$ac_err"; then
801 echo "configure: failed program was:" >&5
802 cat conftest.$ac_ext >&5
804 CPP="${CC-cc} -E -traditional-cpp"
805 cat > conftest.$ac_ext <<EOF
806 #line 807 "configure"
807 #include "confdefs.h"
811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
812 { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
814 if test -z "$ac_err"; then
818 echo "configure: failed program was:" >&5
819 cat conftest.$ac_ext >&5
821 CPP="${CC-cc} -nologo -E"
822 cat > conftest.$ac_ext <<EOF
823 #line 824 "configure"
824 #include "confdefs.h"
828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
829 { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
831 if test -z "$ac_err"; then
835 echo "configure: failed program was:" >&5
836 cat conftest.$ac_ext >&5
845 ac_cv_prog_CPP="$CPP"
847 CPP="$ac_cv_prog_CPP"
849 ac_cv_prog_CPP="$CPP"
851 echo "$ac_t""$CPP" 1>&6
853 echo $ac_n "checking for AIX""... $ac_c" 1>&6
854 echo "configure:855: checking for AIX" >&5
855 cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
864 egrep "yes" >/dev/null 2>&1; then
866 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
867 #define _ALL_SOURCE 1
872 echo "$ac_t""no" 1>&6
877 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
878 echo "configure:879: checking for POSIXized ISC" >&5
879 if test -d /etc/conf/kconfig.d &&
880 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
882 echo "$ac_t""yes" 1>&6
883 ISC=yes # If later tests want to check for ISC.
884 cat >> confdefs.h <<\EOF
885 #define _POSIX_SOURCE 1
888 if test "$GCC" = yes; then
894 echo "$ac_t""no" 1>&6
900 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
901 if test -f $ac_dir/install-sh; then
903 ac_install_sh="$ac_aux_dir/install-sh -c"
905 elif test -f $ac_dir/install.sh; then
907 ac_install_sh="$ac_aux_dir/install.sh -c"
911 if test -z "$ac_aux_dir"; then
912 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
914 ac_config_guess=$ac_aux_dir/config.guess
915 ac_config_sub=$ac_aux_dir/config.sub
916 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
919 # Do some error checking and defaulting for the host and target type.
921 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
924 # 1. You are not allowed to specify --host, --target, and nonopt at the
926 # 2. Host defaults to nonopt.
927 # 3. If nonopt is not specified, then host defaults to the current host,
928 # as determined by config.guess.
929 # 4. Target and build default to nonopt.
930 # 5. If nonopt is not specified, then target and build default to host.
932 # The aliases save the names the user supplied, while $host etc.
933 # will get canonicalized.
934 case $host---$target---$nonopt in
935 NONE---*---* | *---NONE---* | *---*---NONE) ;;
936 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
940 # Make sure we can run config.sub.
941 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
942 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
945 echo $ac_n "checking host system type""... $ac_c" 1>&6
946 echo "configure:947: checking host system type" >&5
949 case "$host_alias" in
953 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
954 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
956 *) host_alias=$nonopt ;;
960 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
961 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
962 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
963 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
964 echo "$ac_t""$host" 1>&6
966 echo $ac_n "checking target system type""... $ac_c" 1>&6
967 echo "configure:968: checking target system type" >&5
970 case "$target_alias" in
973 NONE) target_alias=$host_alias ;;
974 *) target_alias=$nonopt ;;
978 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
979 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo "$ac_t""$target" 1>&6
984 echo $ac_n "checking build system type""... $ac_c" 1>&6
985 echo "configure:986: checking build system type" >&5
988 case "$build_alias" in
991 NONE) build_alias=$host_alias ;;
992 *) build_alias=$nonopt ;;
996 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
997 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$build" 1>&6
1002 test "$host_alias" != "$target_alias" &&
1003 test "$program_prefix$program_suffix$program_transform_name" = \
1005 program_prefix=${target_alias}-
1009 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1010 echo "configure:1011: checking whether ${MAKE-make} sets \${MAKE}" >&5
1011 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1012 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 cat > conftestmake <<\EOF
1017 @echo 'ac_maketemp="${MAKE}"'
1019 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1020 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1021 if test -n "$ac_maketemp"; then
1022 eval ac_cv_prog_make_${ac_make}_set=yes
1024 eval ac_cv_prog_make_${ac_make}_set=no
1028 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1029 echo "$ac_t""yes" 1>&6
1032 echo "$ac_t""no" 1>&6
1033 SET_MAKE="MAKE=${MAKE-make}"
1036 # Extract the first word of "ranlib", so it can be a program name with args.
1037 set dummy ranlib; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 if test -n "$RANLIB"; then
1044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 for ac_dir in $PATH; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1050 ac_cv_prog_RANLIB="ranlib"
1055 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1058 RANLIB="$ac_cv_prog_RANLIB"
1059 if test -n "$RANLIB"; then
1060 echo "$ac_t""$RANLIB" 1>&6
1062 echo "$ac_t""no" 1>&6
1065 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1066 echo "configure:1067: checking for ANSI C header files" >&5
1067 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 cat > conftest.$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1079 { (eval echo configure:1080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1081 if test -z "$ac_err"; then
1083 ac_cv_header_stdc=yes
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 ac_cv_header_stdc=no
1093 if test $ac_cv_header_stdc = yes; then
1094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1095 cat > conftest.$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1101 egrep "memchr" >/dev/null 2>&1; then
1105 ac_cv_header_stdc=no
1111 if test $ac_cv_header_stdc = yes; then
1112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1113 cat > conftest.$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1119 egrep "free" >/dev/null 2>&1; then
1123 ac_cv_header_stdc=no
1129 if test $ac_cv_header_stdc = yes; then
1130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1131 if test "$cross_compiling" = yes; then
1134 cat > conftest.$ac_ext <<EOF
1135 #line 1136 "configure"
1136 #include "confdefs.h"
1138 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1139 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1141 int main () { int i; for (i = 0; i < 256; i++)
1142 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1146 if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1150 echo "configure: failed program was:" >&5
1151 cat conftest.$ac_ext >&5
1153 ac_cv_header_stdc=no
1161 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1162 if test $ac_cv_header_stdc = yes; then
1163 cat >> confdefs.h <<\EOF
1164 #define STDC_HEADERS 1
1169 echo $ac_n "checking for working const""... $ac_c" 1>&6
1170 echo "configure:1171: checking for working const" >&5
1171 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1180 /* Ultrix mips cc rejects this. */
1181 typedef int charset[2]; const charset x;
1182 /* SunOS 4.1.1 cc rejects this. */
1183 char const *const *ccp;
1185 /* NEC SVR4.0.2 mips cc rejects this. */
1186 struct point {int x, y;};
1187 static struct point const zero = {0,0};
1188 /* AIX XL C 1.02.0.0 rejects this.
1189 It does not let you subtract one const X* pointer from another in an arm
1190 of an if-expression whose if-part is not a constant expression */
1191 const char *g = "string";
1192 ccp = &g + (g ? g-g : 0);
1193 /* HPUX 7.0 cc rejects these. */
1196 ccp = (char const *const *) p;
1197 { /* SCO 3.2v4 cc rejects this. */
1199 char const *s = 0 ? (char *) 0 : (char const *) 0;
1203 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1205 const int *foo = &x[0];
1208 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1209 typedef const int *iptr;
1213 { /* AIX XL C 1.02.0.0 rejects this saying
1214 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1215 struct s { int j; const int *ap[3]; };
1216 struct s *b; b->j = 5;
1218 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1224 if { (eval echo configure:1225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1236 echo "$ac_t""$ac_cv_c_const" 1>&6
1237 if test $ac_cv_c_const = no; then
1238 cat >> confdefs.h <<\EOF
1244 echo $ac_n "checking for inline""... $ac_c" 1>&6
1245 echo "configure:1246: checking for inline" >&5
1246 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1250 for ac_kw in inline __inline__ __inline; do
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1259 if { (eval echo configure:1260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1261 ac_cv_c_inline=$ac_kw; break
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1271 echo "$ac_t""$ac_cv_c_inline" 1>&6
1272 case "$ac_cv_c_inline" in
1274 no) cat >> confdefs.h <<\EOF
1278 *) cat >> confdefs.h <<EOF
1279 #define inline $ac_cv_c_inline
1284 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1285 echo "configure:1286: checking for off_t" >&5
1286 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1292 #include <sys/types.h>
1298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1299 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1301 ac_cv_type_off_t=yes
1309 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1310 if test $ac_cv_type_off_t = no; then
1311 cat >> confdefs.h <<\EOF
1317 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1318 echo "configure:1319: checking for size_t" >&5
1319 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 #include <sys/types.h>
1331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1332 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1334 ac_cv_type_size_t=yes
1337 ac_cv_type_size_t=no
1342 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1343 if test $ac_cv_type_size_t = no; then
1344 cat >> confdefs.h <<\EOF
1345 #define size_t unsigned
1350 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1351 # for constant arguments. Useless!
1352 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1353 echo "configure:1354: checking for working alloca.h" >&5
1354 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1362 char *p = alloca(2 * sizeof(int));
1365 if { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1367 ac_cv_header_alloca_h=yes
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1372 ac_cv_header_alloca_h=no
1377 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1378 if test $ac_cv_header_alloca_h = yes; then
1379 cat >> confdefs.h <<\EOF
1380 #define HAVE_ALLOCA_H 1
1385 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1386 echo "configure:1387: checking for alloca" >&5
1387 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1395 # define alloca __builtin_alloca
1398 # include <malloc.h>
1399 # define alloca _alloca
1402 # include <alloca.h>
1407 # ifndef alloca /* predefined by HP cc +Olibcalls */
1416 char *p = (char *) alloca(1);
1419 if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421 ac_cv_func_alloca_works=yes
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1426 ac_cv_func_alloca_works=no
1431 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1432 if test $ac_cv_func_alloca_works = yes; then
1433 cat >> confdefs.h <<\EOF
1434 #define HAVE_ALLOCA 1
1439 if test $ac_cv_func_alloca_works = no; then
1440 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1441 # that cause trouble. Some versions do not even contain alloca or
1442 # contain a buggy version. If you still want to use their alloca,
1443 # use ar to extract alloca.o from them instead of compiling alloca.c.
1444 ALLOCA=alloca.${ac_objext}
1445 cat >> confdefs.h <<\EOF
1450 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether alloca needs Cray hooks" >&5
1452 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 cat > conftest.$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1458 #if defined(CRAY) && ! defined(CRAY2)
1465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1466 egrep "webecray" >/dev/null 2>&1; then
1477 echo "$ac_t""$ac_cv_os_cray" 1>&6
1478 if test $ac_cv_os_cray = yes; then
1479 for ac_func in _getb67 GETB67 getb67; do
1480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1481 echo "configure:1482: checking for $ac_func" >&5
1482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 /* System header to define __stub macros and hopefully few prototypes,
1489 which can conflict with char $ac_func(); below. */
1491 /* Override any gcc2 internal prototype to avoid an error. */
1492 /* We use char because int might match the return type of a gcc2
1493 builtin and then its argument prototype would still apply. */
1498 /* The GNU C library defines this for functions which it implements
1499 to always fail with ENOSYS. Some functions are actually named
1500 something starting with __ and the normal name is an alias. */
1501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511 eval "ac_cv_func_$ac_func=yes"
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 eval "ac_cv_func_$ac_func=no"
1521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1523 cat >> confdefs.h <<EOF
1524 #define CRAY_STACKSEG_END $ac_func
1529 echo "$ac_t""no" 1>&6
1535 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1536 echo "configure:1537: checking stack direction for C alloca" >&5
1537 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 if test "$cross_compiling" = yes; then
1541 ac_cv_c_stack_direction=0
1543 cat > conftest.$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1546 find_stack_direction ()
1548 static char *addr = 0;
1553 return find_stack_direction ();
1556 return (&dummy > addr) ? 1 : -1;
1560 exit (find_stack_direction() < 0);
1563 if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1565 ac_cv_c_stack_direction=1
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1570 ac_cv_c_stack_direction=-1
1577 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1578 cat >> confdefs.h <<EOF
1579 #define STACK_DIRECTION $ac_cv_c_stack_direction
1584 for ac_hdr in unistd.h
1586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_hdr" >&5
1589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
1597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1598 { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1600 if test -z "$ac_err"; then
1602 eval "ac_cv_header_$ac_safe=yes"
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1608 eval "ac_cv_header_$ac_safe=no"
1612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1613 echo "$ac_t""yes" 1>&6
1614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1615 cat >> confdefs.h <<EOF
1616 #define $ac_tr_hdr 1
1620 echo "$ac_t""no" 1>&6
1624 for ac_func in getpagesize
1626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1627 echo "configure:1628: checking for $ac_func" >&5
1628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 /* System header to define __stub macros and hopefully few prototypes,
1635 which can conflict with char $ac_func(); below. */
1637 /* Override any gcc2 internal prototype to avoid an error. */
1638 /* We use char because int might match the return type of a gcc2
1639 builtin and then its argument prototype would still apply. */
1644 /* The GNU C library defines this for functions which it implements
1645 to always fail with ENOSYS. Some functions are actually named
1646 something starting with __ and the normal name is an alias. */
1647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1655 if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1657 eval "ac_cv_func_$ac_func=yes"
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1662 eval "ac_cv_func_$ac_func=no"
1667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1670 cat >> confdefs.h <<EOF
1671 #define $ac_tr_func 1
1675 echo "$ac_t""no" 1>&6
1679 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1680 echo "configure:1681: checking for working mmap" >&5
1681 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 if test "$cross_compiling" = yes; then
1685 ac_cv_func_mmap_fixed_mapped=no
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1691 /* Thanks to Mike Haertel and Jim Avera for this test.
1692 Here is a matrix of mmap possibilities:
1693 mmap private not fixed
1694 mmap private fixed at somewhere currently unmapped
1695 mmap private fixed at somewhere already mapped
1696 mmap shared not fixed
1697 mmap shared fixed at somewhere currently unmapped
1698 mmap shared fixed at somewhere already mapped
1699 For private mappings, we should verify that changes cannot be read()
1700 back from the file, nor mmap's back from the file at a different
1701 address. (There have been systems where private was not correctly
1702 implemented like the infamous i386 svr4.0, and systems where the
1703 VM page cache was not coherent with the filesystem buffer cache
1704 like early versions of FreeBSD and possibly contemporary NetBSD.)
1705 For shared mappings, we should conversely verify that changes get
1706 propogated back to all the places they're supposed to be.
1708 Grep wants private fixed already mapped.
1709 The main things grep needs to know about mmap are:
1710 * does it exist and is it safe to write into the mmap'd area
1711 * how to use it (BSD variants) */
1712 #include <sys/types.h>
1714 #include <sys/mman.h>
1716 /* This mess was copied from the GNU getpagesize.h. */
1717 #ifndef HAVE_GETPAGESIZE
1718 # ifdef HAVE_UNISTD_H
1719 # include <unistd.h>
1722 /* Assume that all systems that can run configure have sys/param.h. */
1723 # ifndef HAVE_SYS_PARAM_H
1724 # define HAVE_SYS_PARAM_H 1
1727 # ifdef _SC_PAGESIZE
1728 # define getpagesize() sysconf(_SC_PAGESIZE)
1729 # else /* no _SC_PAGESIZE */
1730 # ifdef HAVE_SYS_PARAM_H
1731 # include <sys/param.h>
1732 # ifdef EXEC_PAGESIZE
1733 # define getpagesize() EXEC_PAGESIZE
1734 # else /* no EXEC_PAGESIZE */
1736 # define getpagesize() NBPG * CLSIZE
1739 # endif /* no CLSIZE */
1740 # else /* no NBPG */
1742 # define getpagesize() NBPC
1743 # else /* no NBPC */
1745 # define getpagesize() PAGESIZE
1746 # endif /* PAGESIZE */
1747 # endif /* no NBPC */
1748 # endif /* no NBPG */
1749 # endif /* no EXEC_PAGESIZE */
1750 # else /* no HAVE_SYS_PARAM_H */
1751 # define getpagesize() 8192 /* punt totally */
1752 # endif /* no HAVE_SYS_PARAM_H */
1753 # endif /* no _SC_PAGESIZE */
1755 #endif /* no HAVE_GETPAGESIZE */
1758 extern "C" { void *malloc(unsigned); }
1766 char *data, *data2, *data3;
1770 pagesize = getpagesize();
1773 * First, make a file with some known garbage in it.
1775 data = malloc(pagesize);
1778 for (i = 0; i < pagesize; ++i)
1779 *(data + i) = rand();
1781 fd = creat("conftestmmap", 0600);
1784 if (write(fd, data, pagesize) != pagesize)
1789 * Next, try to mmap the file at a fixed address which
1790 * already has something else allocated at it. If we can,
1791 * also make sure that we see the same garbage.
1793 fd = open("conftestmmap", O_RDWR);
1796 data2 = malloc(2 * pagesize);
1799 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1800 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1801 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1803 for (i = 0; i < pagesize; ++i)
1804 if (*(data + i) != *(data2 + i))
1808 * Finally, make sure that changes to the mapped area
1809 * do not percolate back to the file as seen by read().
1810 * (This is a bug on some variants of i386 svr4.0.)
1812 for (i = 0; i < pagesize; ++i)
1813 *(data2 + i) = *(data2 + i) + 1;
1814 data3 = malloc(pagesize);
1817 if (read(fd, data3, pagesize) != pagesize)
1819 for (i = 0; i < pagesize; ++i)
1820 if (*(data + i) != *(data3 + i))
1823 unlink("conftestmmap");
1828 if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1830 ac_cv_func_mmap_fixed_mapped=yes
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 ac_cv_func_mmap_fixed_mapped=no
1842 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1843 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1844 cat >> confdefs.h <<\EOF
1851 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1852 unistd.h values.h sys/param.h
1854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1856 echo "configure:1857: checking for $ac_hdr" >&5
1857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1866 { (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1868 if test -z "$ac_err"; then
1870 eval "ac_cv_header_$ac_safe=yes"
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1876 eval "ac_cv_header_$ac_safe=no"
1880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1881 echo "$ac_t""yes" 1>&6
1882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1883 cat >> confdefs.h <<EOF
1884 #define $ac_tr_hdr 1
1888 echo "$ac_t""no" 1>&6
1892 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1893 __argz_count __argz_stringify __argz_next
1895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_func" >&5
1897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 /* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $ac_func(); below. */
1906 /* Override any gcc2 internal prototype to avoid an error. */
1907 /* We use char because int might match the return type of a gcc2
1908 builtin and then its argument prototype would still apply. */
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1926 eval "ac_cv_func_$ac_func=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 eval "ac_cv_func_$ac_func=no"
1936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1937 echo "$ac_t""yes" 1>&6
1938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1939 cat >> confdefs.h <<EOF
1940 #define $ac_tr_func 1
1944 echo "$ac_t""no" 1>&6
1949 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1950 for ac_func in stpcpy
1952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_func" >&5
1954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1960 /* System header to define __stub macros and hopefully few prototypes,
1961 which can conflict with char $ac_func(); below. */
1963 /* Override any gcc2 internal prototype to avoid an error. */
1964 /* We use char because int might match the return type of a gcc2
1965 builtin and then its argument prototype would still apply. */
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1981 if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1983 eval "ac_cv_func_$ac_func=yes"
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 eval "ac_cv_func_$ac_func=no"
1993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1996 cat >> confdefs.h <<EOF
1997 #define $ac_tr_func 1
2001 echo "$ac_t""no" 1>&6
2006 if test "${ac_cv_func_stpcpy}" = "yes"; then
2007 cat >> confdefs.h <<\EOF
2008 #define HAVE_STPCPY 1
2013 if test $ac_cv_header_locale_h = yes; then
2014 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2015 echo "configure:2016: checking for LC_MESSAGES" >&5
2016 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2027 if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2029 am_cv_val_LC_MESSAGES=yes
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2034 am_cv_val_LC_MESSAGES=no
2039 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2040 if test $am_cv_val_LC_MESSAGES = yes; then
2041 cat >> confdefs.h <<\EOF
2042 #define HAVE_LC_MESSAGES 1
2047 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether NLS is requested" >&5
2049 # Check whether --enable-nls or --disable-nls was given.
2050 if test "${enable_nls+set}" = set; then
2051 enableval="$enable_nls"
2057 echo "$ac_t""$USE_NLS" 1>&6
2060 USE_INCLUDED_LIBINTL=no
2062 if test "$USE_NLS" = "yes"; then
2063 cat >> confdefs.h <<\EOF
2064 #define ENABLE_NLS 1
2067 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2068 echo "configure:2069: checking whether included gettext is requested" >&5
2069 # Check whether --with-included-gettext or --without-included-gettext was given.
2070 if test "${with_included_gettext+set}" = set; then
2071 withval="$with_included_gettext"
2072 nls_cv_force_use_gnu_gettext=$withval
2074 nls_cv_force_use_gnu_gettext=no
2077 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2079 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2080 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2082 nls_cv_header_libgt=
2085 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2086 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2087 echo "configure:2088: checking for libintl.h" >&5
2088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 #include <libintl.h>
2096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2097 { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2099 if test -z "$ac_err"; then
2101 eval "ac_cv_header_$ac_safe=yes"
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2107 eval "ac_cv_header_$ac_safe=no"
2111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2112 echo "$ac_t""yes" 1>&6
2113 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2114 echo "configure:2115: checking for gettext in libc" >&5
2115 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 #include <libintl.h>
2123 return (int) gettext ("")
2126 if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2128 gt_cv_func_gettext_libc=yes
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2133 gt_cv_func_gettext_libc=no
2138 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2140 if test "$gt_cv_func_gettext_libc" != "yes"; then
2141 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2142 echo "configure:2143: checking for bindtextdomain in -lintl" >&5
2143 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 ac_save_LIBS="$LIBS"
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 /* Override any gcc2 internal prototype to avoid an error. */
2153 /* We use char because int might match the return type of a gcc2
2154 builtin and then its argument prototype would still apply. */
2155 char bindtextdomain();
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2163 eval "ac_cv_lib_$ac_lib_var=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_lib_$ac_lib_var=no"
2171 LIBS="$ac_save_LIBS"
2174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2177 echo "configure:2178: checking for gettext in libintl" >&5
2178 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2186 return (int) gettext ("")
2189 if { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2191 gt_cv_func_gettext_libintl=yes
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2196 gt_cv_func_gettext_libintl=no
2201 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2203 echo "$ac_t""no" 1>&6
2208 if test "$gt_cv_func_gettext_libc" = "yes" \
2209 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2210 cat >> confdefs.h <<\EOF
2211 #define HAVE_GETTEXT 1
2214 # Extract the first word of "msgfmt", so it can be a program name with args.
2215 set dummy msgfmt; ac_word=$2
2216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_word" >&5
2218 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2223 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2227 for ac_dir in $PATH; do
2228 test -z "$ac_dir" && ac_dir=.
2229 if test -f $ac_dir/$ac_word; then
2230 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2231 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2237 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2241 MSGFMT="$ac_cv_path_MSGFMT"
2242 if test -n "$MSGFMT"; then
2243 echo "$ac_t""$MSGFMT" 1>&6
2245 echo "$ac_t""no" 1>&6
2247 if test "$MSGFMT" != "no"; then
2248 for ac_func in dcgettext
2250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_func" >&5
2252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char $ac_func(); below. */
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2268 /* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2281 eval "ac_cv_func_$ac_func=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 eval "ac_cv_func_$ac_func=no"
2291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2294 cat >> confdefs.h <<EOF
2295 #define $ac_tr_func 1
2299 echo "$ac_t""no" 1>&6
2303 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2304 set dummy gmsgfmt; ac_word=$2
2305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2306 echo "configure:2307: checking for $ac_word" >&5
2307 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2312 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2315 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2319 for ac_dir in $PATH; do
2320 test -z "$ac_dir" && ac_dir=.
2321 if test -f $ac_dir/$ac_word; then
2322 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2327 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2331 GMSGFMT="$ac_cv_path_GMSGFMT"
2332 if test -n "$GMSGFMT"; then
2333 echo "$ac_t""$GMSGFMT" 1>&6
2335 echo "$ac_t""no" 1>&6
2338 # Extract the first word of "xgettext", so it can be a program name with args.
2339 set dummy xgettext; ac_word=$2
2340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_word" >&5
2342 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2347 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2351 for ac_dir in $PATH; do
2352 test -z "$ac_dir" && ac_dir=.
2353 if test -f $ac_dir/$ac_word; then
2354 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2355 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2361 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2365 XGETTEXT="$ac_cv_path_XGETTEXT"
2366 if test -n "$XGETTEXT"; then
2367 echo "$ac_t""$XGETTEXT" 1>&6
2369 echo "$ac_t""no" 1>&6
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2377 extern int _nl_msg_cat_cntr;
2378 return _nl_msg_cat_cntr
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2398 echo "$ac_t""no" 1>&6
2403 if test "$CATOBJEXT" = "NONE"; then
2404 nls_cv_use_gnu_gettext=yes
2408 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2409 INTLOBJS="\$(GETTOBJS)"
2410 # Extract the first word of "msgfmt", so it can be a program name with args.
2411 set dummy msgfmt; 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_MSGFMT'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2419 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2423 for ac_dir in $PATH; do
2424 test -z "$ac_dir" && ac_dir=.
2425 if test -f $ac_dir/$ac_word; then
2426 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2427 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2433 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2437 MSGFMT="$ac_cv_path_MSGFMT"
2438 if test -n "$MSGFMT"; then
2439 echo "$ac_t""$MSGFMT" 1>&6
2441 echo "$ac_t""no" 1>&6
2444 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2445 set dummy gmsgfmt; ac_word=$2
2446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2447 echo "configure:2448: checking for $ac_word" >&5
2448 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2453 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2456 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2460 for ac_dir in $PATH; do
2461 test -z "$ac_dir" && ac_dir=.
2462 if test -f $ac_dir/$ac_word; then
2463 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2468 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2472 GMSGFMT="$ac_cv_path_GMSGFMT"
2473 if test -n "$GMSGFMT"; then
2474 echo "$ac_t""$GMSGFMT" 1>&6
2476 echo "$ac_t""no" 1>&6
2479 # Extract the first word of "xgettext", so it can be a program name with args.
2480 set dummy xgettext; ac_word=$2
2481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2482 echo "configure:2483: checking for $ac_word" >&5
2483 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2488 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2492 for ac_dir in $PATH; do
2493 test -z "$ac_dir" && ac_dir=.
2494 if test -f $ac_dir/$ac_word; then
2495 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2496 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2502 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2506 XGETTEXT="$ac_cv_path_XGETTEXT"
2507 if test -n "$XGETTEXT"; then
2508 echo "$ac_t""$XGETTEXT" 1>&6
2510 echo "$ac_t""no" 1>&6
2514 USE_INCLUDED_LIBINTL=yes
2518 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2520 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2521 nls_cv_header_intl=libintl.h
2522 nls_cv_header_libgt=libgettext.h
2525 if test "$XGETTEXT" != ":"; then
2526 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2529 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2534 # We need to process the po/ directory.
2538 nls_cv_header_intl=libintl.h
2539 nls_cv_header_libgt=libgettext.h
2542 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2543 # because some of the sources are only built for this goal.
2544 if test "$PACKAGE" = gettext; then
2546 USE_INCLUDED_LIBINTL=yes
2549 for lang in $ALL_LINGUAS; do
2550 GMOFILES="$GMOFILES $lang.gmo"
2551 POFILES="$POFILES $lang.po"
2567 if test "x$CATOBJEXT" != "x"; then
2568 if test "x$ALL_LINGUAS" = "x"; then
2571 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2572 echo "configure:2573: checking for catalogs to be installed" >&5
2574 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2575 case "$ALL_LINGUAS" in
2576 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2579 LINGUAS=$NEW_LINGUAS
2580 echo "$ac_t""$LINGUAS" 1>&6
2583 if test -n "$LINGUAS"; then
2584 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2588 if test $ac_cv_header_locale_h = yes; then
2589 INCLUDE_LOCALE_H="#include <locale.h>"
2592 /* The system does not provide the header <locale.h>. Take care yourself. */"
2596 if test -f $srcdir/po2tbl.sed.in; then
2597 if test "$CATOBJEXT" = ".cat"; then
2598 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2599 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2600 echo "configure:2601: checking for linux/version.h" >&5
2601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2607 #include <linux/version.h>
2609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2610 { (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2612 if test -z "$ac_err"; then
2614 eval "ac_cv_header_$ac_safe=yes"
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 eval "ac_cv_header_$ac_safe=no"
2624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2625 echo "$ac_t""yes" 1>&6
2628 echo "$ac_t""no" 1>&6
2633 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2635 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2636 $srcdir/po2tbl.sed.in > po2tbl.sed
2639 if test "$PACKAGE" = "gettext"; then
2649 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2655 if test -d $srcdir/po; then
2656 test -d po || mkdir po
2657 if test "x$srcdir" != "x."; then
2658 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2659 posrcprefix="$srcdir/"
2661 posrcprefix="../$srcdir/"
2667 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2668 < $srcdir/po/POTFILES.in > po/POTFILES
2677 configdirs="doc testsuite"
2680 . ${srcdir}/configure.host
2682 . ${srcdir}/configure.tgt
2685 # Find a good install program. We prefer a C program (faster),
2686 # so one script is as good as another. But avoid the broken or
2687 # incompatible versions:
2688 # SysV /etc/install, /usr/sbin/install
2689 # SunOS /usr/etc/install
2690 # IRIX /sbin/install
2692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2695 # ./install, which can be erroneously created by make from ./install.sh.
2696 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2697 echo "configure:2698: checking for a BSD compatible install" >&5
2698 if test -z "$INSTALL"; then
2699 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2703 for ac_dir in $PATH; do
2704 # Account for people who put trailing slashes in PATH elements.
2706 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2708 # OSF1 and SCO ODT 3.0 have their own names for install.
2709 # Don't use installbsd from OSF since it installs stuff as root
2711 for ac_prog in ginstall scoinst install; do
2712 if test -f $ac_dir/$ac_prog; then
2713 if test $ac_prog = install &&
2714 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2715 # AIX install. It has an incompatible calling convention.
2718 ac_cv_path_install="$ac_dir/$ac_prog -c"
2729 if test "${ac_cv_path_install+set}" = set; then
2730 INSTALL="$ac_cv_path_install"
2732 # As a last resort, use the slow shell script. We don't cache a
2733 # path for INSTALL within a source directory, because that will
2734 # break other packages using the cache if that directory is
2735 # removed, or if the path is relative.
2736 INSTALL="$ac_install_sh"
2739 echo "$ac_t""$INSTALL" 1>&6
2741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2742 # It thinks the first close brace ends the variable substitution.
2743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2745 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2747 if test $host != $build; then
2748 ac_tool_prefix=${host_alias}-
2753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}ar; ac_word=$2
2755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_word" >&5
2757 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 if test -n "$AR"; then
2761 ac_cv_prog_AR="$AR" # Let the user override the test.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2764 for ac_dir in $PATH; do
2765 test -z "$ac_dir" && ac_dir=.
2766 if test -f $ac_dir/$ac_word; then
2767 ac_cv_prog_AR="${ac_tool_prefix}ar"
2772 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2776 if test -n "$AR"; then
2777 echo "$ac_t""$AR" 1>&6
2779 echo "$ac_t""no" 1>&6
2784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_word" >&5
2788 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 if test -n "$RANLIB"; then
2792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2795 for ac_dir in $PATH; do
2796 test -z "$ac_dir" && ac_dir=.
2797 if test -f $ac_dir/$ac_word; then
2798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2805 RANLIB="$ac_cv_prog_RANLIB"
2806 if test -n "$RANLIB"; then
2807 echo "$ac_t""$RANLIB" 1>&6
2809 echo "$ac_t""no" 1>&6
2813 if test -z "$ac_cv_prog_RANLIB"; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "ranlib", so it can be a program name with args.
2816 set dummy ranlib; ac_word=$2
2817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_word" >&5
2819 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 if test -n "$RANLIB"; then
2823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2826 for ac_dir in $PATH; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if test -f $ac_dir/$ac_word; then
2829 ac_cv_prog_RANLIB="ranlib"
2834 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2837 RANLIB="$ac_cv_prog_RANLIB"
2838 if test -n "$RANLIB"; then
2839 echo "$ac_t""$RANLIB" 1>&6
2841 echo "$ac_t""no" 1>&6
2849 for ac_prog in 'bison -y' byacc
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2854 echo "configure:2855: checking for $ac_word" >&5
2855 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 if test -n "$YACC"; then
2859 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2862 for ac_dir in $PATH; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_prog_YACC="$ac_prog"
2872 YACC="$ac_cv_prog_YACC"
2873 if test -n "$YACC"; then
2874 echo "$ac_t""$YACC" 1>&6
2876 echo "$ac_t""no" 1>&6
2879 test -n "$YACC" && break
2881 test -n "$YACC" || YACC="yacc"
2884 if test "$program_transform_name" = s,x,x,; then
2885 program_transform_name=
2887 # Double any \ or $. echo might interpret backslashes.
2888 cat <<\EOF_SED > conftestsed
2889 s,\\,\\\\,g; s,\$,$$,g
2891 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2894 test "$program_prefix" != NONE &&
2895 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2896 # Use a double $ so make ignores it.
2897 test "$program_suffix" != NONE &&
2898 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2900 # sed with no file args requires a program.
2901 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2904 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2905 echo "configure:2906: checking return type of signal handlers" >&5
2906 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 #include <sys/types.h>
2918 extern "C" void (*signal (int, void (*)(int)))(int);
2920 void (*signal ()) ();
2927 if { (eval echo configure:2928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2929 ac_cv_type_signal=void
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 ac_cv_type_signal=int
2939 echo "$ac_t""$ac_cv_type_signal" 1>&6
2940 cat >> confdefs.h <<EOF
2941 #define RETSIGTYPE $ac_cv_type_signal
2946 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2947 echo "configure:2948: checking for ANSI C header files" >&5
2948 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2960 { (eval echo configure:2961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2962 if test -z "$ac_err"; then
2964 ac_cv_header_stdc=yes
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 ac_cv_header_stdc=no
2974 if test $ac_cv_header_stdc = yes; then
2975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 egrep "memchr" >/dev/null 2>&1; then
2986 ac_cv_header_stdc=no
2992 if test $ac_cv_header_stdc = yes; then
2993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3000 egrep "free" >/dev/null 2>&1; then
3004 ac_cv_header_stdc=no
3010 if test $ac_cv_header_stdc = yes; then
3011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3012 if test "$cross_compiling" = yes; then
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3019 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3020 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3022 int main () { int i; for (i = 0; i < 256; i++)
3023 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3027 if { (eval echo configure:3028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3034 ac_cv_header_stdc=no
3042 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3043 if test $ac_cv_header_stdc = yes; then
3044 cat >> confdefs.h <<\EOF
3045 #define STDC_HEADERS 1
3050 for ac_hdr in ctype.h curses.h endian.h libintl.h link.h \
3051 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3052 string.h sys/procfs.h sys/ptrace.h sys/reg.h \
3053 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3054 wchar.h wctype.h asm/debugreg.h
3056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_hdr" >&5
3059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3068 { (eval echo configure:3069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3070 if test -z "$ac_err"; then
3072 eval "ac_cv_header_$ac_safe=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3078 eval "ac_cv_header_$ac_safe=no"
3082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3083 echo "$ac_t""yes" 1>&6
3084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3085 cat >> confdefs.h <<EOF
3086 #define $ac_tr_hdr 1
3090 echo "$ac_t""no" 1>&6
3095 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3096 echo "configure:3097: checking whether stat file-mode macros are broken" >&5
3097 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <sys/types.h>
3104 #include <sys/stat.h>
3106 #if defined(S_ISBLK) && defined(S_IFDIR)
3107 # if S_ISBLK (S_IFDIR)
3112 #if defined(S_ISBLK) && defined(S_IFCHR)
3113 # if S_ISBLK (S_IFCHR)
3118 #if defined(S_ISLNK) && defined(S_IFREG)
3119 # if S_ISLNK (S_IFREG)
3124 #if defined(S_ISSOCK) && defined(S_IFREG)
3125 # if S_ISSOCK (S_IFREG)
3131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3132 egrep "You lose" >/dev/null 2>&1; then
3134 ac_cv_header_stat_broken=yes
3137 ac_cv_header_stat_broken=no
3143 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3144 if test $ac_cv_header_stat_broken = yes; then
3145 cat >> confdefs.h <<\EOF
3146 #define STAT_MACROS_BROKEN 1
3152 echo $ac_n "checking for working const""... $ac_c" 1>&6
3153 echo "configure:3154: checking for working const" >&5
3154 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3163 /* Ultrix mips cc rejects this. */
3164 typedef int charset[2]; const charset x;
3165 /* SunOS 4.1.1 cc rejects this. */
3166 char const *const *ccp;
3168 /* NEC SVR4.0.2 mips cc rejects this. */
3169 struct point {int x, y;};
3170 static struct point const zero = {0,0};
3171 /* AIX XL C 1.02.0.0 rejects this.
3172 It does not let you subtract one const X* pointer from another in an arm
3173 of an if-expression whose if-part is not a constant expression */
3174 const char *g = "string";
3175 ccp = &g + (g ? g-g : 0);
3176 /* HPUX 7.0 cc rejects these. */
3179 ccp = (char const *const *) p;
3180 { /* SCO 3.2v4 cc rejects this. */
3182 char const *s = 0 ? (char *) 0 : (char const *) 0;
3186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3188 const int *foo = &x[0];
3191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3192 typedef const int *iptr;
3196 { /* AIX XL C 1.02.0.0 rejects this saying
3197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3198 struct s { int j; const int *ap[3]; };
3199 struct s *b; b->j = 5;
3201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3207 if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3219 echo "$ac_t""$ac_cv_c_const" 1>&6
3220 if test $ac_cv_c_const = no; then
3221 cat >> confdefs.h <<\EOF
3228 for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc
3230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_func" >&5
3232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 /* System header to define __stub macros and hopefully few prototypes,
3239 which can conflict with char $ac_func(); below. */
3241 /* Override any gcc2 internal prototype to avoid an error. */
3242 /* We use char because int might match the return type of a gcc2
3243 builtin and then its argument prototype would still apply. */
3248 /* The GNU C library defines this for functions which it implements
3249 to always fail with ENOSYS. Some functions are actually named
3250 something starting with __ and the normal name is an alias. */
3251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 eval "ac_cv_func_$ac_func=yes"
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 eval "ac_cv_func_$ac_func=no"
3271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3274 cat >> confdefs.h <<EOF
3275 #define $ac_tr_func 1
3279 echo "$ac_t""no" 1>&6
3283 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3284 # for constant arguments. Useless!
3285 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3286 echo "configure:3287: checking for working alloca.h" >&5
3287 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3295 char *p = alloca(2 * sizeof(int));
3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3300 ac_cv_header_alloca_h=yes
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3305 ac_cv_header_alloca_h=no
3310 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3311 if test $ac_cv_header_alloca_h = yes; then
3312 cat >> confdefs.h <<\EOF
3313 #define HAVE_ALLOCA_H 1
3318 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3319 echo "configure:3320: checking for alloca" >&5
3320 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3328 # define alloca __builtin_alloca
3331 # include <malloc.h>
3332 # define alloca _alloca
3335 # include <alloca.h>
3340 # ifndef alloca /* predefined by HP cc +Olibcalls */
3349 char *p = (char *) alloca(1);
3352 if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3354 ac_cv_func_alloca_works=yes
3356 echo "configure: failed program was:" >&5
3357 cat conftest.$ac_ext >&5
3359 ac_cv_func_alloca_works=no
3364 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3365 if test $ac_cv_func_alloca_works = yes; then
3366 cat >> confdefs.h <<\EOF
3367 #define HAVE_ALLOCA 1
3372 if test $ac_cv_func_alloca_works = no; then
3373 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3374 # that cause trouble. Some versions do not even contain alloca or
3375 # contain a buggy version. If you still want to use their alloca,
3376 # use ar to extract alloca.o from them instead of compiling alloca.c.
3377 ALLOCA=alloca.${ac_objext}
3378 cat >> confdefs.h <<\EOF
3383 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3384 echo "configure:3385: checking whether alloca needs Cray hooks" >&5
3385 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #if defined(CRAY) && ! defined(CRAY2)
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 egrep "webecray" >/dev/null 2>&1; then
3410 echo "$ac_t""$ac_cv_os_cray" 1>&6
3411 if test $ac_cv_os_cray = yes; then
3412 for ac_func in _getb67 GETB67 getb67; do
3413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_func" >&5
3415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 /* System header to define __stub macros and hopefully few prototypes,
3422 which can conflict with char $ac_func(); below. */
3424 /* Override any gcc2 internal prototype to avoid an error. */
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3431 /* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3442 if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3444 eval "ac_cv_func_$ac_func=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3449 eval "ac_cv_func_$ac_func=no"
3454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 cat >> confdefs.h <<EOF
3457 #define CRAY_STACKSEG_END $ac_func
3462 echo "$ac_t""no" 1>&6
3468 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3469 echo "configure:3470: checking stack direction for C alloca" >&5
3470 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 if test "$cross_compiling" = yes; then
3474 ac_cv_c_stack_direction=0
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 find_stack_direction ()
3481 static char *addr = 0;
3486 return find_stack_direction ();
3489 return (&dummy > addr) ? 1 : -1;
3493 exit (find_stack_direction() < 0);
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3498 ac_cv_c_stack_direction=1
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3503 ac_cv_c_stack_direction=-1
3510 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3511 cat >> confdefs.h <<EOF
3512 #define STACK_DIRECTION $ac_cv_c_stack_direction
3518 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3519 echo "configure:3520: checking whether malloc must be declared" >&5
3520 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3528 #ifdef HAVE_STRING_H
3531 #ifdef HAVE_STRINGS_H
3532 #include <strings.h>
3535 #ifdef HAVE_STDLIB_H
3538 #ifdef HAVE_UNISTD_H
3542 char *(*pfn) = (char *(*)) malloc
3545 if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3547 bfd_cv_decl_needed_malloc=no
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 bfd_cv_decl_needed_malloc=yes
3557 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3558 if test $bfd_cv_decl_needed_malloc = yes; then
3559 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3560 cat >> confdefs.h <<EOF
3561 #define $bfd_tr_decl 1
3566 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3567 echo "configure:3568: checking whether realloc must be declared" >&5
3568 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3576 #ifdef HAVE_STRING_H
3579 #ifdef HAVE_STRINGS_H
3580 #include <strings.h>
3583 #ifdef HAVE_STDLIB_H
3586 #ifdef HAVE_UNISTD_H
3590 char *(*pfn) = (char *(*)) realloc
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3595 bfd_cv_decl_needed_realloc=no
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 bfd_cv_decl_needed_realloc=yes
3605 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3606 if test $bfd_cv_decl_needed_realloc = yes; then
3607 bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3608 cat >> confdefs.h <<EOF
3609 #define $bfd_tr_decl 1
3614 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3615 echo "configure:3616: checking whether free must be declared" >&5
3616 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3624 #ifdef HAVE_STRING_H
3627 #ifdef HAVE_STRINGS_H
3628 #include <strings.h>
3631 #ifdef HAVE_STDLIB_H
3634 #ifdef HAVE_UNISTD_H
3638 char *(*pfn) = (char *(*)) free
3641 if { (eval echo configure:3642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643 bfd_cv_decl_needed_free=no
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 bfd_cv_decl_needed_free=yes
3653 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3654 if test $bfd_cv_decl_needed_free = yes; then
3655 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3656 cat >> confdefs.h <<EOF
3657 #define $bfd_tr_decl 1
3662 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3663 echo "configure:3664: checking whether strerror must be declared" >&5
3664 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3672 #ifdef HAVE_STRING_H
3675 #ifdef HAVE_STRINGS_H
3676 #include <strings.h>
3679 #ifdef HAVE_STDLIB_H
3682 #ifdef HAVE_UNISTD_H
3686 char *(*pfn) = (char *(*)) strerror
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3691 bfd_cv_decl_needed_strerror=no
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3696 bfd_cv_decl_needed_strerror=yes
3701 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3702 if test $bfd_cv_decl_needed_strerror = yes; then
3703 bfd_tr_decl=NEED_DECLARATION_`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3704 cat >> confdefs.h <<EOF
3705 #define $bfd_tr_decl 1
3710 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3711 echo "configure:3712: checking whether strdup must be declared" >&5
3712 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3720 #ifdef HAVE_STRING_H
3723 #ifdef HAVE_STRINGS_H
3724 #include <strings.h>
3727 #ifdef HAVE_STDLIB_H
3730 #ifdef HAVE_UNISTD_H
3734 char *(*pfn) = (char *(*)) strdup
3737 if { (eval echo configure:3738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3739 bfd_cv_decl_needed_strdup=no
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 bfd_cv_decl_needed_strdup=yes
3749 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
3750 if test $bfd_cv_decl_needed_strdup = yes; then
3751 bfd_tr_decl=NEED_DECLARATION_`echo strdup | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3752 cat >> confdefs.h <<EOF
3753 #define $bfd_tr_decl 1
3759 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3760 if test "${target}" = "${host}"; then
3763 cat >> confdefs.h <<\EOF
3764 #define START_INFERIOR_TRAPS_EXPECTED 2
3767 cat >> confdefs.h <<\EOF
3768 #define sys_quotactl 1
3775 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3776 echo "configure:3777: checking for gregset_t type" >&5
3777 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 #include <sys/procfs.h>
3785 gregset_t *gregsetp = 0
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3790 gdb_cv_have_gregset_t=yes
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 gdb_cv_have_gregset_t=no
3800 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3801 if test $gdb_cv_have_gregset_t = yes; then
3802 cat >> confdefs.h <<\EOF
3803 #define HAVE_GREGSET_T 1
3808 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3809 echo "configure:3810: checking for fpregset_t type" >&5
3810 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <sys/procfs.h>
3818 fpregset_t *fpregsetp = 0
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 gdb_cv_have_fpregset_t=yes
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 gdb_cv_have_fpregset_t=no
3833 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3834 if test $gdb_cv_have_fpregset_t = yes; then
3835 cat >> confdefs.h <<\EOF
3836 #define HAVE_FPREGSET_T 1
3841 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3842 echo "configure:3843: checking for main in -lm" >&5
3843 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 ac_save_LIBS="$LIBS"
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3859 eval "ac_cv_lib_$ac_lib_var=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 eval "ac_cv_lib_$ac_lib_var=no"
3867 LIBS="$ac_save_LIBS"
3870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3872 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3874 cat >> confdefs.h <<EOF
3875 #define $ac_tr_lib 1
3881 echo "$ac_t""no" 1>&6
3886 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
3887 echo "configure:3888: checking for long long support in compiler" >&5
3888 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3897 extern long long foo;
3898 switch (foo & 2) { case 0: return 1; }
3902 if { (eval echo configure:3903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3904 gdb_cv_c_long_long=yes
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 gdb_cv_c_long_long=no
3914 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
3915 if test $gdb_cv_c_long_long = yes; then
3916 cat >> confdefs.h <<\EOF
3917 #define CC_HAS_LONG_LONG 1
3923 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
3924 echo "configure:3925: checking for long long support in printf" >&5
3925 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 if test "$cross_compiling" = yes; then
3929 gdb_cv_printf_has_long_long=no
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3938 l = (l << 16) + 0x0123;
3939 l = (l << 16) + 0x4567;
3940 l = (l << 16) + 0x89ab;
3941 l = (l << 16) + 0xcdef;
3942 sprintf (buf, "0x%016llx", l);
3943 return (strcmp ("0x0123456789abcdef", buf));
3946 if { (eval echo configure:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3948 gdb_cv_printf_has_long_long=yes
3950 echo "configure: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3953 gdb_cv_printf_has_long_long=no
3960 if test $gdb_cv_printf_has_long_long = yes; then
3961 cat >> confdefs.h <<\EOF
3962 #define PRINTF_HAS_LONG_LONG 1
3966 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
3969 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
3970 echo "configure:3971: checking for long double support in compiler" >&5
3971 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3982 if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3984 ac_cv_c_long_double=yes
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 ac_cv_c_long_double=no
3994 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3995 if test $ac_cv_c_long_double = yes; then
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_LONG_DOUBLE 1
4003 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4004 echo "configure:4005: checking for long double support in printf" >&5
4005 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4008 if test "$cross_compiling" = yes; then
4009 gdb_cv_printf_has_long_double=no
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4017 long double f = 3.141592653;
4018 sprintf (buf, "%Lg", f);
4019 return (strncmp ("3.14159", buf, 7));
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4024 gdb_cv_printf_has_long_double=yes
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 gdb_cv_printf_has_long_double=no
4036 if test $gdb_cv_printf_has_long_double = yes; then
4037 cat >> confdefs.h <<\EOF
4038 #define PRINTF_HAS_LONG_DOUBLE 1
4042 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4045 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4046 echo "configure:4047: checking for long double support in scanf" >&5
4047 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 if test "$cross_compiling" = yes; then
4051 gdb_cv_scanf_has_long_double=no
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4058 char *buf = "3.141592653";
4060 sscanf (buf, "%Lg", &f);
4061 return !(f > 3.14159 && f < 3.14160);
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4066 gdb_cv_scanf_has_long_double=yes
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 gdb_cv_scanf_has_long_double=no
4078 if test $gdb_cv_scanf_has_long_double = yes; then
4079 cat >> confdefs.h <<\EOF
4080 #define SCANF_HAS_LONG_DOUBLE 1
4084 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4086 for ac_hdr in unistd.h
4088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4090 echo "configure:4091: checking for $ac_hdr" >&5
4091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4100 { (eval echo configure:4101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4102 if test -z "$ac_err"; then
4104 eval "ac_cv_header_$ac_safe=yes"
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 eval "ac_cv_header_$ac_safe=no"
4114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4115 echo "$ac_t""yes" 1>&6
4116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4117 cat >> confdefs.h <<EOF
4118 #define $ac_tr_hdr 1
4122 echo "$ac_t""no" 1>&6
4126 for ac_func in getpagesize
4128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_func" >&5
4130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
4136 /* System header to define __stub macros and hopefully few prototypes,
4137 which can conflict with char $ac_func(); below. */
4139 /* Override any gcc2 internal prototype to avoid an error. */
4140 /* We use char because int might match the return type of a gcc2
4141 builtin and then its argument prototype would still apply. */
4146 /* The GNU C library defines this for functions which it implements
4147 to always fail with ENOSYS. Some functions are actually named
4148 something starting with __ and the normal name is an alias. */
4149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 eval "ac_cv_func_$ac_func=yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 eval "ac_cv_func_$ac_func=no"
4169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4172 cat >> confdefs.h <<EOF
4173 #define $ac_tr_func 1
4177 echo "$ac_t""no" 1>&6
4181 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4182 echo "configure:4183: checking for working mmap" >&5
4183 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 if test "$cross_compiling" = yes; then
4187 ac_cv_func_mmap_fixed_mapped=no
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4193 /* Thanks to Mike Haertel and Jim Avera for this test.
4194 Here is a matrix of mmap possibilities:
4195 mmap private not fixed
4196 mmap private fixed at somewhere currently unmapped
4197 mmap private fixed at somewhere already mapped
4198 mmap shared not fixed
4199 mmap shared fixed at somewhere currently unmapped
4200 mmap shared fixed at somewhere already mapped
4201 For private mappings, we should verify that changes cannot be read()
4202 back from the file, nor mmap's back from the file at a different
4203 address. (There have been systems where private was not correctly
4204 implemented like the infamous i386 svr4.0, and systems where the
4205 VM page cache was not coherent with the filesystem buffer cache
4206 like early versions of FreeBSD and possibly contemporary NetBSD.)
4207 For shared mappings, we should conversely verify that changes get
4208 propogated back to all the places they're supposed to be.
4210 Grep wants private fixed already mapped.
4211 The main things grep needs to know about mmap are:
4212 * does it exist and is it safe to write into the mmap'd area
4213 * how to use it (BSD variants) */
4214 #include <sys/types.h>
4216 #include <sys/mman.h>
4218 /* This mess was copied from the GNU getpagesize.h. */
4219 #ifndef HAVE_GETPAGESIZE
4220 # ifdef HAVE_UNISTD_H
4221 # include <unistd.h>
4224 /* Assume that all systems that can run configure have sys/param.h. */
4225 # ifndef HAVE_SYS_PARAM_H
4226 # define HAVE_SYS_PARAM_H 1
4229 # ifdef _SC_PAGESIZE
4230 # define getpagesize() sysconf(_SC_PAGESIZE)
4231 # else /* no _SC_PAGESIZE */
4232 # ifdef HAVE_SYS_PARAM_H
4233 # include <sys/param.h>
4234 # ifdef EXEC_PAGESIZE
4235 # define getpagesize() EXEC_PAGESIZE
4236 # else /* no EXEC_PAGESIZE */
4238 # define getpagesize() NBPG * CLSIZE
4241 # endif /* no CLSIZE */
4242 # else /* no NBPG */
4244 # define getpagesize() NBPC
4245 # else /* no NBPC */
4247 # define getpagesize() PAGESIZE
4248 # endif /* PAGESIZE */
4249 # endif /* no NBPC */
4250 # endif /* no NBPG */
4251 # endif /* no EXEC_PAGESIZE */
4252 # else /* no HAVE_SYS_PARAM_H */
4253 # define getpagesize() 8192 /* punt totally */
4254 # endif /* no HAVE_SYS_PARAM_H */
4255 # endif /* no _SC_PAGESIZE */
4257 #endif /* no HAVE_GETPAGESIZE */
4260 extern "C" { void *malloc(unsigned); }
4268 char *data, *data2, *data3;
4272 pagesize = getpagesize();
4275 * First, make a file with some known garbage in it.
4277 data = malloc(pagesize);
4280 for (i = 0; i < pagesize; ++i)
4281 *(data + i) = rand();
4283 fd = creat("conftestmmap", 0600);
4286 if (write(fd, data, pagesize) != pagesize)
4291 * Next, try to mmap the file at a fixed address which
4292 * already has something else allocated at it. If we can,
4293 * also make sure that we see the same garbage.
4295 fd = open("conftestmmap", O_RDWR);
4298 data2 = malloc(2 * pagesize);
4301 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4302 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4303 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4305 for (i = 0; i < pagesize; ++i)
4306 if (*(data + i) != *(data2 + i))
4310 * Finally, make sure that changes to the mapped area
4311 * do not percolate back to the file as seen by read().
4312 * (This is a bug on some variants of i386 svr4.0.)
4314 for (i = 0; i < pagesize; ++i)
4315 *(data2 + i) = *(data2 + i) + 1;
4316 data3 = malloc(pagesize);
4319 if (read(fd, data3, pagesize) != pagesize)
4321 for (i = 0; i < pagesize; ++i)
4322 if (*(data + i) != *(data3 + i))
4325 unlink("conftestmmap");
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4332 ac_cv_func_mmap_fixed_mapped=yes
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 ac_cv_func_mmap_fixed_mapped=no
4344 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4345 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4346 cat >> confdefs.h <<\EOF
4355 if test ${build} = ${host} -a ${host} = ${target} ; then
4358 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4359 echo "configure:4360: checking for HPUX/OSF thread support" >&5
4360 if test -f /usr/include/dce/cma_config.h ; then
4361 if test "$GCC" = "yes" ; then
4362 echo "$ac_t""yes" 1>&6
4363 cat >> confdefs.h <<\EOF
4364 #define HAVE_HPUX_THREAD_SUPPORT 1
4367 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
4368 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
4370 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4373 echo "$ac_t""no" 1>&6
4377 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4378 echo "configure:4379: checking for Solaris thread debugging library" >&5
4379 if test -f /usr/lib/libthread_db.so.1 ; then
4380 echo "$ac_t""yes" 1>&6
4381 cat >> confdefs.h <<\EOF
4382 #define HAVE_THREAD_DB_LIB 1
4385 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
4386 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
4387 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4388 echo "configure:4389: checking for dlopen in -ldl" >&5
4389 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 ac_save_LIBS="$LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 /* We use char because int might match the return type of a gcc2
4400 builtin and then its argument prototype would still apply. */
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4409 eval "ac_cv_lib_$ac_lib_var=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4414 eval "ac_cv_lib_$ac_lib_var=no"
4417 LIBS="$ac_save_LIBS"
4420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4422 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4424 cat >> confdefs.h <<EOF
4425 #define $ac_tr_lib 1
4431 echo "$ac_t""no" 1>&6
4434 if test "$GCC" = "yes" ; then
4435 # The GNU linker requires the -export-dynamic option to make
4436 # all symbols visible in the dynamic symbol table.
4437 hold_ldflags=$LDFLAGS
4438 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4439 echo "configure:4440: checking for the ld -export-dynamic flag" >&5
4440 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4459 LDFLAGS=$hold_ldflags
4460 echo "$ac_t""$found" 1>&6
4461 if test $found = yes; then
4462 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4466 echo "$ac_t""no" 1>&6
4475 # Check whether --enable-netrom or --disable-netrom was given.
4476 if test "${enable_netrom+set}" = set; then
4477 enableval="$enable_netrom"
4478 case "${enableval}" in
4479 yes) enable_netrom=yes ;;
4480 no) enable_netrom=no ;;
4481 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4486 if test "${enable_netrom}" = "yes"; then
4487 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
4488 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
4491 # Check whether --enable-warnings or --disable-warnings was given.
4492 if test "${enable_warnings+set}" = set; then
4493 enableval="$enable_warnings"
4494 case "${enableval}" in
4495 yes) enable_build_warnings=yes ;;
4496 no) enable_build_warnings=no ;;
4497 *) { echo "configure: error: bad value ${enableval} given for warnings options" 1>&2; exit 1; } ;;
4502 if test "x$enable_build_warnings" = xyes -a "x$GCC" = xyes
4504 WARN_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
4515 # Check whether --with-mmalloc or --without-mmalloc was given.
4516 if test "${with_mmalloc+set}" = set; then
4517 withval="$with_mmalloc"
4518 case "${withval}" in
4519 yes) want_mmalloc=true ;;
4520 no) want_mmalloc=false;;
4521 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4527 if test x$want_mmalloc = xtrue; then
4528 cat >> confdefs.h <<\EOF
4529 #define USE_MMALLOC 1
4532 cat >> confdefs.h <<\EOF
4533 #define MMCHECK_FORCE 1
4536 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
4537 MMALLOC='../mmalloc/libmmalloc.a'
4540 # start-sanitize-carp
4541 # The below takes an educated guess at the targets that
4542 # should be built. It is an interum version that provides
4543 # significant backward compatibility.
4545 # Check whether --enable-carp or --disable-carp was given.
4546 if test "${enable_carp+set}" = set; then
4547 enableval="$enable_carp"
4548 case "${enableval}" in
4549 yes) enable_carp=yes ;;
4550 no) enable_carp=no ;;
4551 *) { echo "configure: error: bad value ${enableval} for carp option" 1>&2; exit 1; } ;;
4557 # Check whether --enable-targets or --disable-targets was given.
4558 if test "${enable_targets+set}" = set; then
4559 enableval="$enable_targets"
4560 case "${enableval}" in
4561 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
4563 no) enable_targets= ;;
4564 *) enable_targets="$enableval" ;;
4568 # Canonicalize the secondary target names.
4570 if test -n "$enable_targets" ; then
4571 if test "$enable_targets" = all ; then
4574 for targ in `echo $enable_targets | sed 's/,/ /g'`
4576 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4577 if test -n "$result" ; then
4578 canon_targets="$canon_targets $result"
4584 # Convert the target names into GDB [*]-tdep.c names
4586 for targ in $target $canon_targets
4588 if test "x$targ" = "xall" ; then
4591 t_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4592 t_vendor=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4593 t_os=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4597 target_vendor=$t_vendor
4599 . ${srcdir}/configure.tgt
4600 echo ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
4601 if test -r ${mt} ; then
4602 # This gets confused over .mt files that have multiple -tdep.o
4604 s/^.*[ =]\([^ ]*\)-tdep.o.*/\1/p
4606 selarchs="$selarchs $tdep"
4611 # We don't do any links based on the target system, just makefile config.
4613 if test x${all_targets} = xfalse ; then
4615 # Target architecture .o files.
4618 for arch in $selarchs
4620 archdefs="$archdefs -DARCH_$arch"
4621 ta="$ta ${arch}-tdep.o"
4624 dvp) ta="$ta mips-tdep.o dvp-tdep.o" ;;
4628 # Weed out duplicate .o files.
4638 # And duplicate -D flags.
4640 for i in $archdefs ; do
4650 else # all_targets is true
4652 MACHINE_OBS='$(ALL_MACHINES)'
4655 if test "${enable_carp}" = yes ; then
4659 MACHINE_OBS="# $MACHINE_OBS"
4664 # start-sanitize-gdbtk
4665 # start-sanitize-ide
4667 # Check whether --enable-ide or --disable-ide was given.
4668 if test "${enable_ide+set}" = set; then
4669 enableval="$enable_ide"
4673 if test "$enable_ide" = yes; then
4681 # Check whether --with-foundry-libs or --without-foundry-libs was given.
4682 if test "${with_foundry_libs+set}" = set; then
4683 withval="$with_foundry_libs"
4684 FOUNDRY_LIB_BASE=${withval}
4690 # This is the Foundry SDK
4692 # These variables are used to determine where the Foundry libs and
4693 # header files are located.
4695 if test "$FOUNDRY_LIB_BASE" != ""; then
4696 LIBGUI="${FOUNDRY_LIB_BASE}/lib/libgui.a"
4697 GUI_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
4698 if test x$enable_ide = xyes; then
4699 IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include -DIDE"
4700 IDE_X="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
4702 IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
4704 LIBIDETCL="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
4705 LIBIDE="${FOUNDRY_LIB_BASE}/lib/libide.a"
4706 IDE_DEPS="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
4708 LIBGUI="../libgui/src/libgui.a"
4709 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
4710 if test x$enable_ide = xyes; then
4711 IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
4712 IDE_X="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
4714 IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
4716 LIBIDETCL="../libidetcl/src/libidetcl.a"
4717 LIBIDE="../libide/src/libide.a"
4718 IDE_DEPS="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
4731 # Check whether --enable-gdbtk or --disable-gdbtk was given.
4732 if test "${enable_gdbtk+set}" = set; then
4733 enableval="$enable_gdbtk"
4734 case "${enableval}" in
4738 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4741 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4749 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
4753 # Default is on for everything but go32 and cygwin32
4764 # In the cygwin32 environment, we need some additional flags.
4765 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
4766 echo "configure:4767: checking for cygwin32" >&5
4767 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 egrep "lose" >/dev/null 2>&1; then
4781 gdb_cv_os_cygwin32=yes
4784 gdb_cv_os_cygwin32=no
4790 echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6
4797 DLLTOOL=${DLLTOOL-dlltool}
4798 WINDRES=${WINDRES-windres}
4802 if test x$gdb_cv_os_cygwin32 = xyes; then
4803 if test x$enable_ide = xyes; then
4804 WIN32LIBS="-ladvapi32"
4811 if test "${enable_gdbtk}" = "yes"; then
4815 # Ok, lets find the tcl configuration
4816 # First, look for one uninstalled.
4817 # the alternative search directory is invoked by --with-tclconfig
4820 if test x"${no_tcl}" = x ; then
4821 # we reset no_tcl in case something fails here
4823 # Check whether --with-tclconfig or --without-tclconfig was given.
4824 if test "${with_tclconfig+set}" = set; then
4825 withval="$with_tclconfig"
4826 with_tclconfig=${withval}
4829 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
4830 echo "configure:4831: checking for Tcl configuration" >&5
4831 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4836 # First check to see if --with-tclconfig was specified.
4837 if test x"${with_tclconfig}" != x ; then
4838 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4839 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
4841 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
4845 # then check for a private Tcl installation
4846 if test x"${ac_cv_c_tclconfig}" = x ; then
4849 `ls -dr ../tcl[7-9]* 2>/dev/null` \
4851 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
4853 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
4854 if test -f "$i/${configdir}/tclConfig.sh" ; then
4855 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
4860 # check in a few common install locations
4861 if test x"${ac_cv_c_tclconfig}" = x ; then
4862 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4863 if test -f "$i/tclConfig.sh" ; then
4864 ac_cv_c_tclconfig=`(cd $i; pwd)`
4869 # check in a few other private locations
4870 if test x"${ac_cv_c_tclconfig}" = x ; then
4873 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
4874 if test -f "$i/${configdir}/tclConfig.sh" ; then
4875 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
4883 if test x"${ac_cv_c_tclconfig}" = x ; then
4884 TCLCONFIG="# no Tcl configs found"
4885 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
4888 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
4889 echo "$ac_t""found $TCLCONFIG" 1>&6
4893 if test -z "${no_tcl}"; then
4923 # Ok, lets find the tk configuration
4924 # First, look for one uninstalled.
4925 # the alternative search directory is invoked by --with-tkconfig
4928 if test x"${no_tk}" = x ; then
4929 # we reset no_tk in case something fails here
4931 # Check whether --with-tkconfig or --without-tkconfig was given.
4932 if test "${with_tkconfig+set}" = set; then
4933 withval="$with_tkconfig"
4934 with_tkconfig=${withval}
4937 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
4938 echo "configure:4939: checking for Tk configuration" >&5
4939 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4944 # First check to see if --with-tkconfig was specified.
4945 if test x"${with_tkconfig}" != x ; then
4946 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4947 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
4949 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
4953 # then check for a private Tk library
4954 if test x"${ac_cv_c_tkconfig}" = x ; then
4957 `ls -dr ../tk[4-9]* 2>/dev/null` \
4959 `ls -dr ../../tk[4-9]* 2>/dev/null` \
4961 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
4962 if test -f "$i/${configdir}/tkConfig.sh" ; then
4963 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
4968 # check in a few common install locations
4969 if test x"${ac_cv_c_tkconfig}" = x ; then
4970 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4971 if test -f "$i/tkConfig.sh" ; then
4972 ac_cv_c_tkconfig=`(cd $i; pwd)`
4977 # check in a few other private locations
4978 if test x"${ac_cv_c_tkconfig}" = x ; then
4981 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
4982 if test -f "$i/${configdir}/tkConfig.sh" ; then
4983 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
4991 if test x"${ac_cv_c_tkconfig}" = x ; then
4992 TKCONFIG="# no Tk configs found"
4993 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
4996 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
4997 echo "$ac_t""found $TKCONFIG" 1>&6
5003 # If $no_tk is nonempty, then we can't do Tk, and there is no
5004 # point to doing Tcl.
5005 if test -z "${no_tk}"; then
5007 if test -f "$TKCONFIG" ; then
5025 # Ok, lets find the tcl source trees so we can use the headers
5026 # Warning: transition of version 9 to 10 will break this algorithm
5027 # because 10 sorts before 9. We also look for just tcl. We have to
5028 # be careful that we don't match stuff like tclX by accident.
5029 # the alternative search directory is involked by --with-tclinclude
5033 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
5034 echo "configure:5035: checking for Tcl private headers. dir=${configdir}" >&5
5035 # Check whether --with-tclinclude or --without-tclinclude was given.
5036 if test "${with_tclinclude+set}" = set; then
5037 withval="$with_tclinclude"
5038 with_tclinclude=${withval}
5041 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5045 # first check to see if --with-tclinclude was specified
5046 if test x"${with_tclinclude}" != x ; then
5047 if test -f ${with_tclinclude}/tclInt.h ; then
5048 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
5049 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
5050 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
5052 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5056 # next check if it came with Tcl configuration file
5057 if test x"${ac_cv_c_tclconfig}" = x ; then
5058 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
5059 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
5063 # next check in private source directory
5065 # since ls returns lowest version numbers first, reverse its output
5066 if test x"${ac_cv_c_tclh}" = x ; then
5069 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
5070 ${srcdir}/../../tcl \
5071 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
5072 ${srcdir}/../../../tcl \
5073 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
5074 if test -f $i/generic/tclInt.h ; then
5075 ac_cv_c_tclh=`(cd $i/generic; pwd)`
5080 # finally check in a few common install locations
5082 # since ls returns lowest version numbers first, reverse its output
5083 if test x"${ac_cv_c_tclh}" = x ; then
5085 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
5086 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
5087 /usr/local/src/tcl \
5088 /usr/local/lib/tcl \
5089 ${prefix}/include ; do
5090 if test -f $i/generic/tclInt.h ; then
5091 ac_cv_c_tclh=`(cd $i/generic; pwd)`
5096 # see if one is installed
5097 if test x"${ac_cv_c_tclh}" = x ; then
5098 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
5100 echo "configure:5101: checking for tclInt.h" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5114 eval "ac_cv_header_$ac_safe=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 eval "ac_cv_header_$ac_safe=no"
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_cv_c_tclh=installed
5128 echo "$ac_t""no" 1>&6
5136 if test x"${ac_cv_c_tclh}" = x ; then
5137 TCLHDIR="# no Tcl private headers found"
5138 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5140 if test x"${ac_cv_c_tclh}" != x ; then
5142 if test x"${ac_cv_c_tclh}" = x"installed" ; then
5143 echo "$ac_t""is installed" 1>&6
5146 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5147 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5148 TCLHDIR="-I${ac_cv_c_tclh}"
5156 # Ok, lets find the tk source trees so we can use the headers
5157 # If the directory (presumably symlink) named "tk" exists, use that one
5158 # in preference to any others. Same logic is used when choosing library
5159 # and again with Tcl. The search order is the best place to look first, then in
5160 # decreasing significance. The loop breaks if the trigger file is found.
5161 # Note the gross little conversion here of srcdir by cd'ing to the found
5162 # directory. This converts the path from a relative to an absolute, so
5163 # recursive cache variables for the path will work right. We check all
5164 # the possible paths in one loop rather than many seperate loops to speed
5166 # the alternative search directory is involked by --with-tkinclude
5169 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5170 echo "configure:5171: checking for Tk private headers" >&5
5171 # Check whether --with-tkinclude or --without-tkinclude was given.
5172 if test "${with_tkinclude+set}" = set; then
5173 withval="$with_tkinclude"
5174 with_tkinclude=${withval}
5177 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5181 # first check to see if --with-tkinclude was specified
5182 if test x"${with_tkinclude}" != x ; then
5183 if test -f ${with_tkinclude}/tk.h ; then
5184 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
5185 elif test -f ${with_tkinclude}/generic/tk.h ; then
5186 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
5188 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5192 # next check if it came with Tk configuration file
5193 if test x"${ac_cv_c_tkconfig}" = x ; then
5194 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
5195 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
5199 # next check in private source directory
5201 # since ls returns lowest version numbers first, reverse its output
5202 if test x"${ac_cv_c_tkh}" = x ; then
5205 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5206 ${srcdir}/../../tk \
5207 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5208 ${srcdir}/../../../tk \
5209 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5210 if test -f $i/generic/tk.h ; then
5211 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5216 # finally check in a few common install locations
5218 # since ls returns lowest version numbers first, reverse its output
5219 if test x"${ac_cv_c_tkh}" = x ; then
5221 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5222 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5225 ${prefix}/include ; do
5226 if test -f $i/generic/tk.h ; then
5227 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5232 # see if one is installed
5233 if test x"${ac_cv_c_tkh}" = x ; then
5234 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
5235 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5236 echo "configure:5237: checking for tk.h" >&5
5237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5246 { (eval echo configure:5247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5248 if test -z "$ac_err"; then
5250 eval "ac_cv_header_$ac_safe=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 eval "ac_cv_header_$ac_safe=no"
5260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 ac_cv_c_tkh=installed
5264 echo "$ac_t""no" 1>&6
5272 if test x"${ac_cv_c_tkh}" != x ; then
5274 if test x"${ac_cv_c_tkh}" = x"installed" ; then
5275 echo "$ac_t""is installed" 1>&6
5278 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5279 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5280 TKHDIR="-I${ac_cv_c_tkh}"
5283 TKHDIR="# no Tk directory found"
5284 echo "configure: warning: Can't find Tk private headers" 1>&2
5291 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5292 echo "configure:5293: checking for Itcl private headers. srcdir=${srcdir}" >&5
5293 if test x"${ac_cv_c_itclh}" = x ; then
5294 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do
5295 if test -f $i/src/itcl.h ; then
5296 ac_cv_c_itclh=`(cd $i/src; pwd)`
5301 if test x"${ac_cv_c_itclh}" = x ; then
5302 ITCLHDIR="# no Itcl private headers found"
5303 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5305 if test x"${ac_cv_c_itclh}" != x ; then
5306 ITCLHDIR="-I${ac_cv_c_itclh}"
5308 # should always be here
5309 ITCLLIB="../itcl/src/libitcl.a"
5314 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5315 echo "configure:5316: checking for Tix private headers. srcdir=${srcdir}" >&5
5316 if test x"${ac_cv_c_tixh}" = x ; then
5317 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
5318 if test -f $i/generic/tix.h ; then
5319 ac_cv_c_tixh=`(cd $i/generic; pwd)`
5324 if test x"${ac_cv_c_tixh}" = x ; then
5325 TIXHDIR="# no Tix private headers found"
5326 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5328 if test x"${ac_cv_c_tixh}" != x ; then
5329 TIXHDIR="-I${ac_cv_c_tixh}"
5334 # now look for tix library stuff
5336 . ${ac_cv_c_tclconfig}/tclConfig.sh
5339 tixdir=../tix/win/tcl8.0
5342 tixdir=../tix/unix/tk8.0
5345 if test "${TCL_SHARED_BUILD}" = "1"; then
5346 TIX_LIB_EXT="${TCL_SHLIB_SUFFIX}"
5348 # Can't win them all: SunOS 4 (others?) appends a version
5349 # number after the ".so"
5352 TIX_LIB_EXT="${TIX_LIB_EXT}.1.0" ;;
5359 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5360 TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
5361 TIX_DEPS="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5363 TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5364 TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5368 ENABLE_CFLAGS="${ENABLE_CFLAGS} -DGDBTK"
5370 # Include some libraries that Tcl and Tk want.
5371 if test "${enable_ide}" = "yes"; then
5372 TCL_LIBS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5373 CONFIG_DEPS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5375 TCL_LIBS='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5376 CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5378 # Yes, the ordering seems wrong here. But it isn't.
5379 # TK_LIBS is the list of libraries that need to be linked
5380 # after Tcl/Tk. Note that this isn't put into LIBS. If it
5381 # were in LIBS then any link tests after this point would
5382 # try to include things like `$(LIBGUI)', which wouldn't work.
5383 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
5384 CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
5386 if test x$gdb_cv_os_cygwin32 = xyes; then
5387 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
5388 WIN32LDAPP="-Wl,--subsystem,console"
5389 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
5402 # end-sanitize-gdbtk
5404 # If we find X, set shell vars x_includes and x_libraries to the
5405 # paths, otherwise set no_x=yes.
5406 # Uses ac_ vars as temps to allow command line to override cache and checks.
5407 # --without-x overrides everything else, but does not touch the cache.
5408 echo $ac_n "checking for X""... $ac_c" 1>&6
5409 echo "configure:5410: checking for X" >&5
5411 # Check whether --with-x or --without-x was given.
5412 if test "${with_x+set}" = set; then
5417 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5418 if test "x$with_x" = xno; then
5419 # The user explicitly disabled X.
5422 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5423 # Both variables are already set.
5426 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 # One or both of the vars are not set, and there is no cached value.
5430 ac_x_includes=NO ac_x_libraries=NO
5432 if mkdir conftestdir; then
5434 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5435 cat > Imakefile <<'EOF'
5437 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5439 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5440 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5441 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5442 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5443 for ac_extension in a so sl; do
5444 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5445 test -f $ac_im_libdir/libX11.$ac_extension; then
5446 ac_im_usrlibdir=$ac_im_libdir; break
5449 # Screen out bogus values from the imake configuration. They are
5450 # bogus both because they are the default anyway, and because
5451 # using them would break gcc on systems where it needs fixed includes.
5452 case "$ac_im_incroot" in
5454 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5456 case "$ac_im_usrlibdir" in
5458 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5465 if test "$ac_x_includes" = NO; then
5466 # Guess where to find include files, by looking for this one X11 .h file.
5467 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5469 # First, try using that file with no special directory specified.
5470 cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 #include <$x_direct_test_include>
5475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5476 { (eval echo configure:5477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5478 if test -z "$ac_err"; then
5480 # We can compile using X headers with no special include directory.
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 # Look for the header file in a standard set of common directories.
5488 # Check X11 before X11Rn because it is often a symlink to the current release.
5491 /usr/X11R6/include \
5492 /usr/X11R5/include \
5493 /usr/X11R4/include \
5496 /usr/include/X11R6 \
5497 /usr/include/X11R5 \
5498 /usr/include/X11R4 \
5500 /usr/local/X11/include \
5501 /usr/local/X11R6/include \
5502 /usr/local/X11R5/include \
5503 /usr/local/X11R4/include \
5505 /usr/local/include/X11 \
5506 /usr/local/include/X11R6 \
5507 /usr/local/include/X11R5 \
5508 /usr/local/include/X11R4 \
5512 /usr/XFree86/include/X11 \
5515 /usr/local/include \
5516 /usr/unsupported/include \
5517 /usr/athena/include \
5518 /usr/local/x11r5/include \
5519 /usr/lpp/Xamples/include \
5521 /usr/openwin/include \
5522 /usr/openwin/share/include \
5525 if test -r "$ac_dir/$x_direct_test_include"; then
5526 ac_x_includes=$ac_dir
5532 fi # $ac_x_includes = NO
5534 if test "$ac_x_libraries" = NO; then
5535 # Check for the libraries.
5537 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5538 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5540 # See if we find them without any special options.
5541 # Don't add to $LIBS permanently.
5542 ac_save_LIBS="$LIBS"
5543 LIBS="-l$x_direct_test_library $LIBS"
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5549 ${x_direct_test_function}()
5552 if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5554 LIBS="$ac_save_LIBS"
5555 # We can link X programs with no special library path.
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 LIBS="$ac_save_LIBS"
5562 # First see if replacing the include by lib works.
5563 # Check X11 before X11Rn because it is often a symlink to the current release.
5564 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5575 /usr/local/X11/lib \
5576 /usr/local/X11R6/lib \
5577 /usr/local/X11R5/lib \
5578 /usr/local/X11R4/lib \
5580 /usr/local/lib/X11 \
5581 /usr/local/lib/X11R6 \
5582 /usr/local/lib/X11R5 \
5583 /usr/local/lib/X11R4 \
5587 /usr/XFree86/lib/X11 \
5591 /usr/unsupported/lib \
5593 /usr/local/x11r5/lib \
5594 /usr/lpp/Xamples/lib \
5598 /usr/openwin/share/lib \
5601 for ac_extension in a so sl; do
5602 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5603 ac_x_libraries=$ac_dir
5610 fi # $ac_x_libraries = NO
5612 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5613 # Didn't find X anywhere. Cache the known absence of X.
5614 ac_cv_have_x="have_x=no"
5616 # Record where we found X for the cache.
5617 ac_cv_have_x="have_x=yes \
5618 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5622 eval "$ac_cv_have_x"
5625 if test "$have_x" != yes; then
5626 echo "$ac_t""$have_x" 1>&6
5629 # If each of the values was on the command line, it overrides each guess.
5630 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5631 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5632 # Update the cache value to reflect the command line values.
5633 ac_cv_have_x="have_x=yes \
5634 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5635 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5638 # start-sanitize-sky
5639 # Enable GPU2 library for MIPS simulator
5640 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
5641 if test "${with_sim_gpu2+set}" = set; then
5642 withval="$with_sim_gpu2"
5645 if test -d "${withval}"
5647 LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
5649 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5651 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
5655 # Enable target accurate FP library
5656 # Check whether --with-sim-funit or --without-sim-funit was given.
5657 if test "${with_sim_funit+set}" = set; then
5658 withval="$with_sim_funit"
5661 if test -d "${withval}"
5663 LIBS="${LIBS} -L${withval}/lib -lfunit"
5665 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5667 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
5672 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5673 echo "configure:5674: checking for wctype in -lw" >&5
5674 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5678 ac_save_LIBS="$LIBS"
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 /* Override any gcc2 internal prototype to avoid an error. */
5684 /* We use char because int might match the return type of a gcc2
5685 builtin and then its argument prototype would still apply. */
5692 if { (eval echo configure:5693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5694 eval "ac_cv_lib_$ac_lib_var=yes"
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5699 eval "ac_cv_lib_$ac_lib_var=no"
5702 LIBS="$ac_save_LIBS"
5705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5709 echo "$ac_t""no" 1>&6
5719 # Begin stuff to support --enable-shared
5720 # Check whether --enable-shared or --disable-shared was given.
5721 if test "${enable_shared+set}" = set; then
5722 enableval="$enable_shared"
5723 case "${enableval}" in
5732 # If we have shared libraries, try to set rpath reasonably.
5733 if test "${shared}" = "true"; then
5736 HLDFLAGS='-Wl,+s,+b,$(libdir)'
5738 *-*-irix5* | *-*-irix6*)
5739 HLDFLAGS='-Wl,-rpath,$(libdir)'
5743 *-*-linux* | *-pc-linux-gnu)
5744 HLDFLAGS='-Wl,-rpath,$(libdir)'
5747 HLDFLAGS='-R $(libdir)'
5750 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;'
5755 # On SunOS, if the linker supports the -rpath option, use it to
5756 # prevent ../bfd and ../opcodes from being included in the run time
5760 echo 'main () { }' > conftest.c
5761 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
5762 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
5764 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
5766 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
5768 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
5770 elif test "${shared}" = "true"; then
5771 HLDFLAGS='-Wl,-rpath=$(libdir)'
5773 HLDFLAGS='-Wl,-rpath='
5775 rm -f conftest.t conftest.c conftest
5780 # End stuff to support --enable-shared
5782 # target_subdir is used by the testsuite to find the target libraries.
5784 if test "${host}" != "${target}"; then
5785 target_subdir="${target_alias}/"
5790 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5791 if test ! -f ${host_makefile_frag}; then
5792 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
5794 frags="$frags $host_makefile_frag"
5796 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5797 if test ! -f ${target_makefile_frag}; then
5798 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
5800 frags="$frags $target_makefile_frag"
5807 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5808 ' ${host_makefile_frag}`
5810 targetfile=`sed -n '
5811 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5812 ' ${target_makefile_frag}`
5814 # these really aren't orthogonal true/false values of the same condition,
5815 # but shells are slow enough that I like to reuse the test conditions
5817 if test "${target}" = "${host}"; then
5818 nativefile=`sed -n '
5819 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5820 ' ${host_makefile_frag}`
5822 # GDBserver is only useful in a "native" enviroment
5823 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5827 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5828 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5829 # corresponding links. But we have to remove the xm.h files and tm.h
5830 # files anyway, e.g. when switching from "configure host" to
5836 if test "${hostfile}" != ""; then
5837 files="${files} config/${gdb_host_cpu}/${hostfile}"
5838 links="${links} xm.h"
5841 if test "${targetfile}" != ""; then
5842 files="${files} config/${gdb_target_cpu}/${targetfile}"
5843 links="${links} tm.h"
5846 if test "${nativefile}" != ""; then
5847 files="${files} config/${gdb_host_cpu}/${nativefile}"
5848 links="${links} nm.h"
5850 # A cross-only configuration.
5851 files="${files} config/nm-empty.h"
5852 links="${links} nm.h"
5854 # start-sanitize-gdbtk
5855 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5856 echo "configure:5857: checking whether ln -s works" >&5
5857 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5861 if ln -s X conftestdata 2>/dev/null
5864 ac_cv_prog_LN_S="ln -s"
5869 LN_S="$ac_cv_prog_LN_S"
5870 if test "$ac_cv_prog_LN_S" = "ln -s"; then
5871 echo "$ac_t""yes" 1>&6
5873 echo "$ac_t""no" 1>&6
5876 # Make it possible to use the GUI without doing a full install
5877 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl2 ; then
5878 if test "$LN_S" = "ln -s" -a ! -f gdbtcl2 ; then
5879 echo linking $srcdir/gdbtcl2 to gdbtcl2
5880 $LN_S $srcdir/gdbtcl2 gdbtcl2
5882 echo Warning: Unable to link $srcdir/gdbtcl2 to gdbtcl2. You will need to do a
5883 echo " " make install before you are able to run the GUI.
5886 # end-sanitize-gdbtk
5890 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
5891 echo "configure:5892: checking for Cygwin32 environment" >&5
5892 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5900 return __CYGWIN32__;
5903 if { (eval echo configure:5904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5907 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5916 echo "$ac_t""$am_cv_cygwin32" 1>&6
5918 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
5919 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
5920 echo "configure:5921: checking for Mingw32 environment" >&5
5921 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5932 if { (eval echo configure:5933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5945 echo "$ac_t""$am_cv_mingw32" 1>&6
5947 test "$am_cv_mingw32" = yes && MINGW32=yes
5950 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5951 echo "configure:5952: checking for executable suffix" >&5
5952 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
5953 echo $ac_n "(cached) $ac_c" 1>&6
5955 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
5958 cat > am_c_test.c << 'EOF'
5960 /* Nothing needed here */
5963 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
5965 for file in am_c_test.*; do
5969 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
5975 test x"${am_cv_exeext}" = x && am_cv_exeext=no
5978 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
5979 echo "$ac_t""${am_cv_exeext}" 1>&6
5982 subdirs="$configdirs"
5985 cat > confcache <<\EOF
5986 # This file is a shell script that caches the results of configure
5987 # tests run on this system so they can be shared between configure
5988 # scripts and configure runs. It is not useful on other systems.
5989 # If it contains results you don't want to keep, you may remove or edit it.
5991 # By default, configure uses ./config.cache as the cache file,
5992 # creating it if it does not exist already. You can give configure
5993 # the --cache-file=FILE option to use a different cache file; that is
5994 # what configure does when it calls configure scripts in
5995 # subdirectories, so they share the cache.
5996 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5997 # config.status only pays attention to the cache file if you give it the
5998 # --recheck option to rerun configure.
6001 # The following way of writing the cache mishandles newlines in values,
6002 # but we know of no workaround that is simple, portable, and efficient.
6003 # So, don't put newlines in cache variables' values.
6004 # Ultrix sh set writes to stderr and can't be redirected directly,
6005 # and sets the high bit in the cache file unless we assign to the vars.
6007 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
6009 # `set' does not quote correctly, so add quotes (double-quote substitution
6010 # turns \\\\ into \\, and sed turns \\ into \).
6012 -e "s/'/'\\\\''/g" \
6013 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6016 # `set' quotes correctly as required by POSIX, so do not add quotes.
6017 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6020 if cmp -s $cache_file confcache; then
6023 if test -w $cache_file; then
6024 echo "updating cache $cache_file"
6025 cat confcache > $cache_file
6027 echo "not updating unwritable cache $cache_file"
6032 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6035 # Let make expand exec_prefix.
6036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6038 # Any assignment to VPATH causes Sun make to only execute
6039 # the first set of double-colon rules, so remove it if not needed.
6040 # If there is a colon in the path, we need to keep it.
6041 if test "x$srcdir" = x.; then
6042 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6045 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6047 DEFS=-DHAVE_CONFIG_H
6049 # Without the "./", some shells look in PATH for config.status.
6050 : ${CONFIG_STATUS=./config.status}
6052 echo creating $CONFIG_STATUS
6053 rm -f $CONFIG_STATUS
6054 cat > $CONFIG_STATUS <<EOF
6056 # Generated automatically by configure.
6057 # Run this file to recreate the current configuration.
6058 # This directory was configured as follows,
6059 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6061 # $0 $ac_configure_args
6063 # Compiler output produced by configure, useful for debugging
6064 # configure, is in ./config.log if it exists.
6066 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6069 case "\$ac_option" in
6070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6071 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6072 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6073 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6074 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
6076 -help | --help | --hel | --he | --h)
6077 echo "\$ac_cs_usage"; exit 0 ;;
6078 *) echo "\$ac_cs_usage"; exit 1 ;;
6082 ac_given_srcdir=$srcdir
6083 ac_given_INSTALL="$INSTALL"
6085 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6087 cat >> $CONFIG_STATUS <<EOF
6089 # Protect against being on the right side of a sed subst in config.status.
6090 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6091 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6095 s%@CFLAGS@%$CFLAGS%g
6096 s%@CPPFLAGS@%$CPPFLAGS%g
6097 s%@CXXFLAGS@%$CXXFLAGS%g
6099 s%@LDFLAGS@%$LDFLAGS%g
6101 s%@exec_prefix@%$exec_prefix%g
6102 s%@prefix@%$prefix%g
6103 s%@program_transform_name@%$program_transform_name%g
6104 s%@bindir@%$bindir%g
6105 s%@sbindir@%$sbindir%g
6106 s%@libexecdir@%$libexecdir%g
6107 s%@datadir@%$datadir%g
6108 s%@sysconfdir@%$sysconfdir%g
6109 s%@sharedstatedir@%$sharedstatedir%g
6110 s%@localstatedir@%$localstatedir%g
6111 s%@libdir@%$libdir%g
6112 s%@includedir@%$includedir%g
6113 s%@oldincludedir@%$oldincludedir%g
6114 s%@infodir@%$infodir%g
6115 s%@mandir@%$mandir%g
6119 s%@host_alias@%$host_alias%g
6120 s%@host_cpu@%$host_cpu%g
6121 s%@host_vendor@%$host_vendor%g
6122 s%@host_os@%$host_os%g
6123 s%@target@%$target%g
6124 s%@target_alias@%$target_alias%g
6125 s%@target_cpu@%$target_cpu%g
6126 s%@target_vendor@%$target_vendor%g
6127 s%@target_os@%$target_os%g
6129 s%@build_alias@%$build_alias%g
6130 s%@build_cpu@%$build_cpu%g
6131 s%@build_vendor@%$build_vendor%g
6132 s%@build_os@%$build_os%g
6133 s%@SET_MAKE@%$SET_MAKE%g
6134 s%@RANLIB@%$RANLIB%g
6135 s%@ALLOCA@%$ALLOCA%g
6136 s%@USE_NLS@%$USE_NLS%g
6137 s%@MSGFMT@%$MSGFMT%g
6138 s%@GMSGFMT@%$GMSGFMT%g
6139 s%@XGETTEXT@%$XGETTEXT%g
6140 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6141 s%@CATALOGS@%$CATALOGS%g
6142 s%@CATOBJEXT@%$CATOBJEXT%g
6143 s%@DATADIRNAME@%$DATADIRNAME%g
6144 s%@GMOFILES@%$GMOFILES%g
6145 s%@INSTOBJEXT@%$INSTOBJEXT%g
6146 s%@INTLDEPS@%$INTLDEPS%g
6147 s%@INTLLIBS@%$INTLLIBS%g
6148 s%@INTLOBJS@%$INTLOBJS%g
6149 s%@POFILES@%$POFILES%g
6151 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6153 s%@GT_YES@%$GT_YES%g
6154 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6156 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6157 s%@INSTALL_DATA@%$INSTALL_DATA%g
6160 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6161 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6162 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6163 s%@MMALLOC@%$MMALLOC%g
6164 s%@MACHINE_OBS@%$MACHINE_OBS%g
6165 s%@ENABLE_IDE@%$ENABLE_IDE%g
6166 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6167 s%@LIBGUI@%$LIBGUI%g
6168 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6169 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6171 s%@LIBIDETCL@%$LIBIDETCL%g
6172 s%@LIBIDE@%$LIBIDE%g
6173 s%@IDE_DEPS@%$IDE_DEPS%g
6174 s%@WIN32LIBS@%$WIN32LIBS%g
6175 s%@WIN32LDAPP@%$WIN32LDAPP%g
6176 s%@DLLTOOL@%$DLLTOOL%g
6177 s%@WINDRES@%$WINDRES%g
6178 s%@TCL_VERSION@%$TCL_VERSION%g
6179 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6180 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6181 s%@TCL_CC@%$TCL_CC%g
6182 s%@TCL_DEFS@%$TCL_DEFS%g
6183 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6184 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6185 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6186 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6187 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6188 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6189 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6190 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6191 s%@TCL_RANLIB@%$TCL_RANLIB%g
6192 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6193 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6194 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6195 s%@TK_VERSION@%$TK_VERSION%g
6196 s%@TK_DEFS@%$TK_DEFS%g
6197 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6198 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6199 s%@TK_XLIBSW@%$TK_XLIBSW%g
6200 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6201 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6202 s%@TCLHDIR@%$TCLHDIR%g
6203 s%@TKHDIR@%$TKHDIR%g
6204 s%@ITCLHDIR@%$ITCLHDIR%g
6205 s%@ITCLLIB@%$ITCLLIB%g
6206 s%@TIXHDIR@%$TIXHDIR%g
6207 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6208 s%@X_CFLAGS@%$X_CFLAGS%g
6209 s%@X_LDFLAGS@%$X_LDFLAGS%g
6210 s%@X_LIBS@%$X_LIBS%g
6211 s%@TIXLIB@%$TIXLIB%g
6212 s%@TIX_DEPS@%$TIX_DEPS%g
6213 s%@GDBTKLIBS@%$GDBTKLIBS%g
6214 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6215 s%@CONFIG_OBS@%$CONFIG_OBS%g
6216 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6217 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6218 s%@HLDFLAGS@%$HLDFLAGS%g
6219 s%@HLDENV@%$HLDENV%g
6220 s%@target_subdir@%$target_subdir%g
6221 /@host_makefile_frag@/r $host_makefile_frag
6222 s%@host_makefile_frag@%%g
6223 /@target_makefile_frag@/r $target_makefile_frag
6224 s%@target_makefile_frag@%%g
6227 s%@EXEEXT@%$EXEEXT%g
6228 s%@subdirs@%$subdirs%g
6233 cat >> $CONFIG_STATUS <<\EOF
6235 # Split the substitutions into bite-sized pieces for seds with
6236 # small command number limits, like on Digital OSF/1 and HP-UX.
6237 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6238 ac_file=1 # Number of current file.
6239 ac_beg=1 # First line for current file.
6240 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6243 while $ac_more_lines; do
6244 if test $ac_beg -gt 1; then
6245 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6247 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6249 if test ! -s conftest.s$ac_file; then
6251 rm -f conftest.s$ac_file
6253 if test -z "$ac_sed_cmds"; then
6254 ac_sed_cmds="sed -f conftest.s$ac_file"
6256 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6258 ac_file=`expr $ac_file + 1`
6260 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6263 if test -z "$ac_sed_cmds"; then
6268 cat >> $CONFIG_STATUS <<EOF
6270 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
6272 cat >> $CONFIG_STATUS <<\EOF
6273 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6274 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6276 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6277 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6278 *) ac_file_in="${ac_file}.in" ;;
6281 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6283 # Remove last slash and all that follows it. Not all systems have dirname.
6284 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6285 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6286 # The file is in a subdirectory.
6287 test ! -d "$ac_dir" && mkdir "$ac_dir"
6288 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6289 # A "../" for each directory in $ac_dir_suffix.
6290 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6292 ac_dir_suffix= ac_dots=
6295 case "$ac_given_srcdir" in
6297 if test -z "$ac_dots"; then top_srcdir=.
6298 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6299 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6301 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6302 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6305 case "$ac_given_INSTALL" in
6306 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6307 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6310 echo creating "$ac_file"
6312 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6314 *Makefile*) ac_comsub="1i\\
6315 # $configure_input" ;;
6319 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6321 s%@configure_input@%$configure_input%g
6322 s%@srcdir@%$srcdir%g
6323 s%@top_srcdir@%$top_srcdir%g
6324 s%@INSTALL@%$INSTALL%g
6325 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6329 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6330 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6332 # ac_d sets the value in "#define NAME VALUE" lines.
6333 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6334 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6337 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6338 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6339 ac_uB='\([ ]\)%\1#\2define\3'
6342 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6343 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6344 ac_eB='$%\1#\2define\3'
6348 if test "${CONFIG_HEADERS+set}" != set; then
6350 cat >> $CONFIG_STATUS <<EOF
6351 CONFIG_HEADERS="config.h:config.in"
6353 cat >> $CONFIG_STATUS <<\EOF
6355 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6356 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6358 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6359 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6360 *) ac_file_in="${ac_file}.in" ;;
6363 echo creating $ac_file
6365 rm -f conftest.frag conftest.in conftest.out
6366 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6367 cat $ac_file_inputs > conftest.in
6371 # Transform confdefs.h into a sed script conftest.vals that substitutes
6372 # the proper values into config.h.in to produce config.h. And first:
6373 # Protect against being on the right side of a sed subst in config.status.
6374 # Protect against being in an unquoted here document in config.status.
6376 cat > conftest.hdr <<\EOF
6379 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6383 sed -n -f conftest.hdr confdefs.h > conftest.vals
6386 # This sed command replaces #undef with comments. This is necessary, for
6387 # example, in the case of _POSIX_SOURCE, which is predefined and required
6388 # on some systems where configure will not decide to define it.
6389 cat >> conftest.vals <<\EOF
6390 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6393 # Break up conftest.vals because some shells have a limit on
6394 # the size of here documents, and old seds have small limits too.
6399 ac_lines=`grep -c . conftest.vals`
6400 # grep -c gives empty output for an empty file on some AIX systems.
6401 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6402 # Write a limited-size here document to conftest.frag.
6403 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6404 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6406 sed -f conftest.frag conftest.in > conftest.out
6408 mv conftest.out conftest.in
6410 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6412 mv conftest.tail conftest.vals
6416 cat >> $CONFIG_STATUS <<\EOF
6417 rm -f conftest.frag conftest.h
6418 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6419 cat conftest.in >> conftest.h
6421 if cmp -s $ac_file conftest.h 2>/dev/null; then
6422 echo "$ac_file is unchanged"
6425 # Remove last slash and all that follows it. Not all systems have dirname.
6426 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6427 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6428 # The file is in a subdirectory.
6429 test ! -d "$ac_dir" && mkdir "$ac_dir"
6432 mv conftest.h $ac_file
6438 cat >> $CONFIG_STATUS <<EOF
6443 cat >> $CONFIG_STATUS <<\EOF
6444 srcdir=$ac_given_srcdir
6445 while test -n "$ac_sources"; do
6446 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6447 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6449 echo "linking $srcdir/$ac_source to $ac_dest"
6451 if test ! -r $srcdir/$ac_source; then
6452 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6456 # Make relative symlinks.
6457 # Remove last slash and all that follows it. Not all systems have dirname.
6458 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6459 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6460 # The dest file is in a subdirectory.
6461 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6462 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6463 # A "../" for each directory in $ac_dest_dir_suffix.
6464 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6466 ac_dest_dir_suffix= ac_dots=
6470 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6471 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6474 # Make a symlink if possible; otherwise try a hard link.
6475 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6476 ln $srcdir/$ac_source $ac_dest; then :
6478 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6482 cat >> $CONFIG_STATUS <<EOF
6484 gdb_host_cpu=$gdb_host_cpu
6485 gdb_target_cpu=$gdb_target_cpu
6486 nativefile=$nativefile
6489 cat >> $CONFIG_STATUS <<\EOF
6491 if test "${nativefile}" = ""; then
6492 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6493 < Makefile > Makefile.tem
6494 mv -f Makefile.tem Makefile
6497 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6498 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6499 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6500 mv -f Makefile.tmp Makefile
6502 case x$CONFIG_HEADERS in
6503 xconfig.h:config.in)
6509 chmod +x $CONFIG_STATUS
6510 rm -fr confdefs* $ac_clean_files
6511 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6513 if test "$no_recursion" != yes; then
6515 # Remove --cache-file and --srcdir arguments so they do not pile up.
6516 ac_sub_configure_args=
6518 for ac_arg in $ac_configure_args; do
6519 if test -n "$ac_prev"; then
6524 -cache-file | --cache-file | --cache-fil | --cache-fi \
6525 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6526 ac_prev=cache_file ;;
6527 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6528 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6534 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6538 for ac_config_dir in $configdirs; do
6540 # Do not complain, so a configure script can configure whichever
6541 # parts of a large source tree are present.
6542 if test ! -d $srcdir/$ac_config_dir; then
6546 echo configuring in $ac_config_dir
6551 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6553 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6561 # A "../" for each directory in /$ac_config_dir.
6562 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6565 .) # No --srcdir option. We are building in place.
6566 ac_sub_srcdir=$srcdir ;;
6567 /*) # Absolute path.
6568 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6570 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6573 # Check for guested configure; otherwise get Cygnus style configure.
6574 if test -f $ac_sub_srcdir/configure; then
6575 ac_sub_configure=$ac_sub_srcdir/configure
6576 elif test -f $ac_sub_srcdir/configure.in; then
6577 ac_sub_configure=$ac_configure
6579 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6583 # The recursion is here.
6584 if test -n "$ac_sub_configure"; then
6586 # Make the cache file name correct relative to the subdirectory.
6587 case "$cache_file" in
6588 /*) ac_sub_cache_file=$cache_file ;;
6590 ac_sub_cache_file="$ac_dots$cache_file" ;;
6592 case "$ac_given_INSTALL" in
6593 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6594 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6597 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6598 # The eval makes quoting arguments work.
6599 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6602 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }