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 --with-mmalloc use memory mapped malloc package"
23 --enable-ide Enable IDE support"
25 --with-foundry-libs=directory use the Foundry SDK in directory"
29 --with-tclconfig directory containing tcl configuration (tclConfig.sh)"
31 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
33 --with-tclinclude directory where tcl private headers are"
35 --with-tkinclude directory where tk private headers are"
37 --with-x use the X Window System"
39 --with-sim-gpu2=path Use GPU2 library under given directory"
41 --with-sim-funit=path Use target FP lib under given directory"
43 --enable-shared use shared libraries"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file=./config.cache
58 program_transform_name=s,x,x,
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
219 -host | --host | --hos | --ho)
221 -host=* | --host=* | --hos=* | --ho=*)
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
236 -libdir | --libdir | --libdi | --libd)
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
263 # Obsolete; use --without-fp.
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 sbindir="$ac_optarg" ;;
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 sharedstatedir="$ac_optarg" ;;
340 -site | --site | --sit)
342 -site=* | --site=* | --sit=*)
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.12.2"
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=main.c
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
528 echo "creating cache $cache_file"
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
541 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='\c' ac_t=
556 # Extract the first word of "gcc", so it can be a program name with args.
557 set dummy gcc; ac_word=$2
558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
559 echo "configure:560: checking for $ac_word" >&5
560 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
561 echo $ac_n "(cached) $ac_c" 1>&6
563 if test -n "$CC"; then
564 ac_cv_prog_CC="$CC" # Let the user override the test.
566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
567 for ac_dir in $PATH; do
568 test -z "$ac_dir" && ac_dir=.
569 if test -f $ac_dir/$ac_word; then
578 if test -n "$CC"; then
579 echo "$ac_t""$CC" 1>&6
581 echo "$ac_t""no" 1>&6
584 if test -z "$CC"; then
585 # Extract the first word of "cc", so it can be a program name with args.
586 set dummy cc; ac_word=$2
587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
588 echo "configure:589: checking for $ac_word" >&5
589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 if test -n "$CC"; then
593 ac_cv_prog_CC="$CC" # Let the user override the test.
595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
597 for ac_dir in $PATH; do
598 test -z "$ac_dir" && ac_dir=.
599 if test -f $ac_dir/$ac_word; then
600 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
609 if test $ac_prog_rejected = yes; then
610 # We found a bogon in the path, so make sure we never use it.
611 set dummy $ac_cv_prog_CC
613 if test $# -gt 0; then
614 # We chose a different compiler from the bogus one.
615 # However, it has the same basename, so the bogon will be chosen
616 # first if we set CC to just the basename; use the full file name.
618 set dummy "$ac_dir/$ac_word" "$@"
626 if test -n "$CC"; then
627 echo "$ac_t""$CC" 1>&6
629 echo "$ac_t""no" 1>&6
632 if test -z "$CC"; then
635 # Extract the first word of "cl", so it can be a program name with args.
636 set dummy cl; ac_word=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 if test -n "$CC"; then
643 ac_cv_prog_CC="$CC" # Let the user override the test.
645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
646 for ac_dir in $PATH; do
647 test -z "$ac_dir" && ac_dir=.
648 if test -f $ac_dir/$ac_word; then
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
665 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
668 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
669 echo "configure:670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
673 ac_cpp='$CPP $CPPFLAGS'
674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
676 cross_compiling=$ac_cv_prog_cc_cross
678 cat > conftest.$ac_ext <<EOF
679 #line 680 "configure"
680 #include "confdefs.h"
683 if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
684 ac_cv_prog_cc_works=yes
685 # If we can't run a trivial program, we are probably using a cross compiler.
686 if (./conftest; exit) 2>/dev/null; then
687 ac_cv_prog_cc_cross=no
689 ac_cv_prog_cc_cross=yes
692 echo "configure: failed program was:" >&5
693 cat conftest.$ac_ext >&5
694 ac_cv_prog_cc_works=no
698 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
699 if test $ac_cv_prog_cc_works = no; then
700 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
704 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
705 cross_compiling=$ac_cv_prog_cc_cross
707 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
708 echo "configure:709: checking whether we are using GNU C" >&5
709 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 cat > conftest.c <<EOF
717 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
724 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
726 if test $ac_cv_prog_gcc = yes; then
732 ac_test_CFLAGS="${CFLAGS+set}"
733 ac_save_CFLAGS="$CFLAGS"
735 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${CC-cc} accepts -g" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 echo 'void f(){}' > conftest.c
741 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
750 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
751 if test "$ac_test_CFLAGS" = set; then
752 CFLAGS="$ac_save_CFLAGS"
753 elif test $ac_cv_prog_cc_g = yes; then
754 if test "$GCC" = yes; then
760 if test "$GCC" = yes; then
767 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
768 echo "configure:769: checking how to run the C preprocessor" >&5
769 # On Suns, sometimes $CPP names a directory.
770 if test -n "$CPP" && test -d "$CPP"; then
773 if test -z "$CPP"; then
774 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 # This must be in double quotes, not single quotes, because CPP may get
778 # substituted into the Makefile and "${CC-cc}" will confuse make.
780 # On the NeXT, cc -E runs the code through the compiler's parser,
781 # not just through cpp.
782 cat > conftest.$ac_ext <<EOF
783 #line 784 "configure"
784 #include "confdefs.h"
788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
789 { (eval echo configure:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
791 if test -z "$ac_err"; then
795 echo "configure: failed program was:" >&5
796 cat conftest.$ac_ext >&5
798 CPP="${CC-cc} -E -traditional-cpp"
799 cat > conftest.$ac_ext <<EOF
800 #line 801 "configure"
801 #include "confdefs.h"
805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
806 { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
808 if test -z "$ac_err"; then
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
815 CPP="${CC-cc} -nologo -E"
816 cat > conftest.$ac_ext <<EOF
817 #line 818 "configure"
818 #include "confdefs.h"
822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
823 { (eval echo configure:824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
825 if test -z "$ac_err"; then
829 echo "configure: failed program was:" >&5
830 cat conftest.$ac_ext >&5
839 ac_cv_prog_CPP="$CPP"
841 CPP="$ac_cv_prog_CPP"
843 ac_cv_prog_CPP="$CPP"
845 echo "$ac_t""$CPP" 1>&6
847 echo $ac_n "checking for AIX""... $ac_c" 1>&6
848 echo "configure:849: checking for AIX" >&5
849 cat > conftest.$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
858 egrep "yes" >/dev/null 2>&1; then
860 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
861 #define _ALL_SOURCE 1
866 echo "$ac_t""no" 1>&6
871 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
872 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
873 echo "configure:874: checking for minix/config.h" >&5
874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
880 #include <minix/config.h>
882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
883 { (eval echo configure:884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
885 if test -z "$ac_err"; then
887 eval "ac_cv_header_$ac_safe=yes"
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
893 eval "ac_cv_header_$ac_safe=no"
897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
898 echo "$ac_t""yes" 1>&6
901 echo "$ac_t""no" 1>&6
905 if test "$MINIX" = yes; then
906 cat >> confdefs.h <<\EOF
907 #define _POSIX_SOURCE 1
910 cat >> confdefs.h <<\EOF
911 #define _POSIX_1_SOURCE 2
914 cat >> confdefs.h <<\EOF
920 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
921 echo "configure:922: checking for POSIXized ISC" >&5
922 if test -d /etc/conf/kconfig.d &&
923 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
925 echo "$ac_t""yes" 1>&6
926 ISC=yes # If later tests want to check for ISC.
927 cat >> confdefs.h <<\EOF
928 #define _POSIX_SOURCE 1
931 if test "$GCC" = yes; then
937 echo "$ac_t""no" 1>&6
942 DLLTOOL=${DLLTOOL-dlltool}
946 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
947 if test -f $ac_dir/install-sh; then
949 ac_install_sh="$ac_aux_dir/install-sh -c"
951 elif test -f $ac_dir/install.sh; then
953 ac_install_sh="$ac_aux_dir/install.sh -c"
957 if test -z "$ac_aux_dir"; then
958 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
960 ac_config_guess=$ac_aux_dir/config.guess
961 ac_config_sub=$ac_aux_dir/config.sub
962 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
965 # Do some error checking and defaulting for the host and target type.
967 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
970 # 1. You are not allowed to specify --host, --target, and nonopt at the
972 # 2. Host defaults to nonopt.
973 # 3. If nonopt is not specified, then host defaults to the current host,
974 # as determined by config.guess.
975 # 4. Target and build default to nonopt.
976 # 5. If nonopt is not specified, then target and build default to host.
978 # The aliases save the names the user supplied, while $host etc.
979 # will get canonicalized.
980 case $host---$target---$nonopt in
981 NONE---*---* | *---NONE---* | *---*---NONE) ;;
982 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
986 # Make sure we can run config.sub.
987 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
988 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
991 echo $ac_n "checking host system type""... $ac_c" 1>&6
992 echo "configure:993: checking host system type" >&5
995 case "$host_alias" in
999 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1000 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1002 *) host_alias=$nonopt ;;
1006 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1007 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1008 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1009 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1010 echo "$ac_t""$host" 1>&6
1012 echo $ac_n "checking target system type""... $ac_c" 1>&6
1013 echo "configure:1014: checking target system type" >&5
1015 target_alias=$target
1016 case "$target_alias" in
1019 NONE) target_alias=$host_alias ;;
1020 *) target_alias=$nonopt ;;
1024 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1025 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1026 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1027 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1028 echo "$ac_t""$target" 1>&6
1030 echo $ac_n "checking build system type""... $ac_c" 1>&6
1031 echo "configure:1032: checking build system type" >&5
1034 case "$build_alias" in
1037 NONE) build_alias=$host_alias ;;
1038 *) build_alias=$nonopt ;;
1042 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1043 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 echo "$ac_t""$build" 1>&6
1048 test "$host_alias" != "$target_alias" &&
1049 test "$program_prefix$program_suffix$program_transform_name" = \
1051 program_prefix=${target_alias}-
1055 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1056 echo "configure:1057: checking whether ${MAKE-make} sets \${MAKE}" >&5
1057 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1058 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 cat > conftestmake <<\EOF
1063 @echo 'ac_maketemp="${MAKE}"'
1065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1066 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1067 if test -n "$ac_maketemp"; then
1068 eval ac_cv_prog_make_${ac_make}_set=yes
1070 eval ac_cv_prog_make_${ac_make}_set=no
1074 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1075 echo "$ac_t""yes" 1>&6
1078 echo "$ac_t""no" 1>&6
1079 SET_MAKE="MAKE=${MAKE-make}"
1082 # Extract the first word of "ranlib", so it can be a program name with args.
1083 set dummy ranlib; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$RANLIB"; then
1090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 for ac_dir in $PATH; do
1094 test -z "$ac_dir" && ac_dir=.
1095 if test -f $ac_dir/$ac_word; then
1096 ac_cv_prog_RANLIB="ranlib"
1101 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1104 RANLIB="$ac_cv_prog_RANLIB"
1105 if test -n "$RANLIB"; then
1106 echo "$ac_t""$RANLIB" 1>&6
1108 echo "$ac_t""no" 1>&6
1111 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1112 echo "configure:1113: checking for ANSI C header files" >&5
1113 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1125 { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1127 if test -z "$ac_err"; then
1129 ac_cv_header_stdc=yes
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1135 ac_cv_header_stdc=no
1139 if test $ac_cv_header_stdc = yes; then
1140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1141 cat > conftest.$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1147 egrep "memchr" >/dev/null 2>&1; then
1151 ac_cv_header_stdc=no
1157 if test $ac_cv_header_stdc = yes; then
1158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1159 cat > conftest.$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1165 egrep "free" >/dev/null 2>&1; then
1169 ac_cv_header_stdc=no
1175 if test $ac_cv_header_stdc = yes; then
1176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1177 if test "$cross_compiling" = yes; then
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1184 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1185 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1187 int main () { int i; for (i = 0; i < 256; i++)
1188 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1192 if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1199 ac_cv_header_stdc=no
1207 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1208 if test $ac_cv_header_stdc = yes; then
1209 cat >> confdefs.h <<\EOF
1210 #define STDC_HEADERS 1
1215 echo $ac_n "checking for working const""... $ac_c" 1>&6
1216 echo "configure:1217: checking for working const" >&5
1217 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1226 /* Ultrix mips cc rejects this. */
1227 typedef int charset[2]; const charset x;
1228 /* SunOS 4.1.1 cc rejects this. */
1229 char const *const *ccp;
1231 /* NEC SVR4.0.2 mips cc rejects this. */
1232 struct point {int x, y;};
1233 static struct point const zero = {0,0};
1234 /* AIX XL C 1.02.0.0 rejects this.
1235 It does not let you subtract one const X* pointer from another in an arm
1236 of an if-expression whose if-part is not a constant expression */
1237 const char *g = "string";
1238 ccp = &g + (g ? g-g : 0);
1239 /* HPUX 7.0 cc rejects these. */
1242 ccp = (char const *const *) p;
1243 { /* SCO 3.2v4 cc rejects this. */
1245 char const *s = 0 ? (char *) 0 : (char const *) 0;
1249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1251 const int *foo = &x[0];
1254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1255 typedef const int *iptr;
1259 { /* AIX XL C 1.02.0.0 rejects this saying
1260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1261 struct s { int j; const int *ap[3]; };
1262 struct s *b; b->j = 5;
1264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1270 if { (eval echo configure:1271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1282 echo "$ac_t""$ac_cv_c_const" 1>&6
1283 if test $ac_cv_c_const = no; then
1284 cat >> confdefs.h <<\EOF
1290 echo $ac_n "checking for inline""... $ac_c" 1>&6
1291 echo "configure:1292: checking for inline" >&5
1292 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1296 for ac_kw in inline __inline__ __inline; do
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 if { (eval echo configure:1306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1307 ac_cv_c_inline=$ac_kw; break
1309 echo "configure: failed program was:" >&5
1310 cat conftest.$ac_ext >&5
1317 echo "$ac_t""$ac_cv_c_inline" 1>&6
1318 case "$ac_cv_c_inline" in
1320 no) cat >> confdefs.h <<\EOF
1324 *) cat >> confdefs.h <<EOF
1325 #define inline $ac_cv_c_inline
1330 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1331 echo "configure:1332: checking for off_t" >&5
1332 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 #include <sys/types.h>
1344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1345 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1347 ac_cv_type_off_t=yes
1355 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1356 if test $ac_cv_type_off_t = no; then
1357 cat >> confdefs.h <<\EOF
1363 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1364 echo "configure:1365: checking for size_t" >&5
1365 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 #include <sys/types.h>
1377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1378 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1380 ac_cv_type_size_t=yes
1383 ac_cv_type_size_t=no
1388 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1389 if test $ac_cv_type_size_t = no; then
1390 cat >> confdefs.h <<\EOF
1391 #define size_t unsigned
1396 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1397 # for constant arguments. Useless!
1398 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1399 echo "configure:1400: checking for working alloca.h" >&5
1400 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1408 char *p = alloca(2 * sizeof(int));
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 ac_cv_header_alloca_h=yes
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 ac_cv_header_alloca_h=no
1423 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1424 if test $ac_cv_header_alloca_h = yes; then
1425 cat >> confdefs.h <<\EOF
1426 #define HAVE_ALLOCA_H 1
1431 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1432 echo "configure:1433: checking for alloca" >&5
1433 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1441 # define alloca __builtin_alloca
1444 # include <malloc.h>
1445 # define alloca _alloca
1448 # include <alloca.h>
1453 # ifndef alloca /* predefined by HP cc +Olibcalls */
1462 char *p = (char *) alloca(1);
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1467 ac_cv_func_alloca_works=yes
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1472 ac_cv_func_alloca_works=no
1477 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1478 if test $ac_cv_func_alloca_works = yes; then
1479 cat >> confdefs.h <<\EOF
1480 #define HAVE_ALLOCA 1
1485 if test $ac_cv_func_alloca_works = no; then
1486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1487 # that cause trouble. Some versions do not even contain alloca or
1488 # contain a buggy version. If you still want to use their alloca,
1489 # use ar to extract alloca.o from them instead of compiling alloca.c.
1490 ALLOCA=alloca.${ac_objext}
1491 cat >> confdefs.h <<\EOF
1496 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1497 echo "configure:1498: checking whether alloca needs Cray hooks" >&5
1498 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 #if defined(CRAY) && ! defined(CRAY2)
1511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1512 egrep "webecray" >/dev/null 2>&1; then
1523 echo "$ac_t""$ac_cv_os_cray" 1>&6
1524 if test $ac_cv_os_cray = yes; then
1525 for ac_func in _getb67 GETB67 getb67; do
1526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_func" >&5
1528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1534 /* System header to define __stub macros and hopefully few prototypes,
1535 which can conflict with char $ac_func(); below. */
1537 /* Override any gcc2 internal prototype to avoid an error. */
1538 /* We use char because int might match the return type of a gcc2
1539 builtin and then its argument prototype would still apply. */
1544 /* The GNU C library defines this for functions which it implements
1545 to always fail with ENOSYS. Some functions are actually named
1546 something starting with __ and the normal name is an alias. */
1547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1555 if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1557 eval "ac_cv_func_$ac_func=yes"
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1562 eval "ac_cv_func_$ac_func=no"
1567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1568 echo "$ac_t""yes" 1>&6
1569 cat >> confdefs.h <<EOF
1570 #define CRAY_STACKSEG_END $ac_func
1575 echo "$ac_t""no" 1>&6
1581 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1582 echo "configure:1583: checking stack direction for C alloca" >&5
1583 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 if test "$cross_compiling" = yes; then
1587 ac_cv_c_stack_direction=0
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 find_stack_direction ()
1594 static char *addr = 0;
1599 return find_stack_direction ();
1602 return (&dummy > addr) ? 1 : -1;
1606 exit (find_stack_direction() < 0);
1609 if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1611 ac_cv_c_stack_direction=1
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1616 ac_cv_c_stack_direction=-1
1623 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1624 cat >> confdefs.h <<EOF
1625 #define STACK_DIRECTION $ac_cv_c_stack_direction
1630 for ac_hdr in unistd.h
1632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1634 echo "configure:1635: checking for $ac_hdr" >&5
1635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1644 { (eval echo configure:1645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1646 if test -z "$ac_err"; then
1648 eval "ac_cv_header_$ac_safe=yes"
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1654 eval "ac_cv_header_$ac_safe=no"
1658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1659 echo "$ac_t""yes" 1>&6
1660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1661 cat >> confdefs.h <<EOF
1662 #define $ac_tr_hdr 1
1666 echo "$ac_t""no" 1>&6
1670 for ac_func in getpagesize
1672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_func" >&5
1674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 /* System header to define __stub macros and hopefully few prototypes,
1681 which can conflict with char $ac_func(); below. */
1683 /* Override any gcc2 internal prototype to avoid an error. */
1684 /* We use char because int might match the return type of a gcc2
1685 builtin and then its argument prototype would still apply. */
1690 /* The GNU C library defines this for functions which it implements
1691 to always fail with ENOSYS. Some functions are actually named
1692 something starting with __ and the normal name is an alias. */
1693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1703 eval "ac_cv_func_$ac_func=yes"
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 eval "ac_cv_func_$ac_func=no"
1713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1716 cat >> confdefs.h <<EOF
1717 #define $ac_tr_func 1
1721 echo "$ac_t""no" 1>&6
1725 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1726 echo "configure:1727: checking for working mmap" >&5
1727 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 if test "$cross_compiling" = yes; then
1731 ac_cv_func_mmap_fixed_mapped=no
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1737 /* Thanks to Mike Haertel and Jim Avera for this test.
1738 Here is a matrix of mmap possibilities:
1739 mmap private not fixed
1740 mmap private fixed at somewhere currently unmapped
1741 mmap private fixed at somewhere already mapped
1742 mmap shared not fixed
1743 mmap shared fixed at somewhere currently unmapped
1744 mmap shared fixed at somewhere already mapped
1745 For private mappings, we should verify that changes cannot be read()
1746 back from the file, nor mmap's back from the file at a different
1747 address. (There have been systems where private was not correctly
1748 implemented like the infamous i386 svr4.0, and systems where the
1749 VM page cache was not coherent with the filesystem buffer cache
1750 like early versions of FreeBSD and possibly contemporary NetBSD.)
1751 For shared mappings, we should conversely verify that changes get
1752 propogated back to all the places they're supposed to be.
1754 Grep wants private fixed already mapped.
1755 The main things grep needs to know about mmap are:
1756 * does it exist and is it safe to write into the mmap'd area
1757 * how to use it (BSD variants) */
1758 #include <sys/types.h>
1760 #include <sys/mman.h>
1762 /* This mess was copied from the GNU getpagesize.h. */
1763 #ifndef HAVE_GETPAGESIZE
1764 # ifdef HAVE_UNISTD_H
1765 # include <unistd.h>
1768 /* Assume that all systems that can run configure have sys/param.h. */
1769 # ifndef HAVE_SYS_PARAM_H
1770 # define HAVE_SYS_PARAM_H 1
1773 # ifdef _SC_PAGESIZE
1774 # define getpagesize() sysconf(_SC_PAGESIZE)
1775 # else /* no _SC_PAGESIZE */
1776 # ifdef HAVE_SYS_PARAM_H
1777 # include <sys/param.h>
1778 # ifdef EXEC_PAGESIZE
1779 # define getpagesize() EXEC_PAGESIZE
1780 # else /* no EXEC_PAGESIZE */
1782 # define getpagesize() NBPG * CLSIZE
1785 # endif /* no CLSIZE */
1786 # else /* no NBPG */
1788 # define getpagesize() NBPC
1789 # else /* no NBPC */
1791 # define getpagesize() PAGESIZE
1792 # endif /* PAGESIZE */
1793 # endif /* no NBPC */
1794 # endif /* no NBPG */
1795 # endif /* no EXEC_PAGESIZE */
1796 # else /* no HAVE_SYS_PARAM_H */
1797 # define getpagesize() 8192 /* punt totally */
1798 # endif /* no HAVE_SYS_PARAM_H */
1799 # endif /* no _SC_PAGESIZE */
1801 #endif /* no HAVE_GETPAGESIZE */
1804 extern "C" { void *malloc(unsigned); }
1812 char *data, *data2, *data3;
1816 pagesize = getpagesize();
1819 * First, make a file with some known garbage in it.
1821 data = malloc(pagesize);
1824 for (i = 0; i < pagesize; ++i)
1825 *(data + i) = rand();
1827 fd = creat("conftestmmap", 0600);
1830 if (write(fd, data, pagesize) != pagesize)
1835 * Next, try to mmap the file at a fixed address which
1836 * already has something else allocated at it. If we can,
1837 * also make sure that we see the same garbage.
1839 fd = open("conftestmmap", O_RDWR);
1842 data2 = malloc(2 * pagesize);
1845 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1846 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1847 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1849 for (i = 0; i < pagesize; ++i)
1850 if (*(data + i) != *(data2 + i))
1854 * Finally, make sure that changes to the mapped area
1855 * do not percolate back to the file as seen by read().
1856 * (This is a bug on some variants of i386 svr4.0.)
1858 for (i = 0; i < pagesize; ++i)
1859 *(data2 + i) = *(data2 + i) + 1;
1860 data3 = malloc(pagesize);
1863 if (read(fd, data3, pagesize) != pagesize)
1865 for (i = 0; i < pagesize; ++i)
1866 if (*(data + i) != *(data3 + i))
1869 unlink("conftestmmap");
1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1876 ac_cv_func_mmap_fixed_mapped=yes
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1881 ac_cv_func_mmap_fixed_mapped=no
1888 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1890 cat >> confdefs.h <<\EOF
1897 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1898 unistd.h values.h sys/param.h
1900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1902 echo "configure:1903: checking for $ac_hdr" >&5
1903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1912 { (eval echo configure:1913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1914 if test -z "$ac_err"; then
1916 eval "ac_cv_header_$ac_safe=yes"
1919 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1922 eval "ac_cv_header_$ac_safe=no"
1926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1927 echo "$ac_t""yes" 1>&6
1928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1929 cat >> confdefs.h <<EOF
1930 #define $ac_tr_hdr 1
1934 echo "$ac_t""no" 1>&6
1938 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1939 __argz_count __argz_stringify __argz_next
1941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_func" >&5
1943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 /* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $ac_func(); below. */
1952 /* Override any gcc2 internal prototype to avoid an error. */
1953 /* We use char because int might match the return type of a gcc2
1954 builtin and then its argument prototype would still apply. */
1959 /* The GNU C library defines this for functions which it implements
1960 to always fail with ENOSYS. Some functions are actually named
1961 something starting with __ and the normal name is an alias. */
1962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 eval "ac_cv_func_$ac_func=yes"
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1977 eval "ac_cv_func_$ac_func=no"
1982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1983 echo "$ac_t""yes" 1>&6
1984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1985 cat >> confdefs.h <<EOF
1986 #define $ac_tr_func 1
1990 echo "$ac_t""no" 1>&6
1995 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1996 for ac_func in stpcpy
1998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_func" >&5
2000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* System header to define __stub macros and hopefully few prototypes,
2007 which can conflict with char $ac_func(); below. */
2009 /* Override any gcc2 internal prototype to avoid an error. */
2010 /* We use char because int might match the return type of a gcc2
2011 builtin and then its argument prototype would still apply. */
2016 /* The GNU C library defines this for functions which it implements
2017 to always fail with ENOSYS. Some functions are actually named
2018 something starting with __ and the normal name is an alias. */
2019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2027 if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2029 eval "ac_cv_func_$ac_func=yes"
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2034 eval "ac_cv_func_$ac_func=no"
2039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2042 cat >> confdefs.h <<EOF
2043 #define $ac_tr_func 1
2047 echo "$ac_t""no" 1>&6
2052 if test "${ac_cv_func_stpcpy}" = "yes"; then
2053 cat >> confdefs.h <<\EOF
2054 #define HAVE_STPCPY 1
2059 if test $ac_cv_header_locale_h = yes; then
2060 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2061 echo "configure:2062: checking for LC_MESSAGES" >&5
2062 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2075 am_cv_val_LC_MESSAGES=yes
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 am_cv_val_LC_MESSAGES=no
2085 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2086 if test $am_cv_val_LC_MESSAGES = yes; then
2087 cat >> confdefs.h <<\EOF
2088 #define HAVE_LC_MESSAGES 1
2093 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2094 echo "configure:2095: checking whether NLS is requested" >&5
2095 # Check whether --enable-nls or --disable-nls was given.
2096 if test "${enable_nls+set}" = set; then
2097 enableval="$enable_nls"
2103 echo "$ac_t""$USE_NLS" 1>&6
2106 USE_INCLUDED_LIBINTL=no
2108 if test "$USE_NLS" = "yes"; then
2109 cat >> confdefs.h <<\EOF
2110 #define ENABLE_NLS 1
2113 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether included gettext is requested" >&5
2115 # Check whether --with-included-gettext or --without-included-gettext was given.
2116 if test "${with_included_gettext+set}" = set; then
2117 withval="$with_included_gettext"
2118 nls_cv_force_use_gnu_gettext=$withval
2120 nls_cv_force_use_gnu_gettext=no
2123 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2125 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2126 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2128 nls_cv_header_libgt=
2131 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2132 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2133 echo "configure:2134: checking for libintl.h" >&5
2134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 #include <libintl.h>
2142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2143 { (eval echo configure:2144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2145 if test -z "$ac_err"; then
2147 eval "ac_cv_header_$ac_safe=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2153 eval "ac_cv_header_$ac_safe=no"
2157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2159 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2160 echo "configure:2161: checking for gettext in libc" >&5
2161 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 #include <libintl.h>
2169 return (int) gettext ("")
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 gt_cv_func_gettext_libc=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 gt_cv_func_gettext_libc=no
2184 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2186 if test "$gt_cv_func_gettext_libc" != "yes"; then
2187 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2188 echo "configure:2189: checking for bindtextdomain in -lintl" >&5
2189 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 ac_save_LIBS="$LIBS"
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 /* Override any gcc2 internal prototype to avoid an error. */
2199 /* We use char because int might match the return type of a gcc2
2200 builtin and then its argument prototype would still apply. */
2201 char bindtextdomain();
2207 if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2209 eval "ac_cv_lib_$ac_lib_var=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2214 eval "ac_cv_lib_$ac_lib_var=no"
2217 LIBS="$ac_save_LIBS"
2220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2223 echo "configure:2224: checking for gettext in libintl" >&5
2224 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2232 return (int) gettext ("")
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2237 gt_cv_func_gettext_libintl=yes
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 gt_cv_func_gettext_libintl=no
2247 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2249 echo "$ac_t""no" 1>&6
2254 if test "$gt_cv_func_gettext_libc" = "yes" \
2255 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2256 cat >> confdefs.h <<\EOF
2257 #define HAVE_GETTEXT 1
2260 # Extract the first word of "msgfmt", so it can be a program name with args.
2261 set dummy msgfmt; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2269 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2273 for ac_dir in $PATH; do
2274 test -z "$ac_dir" && ac_dir=.
2275 if test -f $ac_dir/$ac_word; then
2276 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2277 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2287 MSGFMT="$ac_cv_path_MSGFMT"
2288 if test -n "$MSGFMT"; then
2289 echo "$ac_t""$MSGFMT" 1>&6
2291 echo "$ac_t""no" 1>&6
2293 if test "$MSGFMT" != "no"; then
2294 for ac_func in dcgettext
2296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_func" >&5
2298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $ac_func(); below. */
2307 /* Override any gcc2 internal prototype to avoid an error. */
2308 /* We use char because int might match the return type of a gcc2
2309 builtin and then its argument prototype would still apply. */
2314 /* The GNU C library defines this for functions which it implements
2315 to always fail with ENOSYS. Some functions are actually named
2316 something starting with __ and the normal name is an alias. */
2317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 eval "ac_cv_func_$ac_func=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_func_$ac_func=no"
2337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_func 1
2345 echo "$ac_t""no" 1>&6
2349 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2350 set dummy gmsgfmt; ac_word=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2358 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2361 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2365 for ac_dir in $PATH; do
2366 test -z "$ac_dir" && ac_dir=.
2367 if test -f $ac_dir/$ac_word; then
2368 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2373 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2377 GMSGFMT="$ac_cv_path_GMSGFMT"
2378 if test -n "$GMSGFMT"; then
2379 echo "$ac_t""$GMSGFMT" 1>&6
2381 echo "$ac_t""no" 1>&6
2384 # Extract the first word of "xgettext", so it can be a program name with args.
2385 set dummy xgettext; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2393 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2397 for ac_dir in $PATH; do
2398 test -z "$ac_dir" && ac_dir=.
2399 if test -f $ac_dir/$ac_word; then
2400 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2401 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2407 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2411 XGETTEXT="$ac_cv_path_XGETTEXT"
2412 if test -n "$XGETTEXT"; then
2413 echo "$ac_t""$XGETTEXT" 1>&6
2415 echo "$ac_t""no" 1>&6
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2423 extern int _nl_msg_cat_cntr;
2424 return _nl_msg_cat_cntr
2427 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2444 echo "$ac_t""no" 1>&6
2449 if test "$CATOBJEXT" = "NONE"; then
2450 nls_cv_use_gnu_gettext=yes
2454 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2455 INTLOBJS="\$(GETTOBJS)"
2456 # Extract the first word of "msgfmt", so it can be a program name with args.
2457 set dummy msgfmt; ac_word=$2
2458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_word" >&5
2460 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2465 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2469 for ac_dir in $PATH; do
2470 test -z "$ac_dir" && ac_dir=.
2471 if test -f $ac_dir/$ac_word; then
2472 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2473 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2479 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2483 MSGFMT="$ac_cv_path_MSGFMT"
2484 if test -n "$MSGFMT"; then
2485 echo "$ac_t""$MSGFMT" 1>&6
2487 echo "$ac_t""no" 1>&6
2490 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2491 set dummy gmsgfmt; ac_word=$2
2492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2493 echo "configure:2494: checking for $ac_word" >&5
2494 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2499 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2502 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2506 for ac_dir in $PATH; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f $ac_dir/$ac_word; then
2509 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2514 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2518 GMSGFMT="$ac_cv_path_GMSGFMT"
2519 if test -n "$GMSGFMT"; then
2520 echo "$ac_t""$GMSGFMT" 1>&6
2522 echo "$ac_t""no" 1>&6
2525 # Extract the first word of "xgettext", so it can be a program name with args.
2526 set dummy xgettext; ac_word=$2
2527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_word" >&5
2529 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2534 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2538 for ac_dir in $PATH; do
2539 test -z "$ac_dir" && ac_dir=.
2540 if test -f $ac_dir/$ac_word; then
2541 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2542 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2548 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2552 XGETTEXT="$ac_cv_path_XGETTEXT"
2553 if test -n "$XGETTEXT"; then
2554 echo "$ac_t""$XGETTEXT" 1>&6
2556 echo "$ac_t""no" 1>&6
2560 USE_INCLUDED_LIBINTL=yes
2564 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2566 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2567 nls_cv_header_intl=libintl.h
2568 nls_cv_header_libgt=libgettext.h
2571 if test "$XGETTEXT" != ":"; then
2572 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2575 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2580 # We need to process the po/ directory.
2584 nls_cv_header_intl=libintl.h
2585 nls_cv_header_libgt=libgettext.h
2588 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2589 # because some of the sources are only built for this goal.
2590 if test "$PACKAGE" = gettext; then
2592 USE_INCLUDED_LIBINTL=yes
2595 for lang in $ALL_LINGUAS; do
2596 GMOFILES="$GMOFILES $lang.gmo"
2597 POFILES="$POFILES $lang.po"
2613 if test "x$CATOBJEXT" != "x"; then
2614 if test "x$ALL_LINGUAS" = "x"; then
2617 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2618 echo "configure:2619: checking for catalogs to be installed" >&5
2620 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2621 case "$ALL_LINGUAS" in
2622 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2625 LINGUAS=$NEW_LINGUAS
2626 echo "$ac_t""$LINGUAS" 1>&6
2629 if test -n "$LINGUAS"; then
2630 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2634 if test $ac_cv_header_locale_h = yes; then
2635 INCLUDE_LOCALE_H="#include <locale.h>"
2638 /* The system does not provide the header <locale.h>. Take care yourself. */"
2642 if test -f $srcdir/po2tbl.sed.in; then
2643 if test "$CATOBJEXT" = ".cat"; then
2644 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2645 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2646 echo "configure:2647: checking for linux/version.h" >&5
2647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 #include <linux/version.h>
2655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2656 { (eval echo configure:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2658 if test -z "$ac_err"; then
2660 eval "ac_cv_header_$ac_safe=yes"
2663 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2666 eval "ac_cv_header_$ac_safe=no"
2670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2671 echo "$ac_t""yes" 1>&6
2674 echo "$ac_t""no" 1>&6
2679 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2681 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2682 $srcdir/po2tbl.sed.in > po2tbl.sed
2685 if test "$PACKAGE" = "gettext"; then
2695 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2701 if test -d $srcdir/po; then
2702 test -d po || mkdir po
2703 if test "x$srcdir" != "x."; then
2704 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2705 posrcprefix="$srcdir/"
2707 posrcprefix="../$srcdir/"
2713 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2714 < $srcdir/po/POTFILES.in > po/POTFILES
2723 configdirs="doc testsuite"
2726 . ${srcdir}/configure.host
2728 . ${srcdir}/configure.tgt
2731 # Find a good install program. We prefer a C program (faster),
2732 # so one script is as good as another. But avoid the broken or
2733 # incompatible versions:
2734 # SysV /etc/install, /usr/sbin/install
2735 # SunOS /usr/etc/install
2736 # IRIX /sbin/install
2738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2741 # ./install, which can be erroneously created by make from ./install.sh.
2742 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2743 echo "configure:2744: checking for a BSD compatible install" >&5
2744 if test -z "$INSTALL"; then
2745 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2748 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2749 for ac_dir in $PATH; do
2750 # Account for people who put trailing slashes in PATH elements.
2752 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2754 # OSF1 and SCO ODT 3.0 have their own names for install.
2755 # Don't use installbsd from OSF since it installs stuff as root
2757 for ac_prog in ginstall scoinst install; do
2758 if test -f $ac_dir/$ac_prog; then
2759 if test $ac_prog = install &&
2760 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2761 # AIX install. It has an incompatible calling convention.
2764 ac_cv_path_install="$ac_dir/$ac_prog -c"
2775 if test "${ac_cv_path_install+set}" = set; then
2776 INSTALL="$ac_cv_path_install"
2778 # As a last resort, use the slow shell script. We don't cache a
2779 # path for INSTALL within a source directory, because that will
2780 # break other packages using the cache if that directory is
2781 # removed, or if the path is relative.
2782 INSTALL="$ac_install_sh"
2785 echo "$ac_t""$INSTALL" 1>&6
2787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2788 # It thinks the first close brace ends the variable substitution.
2789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2793 if test $host != $build; then
2794 ac_tool_prefix=${host_alias}-
2799 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}ar; ac_word=$2
2801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2802 echo "configure:2803: checking for $ac_word" >&5
2803 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 if test -n "$AR"; then
2807 ac_cv_prog_AR="$AR" # Let the user override the test.
2809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2810 for ac_dir in $PATH; do
2811 test -z "$ac_dir" && ac_dir=.
2812 if test -f $ac_dir/$ac_word; then
2813 ac_cv_prog_AR="${ac_tool_prefix}ar"
2818 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2822 if test -n "$AR"; then
2823 echo "$ac_t""$AR" 1>&6
2825 echo "$ac_t""no" 1>&6
2830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_word" >&5
2834 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 if test -n "$RANLIB"; then
2838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2841 for ac_dir in $PATH; do
2842 test -z "$ac_dir" && ac_dir=.
2843 if test -f $ac_dir/$ac_word; then
2844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2851 RANLIB="$ac_cv_prog_RANLIB"
2852 if test -n "$RANLIB"; then
2853 echo "$ac_t""$RANLIB" 1>&6
2855 echo "$ac_t""no" 1>&6
2859 if test -z "$ac_cv_prog_RANLIB"; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "ranlib", so it can be a program name with args.
2862 set dummy ranlib; ac_word=$2
2863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2864 echo "configure:2865: checking for $ac_word" >&5
2865 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 if test -n "$RANLIB"; then
2869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2872 for ac_dir in $PATH; do
2873 test -z "$ac_dir" && ac_dir=.
2874 if test -f $ac_dir/$ac_word; then
2875 ac_cv_prog_RANLIB="ranlib"
2880 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2883 RANLIB="$ac_cv_prog_RANLIB"
2884 if test -n "$RANLIB"; then
2885 echo "$ac_t""$RANLIB" 1>&6
2887 echo "$ac_t""no" 1>&6
2895 for ac_prog in 'bison -y' byacc
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898 set dummy $ac_prog; ac_word=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 if test -n "$YACC"; then
2905 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2908 for ac_dir in $PATH; do
2909 test -z "$ac_dir" && ac_dir=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_prog_YACC="$ac_prog"
2918 YACC="$ac_cv_prog_YACC"
2919 if test -n "$YACC"; then
2920 echo "$ac_t""$YACC" 1>&6
2922 echo "$ac_t""no" 1>&6
2925 test -n "$YACC" && break
2927 test -n "$YACC" || YACC="yacc"
2929 for ac_prog in mawk gawk nawk awk
2931 # Extract the first word of "$ac_prog", so it can be a program name with args.
2932 set dummy $ac_prog; ac_word=$2
2933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2934 echo "configure:2935: checking for $ac_word" >&5
2935 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 if test -n "$AWK"; then
2939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2942 for ac_dir in $PATH; do
2943 test -z "$ac_dir" && ac_dir=.
2944 if test -f $ac_dir/$ac_word; then
2945 ac_cv_prog_AWK="$ac_prog"
2952 AWK="$ac_cv_prog_AWK"
2953 if test -n "$AWK"; then
2954 echo "$ac_t""$AWK" 1>&6
2956 echo "$ac_t""no" 1>&6
2959 test -n "$AWK" && break
2963 if test "$program_transform_name" = s,x,x,; then
2964 program_transform_name=
2966 # Double any \ or $. echo might interpret backslashes.
2967 cat <<\EOF_SED > conftestsed
2968 s,\\,\\\\,g; s,\$,$$,g
2970 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2973 test "$program_prefix" != NONE &&
2974 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2975 # Use a double $ so make ignores it.
2976 test "$program_suffix" != NONE &&
2977 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2979 # sed with no file args requires a program.
2980 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2983 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2984 echo "configure:2985: checking return type of signal handlers" >&5
2985 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 #include <sys/types.h>
2997 extern "C" void (*signal (int, void (*)(int)))(int);
2999 void (*signal ()) ();
3006 if { (eval echo configure:3007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3008 ac_cv_type_signal=void
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 ac_cv_type_signal=int
3018 echo "$ac_t""$ac_cv_type_signal" 1>&6
3019 cat >> confdefs.h <<EOF
3020 #define RETSIGTYPE $ac_cv_type_signal
3025 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3026 echo "configure:3027: checking for ANSI C header files" >&5
3027 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3039 { (eval echo configure:3040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3041 if test -z "$ac_err"; then
3043 ac_cv_header_stdc=yes
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3049 ac_cv_header_stdc=no
3053 if test $ac_cv_header_stdc = yes; then
3054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3061 egrep "memchr" >/dev/null 2>&1; then
3065 ac_cv_header_stdc=no
3071 if test $ac_cv_header_stdc = yes; then
3072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079 egrep "free" >/dev/null 2>&1; then
3083 ac_cv_header_stdc=no
3089 if test $ac_cv_header_stdc = yes; then
3090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3091 if test "$cross_compiling" = yes; then
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3098 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3099 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3101 int main () { int i; for (i = 0; i < 256; i++)
3102 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 ac_cv_header_stdc=no
3121 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3122 if test $ac_cv_header_stdc = yes; then
3123 cat >> confdefs.h <<\EOF
3124 #define STDC_HEADERS 1
3129 for ac_hdr in ctype.h curses.h endian.h libintl.h limits.h link.h \
3130 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3131 string.h strings.h sys/procfs.h sys/ptrace.h sys/reg.h \
3132 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_hdr" >&5
3138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3147 { (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3149 if test -z "$ac_err"; then
3151 eval "ac_cv_header_$ac_safe=yes"
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3157 eval "ac_cv_header_$ac_safe=no"
3161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3164 cat >> confdefs.h <<EOF
3165 #define $ac_tr_hdr 1
3169 echo "$ac_t""no" 1>&6
3174 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3175 echo "configure:3176: checking whether stat file-mode macros are broken" >&5
3176 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 #include <sys/types.h>
3183 #include <sys/stat.h>
3185 #if defined(S_ISBLK) && defined(S_IFDIR)
3186 # if S_ISBLK (S_IFDIR)
3191 #if defined(S_ISBLK) && defined(S_IFCHR)
3192 # if S_ISBLK (S_IFCHR)
3197 #if defined(S_ISLNK) && defined(S_IFREG)
3198 # if S_ISLNK (S_IFREG)
3203 #if defined(S_ISSOCK) && defined(S_IFREG)
3204 # if S_ISSOCK (S_IFREG)
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 egrep "You lose" >/dev/null 2>&1; then
3213 ac_cv_header_stat_broken=yes
3216 ac_cv_header_stat_broken=no
3222 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3223 if test $ac_cv_header_stat_broken = yes; then
3224 cat >> confdefs.h <<\EOF
3225 #define STAT_MACROS_BROKEN 1
3231 echo $ac_n "checking for working const""... $ac_c" 1>&6
3232 echo "configure:3233: checking for working const" >&5
3233 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3242 /* Ultrix mips cc rejects this. */
3243 typedef int charset[2]; const charset x;
3244 /* SunOS 4.1.1 cc rejects this. */
3245 char const *const *ccp;
3247 /* NEC SVR4.0.2 mips cc rejects this. */
3248 struct point {int x, y;};
3249 static struct point const zero = {0,0};
3250 /* AIX XL C 1.02.0.0 rejects this.
3251 It does not let you subtract one const X* pointer from another in an arm
3252 of an if-expression whose if-part is not a constant expression */
3253 const char *g = "string";
3254 ccp = &g + (g ? g-g : 0);
3255 /* HPUX 7.0 cc rejects these. */
3258 ccp = (char const *const *) p;
3259 { /* SCO 3.2v4 cc rejects this. */
3261 char const *s = 0 ? (char *) 0 : (char const *) 0;
3265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3267 const int *foo = &x[0];
3270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3271 typedef const int *iptr;
3275 { /* AIX XL C 1.02.0.0 rejects this saying
3276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3277 struct s { int j; const int *ap[3]; };
3278 struct s *b; b->j = 5;
3280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3286 if { (eval echo configure:3287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3298 echo "$ac_t""$ac_cv_c_const" 1>&6
3299 if test $ac_cv_c_const = no; then
3300 cat >> confdefs.h <<\EOF
3307 for ac_func in setpgid sbrk select poll sigaction isascii bzero bcopy memcpy btowc
3309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_func" >&5
3311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 /* System header to define __stub macros and hopefully few prototypes,
3318 which can conflict with char $ac_func(); below. */
3320 /* Override any gcc2 internal prototype to avoid an error. */
3321 /* We use char because int might match the return type of a gcc2
3322 builtin and then its argument prototype would still apply. */
3327 /* The GNU C library defines this for functions which it implements
3328 to always fail with ENOSYS. Some functions are actually named
3329 something starting with __ and the normal name is an alias. */
3330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3338 if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3340 eval "ac_cv_func_$ac_func=yes"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3345 eval "ac_cv_func_$ac_func=no"
3350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3351 echo "$ac_t""yes" 1>&6
3352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3353 cat >> confdefs.h <<EOF
3354 #define $ac_tr_func 1
3358 echo "$ac_t""no" 1>&6
3362 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3363 # for constant arguments. Useless!
3364 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3365 echo "configure:3366: checking for working alloca.h" >&5
3366 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3374 char *p = alloca(2 * sizeof(int));
3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 ac_cv_header_alloca_h=yes
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3384 ac_cv_header_alloca_h=no
3389 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3390 if test $ac_cv_header_alloca_h = yes; then
3391 cat >> confdefs.h <<\EOF
3392 #define HAVE_ALLOCA_H 1
3397 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3398 echo "configure:3399: checking for alloca" >&5
3399 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 cat > conftest.$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3407 # define alloca __builtin_alloca
3410 # include <malloc.h>
3411 # define alloca _alloca
3414 # include <alloca.h>
3419 # ifndef alloca /* predefined by HP cc +Olibcalls */
3428 char *p = (char *) alloca(1);
3431 if { (eval echo configure:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3433 ac_cv_func_alloca_works=yes
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 ac_cv_func_alloca_works=no
3443 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3444 if test $ac_cv_func_alloca_works = yes; then
3445 cat >> confdefs.h <<\EOF
3446 #define HAVE_ALLOCA 1
3451 if test $ac_cv_func_alloca_works = no; then
3452 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3453 # that cause trouble. Some versions do not even contain alloca or
3454 # contain a buggy version. If you still want to use their alloca,
3455 # use ar to extract alloca.o from them instead of compiling alloca.c.
3456 ALLOCA=alloca.${ac_objext}
3457 cat >> confdefs.h <<\EOF
3462 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3463 echo "configure:3464: checking whether alloca needs Cray hooks" >&5
3464 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #if defined(CRAY) && ! defined(CRAY2)
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478 egrep "webecray" >/dev/null 2>&1; then
3489 echo "$ac_t""$ac_cv_os_cray" 1>&6
3490 if test $ac_cv_os_cray = yes; then
3491 for ac_func in _getb67 GETB67 getb67; do
3492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3493 echo "configure:3494: checking for $ac_func" >&5
3494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* System header to define __stub macros and hopefully few prototypes,
3501 which can conflict with char $ac_func(); below. */
3503 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3510 /* The GNU C library defines this for functions which it implements
3511 to always fail with ENOSYS. Some functions are actually named
3512 something starting with __ and the normal name is an alias. */
3513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3521 if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3523 eval "ac_cv_func_$ac_func=yes"
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 eval "ac_cv_func_$ac_func=no"
3533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3534 echo "$ac_t""yes" 1>&6
3535 cat >> confdefs.h <<EOF
3536 #define CRAY_STACKSEG_END $ac_func
3541 echo "$ac_t""no" 1>&6
3547 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3548 echo "configure:3549: checking stack direction for C alloca" >&5
3549 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 if test "$cross_compiling" = yes; then
3553 ac_cv_c_stack_direction=0
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 find_stack_direction ()
3560 static char *addr = 0;
3565 return find_stack_direction ();
3568 return (&dummy > addr) ? 1 : -1;
3572 exit (find_stack_direction() < 0);
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3577 ac_cv_c_stack_direction=1
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 ac_cv_c_stack_direction=-1
3589 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3590 cat >> confdefs.h <<EOF
3591 #define STACK_DIRECTION $ac_cv_c_stack_direction
3597 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3598 if test "${target}" = "${host}"; then
3601 cat >> confdefs.h <<\EOF
3602 #define START_INFERIOR_TRAPS_EXPECTED 2
3605 cat >> confdefs.h <<\EOF
3606 #define sys_quotactl 1
3613 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3614 echo "configure:3615: checking for gregset_t type" >&5
3615 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #include <sys/procfs.h>
3623 gregset_t *gregsetp = 0
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 gdb_cv_have_gregset_t=yes
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 gdb_cv_have_gregset_t=no
3638 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3639 if test $gdb_cv_have_gregset_t = yes; then
3640 cat >> confdefs.h <<\EOF
3641 #define HAVE_GREGSET_T 1
3646 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3647 echo "configure:3648: checking for fpregset_t type" >&5
3648 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 #include <sys/procfs.h>
3656 fpregset_t *fpregsetp = 0
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3661 gdb_cv_have_fpregset_t=yes
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 gdb_cv_have_fpregset_t=no
3671 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3672 if test $gdb_cv_have_fpregset_t = yes; then
3673 cat >> confdefs.h <<\EOF
3674 #define HAVE_FPREGSET_T 1
3679 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3680 echo "configure:3681: checking for main in -lm" >&5
3681 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 ac_save_LIBS="$LIBS"
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3695 if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3697 eval "ac_cv_lib_$ac_lib_var=yes"
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 eval "ac_cv_lib_$ac_lib_var=no"
3705 LIBS="$ac_save_LIBS"
3708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3711 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3712 cat >> confdefs.h <<EOF
3713 #define $ac_tr_lib 1
3719 echo "$ac_t""no" 1>&6
3724 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
3725 echo "configure:3726: checking for long long support in compiler" >&5
3726 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3735 extern long long foo;
3736 switch (foo & 2) { case 0: return 1; }
3740 if { (eval echo configure:3741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3742 gdb_cv_c_long_long=yes
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3747 gdb_cv_c_long_long=no
3752 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
3753 if test $gdb_cv_c_long_long = yes; then
3754 cat >> confdefs.h <<\EOF
3755 #define CC_HAS_LONG_LONG 1
3761 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
3762 echo "configure:3763: checking for long long support in printf" >&5
3763 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 if test "$cross_compiling" = yes; then
3767 gdb_cv_printf_has_long_long=no
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3776 l = (l << 16) + 0x0123;
3777 l = (l << 16) + 0x4567;
3778 l = (l << 16) + 0x89ab;
3779 l = (l << 16) + 0xcdef;
3780 sprintf (buf, "0x%016llx", l);
3781 return (strcmp ("0x0123456789abcdef", buf));
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3786 gdb_cv_printf_has_long_long=yes
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 gdb_cv_printf_has_long_long=no
3798 if test $gdb_cv_printf_has_long_long = yes; then
3799 cat >> confdefs.h <<\EOF
3800 #define PRINTF_HAS_LONG_LONG 1
3804 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
3807 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
3808 echo "configure:3809: checking for long double support in compiler" >&5
3809 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 ac_cv_c_long_double=yes
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 ac_cv_c_long_double=no
3832 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3833 if test $ac_cv_c_long_double = yes; then
3834 cat >> confdefs.h <<\EOF
3835 #define HAVE_LONG_DOUBLE 1
3841 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
3842 echo "configure:3843: checking for long double support in printf" >&5
3843 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3846 if test "$cross_compiling" = yes; then
3847 gdb_cv_printf_has_long_double=no
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3855 long double f = 3.141592653;
3856 sprintf (buf, "%Lg", f);
3857 return (strncmp ("3.14159", buf, 7));
3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3862 gdb_cv_printf_has_long_double=yes
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3867 gdb_cv_printf_has_long_double=no
3874 if test $gdb_cv_printf_has_long_double = yes; then
3875 cat >> confdefs.h <<\EOF
3876 #define PRINTF_HAS_LONG_DOUBLE 1
3880 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
3883 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
3884 echo "configure:3885: checking for long double support in scanf" >&5
3885 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 if test "$cross_compiling" = yes; then
3889 gdb_cv_scanf_has_long_double=no
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3896 char *buf = "3.141592653";
3898 sscanf (buf, "%Lg", &f);
3899 return !(f > 3.14159 && f < 3.14160);
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3904 gdb_cv_scanf_has_long_double=yes
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 gdb_cv_scanf_has_long_double=no
3916 if test $gdb_cv_scanf_has_long_double = yes; then
3917 cat >> confdefs.h <<\EOF
3918 #define SCANF_HAS_LONG_DOUBLE 1
3922 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
3924 for ac_hdr in unistd.h
3926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_hdr" >&5
3929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3938 { (eval echo configure:3939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3940 if test -z "$ac_err"; then
3942 eval "ac_cv_header_$ac_safe=yes"
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 eval "ac_cv_header_$ac_safe=no"
3952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3953 echo "$ac_t""yes" 1>&6
3954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3955 cat >> confdefs.h <<EOF
3956 #define $ac_tr_hdr 1
3960 echo "$ac_t""no" 1>&6
3964 for ac_func in getpagesize
3966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3967 echo "configure:3968: checking for $ac_func" >&5
3968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 /* System header to define __stub macros and hopefully few prototypes,
3975 which can conflict with char $ac_func(); below. */
3977 /* Override any gcc2 internal prototype to avoid an error. */
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3984 /* The GNU C library defines this for functions which it implements
3985 to always fail with ENOSYS. Some functions are actually named
3986 something starting with __ and the normal name is an alias. */
3987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3995 if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3997 eval "ac_cv_func_$ac_func=yes"
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4002 eval "ac_cv_func_$ac_func=no"
4007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4010 cat >> confdefs.h <<EOF
4011 #define $ac_tr_func 1
4015 echo "$ac_t""no" 1>&6
4019 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4020 echo "configure:4021: checking for working mmap" >&5
4021 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 if test "$cross_compiling" = yes; then
4025 ac_cv_func_mmap_fixed_mapped=no
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4031 /* Thanks to Mike Haertel and Jim Avera for this test.
4032 Here is a matrix of mmap possibilities:
4033 mmap private not fixed
4034 mmap private fixed at somewhere currently unmapped
4035 mmap private fixed at somewhere already mapped
4036 mmap shared not fixed
4037 mmap shared fixed at somewhere currently unmapped
4038 mmap shared fixed at somewhere already mapped
4039 For private mappings, we should verify that changes cannot be read()
4040 back from the file, nor mmap's back from the file at a different
4041 address. (There have been systems where private was not correctly
4042 implemented like the infamous i386 svr4.0, and systems where the
4043 VM page cache was not coherent with the filesystem buffer cache
4044 like early versions of FreeBSD and possibly contemporary NetBSD.)
4045 For shared mappings, we should conversely verify that changes get
4046 propogated back to all the places they're supposed to be.
4048 Grep wants private fixed already mapped.
4049 The main things grep needs to know about mmap are:
4050 * does it exist and is it safe to write into the mmap'd area
4051 * how to use it (BSD variants) */
4052 #include <sys/types.h>
4054 #include <sys/mman.h>
4056 /* This mess was copied from the GNU getpagesize.h. */
4057 #ifndef HAVE_GETPAGESIZE
4058 # ifdef HAVE_UNISTD_H
4059 # include <unistd.h>
4062 /* Assume that all systems that can run configure have sys/param.h. */
4063 # ifndef HAVE_SYS_PARAM_H
4064 # define HAVE_SYS_PARAM_H 1
4067 # ifdef _SC_PAGESIZE
4068 # define getpagesize() sysconf(_SC_PAGESIZE)
4069 # else /* no _SC_PAGESIZE */
4070 # ifdef HAVE_SYS_PARAM_H
4071 # include <sys/param.h>
4072 # ifdef EXEC_PAGESIZE
4073 # define getpagesize() EXEC_PAGESIZE
4074 # else /* no EXEC_PAGESIZE */
4076 # define getpagesize() NBPG * CLSIZE
4079 # endif /* no CLSIZE */
4080 # else /* no NBPG */
4082 # define getpagesize() NBPC
4083 # else /* no NBPC */
4085 # define getpagesize() PAGESIZE
4086 # endif /* PAGESIZE */
4087 # endif /* no NBPC */
4088 # endif /* no NBPG */
4089 # endif /* no EXEC_PAGESIZE */
4090 # else /* no HAVE_SYS_PARAM_H */
4091 # define getpagesize() 8192 /* punt totally */
4092 # endif /* no HAVE_SYS_PARAM_H */
4093 # endif /* no _SC_PAGESIZE */
4095 #endif /* no HAVE_GETPAGESIZE */
4098 extern "C" { void *malloc(unsigned); }
4106 char *data, *data2, *data3;
4110 pagesize = getpagesize();
4113 * First, make a file with some known garbage in it.
4115 data = malloc(pagesize);
4118 for (i = 0; i < pagesize; ++i)
4119 *(data + i) = rand();
4121 fd = creat("conftestmmap", 0600);
4124 if (write(fd, data, pagesize) != pagesize)
4129 * Next, try to mmap the file at a fixed address which
4130 * already has something else allocated at it. If we can,
4131 * also make sure that we see the same garbage.
4133 fd = open("conftestmmap", O_RDWR);
4136 data2 = malloc(2 * pagesize);
4139 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4140 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4141 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4143 for (i = 0; i < pagesize; ++i)
4144 if (*(data + i) != *(data2 + i))
4148 * Finally, make sure that changes to the mapped area
4149 * do not percolate back to the file as seen by read().
4150 * (This is a bug on some variants of i386 svr4.0.)
4152 for (i = 0; i < pagesize; ++i)
4153 *(data2 + i) = *(data2 + i) + 1;
4154 data3 = malloc(pagesize);
4157 if (read(fd, data3, pagesize) != pagesize)
4159 for (i = 0; i < pagesize; ++i)
4160 if (*(data + i) != *(data3 + i))
4163 unlink("conftestmmap");
4168 if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4170 ac_cv_func_mmap_fixed_mapped=yes
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 ac_cv_func_mmap_fixed_mapped=no
4182 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4183 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4184 cat >> confdefs.h <<\EOF
4191 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4192 echo "configure:4193: checking whether malloc must be declared" >&5
4193 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4201 #ifdef HAVE_STRING_H
4204 #ifdef HAVE_STRINGS_H
4205 #include <strings.h>
4208 #ifdef HAVE_STDLIB_H
4211 #ifdef HAVE_UNISTD_H
4215 char *(*pfn) = (char *(*)) malloc
4218 if { (eval echo configure:4219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4220 bfd_cv_decl_needed_malloc=no
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4225 bfd_cv_decl_needed_malloc=yes
4230 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4231 if test $bfd_cv_decl_needed_malloc = yes; then
4232 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h <<EOF
4234 #define $bfd_tr_decl 1
4239 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4240 echo "configure:4241: checking whether realloc must be declared" >&5
4241 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4249 #ifdef HAVE_STRING_H
4252 #ifdef HAVE_STRINGS_H
4253 #include <strings.h>
4256 #ifdef HAVE_STDLIB_H
4259 #ifdef HAVE_UNISTD_H
4263 char *(*pfn) = (char *(*)) realloc
4266 if { (eval echo configure:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4268 bfd_cv_decl_needed_realloc=no
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 bfd_cv_decl_needed_realloc=yes
4278 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4279 if test $bfd_cv_decl_needed_realloc = yes; then
4280 bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4281 cat >> confdefs.h <<EOF
4282 #define $bfd_tr_decl 1
4287 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4288 echo "configure:4289: checking whether free must be declared" >&5
4289 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4297 #ifdef HAVE_STRING_H
4300 #ifdef HAVE_STRINGS_H
4301 #include <strings.h>
4304 #ifdef HAVE_STDLIB_H
4307 #ifdef HAVE_UNISTD_H
4311 char *(*pfn) = (char *(*)) free
4314 if { (eval echo configure:4315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4316 bfd_cv_decl_needed_free=no
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4321 bfd_cv_decl_needed_free=yes
4326 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4327 if test $bfd_cv_decl_needed_free = yes; then
4328 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4329 cat >> confdefs.h <<EOF
4330 #define $bfd_tr_decl 1
4336 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4337 echo "configure:4338: checking whether strerror must be declared" >&5
4338 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4346 #ifdef HAVE_STRING_H
4349 #ifdef HAVE_STRINGS_H
4350 #include <strings.h>
4353 #ifdef HAVE_STDLIB_H
4356 #ifdef HAVE_UNISTD_H
4360 char *(*pfn) = (char *(*)) strerror
4363 if { (eval echo configure:4364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4365 bfd_cv_decl_needed_strerror=no
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 bfd_cv_decl_needed_strerror=yes
4375 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4376 if test $bfd_cv_decl_needed_strerror = yes; then
4377 bfd_tr_decl=NEED_DECLARATION_`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4378 cat >> confdefs.h <<EOF
4379 #define $bfd_tr_decl 1
4387 if test ${build} = ${host} -a ${host} = ${target} ; then
4390 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4391 echo "configure:4392: checking for HPUX/OSF thread support" >&5
4392 if test -f /usr/include/dce/cma_config.h ; then
4393 if test "$GCC" = "yes" ; then
4394 echo "$ac_t""yes" 1>&6
4395 cat >> confdefs.h <<\EOF
4396 #define HAVE_HPUX_THREAD_SUPPORT 1
4399 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
4400 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
4402 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4405 echo "$ac_t""no" 1>&6
4409 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4410 echo "configure:4411: checking for Solaris thread debugging library" >&5
4411 if test -f /usr/lib/libthread_db.so.1 ; then
4412 echo "$ac_t""yes" 1>&6
4413 cat >> confdefs.h <<\EOF
4414 #define HAVE_THREAD_DB_LIB 1
4417 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
4418 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
4419 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4420 echo "configure:4421: checking for dlopen in -ldl" >&5
4421 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 ac_save_LIBS="$LIBS"
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 /* Override any gcc2 internal prototype to avoid an error. */
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 eval "ac_cv_lib_$ac_lib_var=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_lib_$ac_lib_var=no"
4449 LIBS="$ac_save_LIBS"
4452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4456 cat >> confdefs.h <<EOF
4457 #define $ac_tr_lib 1
4463 echo "$ac_t""no" 1>&6
4466 if test "$GCC" = "yes" ; then
4467 # The GNU linker requires the -export-dynamic option to make
4468 # all symbols visible in the dynamic symbol table.
4469 hold_ldflags=$LDFLAGS
4470 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4471 echo "configure:4472: checking for the ld -export-dynamic flag" >&5
4472 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4491 LDFLAGS=$hold_ldflags
4492 echo "$ac_t""$found" 1>&6
4493 if test $found = yes; then
4494 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4498 echo "$ac_t""no" 1>&6
4507 # Check whether --enable-netrom or --disable-netrom was given.
4508 if test "${enable_netrom+set}" = set; then
4509 enableval="$enable_netrom"
4510 case "${enableval}" in
4511 yes) enable_netrom=yes ;;
4512 no) enable_netrom=no ;;
4513 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4518 if test "${enable_netrom}" = "yes"; then
4519 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
4520 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
4528 # Check whether --with-mmalloc or --without-mmalloc was given.
4529 if test "${with_mmalloc+set}" = set; then
4530 withval="$with_mmalloc"
4531 case "${withval}" in
4532 yes) want_mmalloc=true ;;
4533 no) want_mmalloc=false;;
4534 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4540 if test x$want_mmalloc = xtrue; then
4541 cat >> confdefs.h <<\EOF
4542 #define USE_MMALLOC 1
4545 cat >> confdefs.h <<\EOF
4546 #define MMCHECK_FORCE 1
4549 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
4550 MMALLOC='../mmalloc/libmmalloc.a'
4553 # start-sanitize-gdbtk
4555 # Check whether --enable-ide or --disable-ide was given.
4556 if test "${enable_ide+set}" = set; then
4557 enableval="$enable_ide"
4561 if test "$enable_ide" = yes; then
4569 # Check whether --with-foundry-libs or --without-foundry-libs was given.
4570 if test "${with_foundry_libs+set}" = set; then
4571 withval="$with_foundry_libs"
4572 FOUNDRY_LIB_BASE=${withval}
4578 # This is the Foundry SDK
4580 # These variables are used to determine where the Foundry libs and
4581 # header files are located.
4583 if test "$FOUNDRY_LIB_BASE" != ""; then
4584 LIBGUI="${FOUNDRY_LIB_BASE}/lib/libgui.a"
4585 GUI_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
4586 if test x$enable_ide = xyes; then
4587 IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include -DIDE"
4588 IDE_X="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
4590 IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
4592 LIBIDETCL="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
4593 LIBIDE="${FOUNDRY_LIB_BASE}/lib/libide.a"
4594 IDE_DEPS="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
4596 LIBGUI="../libgui/src/libgui.a"
4597 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
4598 if test x$enable_ide = xyes; then
4599 IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
4600 IDE_X="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
4602 IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
4604 LIBIDETCL="../libidetcl/src/libidetcl.a"
4605 LIBIDE="../libide/src/libide.a"
4606 IDE_DEPS="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
4618 # Check whether --enable-gdbtk or --disable-gdbtk was given.
4619 if test "${enable_gdbtk+set}" = set; then
4620 enableval="$enable_gdbtk"
4621 case "${enableval}" in
4625 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4628 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4636 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
4640 # Default is on for everything but go32 and cygwin32
4651 # In the cygwin32 environment, we need some additional flags.
4652 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
4653 echo "configure:4654: checking for cygwin32" >&5
4654 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 egrep "lose" >/dev/null 2>&1; then
4668 gdb_cv_os_cygwin32=yes
4671 gdb_cv_os_cygwin32=no
4677 echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6
4684 WINDRES=${WINDRES-windres}
4687 if test x$gdb_cv_os_cygwin32 = xyes; then
4688 if test x$enable_ide = xyes; then
4689 WIN32LIBS="-ladvapi32"
4696 if test "${enable_gdbtk}" = "yes"; then
4700 # Ok, lets find the tcl configuration
4701 # First, look for one uninstalled.
4702 # the alternative search directory is invoked by --with-tclconfig
4705 if test x"${no_tcl}" = x ; then
4706 # we reset no_tcl in case something fails here
4708 # Check whether --with-tclconfig or --without-tclconfig was given.
4709 if test "${with_tclconfig+set}" = set; then
4710 withval="$with_tclconfig"
4711 with_tclconfig=${withval}
4714 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
4715 echo "configure:4716: checking for Tcl configuration" >&5
4716 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4721 # First check to see if --with-tclconfig was specified.
4722 if test x"${with_tclconfig}" != x ; then
4723 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4724 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
4726 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
4730 # then check for a private Tcl installation
4731 if test x"${ac_cv_c_tclconfig}" = x ; then
4734 `ls -dr ../tcl[7-9]* 2>/dev/null` \
4736 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
4738 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
4739 if test -f "$i/${configdir}/tclConfig.sh" ; then
4740 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
4745 # check in a few common install locations
4746 if test x"${ac_cv_c_tclconfig}" = x ; then
4747 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4748 if test -f "$i/tclConfig.sh" ; then
4749 ac_cv_c_tclconfig=`(cd $i; pwd)`
4754 # check in a few other private locations
4755 if test x"${ac_cv_c_tclconfig}" = x ; then
4758 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
4759 if test -f "$i/${configdir}/tclConfig.sh" ; then
4760 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
4768 if test x"${ac_cv_c_tclconfig}" = x ; then
4769 TCLCONFIG="# no Tcl configs found"
4770 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
4773 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
4774 echo "$ac_t""found $TCLCONFIG" 1>&6
4778 if test -z "${no_tcl}"; then
4808 # Ok, lets find the tk configuration
4809 # First, look for one uninstalled.
4810 # the alternative search directory is invoked by --with-tkconfig
4813 if test x"${no_tk}" = x ; then
4814 # we reset no_tk in case something fails here
4816 # Check whether --with-tkconfig or --without-tkconfig was given.
4817 if test "${with_tkconfig+set}" = set; then
4818 withval="$with_tkconfig"
4819 with_tkconfig=${withval}
4822 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
4823 echo "configure:4824: checking for Tk configuration" >&5
4824 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4829 # First check to see if --with-tkconfig was specified.
4830 if test x"${with_tkconfig}" != x ; then
4831 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4832 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
4834 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
4838 # then check for a private Tk library
4839 if test x"${ac_cv_c_tkconfig}" = x ; then
4842 `ls -dr ../tk[4-9]* 2>/dev/null` \
4844 `ls -dr ../../tk[4-9]* 2>/dev/null` \
4846 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
4847 if test -f "$i/${configdir}/tkConfig.sh" ; then
4848 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
4853 # check in a few common install locations
4854 if test x"${ac_cv_c_tkconfig}" = x ; then
4855 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4856 if test -f "$i/tkConfig.sh" ; then
4857 ac_cv_c_tkconfig=`(cd $i; pwd)`
4862 # check in a few other private locations
4863 if test x"${ac_cv_c_tkconfig}" = x ; then
4866 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
4867 if test -f "$i/${configdir}/tkConfig.sh" ; then
4868 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
4876 if test x"${ac_cv_c_tkconfig}" = x ; then
4877 TKCONFIG="# no Tk configs found"
4878 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
4881 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
4882 echo "$ac_t""found $TKCONFIG" 1>&6
4888 # If $no_tk is nonempty, then we can't do Tk, and there is no
4889 # point to doing Tcl.
4890 if test -z "${no_tk}"; then
4892 if test -f "$TKCONFIG" ; then
4910 # Ok, lets find the tcl source trees so we can use the headers
4911 # Warning: transition of version 9 to 10 will break this algorithm
4912 # because 10 sorts before 9. We also look for just tcl. We have to
4913 # be careful that we don't match stuff like tclX by accident.
4914 # the alternative search directory is involked by --with-tclinclude
4918 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
4919 echo "configure:4920: checking for Tcl private headers. dir=${configdir}" >&5
4920 # Check whether --with-tclinclude or --without-tclinclude was given.
4921 if test "${with_tclinclude+set}" = set; then
4922 withval="$with_tclinclude"
4923 with_tclinclude=${withval}
4926 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4930 # first check to see if --with-tclinclude was specified
4931 if test x"${with_tclinclude}" != x ; then
4932 if test -f ${with_tclinclude}/tclInt.h ; then
4933 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
4934 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
4935 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
4937 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
4941 # next check if it came with Tcl configuration file
4942 if test x"${ac_cv_c_tclconfig}" = x ; then
4943 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
4944 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
4948 # next check in private source directory
4950 # since ls returns lowest version numbers first, reverse its output
4951 if test x"${ac_cv_c_tclh}" = x ; then
4954 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
4955 ${srcdir}/../../tcl \
4956 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
4957 ${srcdir}/../../../tcl \
4958 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
4959 if test -f $i/generic/tclInt.h ; then
4960 ac_cv_c_tclh=`(cd $i/generic; pwd)`
4965 # finally check in a few common install locations
4967 # since ls returns lowest version numbers first, reverse its output
4968 if test x"${ac_cv_c_tclh}" = x ; then
4970 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
4971 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
4972 /usr/local/src/tcl \
4973 /usr/local/lib/tcl \
4974 ${prefix}/include ; do
4975 if test -f $i/generic/tclInt.h ; then
4976 ac_cv_c_tclh=`(cd $i/generic; pwd)`
4981 # see if one is installed
4982 if test x"${ac_cv_c_tclh}" = x ; then
4983 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
4984 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
4985 echo "configure:4986: checking for tclInt.h" >&5
4986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4995 { (eval echo configure:4996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4997 if test -z "$ac_err"; then
4999 eval "ac_cv_header_$ac_safe=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5005 eval "ac_cv_header_$ac_safe=no"
5009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5011 ac_cv_c_tclh=installed
5013 echo "$ac_t""no" 1>&6
5021 if test x"${ac_cv_c_tclh}" = x ; then
5022 TCLHDIR="# no Tcl private headers found"
5023 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5025 if test x"${ac_cv_c_tclh}" != x ; then
5027 if test x"${ac_cv_c_tclh}" = x"installed" ; then
5028 echo "$ac_t""is installed" 1>&6
5031 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5032 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5033 TCLHDIR="-I${ac_cv_c_tclh}"
5041 # Ok, lets find the tk source trees so we can use the headers
5042 # If the directory (presumably symlink) named "tk" exists, use that one
5043 # in preference to any others. Same logic is used when choosing library
5044 # and again with Tcl. The search order is the best place to look first, then in
5045 # decreasing significance. The loop breaks if the trigger file is found.
5046 # Note the gross little conversion here of srcdir by cd'ing to the found
5047 # directory. This converts the path from a relative to an absolute, so
5048 # recursive cache variables for the path will work right. We check all
5049 # the possible paths in one loop rather than many seperate loops to speed
5051 # the alternative search directory is involked by --with-tkinclude
5054 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5055 echo "configure:5056: checking for Tk private headers" >&5
5056 # Check whether --with-tkinclude or --without-tkinclude was given.
5057 if test "${with_tkinclude+set}" = set; then
5058 withval="$with_tkinclude"
5059 with_tkinclude=${withval}
5062 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5063 echo $ac_n "(cached) $ac_c" 1>&6
5066 # first check to see if --with-tkinclude was specified
5067 if test x"${with_tkinclude}" != x ; then
5068 if test -f ${with_tkinclude}/tk.h ; then
5069 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
5070 elif test -f ${with_tkinclude}/generic/tk.h ; then
5071 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
5073 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5077 # next check if it came with Tk configuration file
5078 if test x"${ac_cv_c_tkconfig}" = x ; then
5079 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
5080 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
5084 # next check in private source directory
5086 # since ls returns lowest version numbers first, reverse its output
5087 if test x"${ac_cv_c_tkh}" = x ; then
5090 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5091 ${srcdir}/../../tk \
5092 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5093 ${srcdir}/../../../tk \
5094 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5095 if test -f $i/generic/tk.h ; then
5096 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5101 # finally check in a few common install locations
5103 # since ls returns lowest version numbers first, reverse its output
5104 if test x"${ac_cv_c_tkh}" = x ; then
5106 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5107 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5110 ${prefix}/include ; do
5111 if test -f $i/generic/tk.h ; then
5112 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5117 # see if one is installed
5118 if test x"${ac_cv_c_tkh}" = x ; then
5119 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
5120 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5121 echo "configure:5122: checking for tk.h" >&5
5122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5131 { (eval echo configure:5132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5133 if test -z "$ac_err"; then
5135 eval "ac_cv_header_$ac_safe=yes"
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5141 eval "ac_cv_header_$ac_safe=no"
5145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_cv_c_tkh=installed
5149 echo "$ac_t""no" 1>&6
5157 if test x"${ac_cv_c_tkh}" != x ; then
5159 if test x"${ac_cv_c_tkh}" = x"installed" ; then
5160 echo "$ac_t""is installed" 1>&6
5163 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5164 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5165 TKHDIR="-I${ac_cv_c_tkh}"
5168 TKHDIR="# no Tk directory found"
5169 echo "configure: warning: Can't find Tk private headers" 1>&2
5176 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5177 echo "configure:5178: checking for Itcl private headers. srcdir=${srcdir}" >&5
5178 if test x"${ac_cv_c_itclh}" = x ; then
5179 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do
5180 if test -f $i/src/itcl.h ; then
5181 ac_cv_c_itclh=`(cd $i/src; pwd)`
5186 if test x"${ac_cv_c_itclh}" = x ; then
5187 ITCLHDIR="# no Itcl private headers found"
5188 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5190 if test x"${ac_cv_c_itclh}" != x ; then
5191 ITCLHDIR="-I${ac_cv_c_itclh}"
5193 # should always be here
5194 ITCLLIB="../itcl/src/libitcl.a"
5199 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5200 echo "configure:5201: checking for Tix private headers. srcdir=${srcdir}" >&5
5201 if test x"${ac_cv_c_tixh}" = x ; then
5202 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
5203 if test -f $i/generic/tix.h ; then
5204 ac_cv_c_tixh=`(cd $i/generic; pwd)`
5209 if test x"${ac_cv_c_tixh}" = x ; then
5210 TIXHDIR="# no Tix private headers found"
5211 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5213 if test x"${ac_cv_c_tixh}" != x ; then
5214 TIXHDIR="-I${ac_cv_c_tixh}"
5219 # now look for tix library stuff
5221 . ${ac_cv_c_tclconfig}/tclConfig.sh
5224 tixdir=../tix/win/tcl8.0
5227 tixdir=../tix/unix/tk8.0
5230 if test "${TCL_SHARED_BUILD}" = "1"; then
5231 TIX_LIB_EXT="${TCL_SHLIB_SUFFIX}"
5233 # Can't win them all: SunOS 4 (others?) appends a version
5234 # number after the ".so"
5237 TIX_LIB_EXT="${TIX_LIB_EXT}.1.0" ;;
5244 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5245 TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
5246 TIX_DEPS="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5248 TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5249 TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5253 ENABLE_CFLAGS="${ENABLE_CFLAGS} -DGDBTK"
5255 # Include some libraries that Tcl and Tk want.
5256 if test "${enable_ide}" = "yes"; then
5257 TCL_LIBS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5258 CONFIG_DEPS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5260 TCL_LIBS='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5261 CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5263 # Yes, the ordering seems wrong here. But it isn't.
5264 # TK_LIBS is the list of libraries that need to be linked
5265 # after Tcl/Tk. Note that this isn't put into LIBS. If it
5266 # were in LIBS then any link tests after this point would
5267 # try to include things like `$(LIBGUI)', which wouldn't work.
5268 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
5269 CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
5271 if test x$gdb_cv_os_cygwin32 = xyes; then
5272 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
5273 WIN32LDAPP="-Wl,--subsystem,console"
5274 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
5287 # end-sanitize-gdbtk
5289 # If we find X, set shell vars x_includes and x_libraries to the
5290 # paths, otherwise set no_x=yes.
5291 # Uses ac_ vars as temps to allow command line to override cache and checks.
5292 # --without-x overrides everything else, but does not touch the cache.
5293 echo $ac_n "checking for X""... $ac_c" 1>&6
5294 echo "configure:5295: checking for X" >&5
5296 # Check whether --with-x or --without-x was given.
5297 if test "${with_x+set}" = set; then
5302 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5303 if test "x$with_x" = xno; then
5304 # The user explicitly disabled X.
5307 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5308 # Both variables are already set.
5311 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 # One or both of the vars are not set, and there is no cached value.
5315 ac_x_includes=NO ac_x_libraries=NO
5317 if mkdir conftestdir; then
5319 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5320 cat > Imakefile <<'EOF'
5322 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5324 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5325 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5326 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5327 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5328 for ac_extension in a so sl; do
5329 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5330 test -f $ac_im_libdir/libX11.$ac_extension; then
5331 ac_im_usrlibdir=$ac_im_libdir; break
5334 # Screen out bogus values from the imake configuration. They are
5335 # bogus both because they are the default anyway, and because
5336 # using them would break gcc on systems where it needs fixed includes.
5337 case "$ac_im_incroot" in
5339 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5341 case "$ac_im_usrlibdir" in
5343 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5350 if test "$ac_x_includes" = NO; then
5351 # Guess where to find include files, by looking for this one X11 .h file.
5352 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5354 # First, try using that file with no special directory specified.
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 #include <$x_direct_test_include>
5360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5361 { (eval echo configure:5362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5363 if test -z "$ac_err"; then
5365 # We can compile using X headers with no special include directory.
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5372 # Look for the header file in a standard set of common directories.
5373 # Check X11 before X11Rn because it is often a symlink to the current release.
5376 /usr/X11R6/include \
5377 /usr/X11R5/include \
5378 /usr/X11R4/include \
5381 /usr/include/X11R6 \
5382 /usr/include/X11R5 \
5383 /usr/include/X11R4 \
5385 /usr/local/X11/include \
5386 /usr/local/X11R6/include \
5387 /usr/local/X11R5/include \
5388 /usr/local/X11R4/include \
5390 /usr/local/include/X11 \
5391 /usr/local/include/X11R6 \
5392 /usr/local/include/X11R5 \
5393 /usr/local/include/X11R4 \
5397 /usr/XFree86/include/X11 \
5400 /usr/local/include \
5401 /usr/unsupported/include \
5402 /usr/athena/include \
5403 /usr/local/x11r5/include \
5404 /usr/lpp/Xamples/include \
5406 /usr/openwin/include \
5407 /usr/openwin/share/include \
5410 if test -r "$ac_dir/$x_direct_test_include"; then
5411 ac_x_includes=$ac_dir
5417 fi # $ac_x_includes = NO
5419 if test "$ac_x_libraries" = NO; then
5420 # Check for the libraries.
5422 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5423 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5425 # See if we find them without any special options.
5426 # Don't add to $LIBS permanently.
5427 ac_save_LIBS="$LIBS"
5428 LIBS="-l$x_direct_test_library $LIBS"
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5434 ${x_direct_test_function}()
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 LIBS="$ac_save_LIBS"
5440 # We can link X programs with no special library path.
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 LIBS="$ac_save_LIBS"
5447 # First see if replacing the include by lib works.
5448 # Check X11 before X11Rn because it is often a symlink to the current release.
5449 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5460 /usr/local/X11/lib \
5461 /usr/local/X11R6/lib \
5462 /usr/local/X11R5/lib \
5463 /usr/local/X11R4/lib \
5465 /usr/local/lib/X11 \
5466 /usr/local/lib/X11R6 \
5467 /usr/local/lib/X11R5 \
5468 /usr/local/lib/X11R4 \
5472 /usr/XFree86/lib/X11 \
5476 /usr/unsupported/lib \
5478 /usr/local/x11r5/lib \
5479 /usr/lpp/Xamples/lib \
5483 /usr/openwin/share/lib \
5486 for ac_extension in a so sl; do
5487 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5488 ac_x_libraries=$ac_dir
5495 fi # $ac_x_libraries = NO
5497 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5498 # Didn't find X anywhere. Cache the known absence of X.
5499 ac_cv_have_x="have_x=no"
5501 # Record where we found X for the cache.
5502 ac_cv_have_x="have_x=yes \
5503 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5507 eval "$ac_cv_have_x"
5510 if test "$have_x" != yes; then
5511 echo "$ac_t""$have_x" 1>&6
5514 # If each of the values was on the command line, it overrides each guess.
5515 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5516 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5517 # Update the cache value to reflect the command line values.
5518 ac_cv_have_x="have_x=yes \
5519 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5520 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5523 # start-sanitize-sky
5524 # Enable GPU2 library for MIPS simulator
5525 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
5526 if test "${with_sim_gpu2+set}" = set; then
5527 withval="$with_sim_gpu2"
5530 if test -d "${withval}"
5532 LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
5534 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5536 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
5540 # Enable target accurate FP library
5541 # Check whether --with-sim-funit or --without-sim-funit was given.
5542 if test "${with_sim_funit+set}" = set; then
5543 withval="$with_sim_funit"
5546 if test -d "${withval}"
5548 LIBS="${LIBS} -L${withval}/lib -lfunit"
5550 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5552 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
5557 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5558 echo "configure:5559: checking for wctype in -lw" >&5
5559 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 ac_save_LIBS="$LIBS"
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 eval "ac_cv_lib_$ac_lib_var=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_lib_$ac_lib_var=no"
5587 LIBS="$ac_save_LIBS"
5590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5594 echo "$ac_t""no" 1>&6
5604 # Begin stuff to support --enable-shared
5605 # Check whether --enable-shared or --disable-shared was given.
5606 if test "${enable_shared+set}" = set; then
5607 enableval="$enable_shared"
5608 case "${enableval}" in
5617 # If we have shared libraries, try to set rpath reasonably.
5618 if test "${shared}" = "true"; then
5621 HLDFLAGS='-Wl,+s,+b,$(libdir)'
5623 *-*-irix5* | *-*-irix6*)
5624 HLDFLAGS='-Wl,-rpath,$(libdir)'
5628 *-*-linux* | *-pc-linux-gnu)
5629 HLDFLAGS='-Wl,-rpath,$(libdir)'
5632 HLDFLAGS='-R $(libdir)'
5635 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;'
5640 # On SunOS, if the linker supports the -rpath option, use it to
5641 # prevent ../bfd and ../opcodes from being included in the run time
5645 echo 'main () { }' > conftest.c
5646 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
5647 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
5649 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
5651 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
5653 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
5655 elif test "${shared}" = "true"; then
5656 HLDFLAGS='-Wl,-rpath=$(libdir)'
5658 HLDFLAGS='-Wl,-rpath='
5660 rm -f conftest.t conftest.c conftest
5665 # End stuff to support --enable-shared
5667 # target_subdir is used by the testsuite to find the target libraries.
5669 if test "${host}" != "${target}"; then
5670 target_subdir="${target_alias}/"
5675 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5676 if test ! -f ${host_makefile_frag}; then
5677 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
5679 frags="$frags $host_makefile_frag"
5681 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5682 if test ! -f ${target_makefile_frag}; then
5683 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
5685 frags="$frags $target_makefile_frag"
5692 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5693 ' ${host_makefile_frag}`
5695 targetfile=`sed -n '
5696 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5697 ' ${target_makefile_frag}`
5699 # these really aren't orthogonal true/false values of the same condition,
5700 # but shells are slow enough that I like to reuse the test conditions
5702 if test "${target}" = "${host}"; then
5703 nativefile=`sed -n '
5704 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5705 ' ${host_makefile_frag}`
5707 # GDBserver is only useful in a "native" enviroment
5708 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5712 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5713 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5714 # corresponding links. But we have to remove the xm.h files and tm.h
5715 # files anyway, e.g. when switching from "configure host" to
5721 if test "${hostfile}" != ""; then
5722 files="${files} config/${gdb_host_cpu}/${hostfile}"
5723 links="${links} xm.h"
5726 if test "${targetfile}" != ""; then
5727 files="${files} config/${gdb_target_cpu}/${targetfile}"
5728 links="${links} tm.h"
5731 if test "${nativefile}" != ""; then
5732 files="${files} config/${gdb_host_cpu}/${nativefile}"
5733 links="${links} nm.h"
5735 # A cross-only configuration.
5736 files="${files} config/nm-empty.h"
5737 links="${links} nm.h"
5739 # start-sanitize-gdbtk
5740 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5741 echo "configure:5742: checking whether ln -s works" >&5
5742 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5746 if ln -s X conftestdata 2>/dev/null
5749 ac_cv_prog_LN_S="ln -s"
5754 LN_S="$ac_cv_prog_LN_S"
5755 if test "$ac_cv_prog_LN_S" = "ln -s"; then
5756 echo "$ac_t""yes" 1>&6
5758 echo "$ac_t""no" 1>&6
5761 # Make it possible to use the GUI without doing a full install
5762 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl ; then
5763 if test "$LN_S" = "ln -s" -a ! -f gdbtcl ; then
5764 echo linking $srcdir/gdbtcl to gdbtcl
5765 $LN_S $srcdir/gdbtcl gdbtcl
5767 echo Warning: Unable to link $srcdir/gdbtcl to gdbtcl. You will need to do a
5768 echo " " make install before you are able to run the GUI.
5771 # end-sanitize-gdbtk
5775 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
5776 echo "configure:5777: checking for Cygwin32 environment" >&5
5777 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5785 return __CYGWIN32__;
5788 if { (eval echo configure:5789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5801 echo "$ac_t""$am_cv_cygwin32" 1>&6
5803 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
5804 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
5805 echo "configure:5806: checking for Mingw32 environment" >&5
5806 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5817 if { (eval echo configure:5818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5830 echo "$ac_t""$am_cv_mingw32" 1>&6
5832 test "$am_cv_mingw32" = yes && MINGW32=yes
5835 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5836 echo "configure:5837: checking for executable suffix" >&5
5837 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
5838 echo $ac_n "(cached) $ac_c" 1>&6
5840 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
5843 cat > am_c_test.c << 'EOF'
5845 /* Nothing needed here */
5848 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
5850 for file in am_c_test.*; do
5854 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
5860 test x"${am_cv_exeext}" = x && am_cv_exeext=no
5863 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
5864 echo "$ac_t""${am_cv_exeext}" 1>&6
5867 subdirs="$configdirs"
5870 cat > confcache <<\EOF
5871 # This file is a shell script that caches the results of configure
5872 # tests run on this system so they can be shared between configure
5873 # scripts and configure runs. It is not useful on other systems.
5874 # If it contains results you don't want to keep, you may remove or edit it.
5876 # By default, configure uses ./config.cache as the cache file,
5877 # creating it if it does not exist already. You can give configure
5878 # the --cache-file=FILE option to use a different cache file; that is
5879 # what configure does when it calls configure scripts in
5880 # subdirectories, so they share the cache.
5881 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5882 # config.status only pays attention to the cache file if you give it the
5883 # --recheck option to rerun configure.
5886 # The following way of writing the cache mishandles newlines in values,
5887 # but we know of no workaround that is simple, portable, and efficient.
5888 # So, don't put newlines in cache variables' values.
5889 # Ultrix sh set writes to stderr and can't be redirected directly,
5890 # and sets the high bit in the cache file unless we assign to the vars.
5892 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5894 # `set' does not quote correctly, so add quotes (double-quote substitution
5895 # turns \\\\ into \\, and sed turns \\ into \).
5897 -e "s/'/'\\\\''/g" \
5898 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5901 # `set' quotes correctly as required by POSIX, so do not add quotes.
5902 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5905 if cmp -s $cache_file confcache; then
5908 if test -w $cache_file; then
5909 echo "updating cache $cache_file"
5910 cat confcache > $cache_file
5912 echo "not updating unwritable cache $cache_file"
5917 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5920 # Let make expand exec_prefix.
5921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5923 # Any assignment to VPATH causes Sun make to only execute
5924 # the first set of double-colon rules, so remove it if not needed.
5925 # If there is a colon in the path, we need to keep it.
5926 if test "x$srcdir" = x.; then
5927 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5930 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5932 DEFS=-DHAVE_CONFIG_H
5934 # Without the "./", some shells look in PATH for config.status.
5935 : ${CONFIG_STATUS=./config.status}
5937 echo creating $CONFIG_STATUS
5938 rm -f $CONFIG_STATUS
5939 cat > $CONFIG_STATUS <<EOF
5941 # Generated automatically by configure.
5942 # Run this file to recreate the current configuration.
5943 # This directory was configured as follows,
5944 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5946 # $0 $ac_configure_args
5948 # Compiler output produced by configure, useful for debugging
5949 # configure, is in ./config.log if it exists.
5951 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5954 case "\$ac_option" in
5955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5956 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5957 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5958 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5959 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5961 -help | --help | --hel | --he | --h)
5962 echo "\$ac_cs_usage"; exit 0 ;;
5963 *) echo "\$ac_cs_usage"; exit 1 ;;
5967 ac_given_srcdir=$srcdir
5968 ac_given_INSTALL="$INSTALL"
5970 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5972 cat >> $CONFIG_STATUS <<EOF
5974 # Protect against being on the right side of a sed subst in config.status.
5975 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5976 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5980 s%@CFLAGS@%$CFLAGS%g
5981 s%@CPPFLAGS@%$CPPFLAGS%g
5982 s%@CXXFLAGS@%$CXXFLAGS%g
5984 s%@LDFLAGS@%$LDFLAGS%g
5986 s%@exec_prefix@%$exec_prefix%g
5987 s%@prefix@%$prefix%g
5988 s%@program_transform_name@%$program_transform_name%g
5989 s%@bindir@%$bindir%g
5990 s%@sbindir@%$sbindir%g
5991 s%@libexecdir@%$libexecdir%g
5992 s%@datadir@%$datadir%g
5993 s%@sysconfdir@%$sysconfdir%g
5994 s%@sharedstatedir@%$sharedstatedir%g
5995 s%@localstatedir@%$localstatedir%g
5996 s%@libdir@%$libdir%g
5997 s%@includedir@%$includedir%g
5998 s%@oldincludedir@%$oldincludedir%g
5999 s%@infodir@%$infodir%g
6000 s%@mandir@%$mandir%g
6003 s%@DLLTOOL@%$DLLTOOL%g
6005 s%@host_alias@%$host_alias%g
6006 s%@host_cpu@%$host_cpu%g
6007 s%@host_vendor@%$host_vendor%g
6008 s%@host_os@%$host_os%g
6009 s%@target@%$target%g
6010 s%@target_alias@%$target_alias%g
6011 s%@target_cpu@%$target_cpu%g
6012 s%@target_vendor@%$target_vendor%g
6013 s%@target_os@%$target_os%g
6015 s%@build_alias@%$build_alias%g
6016 s%@build_cpu@%$build_cpu%g
6017 s%@build_vendor@%$build_vendor%g
6018 s%@build_os@%$build_os%g
6019 s%@SET_MAKE@%$SET_MAKE%g
6020 s%@RANLIB@%$RANLIB%g
6021 s%@ALLOCA@%$ALLOCA%g
6022 s%@USE_NLS@%$USE_NLS%g
6023 s%@MSGFMT@%$MSGFMT%g
6024 s%@GMSGFMT@%$GMSGFMT%g
6025 s%@XGETTEXT@%$XGETTEXT%g
6026 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6027 s%@CATALOGS@%$CATALOGS%g
6028 s%@CATOBJEXT@%$CATOBJEXT%g
6029 s%@DATADIRNAME@%$DATADIRNAME%g
6030 s%@GMOFILES@%$GMOFILES%g
6031 s%@INSTOBJEXT@%$INSTOBJEXT%g
6032 s%@INTLDEPS@%$INTLDEPS%g
6033 s%@INTLLIBS@%$INTLLIBS%g
6034 s%@INTLOBJS@%$INTLOBJS%g
6035 s%@POFILES@%$POFILES%g
6037 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6039 s%@GT_YES@%$GT_YES%g
6040 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6042 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6043 s%@INSTALL_DATA@%$INSTALL_DATA%g
6047 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6048 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6049 s%@MMALLOC@%$MMALLOC%g
6050 s%@ENABLE_IDE@%$ENABLE_IDE%g
6051 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6052 s%@LIBGUI@%$LIBGUI%g
6053 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6054 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6056 s%@LIBIDETCL@%$LIBIDETCL%g
6057 s%@LIBIDE@%$LIBIDE%g
6058 s%@IDE_DEPS@%$IDE_DEPS%g
6059 s%@WIN32LIBS@%$WIN32LIBS%g
6060 s%@WIN32LDAPP@%$WIN32LDAPP%g
6061 s%@WINDRES@%$WINDRES%g
6062 s%@TCL_VERSION@%$TCL_VERSION%g
6063 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6064 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6065 s%@TCL_CC@%$TCL_CC%g
6066 s%@TCL_DEFS@%$TCL_DEFS%g
6067 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6068 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6069 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6070 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6071 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6072 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6073 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6074 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6075 s%@TCL_RANLIB@%$TCL_RANLIB%g
6076 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6077 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6078 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6079 s%@TK_VERSION@%$TK_VERSION%g
6080 s%@TK_DEFS@%$TK_DEFS%g
6081 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6082 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6083 s%@TK_XLIBSW@%$TK_XLIBSW%g
6084 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6085 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6086 s%@TCLHDIR@%$TCLHDIR%g
6087 s%@TKHDIR@%$TKHDIR%g
6088 s%@ITCLHDIR@%$ITCLHDIR%g
6089 s%@ITCLLIB@%$ITCLLIB%g
6090 s%@TIXHDIR@%$TIXHDIR%g
6091 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6092 s%@X_CFLAGS@%$X_CFLAGS%g
6093 s%@X_LDFLAGS@%$X_LDFLAGS%g
6094 s%@X_LIBS@%$X_LIBS%g
6095 s%@TIXLIB@%$TIXLIB%g
6096 s%@TIX_DEPS@%$TIX_DEPS%g
6097 s%@GDBTKLIBS@%$GDBTKLIBS%g
6098 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6099 s%@CONFIG_OBS@%$CONFIG_OBS%g
6100 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6101 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6102 s%@HLDFLAGS@%$HLDFLAGS%g
6103 s%@HLDENV@%$HLDENV%g
6104 s%@target_subdir@%$target_subdir%g
6105 /@host_makefile_frag@/r $host_makefile_frag
6106 s%@host_makefile_frag@%%g
6107 /@target_makefile_frag@/r $target_makefile_frag
6108 s%@target_makefile_frag@%%g
6111 s%@EXEEXT@%$EXEEXT%g
6112 s%@subdirs@%$subdirs%g
6117 cat >> $CONFIG_STATUS <<\EOF
6119 # Split the substitutions into bite-sized pieces for seds with
6120 # small command number limits, like on Digital OSF/1 and HP-UX.
6121 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6122 ac_file=1 # Number of current file.
6123 ac_beg=1 # First line for current file.
6124 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6127 while $ac_more_lines; do
6128 if test $ac_beg -gt 1; then
6129 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6131 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6133 if test ! -s conftest.s$ac_file; then
6135 rm -f conftest.s$ac_file
6137 if test -z "$ac_sed_cmds"; then
6138 ac_sed_cmds="sed -f conftest.s$ac_file"
6140 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6142 ac_file=`expr $ac_file + 1`
6144 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6147 if test -z "$ac_sed_cmds"; then
6152 cat >> $CONFIG_STATUS <<EOF
6154 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
6156 cat >> $CONFIG_STATUS <<\EOF
6157 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6160 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6161 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6162 *) ac_file_in="${ac_file}.in" ;;
6165 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6167 # Remove last slash and all that follows it. Not all systems have dirname.
6168 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6169 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6170 # The file is in a subdirectory.
6171 test ! -d "$ac_dir" && mkdir "$ac_dir"
6172 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6173 # A "../" for each directory in $ac_dir_suffix.
6174 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6176 ac_dir_suffix= ac_dots=
6179 case "$ac_given_srcdir" in
6181 if test -z "$ac_dots"; then top_srcdir=.
6182 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6183 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6185 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6186 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6189 case "$ac_given_INSTALL" in
6190 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6191 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6194 echo creating "$ac_file"
6196 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6198 *Makefile*) ac_comsub="1i\\
6199 # $configure_input" ;;
6203 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6205 s%@configure_input@%$configure_input%g
6206 s%@srcdir@%$srcdir%g
6207 s%@top_srcdir@%$top_srcdir%g
6208 s%@INSTALL@%$INSTALL%g
6209 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6213 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6214 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6216 # ac_d sets the value in "#define NAME VALUE" lines.
6217 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6218 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6221 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6222 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6223 ac_uB='\([ ]\)%\1#\2define\3'
6226 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6227 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6228 ac_eB='$%\1#\2define\3'
6232 if test "${CONFIG_HEADERS+set}" != set; then
6234 cat >> $CONFIG_STATUS <<EOF
6235 CONFIG_HEADERS="config.h:config.in"
6237 cat >> $CONFIG_STATUS <<\EOF
6239 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6242 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6243 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6244 *) ac_file_in="${ac_file}.in" ;;
6247 echo creating $ac_file
6249 rm -f conftest.frag conftest.in conftest.out
6250 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6251 cat $ac_file_inputs > conftest.in
6255 # Transform confdefs.h into a sed script conftest.vals that substitutes
6256 # the proper values into config.h.in to produce config.h. And first:
6257 # Protect against being on the right side of a sed subst in config.status.
6258 # Protect against being in an unquoted here document in config.status.
6260 cat > conftest.hdr <<\EOF
6263 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6267 sed -n -f conftest.hdr confdefs.h > conftest.vals
6270 # This sed command replaces #undef with comments. This is necessary, for
6271 # example, in the case of _POSIX_SOURCE, which is predefined and required
6272 # on some systems where configure will not decide to define it.
6273 cat >> conftest.vals <<\EOF
6274 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6277 # Break up conftest.vals because some shells have a limit on
6278 # the size of here documents, and old seds have small limits too.
6283 ac_lines=`grep -c . conftest.vals`
6284 # grep -c gives empty output for an empty file on some AIX systems.
6285 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6286 # Write a limited-size here document to conftest.frag.
6287 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6288 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6290 sed -f conftest.frag conftest.in > conftest.out
6292 mv conftest.out conftest.in
6294 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6296 mv conftest.tail conftest.vals
6300 cat >> $CONFIG_STATUS <<\EOF
6301 rm -f conftest.frag conftest.h
6302 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6303 cat conftest.in >> conftest.h
6305 if cmp -s $ac_file conftest.h 2>/dev/null; then
6306 echo "$ac_file is unchanged"
6309 # Remove last slash and all that follows it. Not all systems have dirname.
6310 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6311 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6312 # The file is in a subdirectory.
6313 test ! -d "$ac_dir" && mkdir "$ac_dir"
6316 mv conftest.h $ac_file
6322 cat >> $CONFIG_STATUS <<EOF
6327 cat >> $CONFIG_STATUS <<\EOF
6328 srcdir=$ac_given_srcdir
6329 while test -n "$ac_sources"; do
6330 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6331 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6333 echo "linking $srcdir/$ac_source to $ac_dest"
6335 if test ! -r $srcdir/$ac_source; then
6336 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6340 # Make relative symlinks.
6341 # Remove last slash and all that follows it. Not all systems have dirname.
6342 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6343 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6344 # The dest file is in a subdirectory.
6345 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6346 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6347 # A "../" for each directory in $ac_dest_dir_suffix.
6348 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6350 ac_dest_dir_suffix= ac_dots=
6354 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6355 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6358 # Make a symlink if possible; otherwise try a hard link.
6359 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6360 ln $srcdir/$ac_source $ac_dest; then :
6362 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6366 cat >> $CONFIG_STATUS <<EOF
6368 gdb_host_cpu=$gdb_host_cpu
6369 gdb_target_cpu=$gdb_target_cpu
6370 nativefile=$nativefile
6373 cat >> $CONFIG_STATUS <<\EOF
6375 if test "${nativefile}" = ""; then
6376 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6377 < Makefile > Makefile.tem
6378 mv -f Makefile.tem Makefile
6381 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6382 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6383 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6384 mv -f Makefile.tmp Makefile
6386 case x$CONFIG_HEADERS in
6387 xconfig.h:config.in)
6393 chmod +x $CONFIG_STATUS
6394 rm -fr confdefs* $ac_clean_files
6395 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6397 if test "$no_recursion" != yes; then
6399 # Remove --cache-file and --srcdir arguments so they do not pile up.
6400 ac_sub_configure_args=
6402 for ac_arg in $ac_configure_args; do
6403 if test -n "$ac_prev"; then
6408 -cache-file | --cache-file | --cache-fil | --cache-fi \
6409 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6410 ac_prev=cache_file ;;
6411 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6412 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6418 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6422 for ac_config_dir in $configdirs; do
6424 # Do not complain, so a configure script can configure whichever
6425 # parts of a large source tree are present.
6426 if test ! -d $srcdir/$ac_config_dir; then
6430 echo configuring in $ac_config_dir
6435 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6437 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6445 # A "../" for each directory in /$ac_config_dir.
6446 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6449 .) # No --srcdir option. We are building in place.
6450 ac_sub_srcdir=$srcdir ;;
6451 /*) # Absolute path.
6452 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6454 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6457 # Check for guested configure; otherwise get Cygnus style configure.
6458 if test -f $ac_sub_srcdir/configure; then
6459 ac_sub_configure=$ac_sub_srcdir/configure
6460 elif test -f $ac_sub_srcdir/configure.in; then
6461 ac_sub_configure=$ac_configure
6463 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6467 # The recursion is here.
6468 if test -n "$ac_sub_configure"; then
6470 # Make the cache file name correct relative to the subdirectory.
6471 case "$cache_file" in
6472 /*) ac_sub_cache_file=$cache_file ;;
6474 ac_sub_cache_file="$ac_dots$cache_file" ;;
6476 case "$ac_given_INSTALL" in
6477 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6478 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6481 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6482 # The eval makes quoting arguments work.
6483 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6486 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }